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.RingTheory.WittVector.Complete |
| 2 | import Mathlib.Algebra.Category.CommAlgCat.Basic |
| 3 | |
| 4 | /-! # Witt Algebra Functor -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.WittAlgebraFunctor |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # Witt algebras and their actual zeroth-coefficient reduction as functors -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | section Maps |
| 15 | |
| 16 | variable (p : ℕ) [Fact p.Prime] (S : Type*) [CommRing S] |
| 17 | {T U : Type*} [CommRing T] [CommRing U] [Algebra S T] [Algebra S U] |
| 18 | |
| 19 | local instance wittAlgebra : Algebra (WittVector p S) (WittVector p T) := |
| 20 | (WittVector.map (algebraMap S T)).toAlgebra |
| 21 | |
| 22 | local instance residueAlgebra : Algebra (WittVector p S) T := |
| 23 | ((algebraMap S T).comp (WittVector.constantCoeff (p := p))).toAlgebra |
| 24 | |
| 25 | def map (f : T →ₐ[S] U) : WittVector p T →ₐ[WittVector p S] WittVector p U where |
| 26 | __ := WittVector.map f.toRingHom |
| 27 | commutes' w := by |
| 28 | apply WittVector.ext |
| 29 | intro n |
| 30 | change f (algebraMap S T (w.coeff n)) = algebraMap S U (w.coeff n) |
| 31 | exact f.commutes _ |
| 32 | |
| 33 | theorem map_coeff (f : T →ₐ[S] U) (w : WittVector p T) (n : ℕ) : |
| 34 | (WittAlgebraFunctor.map p S f w).coeff n = f (w.coeff n) := rfl |
| 35 | |
| 36 | def residueMap (f : T →ₐ[S] U) : T →ₐ[WittVector p S] U where |
| 37 | __ := f.toRingHom |
| 38 | commutes' w := f.commutes (w.coeff 0) |
| 39 | |
| 40 | def reduction : WittVector p T →ₐ[WittVector p S] T where |
| 41 | __ := WittVector.constantCoeff |
| 42 | commutes' _ := rfl |
| 43 | |
| 44 | theorem reduction_apply (w : WittVector p T) : reduction p S w = w.coeff 0 := rfl |
| 45 | |
| 46 | theorem reduction_naturality (f : T →ₐ[S] U) (w : WittVector p T) : |
| 47 | reduction p S (WittAlgebraFunctor.map p S f w) = residueMap p S f (reduction p S w) := rfl |
| 48 | |
| 49 | end Maps |
| 50 | |
| 51 | attribute [local instance] wittAlgebra residueAlgebra |
| 52 | |
| 53 | universe u |
| 54 | variable (p : ℕ) [Fact p.Prime] (S : Type u) [CommRing S] |
| 55 | |
| 56 | def functor : CommAlgCat.{u} S ⥤ CommAlgCat.{u} (WittVector p S) where |
| 57 | obj T := CommAlgCat.of (WittVector p S) (WittVector p T) |
| 58 | map f := CommAlgCat.ofHom (WittAlgebraFunctor.map p S f.hom) |
| 59 | map_id T := by |
| 60 | apply ConcreteCategory.hom_ext |
| 61 | intro w |
| 62 | apply WittVector.ext |
| 63 | intro n |
| 64 | rfl |
| 65 | map_comp f g := by |
| 66 | apply ConcreteCategory.hom_ext |
| 67 | intro w |
| 68 | apply WittVector.ext |
| 69 | intro n |
| 70 | rfl |
| 71 | |
| 72 | def residueFunctor : CommAlgCat.{u} S ⥤ CommAlgCat.{u} (WittVector p S) where |
| 73 | obj T := CommAlgCat.of (WittVector p S) T |
| 74 | map f := CommAlgCat.ofHom (residueMap p S f.hom) |
| 75 | map_id T := by |
| 76 | apply ConcreteCategory.hom_ext |
| 77 | intro x |
| 78 | rfl |
| 79 | map_comp f g := by |
| 80 | apply ConcreteCategory.hom_ext |
| 81 | intro x |
| 82 | rfl |
| 83 | |
| 84 | def reductionNat : functor p S ⟶ residueFunctor p S where |
| 85 | app T := CommAlgCat.ofHom (reduction p S) |
| 86 | naturality {T U} f := by |
| 87 | apply ConcreteCategory.hom_ext |
| 88 | intro w |
| 89 | rfl |
| 90 | |
| 91 | end |
| 92 | |
| 93 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.WittAlgebraFunctor |