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.AlgebraicGeometry.Divisors.LineBundles.LineBundle.CoordinateRestriction |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.FunctionFieldUnitGerm |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.LineBundle.Divisor |
| 4 | |
| 5 | /-! # Rational Coefficient -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! # LineBundleCycles: actual frame-change identities for rational sections on arbitrary common opens -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 16 | |
| 17 | variable {X : Scheme.{0}} [IsIntegral X] (L : LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle X) |
| 18 | |
| 19 | theorem Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.rationalSectionCoordinate_transition (x y : X) (W : X.Opens) [Nonempty W] |
| 20 | (hx : W ≤ L.trivializingOpen x) (hy : W ≤ L.trivializingOpen y) : |
| 21 | L.rationalSectionCoordinate x = |
| 22 | FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm W (L.ambientTransitionOn x y W hx hy) * L.rationalSectionCoordinate y := by |
| 23 | let V := W ⊓ L.rationalReferenceOpen |
| 24 | let : Nonempty V := ⟨⟨genericPoint X, |
| 25 | ((genericPoint_spec X).mem_open_set_iff W.isOpen).mpr (by simpa using ‹Nonempty W›), |
| 26 | L.mem_trivializingOpen (genericPoint X)⟩⟩ |
| 27 | have hxV : V ≤ L.rationalCoordinateDomain x := fun _ hv => ⟨hx hv.1, hv.2⟩ |
| 28 | have hyV : V ≤ L.rationalCoordinateDomain y := fun _ hv => ⟨hy hv.1, hv.2⟩ |
| 29 | have ht : FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm W (L.ambientTransitionOn x y W hx hy) = |
| 30 | FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm V (L.ambientTransitionOn x y V (inf_le_left.trans hx) (inf_le_left.trans hy)) := by |
| 31 | rw [← L.ambientTransitionOn_restrict x y (show V ≤ W from inf_le_left) hx hy] |
| 32 | exact (FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm_restrict (show V ≤ W from inf_le_left) _).symm |
| 33 | rw [L.rationalSectionCoordinate_on_open x V hxV, L.rationalSectionCoordinate_on_open y V hyV, ht] |
| 34 | change FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm V _ = FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm V _ * FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm V _ |
| 35 | rw [← map_mul] |
| 36 | exact congrArg (FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm V) |
| 37 | (L.ambientTransitionOn_cocycle x y (genericPoint X) V (inf_le_left.trans hx) |
| 38 | (inf_le_left.trans hy) inf_le_right).symm |
| 39 | |
| 40 | variable [AlgebraicGeometry.IsNoetherian X] |
| 41 | |
| 42 | theorem Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.rationalSectionDivisor_local_order (a : X.functionFieldˣ) (x y : X) |
| 43 | (hy : y ∈ L.trivializingOpen x) : |
| 44 | L.rationalSectionPointDivisorWithCoefficient a y = X.ord (a.val * (L.rationalSectionCoordinate x).val) y := by |
| 45 | let W := L.trivializingOpen x ⊓ L.trivializingOpen y |
| 46 | have hyW : y ∈ W := ⟨hy, L.mem_trivializingOpen y⟩ |
| 47 | let : Nonempty W := ⟨⟨y, hyW⟩⟩ |
| 48 | rw [L.rationalSectionPointDivisorWithCoefficient_apply a y, |
| 49 | L.rationalSectionCoordinate_transition x y W inf_le_left inf_le_right] |
| 50 | change X.ord (a.val * (L.rationalSectionCoordinate y).val) y = |
| 51 | X.ord (a.val * ((FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm W _).val * (L.rationalSectionCoordinate y).val)) y |
| 52 | rw [Scheme.ord_mul a.ne_zero (L.rationalSectionCoordinate_ne_zero y), |
| 53 | Scheme.ord_mul a.ne_zero (mul_ne_zero (FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm W _).ne_zero (L.rationalSectionCoordinate_ne_zero y)), |
| 54 | Scheme.ord_mul (FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm W _).ne_zero (L.rationalSectionCoordinate_ne_zero y), |
| 55 | FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm_order W _ y hyW, zero_add] |
| 56 | |
| 57 | end |
| 58 | |
| 59 | section |
| 60 | |
| 61 | /-! # LineBundleCycles: an actual local section has a frame-independent coefficient in the generic rational line -/ |
| 62 | |
| 63 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 64 | |
| 65 | variable {X : Scheme.{0}} [IsIntegral X] (L : LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle X) |
| 66 | |
| 67 | def Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.localRationalCoefficient (x : X) (U : X.Opens) [Nonempty U] |
| 68 | (hU : U ≤ L.trivializingOpen x) (s : Γ(L.sheaf, U)) : X.functionField := |
| 69 | X.germToFunctionField U (L.sectionFrame x U hU s) / (L.rationalSectionCoordinate x).val |
| 70 | |
| 71 | theorem Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.localRationalCoefficient_injective (x : X) (U : X.Opens) [Nonempty U] |
| 72 | (hU : U ≤ L.trivializingOpen x) : Function.Injective (L.localRationalCoefficient x U hU) := by |
| 73 | intro s t h |
| 74 | apply (L.sectionFrame x U hU).injective |
| 75 | apply X.germToFunctionField_injective U |
| 76 | exact (div_left_inj' (L.rationalSectionCoordinate x).ne_zero).mp h |
| 77 | |
| 78 | theorem Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.localRationalCoefficient_frame (x y : X) (U : X.Opens) [Nonempty U] |
| 79 | (hx : U ≤ L.trivializingOpen x) (hy : U ≤ L.trivializingOpen y) (s : Γ(L.sheaf, U)) : |
| 80 | L.localRationalCoefficient x U hx s = L.localRationalCoefficient y U hy s := by |
| 81 | have ht : L.sectionFrame x U hx s = (L.ambientTransitionOn x y U hx hy).val * L.sectionFrame y U hy s := |
| 82 | LineBundle.FrameComparison.Cycles.LineBundleConstruction.frameTransitionUnit_coordinates _ _ _ |
| 83 | unfold LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.localRationalCoefficient |
| 84 | rw [ht, map_mul, L.rationalSectionCoordinate_transition x y U hx hy] |
| 85 | change (FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm U (L.ambientTransitionOn x y U hx hy)).val * |
| 86 | X.germToFunctionField U (L.sectionFrame y U hy s) / |
| 87 | ((FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm U (L.ambientTransitionOn x y U hx hy)).val * (L.rationalSectionCoordinate y).val) = _ |
| 88 | exact mul_div_mul_left _ _ (FunctionFieldUnitGerm.BundleCycles.functionFieldUnitGerm U _).ne_zero |
| 89 | |
| 90 | theorem Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.localRationalCoefficient_restrict (x : X) {U V : X.Opens} [Nonempty U] [Nonempty V] |
| 91 | (hVU : V ≤ U) (hU : U ≤ L.trivializingOpen x) (s : Γ(L.sheaf, U)) : |
| 92 | L.localRationalCoefficient x V (hVU.trans hU) (L.sheaf.presheaf.map (homOfLE hVU).op s) = |
| 93 | L.localRationalCoefficient x U hU s := by |
| 94 | unfold LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.localRationalCoefficient |
| 95 | rw [L.sectionFrame_naturality x hVU hU] |
| 96 | rw [RationalBoundary.BundleCycles.RationalUnitRepresentative.germ_restrict hVU] |
| 97 | |
| 98 | end |
| 99 | |
| 100 | /-! # LineBundleCycles: the actual generic rational coefficient of a section on any nonempty open subset -/ |
| 101 | |
| 102 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 103 | |
| 104 | variable {X : Scheme.{0}} [IsIntegral X] (L : LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle X) |
| 105 | |
| 106 | def Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.genericCoefficientDomain (U : X.Opens) : X.Opens := U ⊓ L.rationalReferenceOpen |
| 107 | |
| 108 | instance Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.genericCoefficientDomain_nonempty (U : X.Opens) [Nonempty U] : |
| 109 | Nonempty (L.genericCoefficientDomain U) := |
| 110 | ⟨⟨genericPoint X, |
| 111 | ((genericPoint_spec X).mem_open_set_iff U.isOpen).mpr (by simpa using ‹Nonempty U›), |
| 112 | L.mem_trivializingOpen (genericPoint X)⟩⟩ |
| 113 | |
| 114 | def Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.genericSectionCoefficient (U : X.Opens) [Nonempty U] (s : Γ(L.sheaf, U)) : X.functionField := |
| 115 | L.localRationalCoefficient (genericPoint X) (L.genericCoefficientDomain U) inf_le_right |
| 116 | (L.sheaf.presheaf.map (homOfLE (show L.genericCoefficientDomain U ≤ U from inf_le_left)).op s) |
| 117 | |
| 118 | theorem Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.genericSectionCoefficient_eq_local (x : X) (U : X.Opens) [Nonempty U] |
| 119 | (hU : U ≤ L.trivializingOpen x) (s : Γ(L.sheaf, U)) : |
| 120 | L.genericSectionCoefficient U s = L.localRationalCoefficient x U hU s := by |
| 121 | unfold LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.genericSectionCoefficient |
| 122 | rw [← L.localRationalCoefficient_frame x (genericPoint X) (L.genericCoefficientDomain U) |
| 123 | (inf_le_left.trans hU) inf_le_right] |
| 124 | exact L.localRationalCoefficient_restrict x (show L.genericCoefficientDomain U ≤ U from inf_le_left) hU s |
| 125 | |
| 126 | theorem Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.genericSectionCoefficient_restrict {U V : X.Opens} [Nonempty U] [Nonempty V] |
| 127 | (hVU : V ≤ U) (s : Γ(L.sheaf, U)) : |
| 128 | L.genericSectionCoefficient V (L.sheaf.presheaf.map (homOfLE hVU).op s) = |
| 129 | L.genericSectionCoefficient U s := by |
| 130 | have hD : L.genericCoefficientDomain V ≤ L.genericCoefficientDomain U := inf_le_inf_right _ hVU |
| 131 | have h := L.localRationalCoefficient_restrict (genericPoint X) hD inf_le_right |
| 132 | (L.sheaf.presheaf.map (homOfLE (show L.genericCoefficientDomain U ≤ U from inf_le_left)).op s) |
| 133 | unfold LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.genericSectionCoefficient |
| 134 | rw [← ConcreteCategory.comp_apply, ← L.sheaf.presheaf.map_comp] at h ⊢ |
| 135 | exact h |
| 136 | |
| 137 | theorem Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.genericSectionCoefficient_injective (U : X.Opens) [Nonempty U] : |
| 138 | Function.Injective (L.genericSectionCoefficient U) := by |
| 139 | intro s t h |
| 140 | apply L.sheaf.isSheaf.section_ext |
| 141 | intro x hx |
| 142 | let V : X.Opens := U ⊓ L.trivializingOpen x |
| 143 | have hxV : x ∈ V := ⟨hx, L.mem_trivializingOpen x⟩ |
| 144 | let : Nonempty V := ⟨⟨x, hxV⟩⟩ |
| 145 | refine ⟨V, inf_le_left, hxV, ?_⟩ |
| 146 | apply L.localRationalCoefficient_injective x V inf_le_right |
| 147 | rw [← L.genericSectionCoefficient_eq_local x V inf_le_right, |
| 148 | ← L.genericSectionCoefficient_eq_local x V inf_le_right, |
| 149 | L.genericSectionCoefficient_restrict inf_le_left, |
| 150 | L.genericSectionCoefficient_restrict inf_le_left] |
| 151 | exact h |
| 152 | |
| 153 | theorem Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.genericSectionCoefficient_zero (U : X.Opens) [Nonempty U] : |
| 154 | L.genericSectionCoefficient U 0 = 0 := by |
| 155 | unfold LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.genericSectionCoefficient LineBundles.Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.localRationalCoefficient |
| 156 | rw [map_zero, map_zero, map_zero, zero_div] |
| 157 | |
| 158 | theorem Scheme.SchemeIdealModule.BundleCycles.SchemeLineBundle.genericSectionCoefficient_ne_zero (U : X.Opens) [Nonempty U] |
| 159 | (s : Γ(L.sheaf, U)) (hs : s ≠ 0) : L.genericSectionCoefficient U s ≠ 0 := by |
| 160 | intro h |
| 161 | exact hs (L.genericSectionCoefficient_injective U (h.trans (L.genericSectionCoefficient_zero U).symm)) |
| 162 | |
| 163 | end |
| 164 | |
| 165 | end OAI.AlgebraicGeometry.Divisors.LineBundles |