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.AbelianModuli.ReferenceFamily.ConstantSectionsOn |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.SchemeSplitting |
| 3 | import Mathlib.Algebra.Group.MinimalAxioms |
| 4 | |
| 5 | /-! # Split Group -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.SplitGroup.SplitGroupLabels |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Recover the group operations on finite labels from an actual scheme |
| 12 | splitting. Naturality forces these operations to act pointwise; their |
| 13 | finite tables are locally constant on the splitting base. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open scoped _root_.CategoryTheory.MonObj _root_.Topology |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ConstantSectionsOn.ConstantSections |
| 19 | |
| 20 | variable {S : Scheme.{0}} {I : Type} {H : Over S} |
| 21 | (e : HilbertConstruction.ConstantScheme.Iff.constantScheme S I ≅ H) |
| 22 | |
| 23 | def label (T : Over S) (f : T ⟶ H) : LocallyConstant T.left I := |
| 24 | HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T (f ≫ e.inv) |
| 25 | |
| 26 | theorem label_injective (T : Over S) : Function.Injective (label e T) := by |
| 27 | intro f g h |
| 28 | exact (cancel_mono e.inv).mp ((HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T).injective h) |
| 29 | |
| 30 | def pointEquiv (T : Over S) : (T ⟶ H) ≃ LocallyConstant T.left I where |
| 31 | toFun := label e T |
| 32 | invFun c := (HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T).symm c ≫ e.hom |
| 33 | left_inv f := by |
| 34 | change (HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T).symm |
| 35 | (HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T (f ≫ e.inv)) ≫ e.hom = f |
| 36 | rw [Equiv.symm_apply_apply, Category.assoc, e.inv_hom_id, Category.comp_id] |
| 37 | right_inv c := by |
| 38 | change HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T |
| 39 | (((HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I T).symm c ≫ e.hom) ≫ e.inv) = c |
| 40 | rw [Category.assoc, e.hom_inv_id, Category.comp_id, Equiv.apply_symm_apply] |
| 41 | |
| 42 | def sectionOf (i : I) : ConstantSectionsOn.ConstantSections.baseTest S ⟶ H := ConstantSectionsOn.ConstantSections.component S i ≫ e.hom |
| 43 | |
| 44 | theorem label_natural {T U : Over S} (j : U ⟶ T) (f : T ⟶ H) : |
| 45 | label e U (j ≫ f) = (label e T f).comap ⟨j.left, j.left.continuous⟩ := rfl |
| 46 | |
| 47 | theorem label_section (i : I) : label e (ConstantSectionsOn.ConstantSections.baseTest S) (sectionOf e i) = |
| 48 | LocallyConstant.const S i := by |
| 49 | have hw : sectionOf e i ≫ e.inv = ConstantSectionsOn.ConstantSections.component S i := by |
| 50 | exact (Category.assoc _ _ _).trans |
| 51 | ((congrArg (fun f => ConstantSectionsOn.ConstantSections.component S i ≫ f) e.hom_inv_id).trans (Category.comp_id _)) |
| 52 | change HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S I (ConstantSectionsOn.ConstantSections.baseTest S) (sectionOf e i ≫ e.inv) = _ |
| 53 | rw [hw] |
| 54 | apply LocallyConstant.ext |
| 55 | intro x |
| 56 | exact HilbertConstruction.ConstantScheme.Iff.constantSchemeIndex_ι i x |
| 57 | |
| 58 | /-- Over a fiber of the label function, a section is the corresponding |
| 59 | constant section, as an equality of scheme morphisms. -/ |
| 60 | theorem restrict_eq_section (T : Over S) (x : T ⟶ H) (i : I) |
| 61 | {U : Over S} (j : U ⟶ T) |
| 62 | (hx : (label e T x).comap ⟨j.left, j.left.continuous⟩ = |
| 63 | LocallyConstant.const U.left i) : |
| 64 | j ≫ x = ConstantSectionsOn.ConstantSections.toBase U ≫ sectionOf e i := by |
| 65 | apply label_injective e U |
| 66 | rw [label_natural, label_natural, label_section, hx] |
| 67 | rfl |
| 68 | |
| 69 | variable [GrpObj H] |
| 70 | |
| 71 | def productLabel (i j : I) : LocallyConstant S I := |
| 72 | label e (ConstantSectionsOn.ConstantSections.baseTest S) (sectionOf e i * sectionOf e j) |
| 73 | |
| 74 | def unitLabel : LocallyConstant S I := label e (ConstantSectionsOn.ConstantSections.baseTest S) 1 |
| 75 | |
| 76 | def inverseLabel (i : I) : LocallyConstant S I := |
| 77 | label e (ConstantSectionsOn.ConstantSections.baseTest S) (sectionOf e i)⁻¹ |
| 78 | |
| 79 | /-- Multiplication at any test point is obtained from the table of |
| 80 | products of constant sections at its image in the base. -/ |
| 81 | theorem label_mul (T : Over S) (x y : T ⟶ H) (t : T.left) : |
| 82 | label e T (x * y) t = |
| 83 | productLabel e (label e T x t) (label e T y t) (T.hom t) := by |
| 84 | let c := label e T x |
| 85 | let d := label e T y |
| 86 | let p : LocallyConstant T.left (I × I) := |
| 87 | ⟨fun z => (c z, d z), c.isLocallyConstant.prodMk d.isLocallyConstant⟩ |
| 88 | let i := (c t, d t) |
| 89 | let U := ConstantSectionsOn.ConstantSections.fiberTest T p i |
| 90 | let j := ConstantSectionsOn.ConstantSections.fiberInclusion T p i |
| 91 | let u : U.left := ⟨t, rfl⟩ |
| 92 | have hx : j ≫ x = ConstantSectionsOn.ConstantSections.toBase U ≫ sectionOf e i.1 := by |
| 93 | apply restrict_eq_section |
| 94 | apply LocallyConstant.ext |
| 95 | intro z |
| 96 | exact congrArg Prod.fst z.property |
| 97 | have hy : j ≫ y = ConstantSectionsOn.ConstantSections.toBase U ≫ sectionOf e i.2 := by |
| 98 | apply restrict_eq_section |
| 99 | apply LocallyConstant.ext |
| 100 | intro z |
| 101 | exact congrArg Prod.snd z.property |
| 102 | have hm : j ≫ (x * y) = ConstantSectionsOn.ConstantSections.toBase U ≫ (sectionOf e i.1 * sectionOf e i.2) := by |
| 103 | rw [MonObj.comp_mul, hx, hy, MonObj.comp_mul] |
| 104 | have hl := congrArg (fun f : U ⟶ H => label e U f u) hm |
| 105 | exact hl |
| 106 | |
| 107 | theorem label_one (T : Over S) (t : T.left) : |
| 108 | label e T 1 t = unitLabel e (T.hom t) := by |
| 109 | have h : ConstantSectionsOn.ConstantSections.toBase T ≫ (1 : ConstantSectionsOn.ConstantSections.baseTest S ⟶ H) = 1 := MonObj.comp_one _ |
| 110 | exact (congrArg (fun f : T ⟶ H => label e T f t) h).symm |
| 111 | |
| 112 | /-- A finite operation table is locally constant in its entirety. -/ |
| 113 | def operationTable [Finite I] : LocallyConstant S (I × (I → I) × (I → I → I)) where |
| 114 | toFun s := (unitLabel e s, (fun i => inverseLabel e i s), fun i j => productLabel e i j s) |
| 115 | isLocallyConstant := by |
| 116 | apply (IsLocallyConstant.iff_eventually_eq _).mpr |
| 117 | intro s |
| 118 | have h1 := (unitLabel e).isLocallyConstant.eventually_eq s |
| 119 | have hi : ∀ᶠ t in 𝓝 s, ∀ i, inverseLabel e i t = inverseLabel e i s := |
| 120 | Filter.eventually_all.mpr (fun i => (inverseLabel e i).isLocallyConstant.eventually_eq s) |
| 121 | have hm : ∀ᶠ t in 𝓝 s, ∀ i j, productLabel e i j t = productLabel e i j s := |
| 122 | Filter.eventually_all.mpr (fun i => Filter.eventually_all.mpr |
| 123 | (fun j => (productLabel e i j).isLocallyConstant.eventually_eq s)) |
| 124 | filter_upwards [h1, hi, hm] with t ht1 hti htm |
| 125 | exact Prod.ext ht1 (Prod.ext (funext hti) (funext fun i => funext (htm i))) |
| 126 | |
| 127 | /-- The actual group laws imply the group axioms for the table at every |
| 128 | base point. No group structure on the finite label set is supplied. -/ |
| 129 | @[instance_reducible] |
| 130 | def groupAt (s : S) : Group I := by |
| 131 | letI : One I := ⟨unitLabel e s⟩ |
| 132 | letI : Mul I := ⟨fun i j => productLabel e i j s⟩ |
| 133 | letI : Inv I := ⟨fun i => inverseLabel e i s⟩ |
| 134 | apply Group.ofLeftAxioms |
| 135 | · intro a b c |
| 136 | have h := congrArg (fun f : ConstantSectionsOn.ConstantSections.baseTest S ⟶ H => label e (ConstantSectionsOn.ConstantSections.baseTest S) f s) |
| 137 | (mul_assoc (sectionOf e a) (sectionOf e b) (sectionOf e c)) |
| 138 | simp only [label_mul, label_section] at h |
| 139 | exact h |
| 140 | · intro a |
| 141 | have h := congrArg (fun f : ConstantSectionsOn.ConstantSections.baseTest S ⟶ H => label e (ConstantSectionsOn.ConstantSections.baseTest S) f s) |
| 142 | (one_mul (sectionOf e a)) |
| 143 | simp only [label_mul, label_one, label_section] at h |
| 144 | exact h |
| 145 | · intro a |
| 146 | have h := congrArg (fun f : ConstantSectionsOn.ConstantSections.baseTest S ⟶ H => label e (ConstantSectionsOn.ConstantSections.baseTest S) f s) |
| 147 | (inv_mul_cancel (sectionOf e a)) |
| 148 | simp only [label_mul, label_one, label_section] at h |
| 149 | exact h |
| 150 | |
| 151 | def tableNeighborhood [Finite I] (s : S) : S.Opens := |
| 152 | HilbertConstruction.ConstantScheme.Iff.locallyConstantFiber (operationTable e) (operationTable e s) |
| 153 | |
| 154 | theorem mem_tableNeighborhood [Finite I] (s : S) : s ∈ tableNeighborhood e s := rfl |
| 155 | |
| 156 | /-- On a test lying in the fixed-table neighborhood, the representing |
| 157 | equivalence is an equivalence of groups. -/ |
| 158 | def labelMulEquiv [Finite I] (s : S) (T : Over S) |
| 159 | (hT : ∀ t : T.left, operationTable e (T.hom t) = operationTable e s) : |
| 160 | letI := groupAt e s |
| 161 | (T ⟶ H) ≃* LocallyConstant T.left I := by |
| 162 | letI := groupAt e s |
| 163 | refine { pointEquiv e T with map_mul' := ?_ } |
| 164 | intro x y |
| 165 | apply LocallyConstant.ext |
| 166 | intro t |
| 167 | change label e T (x * y) t = productLabel e (label e T x t) (label e T y t) s |
| 168 | exact (label_mul e T x y t).trans |
| 169 | (congrArg (fun a : I × (I → I) × (I → I → I) => |
| 170 | a.2.2 (label e T x t) (label e T y t)) (hT t)) |
| 171 | |
| 172 | /-- Every finite scheme splitting refines to an actual local group |
| 173 | trivialization, with its finite group constructed from the fiber table. -/ |
| 174 | def localGroupIso [Finite I] (s : S) : |
| 175 | letI := groupAt e s |
| 176 | HilbertConstruction.Constant.GroupMaps.constantGroupFunctor (tableNeighborhood e s).toScheme I ≅ |
| 177 | (Over.map (tableNeighborhood e s).ι).op ⋙ yonedaGrpObj H := by |
| 178 | letI := groupAt e s |
| 179 | let U := tableNeighborhood e s |
| 180 | let eqv (T : Over U.toScheme) := labelMulEquiv e s ((Over.map U.ι).obj T) |
| 181 | (fun t => (T.hom t).property) |
| 182 | refine NatIso.ofComponents (fun T => MulEquiv.toGrpIso (eqv T.unop).symm) ?_ |
| 183 | intro T V f |
| 184 | apply GrpCat.hom_ext |
| 185 | apply MonoidHom.ext |
| 186 | intro c |
| 187 | apply (eqv V.unop).injective |
| 188 | change eqv V.unop ((eqv V.unop).symm |
| 189 | (c.comap ⟨f.unop.left, f.unop.left.continuous⟩)) = |
| 190 | label e ((Over.map U.ι).obj V.unop) |
| 191 | ((Over.map U.ι).map f.unop ≫ (eqv T.unop).symm c) |
| 192 | rw [MulEquiv.apply_symm_apply, label_natural] |
| 193 | exact (congrArg (fun d : LocallyConstant T.unop.left I => |
| 194 | d.comap ⟨f.unop.left, f.unop.left.continuous⟩) ((eqv T.unop).apply_symm_apply c)).symm |
| 195 | |
| 196 | end |
| 197 | |
| 198 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.SplitGroup.SplitGroupLabels |