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 Mathlib.RingTheory.AdicCompletion.Basic |
| 2 | import Mathlib.LinearAlgebra.FreeModule.Finite.Basic |
| 3 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 4 | |
| 5 | /-! # Finite Free Completion -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FiniteFreeCompletion.Lifts |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | Finite free modules over an adically complete ring are complete. |
| 13 | The limit is constructed coordinate by coordinate in an actual finite |
| 14 | basis. This supplies completeness of the finite evaluation integer ring. |
| 15 | -/ |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | variable {R : Type u} [CommRing R] {M : Type v} [AddCommGroup M] [Module R M] |
| 20 | variable {ι : Type*} [Fintype ι] (b : Module.Basis ι R M) (I : Ideal R) |
| 21 | |
| 22 | theorem basis_mem_ideal_smul_top_iff (x : M) : |
| 23 | x ∈ I • (⊤ : Submodule R M) ↔ ∀ i, b.repr x i ∈ I := by |
| 24 | constructor |
| 25 | · intro hx i |
| 26 | refine Submodule.smul_induction_on hx ?_ ?_ |
| 27 | · intro r hr y _ |
| 28 | simpa only [map_smul, Finsupp.coe_smul, Pi.smul_apply, smul_eq_mul] using |
| 29 | I.mul_mem_right (b.repr y i) hr |
| 30 | · intro y z hy hz |
| 31 | simpa only [map_add, Finsupp.coe_add, Pi.add_apply] using I.add_mem hy hz |
| 32 | · intro hx |
| 33 | rw [← b.sum_repr x] |
| 34 | exact Submodule.sum_mem _ (fun i _ => Submodule.smul_mem_smul (hx i) Submodule.mem_top) |
| 35 | |
| 36 | theorem basis_smodEq_iff (x y : M) : |
| 37 | x ≡ y [SMOD I • (⊤ : Submodule R M)] ↔ |
| 38 | ∀ i, b.repr x i ≡ b.repr y i [SMOD I • (⊤ : Submodule R R)] := by |
| 39 | simp only [SModEq.sub_mem, basis_mem_ideal_smul_top_iff b I, map_sub, |
| 40 | Finsupp.coe_sub, Pi.sub_apply, Ideal.smul_eq_mul, Ideal.mul_top] |
| 41 | |
| 42 | include b in |
| 43 | theorem finite_basis_adic_complete [IsAdicComplete I R] : IsAdicComplete I M := by |
| 44 | classical |
| 45 | refine { haus' := ?_, prec' := ?_ } |
| 46 | · intro x hx |
| 47 | apply b.repr.injective |
| 48 | ext i |
| 49 | have hi : ∀ n, b.repr x i ≡ 0 [SMOD I ^ n • (⊤ : Submodule R R)] := by |
| 50 | intro n |
| 51 | simpa only [map_zero, Finsupp.coe_zero, Pi.zero_apply] using |
| 52 | (basis_smodEq_iff b (I ^ n) x 0).mp (hx n) i |
| 53 | simpa only [map_zero, Finsupp.coe_zero, Pi.zero_apply] using IsHausdorff.haus' (I := I) _ hi |
| 54 | · intro f hf |
| 55 | have hc (i : ι) : ∃ z : R, ∀ n, b.repr (f n) i ≡ z |
| 56 | [SMOD I ^ n • (⊤ : Submodule R R)] := by |
| 57 | apply IsPrecomplete.prec' (I := I) (fun n => b.repr (f n) i) |
| 58 | intro m n hmn |
| 59 | exact (basis_smodEq_iff b (I ^ m) (f m) (f n)).mp (hf hmn) i |
| 60 | choose z hz using hc |
| 61 | let l : M := b.equivFun.symm z |
| 62 | have hl (i : ι) : b.repr l i = z i := |
| 63 | congrFun (b.equivFun.apply_symm_apply z) i |
| 64 | refine ⟨l, fun n => (basis_smodEq_iff b (I ^ n) (f n) l).mpr ?_⟩ |
| 65 | intro i |
| 66 | rw [hl] |
| 67 | exact hz i n |
| 68 | |
| 69 | variable (R M) |
| 70 | |
| 71 | /-- No basis or limits are supplied to this construction: choose a finite |
| 72 | free basis and construct its coordinate limits using completeness of R. -/ |
| 73 | theorem finite_free_adic_complete [Module.Free R M] [Module.Finite R M] |
| 74 | [IsAdicComplete I R] : IsAdicComplete I M := by |
| 75 | classical |
| 76 | let _ := Fintype.ofFinite (Module.Free.ChooseBasisIndex R M) |
| 77 | exact finite_basis_adic_complete (Module.Free.chooseBasis R M) I |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FiniteFreeCompletion.Lifts |