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.AbelianModuli.ReferenceFamily.LatticeReflectionCongruence |
| 2 | import Mathlib.Data.Nat.ModEq |
| 3 | |
| 4 | /-! # Cleared Lattice Isogenies -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ClearedLatticeIsogenies |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The cleared rational reflection and its inverse give actual |
| 11 | integer-linear endomorphisms of the original lattice. Their composites |
| 12 | are multiplication by the square denominator, and each retains the |
| 13 | prescribed principal marking. -/ |
| 14 | |
| 15 | variable {E : Type*} [Field E] |
| 16 | (Λ : Submodule ℤ (Fin 3 → E)) |
| 17 | (g : (Fin 3 → E) ≃ₗ[E] (Fin 3 → E)) (D : ℕ) |
| 18 | |
| 19 | def clearedLatticeMap (h : ∀ x ∈ Λ, D • g x ∈ Λ) : Λ →ₗ[ℤ] Λ where |
| 20 | toFun x := ⟨D • g x, h x x.property⟩ |
| 21 | map_add' x y := Subtype.ext (by |
| 22 | change D • g ((x : Fin 3 → E) + y) = D • g x + D • g y |
| 23 | rw [map_add, nsmul_add]) |
| 24 | map_smul' c x := Subtype.ext (by |
| 25 | change D • g (c • (x : Fin 3 → E)) = c • (D • g x) |
| 26 | rw [map_zsmul] |
| 27 | exact smul_comm D c (g x)) |
| 28 | |
| 29 | theorem clearedLatticeMap_coe (h : ∀ x ∈ Λ, D • g x ∈ Λ) (x : Λ) : |
| 30 | (clearedLatticeMap Λ g D h x : Fin 3 → E) = D • g x := rfl |
| 31 | |
| 32 | theorem clearedLatticeMap_comp_inverse |
| 33 | (h : ∀ x ∈ Λ, D • g x ∈ Λ) (hi : ∀ x ∈ Λ, D • g.symm x ∈ Λ) : |
| 34 | (clearedLatticeMap Λ g D h).comp (clearedLatticeMap Λ g.symm D hi) = |
| 35 | (D ^ 2 : ℤ) • (LinearMap.id : Λ →ₗ[ℤ] Λ) := by |
| 36 | apply LinearMap.ext |
| 37 | intro x |
| 38 | apply Subtype.ext |
| 39 | change D • g (D • g.symm (x : Fin 3 → E)) = (D ^ 2 : ℤ) • (x : Fin 3 → E) |
| 40 | rw [map_nsmul, LinearEquiv.apply_symm_apply, smul_smul] |
| 41 | rw [← Nat.cast_pow, natCast_zsmul, pow_two] |
| 42 | |
| 43 | theorem clearedLatticeMap_inverse_comp |
| 44 | (h : ∀ x ∈ Λ, D • g x ∈ Λ) (hi : ∀ x ∈ Λ, D • g.symm x ∈ Λ) : |
| 45 | (clearedLatticeMap Λ g.symm D hi).comp (clearedLatticeMap Λ g D h) = |
| 46 | (D ^ 2 : ℤ) • (LinearMap.id : Λ →ₗ[ℤ] Λ) := |
| 47 | clearedLatticeMap_comp_inverse Λ g.symm D hi h |
| 48 | |
| 49 | theorem clearedLatticeMap_principal |
| 50 | {N : ℕ} (h : ∀ x ∈ Λ, D • g x ∈ Λ) |
| 51 | (hc : ∀ x ∈ Λ, ∃ y ∈ Λ, D • g x - x = N • y) : |
| 52 | ∀ x : Λ, ∃ y : Λ, clearedLatticeMap Λ g D h x - x = N • y := by |
| 53 | intro x |
| 54 | obtain ⟨y, hy, hxy⟩ := hc x x.property |
| 55 | exact ⟨⟨y, hy⟩, Subtype.ext hxy⟩ |
| 56 | |
| 57 | theorem exists_paired_principal_lattice_maps {N : ℕ} |
| 58 | (hc : LatticeReflectionCongruence.ClearedPrincipalLatticeCongruence Λ N g) : |
| 59 | ∃ (D : ℕ) (q v : Λ →ₗ[ℤ] Λ), |
| 60 | 0 < D ∧ Nat.Coprime D N ∧ Nat.ModEq N (D ^ 2) 1 ∧ |
| 61 | (∀ x : Λ, (q x : Fin 3 → E) = D • g x) ∧ |
| 62 | (∀ x : Λ, (v x : Fin 3 → E) = D • g.symm x) ∧ |
| 63 | q.comp v = (D ^ 2 : ℤ) • (LinearMap.id : Λ →ₗ[ℤ] Λ) ∧ |
| 64 | v.comp q = (D ^ 2 : ℤ) • (LinearMap.id : Λ →ₗ[ℤ] Λ) ∧ |
| 65 | (∀ x : Λ, ∃ y : Λ, q x - x = N • y) ∧ |
| 66 | (∀ x : Λ, ∃ y : Λ, v x - x = N • y) := by |
| 67 | obtain ⟨D, hD, hcop, hmod, hf, hi⟩ := hc |
| 68 | have hpres : ∀ x ∈ Λ, D • g x ∈ Λ := by |
| 69 | intro x hx |
| 70 | obtain ⟨y, hy, hxy⟩ := hf x hx |
| 71 | have hm : D • g x - x ∈ Λ := hxy.symm ▸ nsmul_mem hy N |
| 72 | simpa only [sub_add_cancel] using Λ.add_mem hm hx |
| 73 | have hipres : ∀ x ∈ Λ, D • g.symm x ∈ Λ := by |
| 74 | intro x hx |
| 75 | obtain ⟨y, hy, hxy⟩ := hi x hx |
| 76 | have hm : D • g.symm x - x ∈ Λ := hxy.symm ▸ nsmul_mem hy N |
| 77 | simpa only [sub_add_cancel] using Λ.add_mem hm hx |
| 78 | have hDmod : Nat.ModEq N D 1 := |
| 79 | (Nat.modEq_iff_dvd.mpr (by simpa only [Nat.cast_one] using hmod)).symm |
| 80 | have hDsq : Nat.ModEq N (D ^ 2) 1 := by |
| 81 | simpa only [one_pow] using hDmod.pow 2 |
| 82 | exact ⟨D, clearedLatticeMap Λ g D hpres, clearedLatticeMap Λ g.symm D hipres, |
| 83 | hD, hcop, hDsq, fun _ => rfl, fun _ => rfl, |
| 84 | clearedLatticeMap_comp_inverse Λ g D hpres hipres, |
| 85 | clearedLatticeMap_inverse_comp Λ g D hpres hipres, |
| 86 | clearedLatticeMap_principal Λ g D hpres hf, |
| 87 | clearedLatticeMap_principal Λ g.symm D hipres hi⟩ |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ClearedLatticeIsogenies |