Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorCechComplex |
| 2 | |
| 3 | /-! # Tensor Cech Tmul -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorCechTmul.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A local section comparison compatible with restriction identifies the Cech complexes. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {R K : Type u} [CommRing R] [CommRing K] [Algebra R K] |
| 17 | {X Y : TopCat.{u}} (h : Y ⟶ X) |
| 18 | (F : TopCat.Sheaf (ModuleCat.{u} R) X) (G : TopCat.Sheaf (ModuleCat.{u} K) Y) |
| 19 | |
| 20 | structure TensorCechLocalComparison (P : Opens X → Prop) where |
| 21 | sectionEquiv : ∀ W, P W → (K ⊗[R] F.obj.obj (op W)) ≃ₗ[K] G.obj.obj (op ((Opens.map h).obj W)) |
| 22 | restrict : ∀ {U V} (i : V ⟶ U) (hU : P U) (hV : P V) (z : K ⊗[R] F.obj.obj (op U)), |
| 23 | sectionEquiv V hV ((F.obj.map i.op).hom.baseChange K z) = |
| 24 | G.obj.map ((Opens.map h).map i).op (sectionEquiv U hU z) |
| 25 | |
| 26 | namespace TensorCechLocalComparison |
| 27 | |
| 28 | variable {h F G} {P : Opens X → Prop} (q : TensorCechLocalComparison h F G P) |
| 29 | {ι : Type u} (U : ι → Opens X) |
| 30 | (h₀ : ∀ i, P (U i)) (h₁ : ∀ i j, P (U i ⊓ U j)) |
| 31 | (h₂ : ∀ i j k, P ((U i ⊓ U j) ⊓ U k)) |
| 32 | |
| 33 | abbrev mappedOpens : ι → Opens Y := fun i ↦ (Opens.map h).obj (U i) |
| 34 | |
| 35 | def coordinates0 : CechBaseChangeCoordinates.Construction.tensorCechC0 (K := K) F U ≃ₗ[K] OpenCechDegreeZero.Construction.openModuleCechC0 G (mappedOpens (h := h) U) := |
| 36 | LinearEquiv.piCongrRight fun i ↦ q.sectionEquiv (U i) (h₀ i) |
| 37 | |
| 38 | def coordinates1 : CechBaseChangeCoordinates.Construction.tensorCechC1 (K := K) F U ≃ₗ[K] OpenCechDegreeZero.Construction.openModuleCechC1 G (mappedOpens (h := h) U) := |
| 39 | LinearEquiv.piCongrRight fun i ↦ LinearEquiv.piCongrRight fun j ↦ q.sectionEquiv _ (h₁ i j) |
| 40 | |
| 41 | def coordinates2 : CechBaseChangeCoordinates.Construction.tensorCechC2 (K := K) F U ≃ₗ[K] OpenCechShortComplex.Construction.openModuleCechC2 G (mappedOpens (h := h) U) := |
| 42 | LinearEquiv.piCongrRight fun i ↦ LinearEquiv.piCongrRight fun j ↦ LinearEquiv.piCongrRight fun k ↦ |
| 43 | q.sectionEquiv _ (h₂ i j k) |
| 44 | |
| 45 | theorem coordinates_d0 : |
| 46 | (q.coordinates1 U h₁).toLinearMap.comp (TensorCechDifferentials.Construction.tensorCechD0 F U) = |
| 47 | (OpenCechDegreeZero.Construction.openModuleCechD0 G (mappedOpens (h := h) U)).comp (q.coordinates0 U h₀).toLinearMap := by |
| 48 | apply LinearMap.ext |
| 49 | intro z |
| 50 | funext i j |
| 51 | change q.sectionEquiv _ (h₁ i j) |
| 52 | ((F.obj.map (homOfLE inf_le_right : U i ⊓ U j ⟶ U j).op).hom.baseChange K (z j) - |
| 53 | (F.obj.map (homOfLE inf_le_left : U i ⊓ U j ⟶ U i).op).hom.baseChange K (z i)) = _ |
| 54 | rw [map_sub] |
| 55 | exact congrArg₂ (fun x y ↦ x - y) |
| 56 | (q.restrict (homOfLE inf_le_right) (h₀ j) (h₁ i j) (z j)) |
| 57 | (q.restrict (homOfLE inf_le_left) (h₀ i) (h₁ i j) (z i)) |
| 58 | |
| 59 | theorem coordinates1_restrict (z : CechBaseChangeCoordinates.Construction.tensorCechC1 (K := K) F U) (i j : ι) |
| 60 | (W : Opens X) (hW : P W) (hi : W ≤ U i) (hj : W ≤ U j) : |
| 61 | q.sectionEquiv W hW (TensorCechDifferentials.Construction.tensorCechRestrict1 F U z i j W hi hj) = |
| 62 | OpenCechCocycles.Construction.openCechRestrict1 G (mappedOpens (h := h) U) (q.coordinates1 U h₁ z) i j |
| 63 | ((Opens.map h).obj W) ((Opens.map h).monotone hi) ((Opens.map h).monotone hj) := |
| 64 | q.restrict (homOfLE (le_inf hi hj)) (h₁ i j) hW (z i j) |
| 65 | |
| 66 | theorem coordinates_d1 : |
| 67 | (q.coordinates2 U h₂).toLinearMap.comp (TensorCechDifferentials.Construction.tensorCechD1 F U) = |
| 68 | (OpenCechShortComplex.Construction.openModuleCechD1 G (mappedOpens (h := h) U)).comp (q.coordinates1 U h₁).toLinearMap := by |
| 69 | apply LinearMap.ext |
| 70 | intro z |
| 71 | funext i j k |
| 72 | change q.sectionEquiv _ (h₂ i j k) |
| 73 | (TensorCechDifferentials.Construction.tensorCechRestrict1 F U z i j ((U i ⊓ U j) ⊓ U k) |
| 74 | (inf_le_left.trans inf_le_left) (inf_le_left.trans inf_le_right) + |
| 75 | TensorCechDifferentials.Construction.tensorCechRestrict1 F U z j k ((U i ⊓ U j) ⊓ U k) |
| 76 | (inf_le_left.trans inf_le_right) inf_le_right - |
| 77 | TensorCechDifferentials.Construction.tensorCechRestrict1 F U z i k ((U i ⊓ U j) ⊓ U k) |
| 78 | (inf_le_left.trans inf_le_left) inf_le_right) = _ |
| 79 | rw [map_sub, map_add] |
| 80 | exact congrArg₂ (fun x y ↦ x - y) |
| 81 | (congrArg₂ (fun x y ↦ x + y) |
| 82 | (q.coordinates1_restrict U h₁ z i j _ (h₂ i j k) |
| 83 | (inf_le_left.trans inf_le_left) (inf_le_left.trans inf_le_right)) |
| 84 | (q.coordinates1_restrict U h₁ z j k _ (h₂ i j k) |
| 85 | (inf_le_left.trans inf_le_right) inf_le_right)) |
| 86 | (q.coordinates1_restrict U h₁ z i k _ (h₂ i j k) |
| 87 | (inf_le_left.trans inf_le_left) inf_le_right) |
| 88 | |
| 89 | variable [Fintype ι] [DecidableEq ι] |
| 90 | |
| 91 | def complexIso : |
| 92 | ModuleBaseChangeComplex.Construction.moduleBaseChangeComplex R K (OpenCechShortComplex.Construction.openModuleCechShortComplex F U) ≅ |
| 93 | OpenCechShortComplex.Construction.openModuleCechShortComplex G (mappedOpens (h := h) U) := |
| 94 | TensorCechComplex.Construction.tensorCechComplexIso F U ≪≫ ShortComplex.isoMk |
| 95 | (q.coordinates0 U h₀).toModuleIso |
| 96 | (q.coordinates1 U h₁).toModuleIso |
| 97 | (q.coordinates2 U h₂).toModuleIso |
| 98 | (by apply ModuleCat.hom_ext; exact (q.coordinates_d0 U h₀ h₁).symm) |
| 99 | (by apply ModuleCat.hom_ext; exact (q.coordinates_d1 U h₁ h₂).symm) |
| 100 | |
| 101 | theorem complexIso_first_tmul (a : K) (z : OpenCechDegreeZero.Construction.openModuleCechC0 F U) (i : ι) : |
| 102 | (q.complexIso U h₀ h₁ h₂).hom.τ₁ (a ⊗ₜ[R] z) i = |
| 103 | q.sectionEquiv (U i) (h₀ i) (a ⊗ₜ[R] z i) := rfl |
| 104 | |
| 105 | theorem complexIso_middle_tmul (a : K) (z : OpenCechDegreeZero.Construction.openModuleCechC1 F U) (i j : ι) : |
| 106 | (q.complexIso U h₀ h₁ h₂).hom.τ₂ (a ⊗ₜ[R] z) i j = |
| 107 | q.sectionEquiv (U i ⊓ U j) (h₁ i j) (a ⊗ₜ[R] z i j) := rfl |
| 108 | |
| 109 | end TensorCechLocalComparison |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorCechTmul.Construction |