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.GeometricComparison.SurjectiveBase |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Residue |
| 3 | import Mathlib.RingTheory.Smooth.Basic |
| 4 | |
| 5 | /-! # Witt Algebra -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.WittAlgebra.PadicWittAlgebra |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The canonical Witt-to-p-adic coefficient equivalence equips the original |
| 12 | integral algebras with Witt structures and preserves their ordinary complexes. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | variable (p : ℕ) [Fact p.Prime] |
| 17 | local notation "W" => WittVector p (ZMod p) |
| 18 | |
| 19 | @[instance_reducible] |
| 20 | def coefficientAlgebra : Algebra W ℤ_[p] := (WittVector.equiv p).toRingHom.toAlgebra |
| 21 | |
| 22 | local instance coefficients : Algebra W ℤ_[p] := coefficientAlgebra p |
| 23 | |
| 24 | def coefficientEquiv : W ≃ₐ[W] ℤ_[p] := |
| 25 | { WittVector.equiv p with commutes' := fun _ => rfl } |
| 26 | |
| 27 | theorem coefficient_smooth : Algebra.Smooth W ℤ_[p] := Algebra.Smooth.of_equiv (coefficientEquiv p) |
| 28 | |
| 29 | variable (A : Type) [CommRing A] [Algebra ℤ_[p] A] |
| 30 | |
| 31 | @[instance_reducible] |
| 32 | def algebra : Algebra W A := ((algebraMap ℤ_[p] A).comp (WittVector.equiv p).toRingHom).toAlgebra |
| 33 | |
| 34 | local instance sourceAlgebra : Algebra W A := algebra p A |
| 35 | local instance sourceTower : IsScalarTower W ℤ_[p] A := IsScalarTower.of_algebraMap_eq' rfl |
| 36 | |
| 37 | theorem smooth [Algebra.Smooth ℤ_[p] A] : Algebra.Smooth W A := by |
| 38 | let : Algebra.Smooth W ℤ_[p] := coefficient_smooth p |
| 39 | exact Algebra.Smooth.comp W ℤ_[p] A |
| 40 | |
| 41 | theorem flat [Algebra.Smooth ℤ_[p] A] : Module.Flat W A := by |
| 42 | let : Algebra.Smooth W A := smooth p A |
| 43 | infer_instance |
| 44 | |
| 45 | def deRhamIso : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.complex W A ≅ |
| 46 | ((ModuleCat.restrictScalars (WittVector.equiv p).toRingHom).mapHomologicalComplex (.up ℕ)).obj |
| 47 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.complex ℤ_[p] A) := |
| 48 | SurjectiveBase.SurjectiveBaseDeRham.iso W ℤ_[p] A (WittVector.equiv p).surjective |
| 49 | |
| 50 | variable (C : Type) [CommRing C] [Algebra (ZMod p) C] (ρ : A →+* C) |
| 51 | (hρ : ∀ z : ℤ_[p], ρ (algebraMap ℤ_[p] A z) = algebraMap (ZMod p) C (PadicInt.toZMod z)) |
| 52 | |
| 53 | include hρ in |
| 54 | theorem reduction_base (w : W) : |
| 55 | ρ (algebraMap W A w) = algebraMap (ZMod p) C (WittVector.constantCoeff w) := |
| 56 | (hρ ((WittVector.equiv p) w)).trans |
| 57 | (congrArg (algebraMap (ZMod p) C) (RingHom.congr_fun (Residue.PadicBase.wittEquiv_residue p) w)) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.NumberTheory.PadicHodge.GeometricComparison.WittAlgebra.PadicWittAlgebra |