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.PeriodInvariants.PrincipalAdicLinearCriterion |
| 2 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.WittAlgebraCompleteness |
| 3 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.WittCoefficientRegularity |
| 4 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.AdicFiniteModules |
| 5 | |
| 6 | /-! # Witt Finite Basis -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.WittFiniteBasis |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! # A finite basis of perfect characteristic-p algebras lifts to a Witt-vector basis -/ |
| 13 | |
| 14 | attribute [local instance] WittAlgebraFunctor.wittAlgebra |
| 15 | |
| 16 | variable (p : ℕ) [Fact p.Prime] {A B ι : Type*} [CommRing A] [CommRing B] [Algebra A B] |
| 17 | [CharP A p] [PerfectRing A p] [CharP B p] [PerfectRing B p] [Fintype ι] |
| 18 | (b : Module.Basis ι A B) |
| 19 | |
| 20 | def lift : (ι → WittVector p A) →ₗ[WittVector p A] WittVector p B := |
| 21 | Fintype.linearCombination (WittVector p A) (fun i => WittVector.teichmuller p (b i)) |
| 22 | |
| 23 | omit [CharP A p] [PerfectRing A p] [CharP B p] [PerfectRing B p] in |
| 24 | theorem coefficient (c : ι → WittVector p A) : |
| 25 | (lift p b c).coeff 0 = b.equivFun.symm (fun i => (c i).coeff 0) := by |
| 26 | rw [Module.Basis.equivFun_symm_apply] |
| 27 | change WittVector.constantCoeff (∑ i, c i • WittVector.teichmuller p (b i)) = _ |
| 28 | rw [map_sum] |
| 29 | apply Finset.sum_congr rfl |
| 30 | intro i _ |
| 31 | change WittVector.constantCoeff (WittVector.map (algebraMap A B) (c i) * |
| 32 | WittVector.teichmuller p (b i)) = _ |
| 33 | rw [map_mul] |
| 34 | change algebraMap A B ((c i).coeff 0) * b i = (c i).coeff 0 • b i |
| 35 | rw [Algebra.smul_def] |
| 36 | |
| 37 | theorem reflects (c : ι → WittVector p A) |
| 38 | (hc : ∃ y, (p : WittVector p A) • y = lift p b c) : |
| 39 | ∃ y, (p : WittVector p A) • y = c := by |
| 40 | obtain ⟨y, hy⟩ := hc |
| 41 | have hd : (p : WittVector p B) ∣ lift p b c := by |
| 42 | refine ⟨y, ?_⟩ |
| 43 | simpa only [Algebra.smul_def, map_natCast] using hy.symm |
| 44 | have hz := (WittVector.mem_span_p_iff_coeff_zero_eq_zero (lift p b c)).mp |
| 45 | (Ideal.mem_span_singleton.mpr hd) |
| 46 | rw [coefficient] at hz |
| 47 | have he : (fun i => (c i).coeff 0) = (0 : ι → A) := |
| 48 | b.equivFun.symm.injective (hz.trans (map_zero _).symm) |
| 49 | have hdiv (i : ι) : (p : WittVector p A) ∣ c i := |
| 50 | Ideal.mem_span_singleton.mp ((WittVector.mem_span_p_iff_coeff_zero_eq_zero (c i)).mpr (congrFun he i)) |
| 51 | choose z hz using hdiv |
| 52 | exact ⟨z, funext fun i => (hz i).symm⟩ |
| 53 | |
| 54 | theorem injective : Function.Injective (lift p b) := by |
| 55 | classical |
| 56 | have : IsAdicComplete (Ideal.span {(p : WittVector p A)}) (ι → WittVector p A) := |
| 57 | AdicFiniteModules.pi_complete _ |
| 58 | have hp : IsSMulRegular (WittVector p B) (p : WittVector p A) := by |
| 59 | apply (isSMulRegular_algebraMap_iff (WittVector p B)).mp |
| 60 | simpa only [map_natCast] using WittCoefficientRegularity.p_regular p (R := B) |
| 61 | exact PrincipalAdicLinearCriterion.injective (p : WittVector p A) (lift p b) hp (reflects p b) |
| 62 | |
| 63 | omit [CharP A p] [PerfectRing A p] in |
| 64 | theorem residue_surjective : Function.Surjective |
| 65 | ((Submodule.mkQ (Ideal.span {(p : WittVector p A)} • (⊤ : Submodule (WittVector p A) (WittVector p B)))).comp |
| 66 | (lift p b)) := by |
| 67 | intro x |
| 68 | obtain ⟨w, rfl⟩ := Submodule.mkQ_surjective _ x |
| 69 | let c : ι → WittVector p A := fun i => WittVector.teichmuller p (b.equivFun (w.coeff 0) i) |
| 70 | refine ⟨c, ?_⟩ |
| 71 | change Submodule.Quotient.mk (lift p b c) = Submodule.Quotient.mk w |
| 72 | rw [Submodule.Quotient.eq] |
| 73 | have hz : (lift p b c - w).coeff 0 = 0 := by |
| 74 | change WittVector.constantCoeff (lift p b c - w) = 0 |
| 75 | rw [map_sub] |
| 76 | change (lift p b c).coeff 0 - w.coeff 0 = 0 |
| 77 | rw [coefficient] |
| 78 | change b.equivFun.symm (b.equivFun (w.coeff 0)) - w.coeff 0 = 0 |
| 79 | rw [LinearEquiv.symm_apply_apply, sub_self] |
| 80 | obtain ⟨z, hz⟩ := Ideal.mem_span_singleton.mp |
| 81 | ((WittVector.mem_span_p_iff_coeff_zero_eq_zero (lift p b c - w)).mpr hz) |
| 82 | have hs : (p : WittVector p A) • z = lift p b c - w := by |
| 83 | simpa only [Algebra.smul_def, map_natCast] using hz.symm |
| 84 | simpa only [pow_one] using |
| 85 | (ScalarDivisibilityModules.principal_power_mem (p : WittVector p A) 1 _).mpr |
| 86 | ⟨z, by simpa only [pow_one] using hs⟩ |
| 87 | |
| 88 | theorem surjective : Function.Surjective (lift p b) := by |
| 89 | classical |
| 90 | have : IsAdicComplete (Ideal.span {(p : WittVector p A)}) (ι → WittVector p A) := |
| 91 | AdicFiniteModules.pi_complete _ |
| 92 | have : IsAdicComplete (Ideal.span {(p : WittVector p A)}) (WittVector p B) := |
| 93 | WittAlgebraCompleteness.complete p A B |
| 94 | exact surjective_of_mkQ_comp_surjective (residue_surjective p b) |
| 95 | |
| 96 | def equiv : (ι → WittVector p A) ≃ₗ[WittVector p A] WittVector p B := |
| 97 | LinearEquiv.ofBijective (lift p b) ⟨WittFiniteBasis.injective p b, surjective p b⟩ |
| 98 | |
| 99 | def basis : Module.Basis ι (WittVector p A) (WittVector p B) := Module.Basis.ofEquivFun (equiv p b).symm |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.WittFiniteBasis |