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.IsogenyQuotient.Padic |
| 2 | import Mathlib.LinearAlgebra.Basis.Defs |
| 3 | import Mathlib.LinearAlgebra.Span.Defs |
| 4 | |
| 5 | /-! # Basis -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Basis.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | Elementary quotients in any q-adic lattice basis. The diagonal subgroup |
| 13 | is the actual span of q^(a_i) times the basis vectors; its quotient is |
| 14 | computed by the coordinate residue homomorphism. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.Module |
| 18 | open scoped BigOperators |
| 19 | |
| 20 | variable (q : ℕ) [Fact q.Prime] {d : ℕ} |
| 21 | {V : Type*} [AddCommGroup V] [Module ℤ_[q] V] |
| 22 | |
| 23 | def basisDiagonalSubmodule (b : Basis (Fin d) ℤ_[q] V) (a : Fin d → ℕ) : Submodule ℤ_[q] V := |
| 24 | Submodule.span ℤ_[q] (Set.range fun i => (q : ℤ_[q]) ^ a i • b i) |
| 25 | |
| 26 | theorem mem_basisDiagonalSubmodule_iff |
| 27 | (b : Basis (Fin d) ℤ_[q] V) (a : Fin d → ℕ) (x : V) : |
| 28 | x ∈ basisDiagonalSubmodule q b a ↔ |
| 29 | ∀ i, b.repr x i ∈ Ideal.span {(q : ℤ_[q]) ^ a i} := by |
| 30 | classical |
| 31 | constructor |
| 32 | · intro hx |
| 33 | induction hx using Submodule.span_induction with |
| 34 | | mem y hy => |
| 35 | obtain ⟨j, rfl⟩ := hy |
| 36 | intro i |
| 37 | by_cases hji : j = i |
| 38 | · subst i |
| 39 | simp only [map_smul, Finsupp.smul_apply, Basis.repr_self, |
| 40 | Finsupp.single_eq_same, smul_eq_mul, mul_one] |
| 41 | exact Ideal.mem_span_singleton.mpr (dvd_refl _) |
| 42 | · simp [map_smul, Basis.repr_self, hji] |
| 43 | | zero => |
| 44 | intro i |
| 45 | simpa only [map_zero, Finsupp.coe_zero, Pi.zero_apply] using |
| 46 | (Ideal.span {(q : ℤ_[q]) ^ a i}).zero_mem |
| 47 | | add x y _ _ hx hy => |
| 48 | intro i |
| 49 | simpa only [map_add, Finsupp.add_apply] using |
| 50 | (Ideal.span {(q : ℤ_[q]) ^ a i}).add_mem (hx i) (hy i) |
| 51 | | smul r x _ hx => |
| 52 | intro i |
| 53 | simpa only [map_smul, Finsupp.smul_apply] using |
| 54 | (Ideal.span {(q : ℤ_[q]) ^ a i}).smul_mem r (hx i) |
| 55 | · intro hx |
| 56 | rw [← b.sum_repr x] |
| 57 | apply Submodule.sum_mem |
| 58 | intro i _ |
| 59 | obtain ⟨c, hc⟩ := Ideal.mem_span_singleton.mp (hx i) |
| 60 | rw [hc, mul_comm, mul_smul] |
| 61 | exact Submodule.smul_mem _ c (Submodule.subset_span (Set.mem_range_self i)) |
| 62 | |
| 63 | def basisCoordinateResidues (b : Basis (Fin d) ℤ_[q] V) (a : Fin d → ℕ) : |
| 64 | V →+ (∀ i, ZMod (q ^ a i)) := |
| 65 | (Padic.Construction.padicCoordinateResidues q a).comp b.equivFun.toAddEquiv.toAddMonoidHom |
| 66 | |
| 67 | theorem basisCoordinateResidues_surjective (b : Basis (Fin d) ℤ_[q] V) (a : Fin d → ℕ) : |
| 68 | Function.Surjective (basisCoordinateResidues q b a) := |
| 69 | (Padic.Construction.padicCoordinateResidues_surjective q a).comp b.equivFun.surjective |
| 70 | |
| 71 | /-- The elementary-divisor span is exactly the kernel of the surjective |
| 72 | coordinate residue map, so it records the quotient group itself. -/ |
| 73 | theorem basisCoordinateResidues_ker (b : Basis (Fin d) ℤ_[q] V) (a : Fin d → ℕ) : |
| 74 | (basisCoordinateResidues q b a).ker = (basisDiagonalSubmodule q b a).toAddSubgroup := by |
| 75 | ext x |
| 76 | change (fun i => PadicInt.toZModPow (a i) (b.repr x i)) = 0 ↔ |
| 77 | x ∈ basisDiagonalSubmodule q b a |
| 78 | rw [funext_iff, mem_basisDiagonalSubmodule_iff] |
| 79 | apply forall_congr' |
| 80 | intro i |
| 81 | rw [← PadicInt.ker_toZModPow] |
| 82 | rfl |
| 83 | |
| 84 | def basisDiagonalQuotientEquiv (b : Basis (Fin d) ℤ_[q] V) (a : Fin d → ℕ) : |
| 85 | V ⧸ (basisDiagonalSubmodule q b a).toAddSubgroup ≃+ (∀ i, ZMod (q ^ a i)) := |
| 86 | (QuotientAddGroup.quotientAddEquivOfEq (basisCoordinateResidues_ker q b a).symm).trans |
| 87 | (QuotientAddGroup.quotientKerEquivOfSurjective (basisCoordinateResidues q b a) |
| 88 | (basisCoordinateResidues_surjective q b a)) |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Basis.Construction |