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.NumberTheory.PadicHodge.IntegralComparison.Crystalline.RelationLift |
| 2 | |
| 3 | /-! # Equalizer -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Equalizer |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: crystalline equalizers for maps agreeing on the closed subscheme |
| 11 | |
| 12 | The equalizer is the quotient by the divided-power closure of the |
| 13 | differences of the two ring maps. It has the original closed subscheme, |
| 14 | and its universal property holds in the actual crystalline category. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | open OAI.NumberTheory.PadicHodge.IntegralComparison.BigCrystallineSite |
| 22 | |
| 23 | variable {p : ℕ} {B : Type u} [CommRing B] {J : Ideal B} {δ : DividedPowers J} |
| 24 | variable {X : Scheme.{u}} {f : X ⟶ Spec (CommRingCat.of B)} |
| 25 | variable {U V : BigCrystallineSite.Object p B J δ f} (α β : U ⟶ V) |
| 26 | |
| 27 | def relations : Set U.ring := Set.range (fun x : V.ring => α.ringMap x - β.ringMap x) |
| 28 | |
| 29 | variable (hq : BigCrystallineSite.Object.quotientMap U V α.ringMap = BigCrystallineSite.Object.quotientMap U V β.ringMap) |
| 30 | |
| 31 | include hq in |
| 32 | lemma relations_subset : relations α β ⊆ U.ideal := by |
| 33 | rintro _ ⟨x, rfl⟩ |
| 34 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 35 | rw [map_sub] |
| 36 | exact sub_eq_zero.mpr (DFunLike.congr_fun hq (Ideal.Quotient.mk V.ideal x)) |
| 37 | |
| 38 | abbrev object := RelationQuotient.object U (relations α β) (relations_subset α β hq) |
| 39 | |
| 40 | def hom : object α β hq ⟶ U := |
| 41 | RelationQuotient.hom U (relations α β) (relations_subset α β hq) |
| 42 | |
| 43 | lemma condition : hom α β hq ≫ α = hom α β hq ≫ β := by |
| 44 | apply BigCrystallineSite.Object.Hom.ext |
| 45 | apply DFunLike.ext |
| 46 | intro x |
| 47 | change (RelationQuotient.quotientRingMap U (relations α β)) (α.ringMap x) = |
| 48 | (RelationQuotient.quotientRingMap U (relations α β)) (β.ringMap x) |
| 49 | apply sub_eq_zero.mp |
| 50 | rw [← map_sub] |
| 51 | exact Ideal.Quotient.eq_zero_iff_mem.mpr |
| 52 | (DividedPower.Relations.relation_mem U.dividedPowers (relations α β) |
| 53 | (relations_subset α β hq) ⟨x, rfl⟩) |
| 54 | |
| 55 | variable {W : BigCrystallineSite.Object p B J δ f} (γ : W ⟶ U) (hγ : γ ≫ α = γ ≫ β) |
| 56 | |
| 57 | include hγ in |
| 58 | lemma kills_relations : ∀ x ∈ relations α β, γ.ringMap x = 0 := by |
| 59 | rintro _ ⟨x, rfl⟩ |
| 60 | change γ.ringMap.toRingHom (α.ringMap x - β.ringMap x) = 0 |
| 61 | rw [map_sub] |
| 62 | exact sub_eq_zero.mpr (congrArg (fun t : W ⟶ V => t.ringMap x) hγ) |
| 63 | |
| 64 | def lift : W ⟶ object α β hq := |
| 65 | RelationLift.liftHom (relations α β) (relations_subset α β hq) |
| 66 | γ (kills_relations α β γ hγ) |
| 67 | |
| 68 | lemma lift_comp : lift α β hq γ hγ ≫ hom α β hq = γ := |
| 69 | RelationLift.liftHom_comp (relations α β) (relations_subset α β hq) |
| 70 | γ (kills_relations α β γ hγ) |
| 71 | |
| 72 | lemma lift_unique (l : W ⟶ object α β hq) (hl : l ≫ hom α β hq = γ) : l = lift α β hq γ hγ := |
| 73 | RelationLift.liftHom_unique (relations α β) (relations_subset α β hq) |
| 74 | γ (kills_relations α β γ hγ) l hl |
| 75 | |
| 76 | def fork : Fork α β := Fork.ofι (hom α β hq) (Equalizer.condition α β hq) |
| 77 | |
| 78 | def isEqualizer : IsLimit (fork α β hq) := |
| 79 | Fork.IsLimit.mk _ (fun s => lift α β hq s.ι s.condition) |
| 80 | (fun s => lift_comp α β hq s.ι s.condition) |
| 81 | (fun s l hl => lift_unique α β hq s.ι s.condition l hl) |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Crystalline.Equalizer |