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.PELModuli.IntegralModel.EndomorphismFamiliesId |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.SmoothEquationLocus |
| 3 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.UniqueOverHom |
| 4 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.OverLocusClassification |
| 5 | |
| 6 | /-! # Endomorphism Equation Locus -/ |
| 7 | |
| 8 | namespace OAI |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace AlgebraicGeometry.PELModuli.IntegralModel.Relative.EndomorphismEquationLocus |
| 13 | |
| 14 | /-! Equations between actual endomorphism-family values have reduced |
| 15 | closed loci, with factorization expressed using the original base and |
| 16 | the actual canonical restriction maps. -/ |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 21 | |
| 22 | variable {S : Scheme.{0}} {g : ℕ} (A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 23 | |
| 24 | theorem restrict_groupEnd_eq_iff {T U : Over S} (f : T ⟶ U) |
| 25 | (r s : Finite.Actions.GroupEndRing (A.pullback U.hom)) : |
| 26 | EndomorphismFamiliesId.EndomorphismFamilies.restrict A f r = EndomorphismFamiliesId.EndomorphismFamilies.restrict A f s ↔ |
| 27 | (Over.pullback f.left).map (r.hom (A.pullback U.hom)) = |
| 28 | (Over.pullback f.left).map (s.hom (A.pullback U.hom)) := by |
| 29 | constructor |
| 30 | · intro h |
| 31 | have he := congrArg (Finite.Actions.GroupEndRing.hom (A.pullback T.hom)) h |
| 32 | change (EndomorphismFamiliesId.EndomorphismFamilies.restrictionIso A f).inv ≫ (Over.pullback f.left).map (r.hom (A.pullback U.hom)) ≫ |
| 33 | (EndomorphismFamiliesId.EndomorphismFamilies.restrictionIso A f).hom = |
| 34 | (EndomorphismFamiliesId.EndomorphismFamilies.restrictionIso A f).inv ≫ (Over.pullback f.left).map (s.hom (A.pullback U.hom)) ≫ |
| 35 | (EndomorphismFamiliesId.EndomorphismFamilies.restrictionIso A f).hom at he |
| 36 | exact (cancel_mono (EndomorphismFamiliesId.EndomorphismFamilies.restrictionIso A f).hom).mp ((cancel_epi (EndomorphismFamiliesId.EndomorphismFamilies.restrictionIso A f).inv).mp he) |
| 37 | · intro h |
| 38 | apply Finite.Actions.GroupEndRing.ext |
| 39 | change (EndomorphismFamiliesId.EndomorphismFamilies.restrictionIso A f).inv ≫ (Over.pullback f.left).map (r.hom (A.pullback U.hom)) ≫ |
| 40 | (EndomorphismFamiliesId.EndomorphismFamilies.restrictionIso A f).hom = |
| 41 | (EndomorphismFamiliesId.EndomorphismFamilies.restrictionIso A f).inv ≫ (Over.pullback f.left).map (s.hom (A.pullback U.hom)) ≫ |
| 42 | (EndomorphismFamiliesId.EndomorphismFamilies.restrictionIso A f).hom |
| 43 | rw [h] |
| 44 | |
| 45 | theorem exists_reduced_relative_endomorphism_equation_locus |
| 46 | (Z : Over S) [IsLocallyNoetherian Z.left] {I : Type} |
| 47 | (r s : I → Finite.Actions.GroupEndRing (A.pullback Z.hom)) : |
| 48 | ∃ (W : Over S) (j : W ⟶ Z), IsReduced W.left ∧ IsClosedImmersion j.left ∧ |
| 49 | (∀ i, EndomorphismFamiliesId.EndomorphismFamilies.restrict A j (r i) = EndomorphismFamiliesId.EndomorphismFamilies.restrict A j (s i)) ∧ |
| 50 | ∀ (T : Over S) [IsReduced T.left] (f : T ⟶ Z), |
| 51 | (∀ i, EndomorphismFamiliesId.EndomorphismFamilies.restrict A f (r i) = EndomorphismFamiliesId.EndomorphismFamilies.restrict A f (s i)) ↔ |
| 52 | ∃! c : T ⟶ W, c ≫ j = f := by |
| 53 | obtain ⟨C, hr, hc, _, hC⟩ := SmoothEquationLocus.exists_reduced_smooth_equation_locus |
| 54 | (fun i => (r i).hom (A.pullback Z.hom)) (fun i => (s i).hom (A.pullback Z.hom)) |
| 55 | let W : Over S := Over.mk (C.hom ≫ Z.hom) |
| 56 | let j : W ⟶ Z := Over.homMk C.hom rfl |
| 57 | have : IsReduced W.left := hr |
| 58 | have : IsClosedImmersion j.left := hc |
| 59 | have : Mono j := Over.mono_of_mono_left j |
| 60 | have hclass (T : Over S) [IsReduced T.left] (f : T ⟶ Z) : |
| 61 | (∀ i, EndomorphismFamiliesId.EndomorphismFamilies.restrict A f (r i) = EndomorphismFamiliesId.EndomorphismFamilies.restrict A f (s i)) ↔ |
| 62 | ∃! c : T ⟶ W, c ≫ j = f := by |
| 63 | let t : Over Z.left := Over.mk f.left |
| 64 | have : IsReduced t.left := inferInstanceAs (IsReduced T.left) |
| 65 | exact (forall_congr' (fun i => restrict_groupEnd_eq_iff A f (r i) (s i))).trans |
| 66 | ((hC t).trans ((UniqueOverHom.unique_over_hom_iff t C).trans (OverLocusClassification.over_existsUnique_lift_iff j f).symm)) |
| 67 | refine ⟨W, j, hr, hc, (hclass W j).mpr ?_, hclass⟩ |
| 68 | refine ⟨𝟙 W, Category.id_comp j, fun c hc => ?_⟩ |
| 69 | exact (cancel_mono j).mp (hc.trans (Category.id_comp j).symm) |
| 70 | |
| 71 | end AlgebraicGeometry.PELModuli.IntegralModel.Relative.EndomorphismEquationLocus |
| 72 | |
| 73 | namespace AlgebraicGeometry.PELModuli.IntegralModel |
| 74 | |
| 75 | /-! Inverse endomorphism pairs form an actual reduced closed locus in |
| 76 | any endomorphism ambient. Their universal inverse equations give the |
| 77 | group-scheme automorphism itself. -/ |
| 78 | |
| 79 | set_option backward.isDefEq.respectTransparency false |
| 80 | set_option backward.isDefEq.respectTransparency.types false |
| 81 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 82 | |
| 83 | variable {S : Scheme.{0}} {g : ℕ} |
| 84 | |
| 85 | def Finite.Actions.GroupEndRing.inversePairIso (A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) (f h : Finite.Actions.GroupEndRing A) |
| 86 | (hfh : f * h = 1) (hhf : h * f = 1) : A.scheme ≅ A.scheme where |
| 87 | hom := f.hom A |
| 88 | inv := h.hom A |
| 89 | hom_inv_id := congrArg (Finite.Actions.GroupEndRing.hom A) hhf |
| 90 | inv_hom_id := congrArg (Finite.Actions.GroupEndRing.hom A) hfh |
| 91 | |
| 92 | theorem Relative.EndomorphismEquationLocus.exists_reduced_relative_inverse_pair_locus (A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 93 | (Z : Over S) [IsLocallyNoetherian Z.left] |
| 94 | (f h : Finite.Actions.GroupEndRing (A.pullback Z.hom)) : |
| 95 | ∃ (W : Over S) (j : W ⟶ Z), IsReduced W.left ∧ IsClosedImmersion j.left ∧ |
| 96 | (EndomorphismFamiliesId.EndomorphismFamilies.restrict A j f * EndomorphismFamiliesId.EndomorphismFamilies.restrict A j h = 1 ∧ EndomorphismFamiliesId.EndomorphismFamilies.restrict A j h * EndomorphismFamiliesId.EndomorphismFamilies.restrict A j f = 1) ∧ |
| 97 | ∀ (T : Over S) [IsReduced T.left] (c : T ⟶ Z), |
| 98 | (EndomorphismFamiliesId.EndomorphismFamilies.restrict A c f * EndomorphismFamiliesId.EndomorphismFamilies.restrict A c h = 1 ∧ EndomorphismFamiliesId.EndomorphismFamilies.restrict A c h * EndomorphismFamiliesId.EndomorphismFamilies.restrict A c f = 1) ↔ |
| 99 | ∃! k : T ⟶ W, k ≫ j = c := by |
| 100 | let r : Bool → Finite.Actions.GroupEndRing (A.pullback Z.hom) := fun b => if b then f * h else h * f |
| 101 | obtain ⟨W, j, hr, hc, hU, hclass⟩ := |
| 102 | Relative.EndomorphismEquationLocus.exists_reduced_relative_endomorphism_equation_locus A Z r (fun _ => 1) |
| 103 | have hi (T : Over S) (c : T ⟶ Z) : |
| 104 | (∀ b, EndomorphismFamiliesId.EndomorphismFamilies.restrict A c (r b) = EndomorphismFamiliesId.EndomorphismFamilies.restrict A c 1) ↔ |
| 105 | (EndomorphismFamiliesId.EndomorphismFamilies.restrict A c f * EndomorphismFamiliesId.EndomorphismFamilies.restrict A c h = 1 ∧ EndomorphismFamiliesId.EndomorphismFamilies.restrict A c h * EndomorphismFamiliesId.EndomorphismFamilies.restrict A c f = 1) := by |
| 106 | constructor |
| 107 | · intro H |
| 108 | exact ⟨by simpa only [r, Bool.false_eq_true, ite_false, ite_true, map_mul, map_one] using H true, by simpa only [r, Bool.false_eq_true, ite_false, ite_true, map_mul, map_one] using H false⟩ |
| 109 | · rintro ⟨Hf, Hh⟩ b |
| 110 | cases b |
| 111 | · simpa only [r, Bool.false_eq_true, ite_false, ite_true, map_mul, map_one] using Hh |
| 112 | · simpa only [r, Bool.false_eq_true, ite_false, ite_true, map_mul, map_one] using Hf |
| 113 | exact ⟨W, j, hr, hc, (hi W j).mp hU, |
| 114 | fun T _ c => (hi T c).symm.trans (hclass T c)⟩ |
| 115 | |
| 116 | end AlgebraicGeometry.PELModuli.IntegralModel |
| 117 | |
| 118 | end |
| 119 | |
| 120 | end OAI |