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 |
| 2 | |
| 3 | /-! # Exterior Line -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.ExteriorLine.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Recovery of a subspace from the exterior product of a basis. -/ |
| 12 | |
| 13 | open scoped Classical TensorProduct |
| 14 | open Set |
| 15 | |
| 16 | theorem exteriorPower_ιMulti_ne_zero |
| 17 | {k V : Type*} [Field k] [AddCommGroup V] [Module k V] |
| 18 | {n : ℕ} {v : Fin n → V} (hv : LinearIndependent k v) : |
| 19 | exteriorPower.ιMulti k n v ≠ 0 := by |
| 20 | let W := Submodule.span k (range v) |
| 21 | let b : Module.Basis (Fin n) k W := Module.Basis.span hv |
| 22 | have hb : W.subtype ∘ b = v := by |
| 23 | funext i |
| 24 | exact congrArg Subtype.val (Module.Basis.span_apply hv i) |
| 25 | have hn : exteriorPower.ιMulti k n b ≠ 0 := by |
| 26 | intro hz |
| 27 | have hh := congrArg (exteriorPower.alternatingMapLinearEquiv b.det) hz |
| 28 | exact one_ne_zero (by simpa only [exteriorPower.alternatingMapLinearEquiv_apply_ιMulti, |
| 29 | Module.Basis.det_self, map_zero] using hh) |
| 30 | rw [← hb, ← exteriorPower.map_apply_ιMulti] |
| 31 | exact (map_ne_zero_iff _ |
| 32 | (exteriorPower.map_injective_field (n := n) W.injective_subtype)).mpr hn |
| 33 | |
| 34 | theorem exteriorAlgebra_ιMulti_eq_zero_iff |
| 35 | {k V : Type*} [Field k] [AddCommGroup V] [Module k V] |
| 36 | {n : ℕ} (v : Fin n → V) : |
| 37 | ExteriorAlgebra.ιMulti k n v = 0 ↔ ¬LinearIndependent k v := by |
| 38 | constructor |
| 39 | · intro hz hv |
| 40 | exact exteriorPower_ιMulti_ne_zero hv (Subtype.ext hz) |
| 41 | · exact (ExteriorAlgebra.ιMulti k n).map_linearDependent v |
| 42 | |
| 43 | theorem exterior_basis_annihilator |
| 44 | {k V : Type*} [Field k] [AddCommGroup V] [Module k V] |
| 45 | {n : ℕ} {v : Fin n → V} (hv : LinearIndependent k v) (x : V) : |
| 46 | ExteriorAlgebra.ι k x * ExteriorAlgebra.ιMulti k n v = 0 ↔ |
| 47 | x ∈ Submodule.span k (range v) := by |
| 48 | have heq : ExteriorAlgebra.ιMulti k (n + 1) (Fin.cons x v) = |
| 49 | ExteriorAlgebra.ι k x * ExteriorAlgebra.ιMulti k n v := by |
| 50 | simp [Matrix.vecTail] |
| 51 | rw [← heq, exteriorAlgebra_ιMulti_eq_zero_iff, linearIndependent_finCons] |
| 52 | simp [hv] |
| 53 | |
| 54 | theorem exterior_smul_of_mem_span |
| 55 | {k V : Type*} [Field k] [AddCommGroup V] [Module k V] |
| 56 | {n : ℕ} {v : Fin n → V} (hv : LinearIndependent k v) |
| 57 | (w : Fin n → V) (hw : ∀ i, w i ∈ Submodule.span k (range v)) : |
| 58 | ∃ c : k, ExteriorAlgebra.ιMulti k n w = c • ExteriorAlgebra.ιMulti k n v := by |
| 59 | let W := Submodule.span k (range v) |
| 60 | let b : Module.Basis (Fin n) k W := Module.Basis.span hv |
| 61 | let : FiniteDimensional k W := b.finiteDimensional_of_finite |
| 62 | have hdim : Module.finrank k (⋀[k]^n W) = 1 := by |
| 63 | rw [exteriorPower.finrank_eq, Module.finrank_eq_card_basis b, Fintype.card_fin, |
| 64 | Nat.choose_self] |
| 65 | let u : Fin n → W := fun i => ⟨w i, hw i⟩ |
| 66 | obtain ⟨c, hc⟩ := (finrank_eq_one_iff_of_nonzero' |
| 67 | (exteriorPower.ιMulti k n b) (exteriorPower_ιMulti_ne_zero b.linearIndependent)).mp |
| 68 | hdim (exteriorPower.ιMulti k n u) |
| 69 | have hm := congrArg (exteriorPower.map n W.subtype) hc |
| 70 | have hb : W.subtype ∘ b = v := by |
| 71 | funext i |
| 72 | exact congrArg Subtype.val (Module.Basis.span_apply hv i) |
| 73 | simp only [map_smul, exteriorPower.map_apply_ιMulti, hb] at hm |
| 74 | exact ⟨c, (congrArg Subtype.val hm).symm⟩ |
| 75 | |
| 76 | theorem span_eq_iff_exterior_smul |
| 77 | {k V : Type*} [Field k] [AddCommGroup V] [Module k V] |
| 78 | {n : ℕ} {v w : Fin n → V} (hv : LinearIndependent k v) (hw : LinearIndependent k w) : |
| 79 | Submodule.span k (range w) = Submodule.span k (range v) ↔ |
| 80 | ∃ c : k, c ≠ 0 ∧ ExteriorAlgebra.ιMulti k n w = c • ExteriorAlgebra.ιMulti k n v := by |
| 81 | constructor |
| 82 | · intro hspan |
| 83 | obtain ⟨c, hc⟩ := exterior_smul_of_mem_span hv w (fun i => |
| 84 | hspan ▸ Submodule.subset_span (mem_range_self i)) |
| 85 | refine ⟨c, ?_, hc⟩ |
| 86 | intro hzero |
| 87 | rw [hzero, zero_smul] at hc |
| 88 | exact ((exteriorAlgebra_ιMulti_eq_zero_iff w).mp hc) hw |
| 89 | · rintro ⟨c, hc, hmul⟩ |
| 90 | apply Submodule.ext |
| 91 | intro x |
| 92 | rw [← exterior_basis_annihilator hw x, ← exterior_basis_annihilator hv x, hmul, |
| 93 | mul_smul_comm, smul_eq_zero] |
| 94 | simp only [hc, false_or] |
| 95 | |
| 96 | end |
| 97 | |
| 98 | /-! Dual coordinates for a finite independent family recover the scalar |
| 99 | by which an exterior line is acted on. -/ |
| 100 | |
| 101 | open scoped Classical |
| 102 | |
| 103 | theorem exists_dual_coordinates |
| 104 | {k V : Type*} [Field k] [AddCommGroup V] [Module k V] {r : ℕ} |
| 105 | (v : Fin r → V) (hv : LinearIndependent k v) : |
| 106 | ∃ φ : Fin r → Module.Dual k V, |
| 107 | ∀ i j, φ j (v i) = (1 : Matrix (Fin r) (Fin r) k) i j := by |
| 108 | obtain ⟨l, hl⟩ := (Fintype.linearCombination k v).exists_leftInverse_of_injective |
| 109 | (LinearMap.ker_eq_bot.mpr hv.fintypeLinearCombination_injective) |
| 110 | refine ⟨fun j => (LinearMap.proj j).comp l, ?_⟩ |
| 111 | intro i j |
| 112 | have he := LinearMap.congr_fun hl (Pi.single i (1 : k)) |
| 113 | simp only [LinearMap.comp_apply, Fintype.linearCombination_apply_single, one_smul, |
| 114 | LinearMap.id_apply] at he |
| 115 | change l (v i) j = _ |
| 116 | rw [he] |
| 117 | simp [Pi.single_apply, Matrix.one_apply, eq_comm] |
| 118 | |
| 119 | theorem exterior_scalar_eq_determinant |
| 120 | {k V : Type*} [Field k] [AddCommGroup V] [Module k V] {r : ℕ} |
| 121 | (v w : Fin r → V) (φ : Fin r → Module.Dual k V) |
| 122 | (hφ : ∀ i j, φ j (v i) = (1 : Matrix (Fin r) (Fin r) k) i j) |
| 123 | (c : k) (hc : ExteriorAlgebra.ιMulti k r w = c • ExteriorAlgebra.ιMulti k r v) : |
| 124 | (Matrix.of (fun i j => φ j (w i))).det = c := by |
| 125 | have he : exteriorPower.ιMulti k r w = c • exteriorPower.ιMulti k r v := Subtype.ext hc |
| 126 | have hh := congrArg (exteriorPower.alternatingMapToDual k V r φ) he |
| 127 | rw [map_smul, exteriorPower.alternatingMapToDual_apply_ιMulti, |
| 128 | exteriorPower.alternatingMapToDual_apply_ιMulti] at hh |
| 129 | have hm : Matrix.of (fun i j => φ j (v i)) = 1 := by |
| 130 | ext i j |
| 131 | exact hφ i j |
| 132 | rw [hm, Matrix.det_one, smul_eq_mul, mul_one] at hh |
| 133 | exact hh |
| 134 | |
| 135 | end |
| 136 | |
| 137 | end OAI.NumberTheory.ArithmeticGroups.Lattices.ExteriorLine.Construction |