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.AlgebraicGeometry.AbelianScheme.TateComparison.Functor |
| 2 | |
| 3 | /-! # Padic Residue Limit -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.PadicResidueLimit |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The compatible residue tower is canonically the p-adic integers. |
| 10 | This ring construction will identify the inverse limit of circle torsion. -/ |
| 11 | |
| 12 | variable (q : ℕ) [Fact q.Prime] |
| 13 | |
| 14 | def compatibleResidues : Subring (∀ n : ℕ, ZMod (q ^ n)) where |
| 15 | carrier := {x | ∀ m n (h : m ≤ n), ZMod.castHom (pow_dvd_pow q h) _ (x n) = x m} |
| 16 | zero_mem' := by intro m n h; exact map_zero _ |
| 17 | one_mem' := by intro m n h; exact map_one _ |
| 18 | add_mem' hx hy := by intro m n h; exact (map_add _ _ _).trans (congrArg₂ (· + ·) (hx m n h) (hy m n h)) |
| 19 | neg_mem' hx := by intro m n h; exact (map_neg _ _).trans (congrArg Neg.neg (hx m n h)) |
| 20 | mul_mem' hx hy := by intro m n h; exact (map_mul _ _ _).trans (congrArg₂ (· * ·) (hx m n h) (hy m n h)) |
| 21 | |
| 22 | def residueProjection (n : ℕ) : compatibleResidues q →+* ZMod (q ^ n) := |
| 23 | (Pi.evalRingHom _ n).comp (compatibleResidues q).subtype |
| 24 | |
| 25 | omit [Fact q.Prime] in |
| 26 | theorem residueProjection_compatible (m n : ℕ) (h : m ≤ n) : |
| 27 | (ZMod.castHom (pow_dvd_pow q h) _).comp (residueProjection q n) = residueProjection q m := by |
| 28 | ext x |
| 29 | exact x.property m n h |
| 30 | |
| 31 | def padicResidues : ℤ_[q] →+* compatibleResidues q where |
| 32 | toFun z := ⟨fun n => PadicInt.toZModPow n z, fun m n h => |
| 33 | congrArg (fun f : ℤ_[q] →+* ZMod (q ^ m) => f z) |
| 34 | (PadicInt.zmod_cast_comp_toZModPow m n h)⟩ |
| 35 | map_zero' := Subtype.ext (funext fun n => (PadicInt.toZModPow n).map_zero) |
| 36 | map_one' := Subtype.ext (funext fun n => (PadicInt.toZModPow n).map_one) |
| 37 | map_add' x y := Subtype.ext (funext fun n => (PadicInt.toZModPow n).map_add x y) |
| 38 | map_mul' x y := Subtype.ext (funext fun n => (PadicInt.toZModPow n).map_mul x y) |
| 39 | |
| 40 | def padicResidueLimit : compatibleResidues q →+* ℤ_[q] := |
| 41 | PadicInt.lift (residueProjection_compatible q) |
| 42 | |
| 43 | theorem padicResidueLimit_spec (x : compatibleResidues q) (n : ℕ) : |
| 44 | PadicInt.toZModPow n (padicResidueLimit q x) = x.val n := |
| 45 | congrArg (fun f : compatibleResidues q →+* ZMod (q ^ n) => f x) |
| 46 | (PadicInt.lift_spec (residueProjection_compatible q) n) |
| 47 | |
| 48 | def padicResidueEquiv : ℤ_[q] ≃+* compatibleResidues q where |
| 49 | __ := padicResidues q |
| 50 | invFun := padicResidueLimit q |
| 51 | left_inv z := PadicInt.ext_of_toZModPow.mp fun n => padicResidueLimit_spec q (padicResidues q z) n |
| 52 | right_inv x := Subtype.ext (funext fun n => padicResidueLimit_spec q x n) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.PadicResidueLimit |