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.Algebra.Category.CommAlgCat.Basic |
| 2 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 3 | |
| 4 | /-! # Prime Power Id -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.PrimePowerId.PrimePowerAlgebraQuotient |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The canonical prime-power quotient functor and its reduction transformation. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | universe u v |
| 15 | variable (R : Type u) [CommRing R] (p n : ℕ) |
| 16 | |
| 17 | def ideal (A : CommAlgCat.{v} R) : Ideal A := (Ideal.span {(p : A)}) ^ (n + 1) |
| 18 | |
| 19 | theorem ideal_map {A B : CommAlgCat.{v} R} (f : A ⟶ B) : |
| 20 | (ideal R p n A).map f.hom.toRingHom = ideal R p n B := by |
| 21 | simp only [ideal, Ideal.map_pow, Ideal.map_span, Set.image_singleton, map_natCast] |
| 22 | |
| 23 | def object (A : CommAlgCat.{v} R) : CommAlgCat.{v} R := CommAlgCat.of R (A ⧸ ideal R p n A) |
| 24 | |
| 25 | def map {A B : CommAlgCat.{v} R} (f : A ⟶ B) : object R p n A ⟶ object R p n B := |
| 26 | CommAlgCat.ofHom (Ideal.quotientMapₐ (ideal R p n B) f.hom |
| 27 | ((Ideal.map_le_iff_le_comap).mp (ideal_map R p n f).le)) |
| 28 | |
| 29 | theorem map_mk {A B : CommAlgCat.{v} R} (f : A ⟶ B) (a : A) : |
| 30 | (PrimePowerAlgebraQuotient.map R p n f).hom (Ideal.Quotient.mk (ideal R p n A) a) = |
| 31 | Ideal.Quotient.mk (ideal R p n B) (f.hom a) := rfl |
| 32 | |
| 33 | theorem map_id (A : CommAlgCat.{v} R) : PrimePowerAlgebraQuotient.map R p n (𝟙 A) = 𝟙 (object R p n A) := by |
| 34 | ext a |
| 35 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective a |
| 36 | rfl |
| 37 | |
| 38 | theorem map_comp {A B C : CommAlgCat.{v} R} (f : A ⟶ B) (g : B ⟶ C) : |
| 39 | PrimePowerAlgebraQuotient.map R p n (f ≫ g) = PrimePowerAlgebraQuotient.map R p n f ≫ PrimePowerAlgebraQuotient.map R p n g := by |
| 40 | ext a |
| 41 | obtain ⟨x, rfl⟩ := Ideal.Quotient.mk_surjective a |
| 42 | rfl |
| 43 | |
| 44 | def functor : CommAlgCat.{v} R ⥤ CommAlgCat.{v} R where |
| 45 | obj := object R p n |
| 46 | map := PrimePowerAlgebraQuotient.map R p n |
| 47 | map_id := PrimePowerAlgebraQuotient.map_id R p n |
| 48 | map_comp := PrimePowerAlgebraQuotient.map_comp R p n |
| 49 | |
| 50 | def reduction : 𝟭 (CommAlgCat.{v} R) ⟶ functor R p n where |
| 51 | app A := CommAlgCat.ofHom (Ideal.Quotient.mkₐ R (ideal R p n A)) |
| 52 | naturality A B f := by ext a; rfl |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.NumberTheory.PadicHodge.GeometricComparison.PrimePowerId.PrimePowerAlgebraQuotient |