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.Isogenies.NeighborCounting.Evaluated.Sections |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.EtaleSubgroups |
| 3 | |
| 4 | /-! # Constant Sections -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ConstantSections.Lifts |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Construct a morphism from the native constant group scheme from a group |
| 12 | of integral sections. Its group law is checked on the disjoint open |
| 13 | fibers of locally constant labels, including arbitrary test schemes. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 18 | open scoped _root_.CategoryTheory.MonObj |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction |
| 23 | |
| 24 | variable (S : Scheme.{u}) (G : Type u) [Group G] |
| 25 | |
| 26 | def constantLabelSection : G →* (𝟙_ (Over S) ⟶ (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X) := |
| 27 | ((AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupPointIso S G).app (.op (𝟙_ (Over S)))).groupIsoToMulEquiv.symm.toMonoidHom.comp |
| 28 | { toFun := LocallyConstant.const S |
| 29 | map_one' := rfl |
| 30 | map_mul' _ _ := rfl } |
| 31 | |
| 32 | theorem constantLabelSection_left (g : G) : |
| 33 | (constantLabelSection S G g).left = Sigma.ι (fun _ : G => S) g := by |
| 34 | let i : 𝟙_ (Over S) ⟶ AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme S G := |
| 35 | Over.homMk (Sigma.ι (fun _ : G => S) g) (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme_ι_hom g) |
| 36 | have hi : constantLabelSection S G g = i := by |
| 37 | apply (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G (𝟙_ (Over S))).injective |
| 38 | have hlabel : (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv S G (𝟙_ (Over S))) |
| 39 | (constantLabelSection S G g) = LocallyConstant.const S g := |
| 40 | ((AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupPointIso S G).app (.op (𝟙_ (Over S)))).groupIsoToMulEquiv.apply_symm_apply _ |
| 41 | rw [hlabel] |
| 42 | apply LocallyConstant.ext |
| 43 | intro x |
| 44 | exact (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemeIndex_ι g x).symm |
| 45 | exact congrArg Over.Hom.left hi |
| 46 | |
| 47 | variable {S G} {A : Over S} [GrpObj A] |
| 48 | |
| 49 | def mapFromConstantSections (s : G →* (𝟙_ (Over S) ⟶ A)) : |
| 50 | (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X ⟶ A := |
| 51 | Over.homMk (Sigma.desc (fun g => (s g).left)) (by |
| 52 | apply Sigma.hom_ext |
| 53 | intro g |
| 54 | erw [Sigma.ι_comp_desc_assoc, AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme_ι_hom] |
| 55 | exact (s g).w) |
| 56 | |
| 57 | theorem constantLabelSection_map (s : G →* (𝟙_ (Over S) ⟶ A)) (g : G) : |
| 58 | constantLabelSection S G g ≫ mapFromConstantSections s = s g := by |
| 59 | apply Over.OverMorphism.ext |
| 60 | change (constantLabelSection S G g).left ≫ Sigma.desc (fun g => (s g).left) = _ |
| 61 | erw [constantLabelSection_left, Sigma.ι_comp_desc] |
| 62 | |
| 63 | omit [GrpObj A] in |
| 64 | theorem constantMaps_ext (f h : (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X ⟶ A) |
| 65 | (heq : ∀ g, constantLabelSection S G g ≫ f = constantLabelSection S G g ≫ h) : f = h := by |
| 66 | apply Over.OverMorphism.ext |
| 67 | apply Sigma.hom_ext |
| 68 | intro g |
| 69 | have he := congrArg Over.Hom.left (heq g) |
| 70 | change (constantLabelSection S G g).left ≫ f.left = |
| 71 | (constantLabelSection S G g).left ≫ h.left at he |
| 72 | rw [constantLabelSection_left] at he |
| 73 | exact he |
| 74 | |
| 75 | theorem constantPoint_factor {T : Over S} (a : T ⟶ (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X) (g : G) |
| 76 | (ha : ∀ t : T.left, AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePoint T a t = g) : |
| 77 | a = toUnit T ≫ constantLabelSection S G g := by |
| 78 | apply Over.OverMorphism.ext |
| 79 | change a.left = T.hom ≫ (constantLabelSection S G g).left |
| 80 | rw [constantLabelSection_left] |
| 81 | have h := AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme_factor a.left g ha |
| 82 | exact h.trans (congrArg (fun f => f ≫ Sigma.ι (fun _ : G => S) g) a.w) |
| 83 | |
| 84 | /-- Multiplication is proved after restricting to disjoint label fibers; |
| 85 | the test scheme may be nonreduced or disconnected. -/ |
| 86 | theorem mapFromConstantSections_mul (s : G →* (𝟙_ (Over S) ⟶ A)) |
| 87 | (T : Over S) (a b : T ⟶ (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X) : |
| 88 | (a * b) ≫ mapFromConstantSections s = |
| 89 | (a ≫ mapFromConstantSections s) * (b ≫ mapFromConstantSections s) := by |
| 90 | let c : LocallyConstant T.left (G × G) := |
| 91 | ⟨fun t => (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePoint T a t, AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePoint T b t), |
| 92 | (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePoint T a).isLocallyConstant.prodMk |
| 93 | (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePoint T b).isLocallyConstant⟩ |
| 94 | apply Over.OverMorphism.ext |
| 95 | apply (cancel_epi (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.locallyConstantFibersIso c).hom).mp |
| 96 | apply Sigma.hom_ext |
| 97 | intro p |
| 98 | rw [AbelianModuli.HilbertConstruction.ConstantScheme.Iff.locallyConstantFibersIso_ι_hom_assoc, AbelianModuli.HilbertConstruction.ConstantScheme.Iff.locallyConstantFibersIso_ι_hom_assoc] |
| 99 | let V : Over S := Over.mk ((AbelianModuli.HilbertConstruction.ConstantScheme.Iff.locallyConstantFiber c p).ι ≫ T.hom) |
| 100 | let j : V ⟶ T := Over.homMk (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.locallyConstantFiber c p).ι rfl |
| 101 | have ha : j ≫ a = toUnit V ≫ constantLabelSection S G p.1 := by |
| 102 | apply constantPoint_factor |
| 103 | intro t |
| 104 | exact congrArg Prod.fst t.property |
| 105 | have hb : j ≫ b = toUnit V ≫ constantLabelSection S G p.2 := by |
| 106 | apply constantPoint_factor |
| 107 | intro t |
| 108 | exact congrArg Prod.snd t.property |
| 109 | have hab : j ≫ (a * b) = toUnit V ≫ constantLabelSection S G (p.1 * p.2) := by |
| 110 | rw [MonObj.comp_mul, ha, hb, ← MonObj.comp_mul, ← map_mul] |
| 111 | have h : j ≫ ((a * b) ≫ mapFromConstantSections s) = |
| 112 | j ≫ ((a ≫ mapFromConstantSections s) * (b ≫ mapFromConstantSections s)) := by |
| 113 | rw [← Category.assoc, hab, Category.assoc, constantLabelSection_map, |
| 114 | MonObj.comp_mul, ← Category.assoc, ← Category.assoc, ha, hb, |
| 115 | Category.assoc, Category.assoc, constantLabelSection_map, constantLabelSection_map, |
| 116 | ← MonObj.comp_mul, map_mul] |
| 117 | exact congrArg Over.Hom.left h |
| 118 | |
| 119 | instance mapFromConstantSections_isMonHom (s : G →* (𝟙_ (Over S) ⟶ A)) : |
| 120 | IsMonHom (mapFromConstantSections s) where |
| 121 | one_hom := by |
| 122 | change (1 : 𝟙_ (Over S) ⟶ (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X) ≫ mapFromConstantSections s = 1 |
| 123 | rw [← (constantLabelSection S G).map_one, constantLabelSection_map, s.map_one] |
| 124 | mul_hom := by |
| 125 | have h := mapFromConstantSections_mul s |
| 126 | ((AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X ⊗ (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X) |
| 127 | (fst _ _) (snd _ _) |
| 128 | have he : lift (fst (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X ≫ mapFromConstantSections s) |
| 129 | (snd (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X (AbelianScheme.FrobeniusKernel.EtaleSubgroups.Construction.etaleGroupScheme S G).X ≫ mapFromConstantSections s) = |
| 130 | mapFromConstantSections s ⊗ₘ mapFromConstantSections s := by |
| 131 | apply CartesianMonoidalCategory.hom_ext <;> simp only [lift_fst, lift_snd, |
| 132 | tensorHom_fst, tensorHom_snd] |
| 133 | simpa only [CategoryTheory.Hom.mul_def, lift_fst_snd, Category.id_comp, he] using h |
| 134 | |
| 135 | end |
| 136 | |
| 137 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ConstantSections.Lifts |