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.Evaluation |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.CoefficientLimit |
| 3 | |
| 4 | /-! # Tate Compatible Characters -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.TateCompatibleCharacters |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compatible characters on the actual torsion groups pair with the |
| 11 | actual Tate inverse limit to give integral linear functionals. -/ |
| 12 | |
| 13 | universe u |
| 14 | variable (ℓ : ℕ) [Fact ℓ.Prime] {H : Type u} [AddCommGroup H] |
| 15 | |
| 16 | def compatible : AddSubgroup (∀ n, AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.torsion ℓ H n →+ ZMod (ℓ ^ n)) where |
| 17 | carrier := {χ | ∀ n t, χ n (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.transition ℓ n t) = |
| 18 | ZMod.castHom (pow_dvd_pow ℓ (Nat.le_succ n)) (ZMod (ℓ ^ n)) (χ (n + 1) t)} |
| 19 | zero_mem' := by intro n t; exact (map_zero _).symm |
| 20 | add_mem' := by |
| 21 | intro x y hx hy n t |
| 22 | change x n (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.transition ℓ n t) + y n (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.transition ℓ n t) = _ |
| 23 | rw [hx, hy] |
| 24 | exact (map_add _ _ _).symm |
| 25 | neg_mem' := by |
| 26 | intro x hx n t |
| 27 | change -x n (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.transition ℓ n t) = _ |
| 28 | rw [hx] |
| 29 | exact (map_neg _ _).symm |
| 30 | |
| 31 | omit [Fact (Nat.Prime ℓ)] in |
| 32 | theorem coherent_of_step (a : ∀ n, ZMod (ℓ ^ n)) |
| 33 | (ha : ∀ n, ZMod.castHom (pow_dvd_pow ℓ (Nat.le_succ n)) (ZMod (ℓ ^ n)) |
| 34 | (a (n + 1)) = a n) : |
| 35 | ∀ m n (h : m ≤ n), ZMod.castHom (pow_dvd_pow ℓ h) (ZMod (ℓ ^ m)) (a n) = a m := by |
| 36 | intro m n h |
| 37 | induction n, h using Nat.le_induction with |
| 38 | | base => exact congrArg (fun f : ZMod (ℓ ^ m) →+* ZMod (ℓ ^ m) => f (a m)) ZMod.castHom_self |
| 39 | | succ n h ih => |
| 40 | have he := congrArg (fun f : ZMod (ℓ ^ (n + 1)) →+* ZMod (ℓ ^ m) => f (a (n + 1))) |
| 41 | (ZMod.castHom_comp (pow_dvd_pow ℓ h) (pow_dvd_pow ℓ (Nat.le_succ n))) |
| 42 | exact he.symm.trans ((congrArg (ZMod.castHom (pow_dvd_pow ℓ h) (ZMod (ℓ ^ m))) (ha n)).trans ih) |
| 43 | |
| 44 | def residues (χ : compatible (H := H) ℓ) (t : AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := H) ℓ) : |
| 45 | AlgebraicGeometry.FormalGeometry.Completion.CoefficientLimit.Construction.coherentFiniteCoefficients ℓ := |
| 46 | ⟨fun n => χ.val n (t.val n), coherent_of_step ℓ _ (fun n => by |
| 47 | rw [← χ.property n, t.property n])⟩ |
| 48 | |
| 49 | def value (χ : compatible (H := H) ℓ) (t : AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := H) ℓ) : ℤ_[ℓ] := |
| 50 | AlgebraicGeometry.FormalGeometry.Completion.CoefficientLimit.Construction.coherentFiniteLift ℓ (residues ℓ χ t) |
| 51 | |
| 52 | @[simp] theorem value_reduction (χ : compatible (H := H) ℓ) (t : AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := H) ℓ) |
| 53 | (n : ℕ) : PadicInt.toZModPow n (value ℓ χ t) = χ.val n (t.val n) := |
| 54 | AlgebraicGeometry.FormalGeometry.Completion.CoefficientLimit.Construction.coherentFiniteLift_spec ℓ _ n |
| 55 | |
| 56 | def toDual : compatible (H := H) ℓ →+ Module.Dual ℤ_[ℓ] (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := H) ℓ) where |
| 57 | toFun χ := { |
| 58 | toFun := value ℓ χ |
| 59 | map_add' t u := by |
| 60 | apply PadicInt.ext_of_toZModPow.mp |
| 61 | intro n |
| 62 | rw [map_add, value_reduction, value_reduction, value_reduction] |
| 63 | exact (χ.val n).map_add _ _ |
| 64 | map_smul' a t := by |
| 65 | apply PadicInt.ext_of_toZModPow.mp |
| 66 | intro n |
| 67 | change PadicInt.toZModPow n (value ℓ χ (a • t)) = |
| 68 | PadicInt.toZModPow n (a * value ℓ χ t) |
| 69 | rw [map_mul, value_reduction, value_reduction] |
| 70 | exact ZMod.map_smul (χ.val n) (PadicInt.toZModPow n a) (t.val n) } |
| 71 | map_zero' := by |
| 72 | apply LinearMap.ext |
| 73 | intro t |
| 74 | apply PadicInt.ext_of_toZModPow.mp |
| 75 | intro n |
| 76 | exact (value_reduction ℓ 0 t n).trans (map_zero _).symm |
| 77 | map_add' χ ψ := by |
| 78 | apply LinearMap.ext |
| 79 | intro t |
| 80 | apply PadicInt.ext_of_toZModPow.mp |
| 81 | intro n |
| 82 | change PadicInt.toZModPow n (value ℓ (χ + ψ) t) = |
| 83 | PadicInt.toZModPow n (value ℓ χ t + value ℓ ψ t) |
| 84 | rw [map_add, value_reduction, value_reduction, value_reduction] |
| 85 | rfl |
| 86 | |
| 87 | theorem toDual_injective (hdiv : ∀ x : H, ∃ y, ℓ • y = x) : |
| 88 | Function.Injective (toDual (H := H) ℓ) := by |
| 89 | intro χ ψ h |
| 90 | apply Subtype.ext |
| 91 | funext n |
| 92 | apply AddMonoidHom.ext |
| 93 | intro t |
| 94 | obtain ⟨s, rfl⟩ := AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate_surjective ℓ hdiv n t |
| 95 | have he := congrArg (fun f : Module.Dual ℤ_[ℓ] (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := H) ℓ) => |
| 96 | PadicInt.toZModPow n (f s)) h |
| 97 | exact (value_reduction ℓ χ s n).symm.trans (he.trans (value_reduction ℓ ψ s n)) |
| 98 | |
| 99 | variable (hdiv : ∀ x : H, ∃ y, ℓ • y = x) |
| 100 | |
| 101 | def finiteCharacter (f : Module.Dual ℤ_[ℓ] (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := H) ℓ)) (n : ℕ) : |
| 102 | AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.torsion ℓ H n →+ ZMod (ℓ ^ n) := |
| 103 | (QuotientAddGroup.lift (AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate (H := H) ℓ n).toAddMonoidHom.ker |
| 104 | ((PadicInt.toZModPow n).toAddMonoidHom.comp f.toAddMonoidHom) (by |
| 105 | intro t ht |
| 106 | obtain ⟨s, rfl⟩ := (AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate_eq_zero_iff ℓ n t).mp ht |
| 107 | change PadicInt.toZModPow n (f ((ℓ : ℤ_[ℓ]) ^ n • s)) = 0 |
| 108 | rw [map_smul, smul_eq_mul, map_mul, map_pow, map_natCast] |
| 109 | have hz : (ℓ : ZMod (ℓ ^ n)) ^ n = 0 := by |
| 110 | rw [← Nat.cast_pow, CharP.cast_eq_zero] |
| 111 | rw [hz, zero_mul])).comp |
| 112 | (QuotientAddGroup.quotientKerEquivOfSurjective (AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate (H := H) ℓ n).toAddMonoidHom |
| 113 | (AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate_surjective ℓ hdiv n)).symm.toAddMonoidHom |
| 114 | |
| 115 | theorem finiteCharacter_evaluate (f : Module.Dual ℤ_[ℓ] (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := H) ℓ)) |
| 116 | (n : ℕ) (t : AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := H) ℓ) : |
| 117 | finiteCharacter ℓ hdiv f n (AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate ℓ n t) = PadicInt.toZModPow n (f t) := by |
| 118 | let e := QuotientAddGroup.quotientKerEquivOfSurjective |
| 119 | (AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate (H := H) ℓ n).toAddMonoidHom (AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate_surjective ℓ hdiv n) |
| 120 | have he : e (QuotientAddGroup.mk t) = AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate ℓ n t := rfl |
| 121 | dsimp only [finiteCharacter, AddMonoidHom.comp_apply, AddEquiv.toAddMonoidHom_eq_coe, |
| 122 | AddMonoidHom.coe_coe] |
| 123 | rw [← he, e.symm_apply_apply] |
| 124 | rfl |
| 125 | |
| 126 | def fromDual (f : Module.Dual ℤ_[ℓ] (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := H) ℓ)) : compatible (H := H) ℓ := |
| 127 | ⟨finiteCharacter ℓ hdiv f, by |
| 128 | intro n t |
| 129 | obtain ⟨s, rfl⟩ := AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate_surjective ℓ hdiv (n + 1) t |
| 130 | have ht : AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.transition ℓ n (AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate ℓ (n + 1) s) = AlgebraicGeometry.AbelianScheme.TateComparison.Evaluation.Tate.evaluate ℓ n s := s.property n |
| 131 | rw [ht, finiteCharacter_evaluate, finiteCharacter_evaluate] |
| 132 | exact (congrArg (fun r : ℤ_[ℓ] →+* ZMod (ℓ ^ n) => r (f s)) |
| 133 | (PadicInt.zmod_cast_comp_toZModPow n (n + 1) (Nat.le_succ n))).symm⟩ |
| 134 | |
| 135 | theorem toDual_fromDual (f : Module.Dual ℤ_[ℓ] (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := H) ℓ)) : |
| 136 | toDual ℓ (fromDual ℓ hdiv f) = f := by |
| 137 | apply LinearMap.ext |
| 138 | intro t |
| 139 | apply PadicInt.ext_of_toZModPow.mp |
| 140 | intro n |
| 141 | exact (value_reduction ℓ (fromDual ℓ hdiv f) t n).trans |
| 142 | (finiteCharacter_evaluate ℓ hdiv f n t) |
| 143 | |
| 144 | def equiv : compatible (H := H) ℓ ≃+ Module.Dual ℤ_[ℓ] (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := H) ℓ) := |
| 145 | AddEquiv.ofBijective (toDual ℓ) |
| 146 | ⟨toDual_injective ℓ hdiv, fun f => ⟨fromDual ℓ hdiv f, toDual_fromDual ℓ hdiv f⟩⟩ |
| 147 | |
| 148 | end |
| 149 | |
| 150 | end OAI.NumberTheory.PadicHodge.IntegralComparison.TateCompatibleCharacters |