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 Mathlib |
| 2 | |
| 3 | /-! # Relations -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Relations |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: imposing relations in a divided-power ideal |
| 11 | |
| 12 | Relations inside the divided-power ideal generate a divided-power-stable |
| 13 | ideal. The quotient has its actual induced divided powers and a universal |
| 14 | mapping property for divided-power maps annihilating those relations. |
| 15 | -/ |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable {A : Type u} [CommRing A] {I : Ideal A} (δ : DividedPowers I) |
| 20 | variable (S : Set A) (hS : S ⊆ I) |
| 21 | |
| 22 | def relationIdeal : Ideal A := |
| 23 | Ideal.span {y | ∃ (n : ℕ) (_ : n ≠ 0) (x : A) (_ : x ∈ S), y = δ.dpow n x} |
| 24 | |
| 25 | include hS in |
| 26 | lemma relationIdeal_stable : DividedPowers.IsSubDPIdeal δ (relationIdeal δ S) where |
| 27 | isSubideal := δ.dpow_span_isSubideal hS |
| 28 | dpow_mem _n hn _ hx := DividedPowers.SubDPIdeal.dpow_mem_span_of_mem_span δ hS hn hx |
| 29 | |
| 30 | include hS in |
| 31 | lemma relation_mem {x : A} (hx : x ∈ S) : x ∈ relationIdeal δ S := |
| 32 | Ideal.subset_span ⟨1, one_ne_zero, x, hx, (δ.dpow_one (hS hx)).symm⟩ |
| 33 | |
| 34 | include hS in |
| 35 | lemma stable_intersection : DividedPowers.IsSubDPIdeal δ (relationIdeal δ S ⊓ I) := by |
| 36 | rw [inf_eq_left.mpr (relationIdeal_stable δ S hS).isSubideal] |
| 37 | exact relationIdeal_stable δ S hS |
| 38 | |
| 39 | abbrev dividedPowers : DividedPowers (I.map (Ideal.Quotient.mk (relationIdeal δ S))) := |
| 40 | DividedPowers.Quotient.dividedPowers δ (stable_intersection δ S hS) |
| 41 | |
| 42 | def quotientMap : DividedPowers.DPMorphism δ (Relations.dividedPowers δ S hS) where |
| 43 | toRingHom := Ideal.Quotient.mk (relationIdeal δ S) |
| 44 | ideal_comp := le_rfl |
| 45 | dpow_comp _ hx := DividedPowers.Quotient.dpow_apply δ (stable_intersection δ S hS) hx |
| 46 | |
| 47 | /-- Imposing relations inside the divided-power ideal preserves the closed subscheme. -/ |
| 48 | def residueEquiv : |
| 49 | (A ⧸ relationIdeal δ S) ⧸ I.map (Ideal.Quotient.mk (relationIdeal δ S)) ≃+* A ⧸ I := |
| 50 | DoubleQuot.quotQuotEquivQuotOfLE (relationIdeal_stable δ S hS).isSubideal |
| 51 | |
| 52 | lemma residueEquiv_mk (x : A) : |
| 53 | residueEquiv δ S hS (Ideal.Quotient.mk _ (Ideal.Quotient.mk (relationIdeal δ S) x)) = |
| 54 | Ideal.Quotient.mk I x := rfl |
| 55 | |
| 56 | variable {T : Type v} [CommRing T] {K : Ideal T} {ε : DividedPowers K} |
| 57 | variable (φ : DividedPowers.DPMorphism δ ε) (hφ : ∀ x ∈ S, φ x = 0) |
| 58 | |
| 59 | include hS hφ in |
| 60 | lemma relationIdeal_killed : relationIdeal δ S ≤ RingHom.ker φ.toRingHom := by |
| 61 | apply Ideal.span_le.mpr |
| 62 | rintro y ⟨n, hn, x, hx, rfl⟩ |
| 63 | change φ.toRingHom (δ.dpow n x) = 0 |
| 64 | rw [← φ.dpow_comp x (hS hx)] |
| 65 | change ε.dpow n (φ x) = 0 |
| 66 | rw [hφ x hx, ε.dpow_eval_zero hn] |
| 67 | |
| 68 | def liftRingMap : A ⧸ relationIdeal δ S →+* T := |
| 69 | Ideal.Quotient.lift (relationIdeal δ S) φ.toRingHom (relationIdeal_killed δ S hS φ hφ) |
| 70 | |
| 71 | def lift : DividedPowers.DPMorphism (Relations.dividedPowers δ S hS) ε where |
| 72 | toRingHom := liftRingMap δ S hS φ hφ |
| 73 | ideal_comp := by |
| 74 | rw [Ideal.map_map] |
| 75 | exact φ.ideal_comp |
| 76 | dpow_comp {n} y hy := by |
| 77 | obtain ⟨x, hx, rfl⟩ := |
| 78 | (Ideal.mem_map_iff_of_surjective (Ideal.Quotient.mk (relationIdeal δ S)) Ideal.Quotient.mk_surjective).mp hy |
| 79 | change ε.dpow n (φ x) = |
| 80 | liftRingMap δ S hS φ hφ ((Relations.dividedPowers δ S hS).dpow n (Ideal.Quotient.mk (relationIdeal δ S) x)) |
| 81 | rw [DividedPowers.Quotient.dpow_apply δ (stable_intersection δ S hS) hx] |
| 82 | exact φ.dpow_comp x hx |
| 83 | |
| 84 | lemma lift_comp : (Relations.lift δ S hS φ hφ).comp (quotientMap δ S hS) = φ := by |
| 85 | apply DFunLike.ext |
| 86 | intro x |
| 87 | rfl |
| 88 | |
| 89 | lemma lift_unique (ψ : DividedPowers.DPMorphism (Relations.dividedPowers δ S hS) ε) |
| 90 | (hψ : ψ.comp (quotientMap δ S hS) = φ) : ψ = Relations.lift δ S hS φ hφ := by |
| 91 | apply DFunLike.ext |
| 92 | intro y |
| 93 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective y |
| 94 | exact DFunLike.congr_fun hψ x |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.NumberTheory.PadicHodge.IntegralComparison.DividedPower.Relations |