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.PadicResidueLimit |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.TorsionCongruence |
| 3 | |
| 4 | /-! # Circle -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Circle |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The Tate module of the actual real circle, through its compatible |
| 11 | torsion coordinates and the p-adic residue limit. -/ |
| 12 | |
| 13 | open OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.TorsionCongruence.TorusTorsion |
| 14 | variable (q : ℕ) [Fact q.Prime] |
| 15 | |
| 16 | theorem circle_pow_cast (m n : ℕ) (z : ZMod (q ^ (m + n))) : |
| 17 | q ^ n • ZMod.toAddCircle z = |
| 18 | ZMod.toAddCircle (ZMod.castHom (pow_dvd_pow q (Nat.le_add_right m n)) (ZMod (q ^ m)) z) := by |
| 19 | obtain ⟨a, rfl⟩ := ZMod.intCast_surjective z |
| 20 | rw [map_intCast (ZMod.castHom (pow_dvd_pow q (Nat.le_add_right m n)) (ZMod (q ^ m))), |
| 21 | ZMod.toAddCircle_intCast, ZMod.toAddCircle_intCast, ← AddCircle.coe_nsmul, |
| 22 | nsmul_eq_mul] |
| 23 | congr 1 |
| 24 | have hq : (q : ℝ) ≠ 0 := Nat.cast_ne_zero.mpr (Fact.out : q.Prime).ne_zero |
| 25 | push_cast |
| 26 | rw [pow_add] |
| 27 | field_simp |
| 28 | |
| 29 | def circleTorsionEquiv (n : ℕ) : ZMod (q ^ n) ≃+ Add.Tate.torsion q UnitAddCircle n := |
| 30 | AbelianModuli.ReferenceFamily.TorsionCongruence.TorusTorsion.circleEquiv (q ^ n) |
| 31 | |
| 32 | theorem circleTorsionEquiv_transition (n : ℕ) (z : ZMod (q ^ (n + 1))) : |
| 33 | Add.Tate.transition q n (circleTorsionEquiv q (n + 1) z) = |
| 34 | circleTorsionEquiv q n (ZMod.castHom (pow_dvd_pow q (Nat.le_succ n)) _ z) := by |
| 35 | apply Subtype.ext |
| 36 | change q • ZMod.toAddCircle z = |
| 37 | ZMod.toAddCircle (ZMod.castHom (pow_dvd_pow q (Nat.le_succ n)) (ZMod (q ^ n)) z) |
| 38 | simpa only [pow_one] using circle_pow_cast q n 1 z |
| 39 | |
| 40 | def padicToCircleTate : ℤ_[q] →ₗ[ℤ_[q]] Add.Tate.Module (H := UnitAddCircle) q where |
| 41 | toFun z := ⟨fun n => circleTorsionEquiv q n (PadicInt.toZModPow n z), by |
| 42 | intro n |
| 43 | rw [circleTorsionEquiv_transition] |
| 44 | exact congrArg (circleTorsionEquiv q n) |
| 45 | (congrArg (fun f : ℤ_[q] →+* ZMod (q ^ n) => f z) |
| 46 | (PadicInt.zmod_cast_comp_toZModPow n (n + 1) (Nat.le_succ n)))⟩ |
| 47 | map_add' x y := by |
| 48 | apply Subtype.ext |
| 49 | funext n |
| 50 | exact (congrArg (circleTorsionEquiv q n) ((PadicInt.toZModPow n).map_add x y)).trans |
| 51 | ((circleTorsionEquiv q n).map_add _ _) |
| 52 | map_smul' z x := by |
| 53 | apply Subtype.ext |
| 54 | funext n |
| 55 | change circleTorsionEquiv q n (PadicInt.toZModPow n (z * x)) = |
| 56 | PadicInt.toZModPow n z • circleTorsionEquiv q n (PadicInt.toZModPow n x) |
| 57 | rw [map_mul, ← ZMod.natCast_zmod_val (PadicInt.toZModPow n z), |
| 58 | ← nsmul_eq_mul, Nat.cast_smul_eq_nsmul, map_nsmul] |
| 59 | |
| 60 | def circleTateResidues (x : Add.Tate.Module (H := UnitAddCircle) q) : PadicResidueLimit.compatibleResidues q := by |
| 61 | let c := fun n => (circleTorsionEquiv q n).symm (x.val n) |
| 62 | have hc (n : ℕ) : ZMod.toAddCircle (c n) = (x.val n).val := |
| 63 | congrArg Subtype.val ((circleTorsionEquiv q n).apply_symm_apply (x.val n)) |
| 64 | refine ⟨c, ?_⟩ |
| 65 | intro m n h |
| 66 | obtain ⟨d, rfl⟩ := Nat.exists_eq_add_of_le h |
| 67 | apply ZMod.toAddCircle_injective |
| 68 | rw [← circle_pow_cast, hc, hc] |
| 69 | exact Functor.Tate.transition_iterate q x m d |
| 70 | |
| 71 | theorem padicToCircleTate_bijective : Function.Bijective (padicToCircleTate q) := by |
| 72 | constructor |
| 73 | · intro z w h |
| 74 | apply PadicInt.ext_of_toZModPow.mp |
| 75 | intro n |
| 76 | exact (circleTorsionEquiv q n).injective |
| 77 | (congrArg (fun x : Add.Tate.Module (H := UnitAddCircle) q => x.val n) h) |
| 78 | · intro x |
| 79 | refine ⟨PadicResidueLimit.padicResidueLimit q (circleTateResidues q x), ?_⟩ |
| 80 | apply Subtype.ext |
| 81 | funext n |
| 82 | change circleTorsionEquiv q n |
| 83 | (PadicInt.toZModPow n (PadicResidueLimit.padicResidueLimit q (circleTateResidues q x))) = x.val n |
| 84 | rw [PadicResidueLimit.padicResidueLimit_spec] |
| 85 | exact (circleTorsionEquiv q n).apply_symm_apply (x.val n) |
| 86 | |
| 87 | def circleTateEquiv : ℤ_[q] ≃ₗ[ℤ_[q]] Add.Tate.Module (H := UnitAddCircle) q := |
| 88 | LinearEquiv.ofBijective (padicToCircleTate q) (padicToCircleTate_bijective q) |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Circle |