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.LinearAlgebra.Multilinear.Curry |
| 2 | import Mathlib.LinearAlgebra.Span.Basic |
| 3 | import Mathlib.LinearAlgebra.TensorProduct.Tower |
| 4 | |
| 5 | /-! # Multilinear Spanning Nonzero -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.MultilinearSpanningNonzero |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A nonzero multilinear map is nonzero on some tuple from any |
| 12 | spanning family, including actual scalar-extension unit vectors. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u v w z |
| 17 | variable {S : Type u} [CommRing S] {M : Type v} {N : Type w} {T : Type z} |
| 18 | [AddCommGroup N] [Module S N] [AddCommGroup T] [Module S T] |
| 19 | (η : M → N) (hη : Submodule.span S (Set.range η) = ⊤) |
| 20 | |
| 21 | include hη in |
| 22 | theorem eq_zero : ∀ (n : ℕ) (f : MultilinearMap S (fun _ : Fin n => N) T), |
| 23 | (∀ v : Fin n → M, f (fun i => η (v i)) = 0) → f = 0 := by |
| 24 | intro n |
| 25 | induction n with |
| 26 | | zero => |
| 27 | intro f hf |
| 28 | apply MultilinearMap.ext |
| 29 | intro v |
| 30 | change f v = 0 |
| 31 | have hv : v = (fun i : Fin 0 => η (Fin.elim0 i)) := Subsingleton.elim _ _ |
| 32 | rw [hv] |
| 33 | exact hf (fun i => Fin.elim0 i) |
| 34 | | succ n ih => |
| 35 | intro f hf |
| 36 | apply (multilinearCurryLeftEquiv S (fun _ : Fin (n+1) => N) T).injective |
| 37 | change f.curryLeft = 0 |
| 38 | apply LinearMap.ext_on_range hη |
| 39 | intro x |
| 40 | change f.curryLeft (η x) = 0 |
| 41 | apply ih |
| 42 | intro v |
| 43 | change f (Fin.cons (η x) (fun i => η (v i))) = 0 |
| 44 | convert hf (Fin.cons x v) using 1 |
| 45 | congr 1 |
| 46 | funext i |
| 47 | exact Fin.cases rfl (fun _ => rfl) i |
| 48 | |
| 49 | include hη in |
| 50 | theorem exists_nonzero (n : ℕ) (f : MultilinearMap S (fun _ : Fin n => N) T) |
| 51 | (hf : ∃ v, f v ≠ 0) : ∃ v : Fin n → M, f (fun i => η (v i)) ≠ 0 := by |
| 52 | classical |
| 53 | by_contra h |
| 54 | push Not at h |
| 55 | have hz := eq_zero η hη n f h |
| 56 | obtain ⟨v, hv⟩ := hf |
| 57 | exact hv (by rw [hz]; rfl) |
| 58 | |
| 59 | variable {R : Type*} [CommRing R] [Algebra R S] |
| 60 | {L : Type*} [AddCommGroup L] [Module R L] |
| 61 | (e : S ⊗[R] L →ₗ[S] N) (he : Function.Surjective e) |
| 62 | |
| 63 | include he in |
| 64 | theorem scalar_span : Submodule.span S (Set.range (fun x : L => e ((1 : S) ⊗ₜ[R] x))) = ⊤ := by |
| 65 | apply top_unique |
| 66 | intro x _ |
| 67 | obtain ⟨t, rfl⟩ := he x |
| 68 | induction t using TensorProduct.inductionOn with |
| 69 | | tmul a x => |
| 70 | rw [TensorProduct.tmul_eq_smul_one_tmul, map_smul] |
| 71 | exact Submodule.smul_mem _ a (Submodule.subset_span ⟨x, rfl⟩) |
| 72 | | add t u ht hu => |
| 73 | rw [map_add] |
| 74 | exact Submodule.add_mem _ (ht trivial) (hu trivial) |
| 75 | |
| 76 | include he in |
| 77 | theorem scalar_exists_nonzero (n : ℕ) (f : MultilinearMap S (fun _ : Fin n => N) T) |
| 78 | (hf : ∃ v, f v ≠ 0) : |
| 79 | ∃ v : Fin n → L, f (fun i => e ((1 : S) ⊗ₜ[R] v i)) ≠ 0 := |
| 80 | exists_nonzero (fun x => e ((1 : S) ⊗ₜ[R] x)) (scalar_span e he) n f hf |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.PadicHodge.IntegralComparison.MultilinearSpanningNonzero |