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.Pi |
| 2 | import Mathlib.Algebra.Algebra.Pi |
| 3 | |
| 4 | /-! # Scalar Range Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.ScalarRangeCoordinates.TestTransport |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! In basis coordinates, the scalar-subring span is exactly the set |
| 11 | of vectors whose coordinates lie in the scalar ring's image. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | variable {R K J : Type*} [CommRing R] [CommRing K] [Algebra R K] |
| 16 | [Fintype J] [DecidableEq J] |
| 17 | |
| 18 | theorem span_standard_vectors_iff (x : J → K) : |
| 19 | x ∈ Submodule.span R (Set.range (fun j : J => (Pi.single j 1 : J → K))) ↔ |
| 20 | ∀ j, ∃ r : R, algebraMap R K r = x j := by |
| 21 | constructor |
| 22 | · intro hx |
| 23 | induction hx using Submodule.span_induction with |
| 24 | | mem y hy => |
| 25 | obtain ⟨j, rfl⟩ := hy |
| 26 | intro k |
| 27 | by_cases hjk : j = k |
| 28 | · subst k |
| 29 | exact ⟨1, by simp⟩ |
| 30 | · exact ⟨0, by simp [Pi.single_eq_of_ne (Ne.symm hjk)]⟩ |
| 31 | | zero => intro j; exact ⟨0, map_zero _⟩ |
| 32 | | add y z _ _ hy hz => |
| 33 | intro j |
| 34 | obtain ⟨r, hr⟩ := hy j |
| 35 | obtain ⟨s, hs⟩ := hz j |
| 36 | exact ⟨r + s, by rw [map_add, hr, hs]; rfl⟩ |
| 37 | | smul r y _ hy => |
| 38 | intro j |
| 39 | obtain ⟨s, hs⟩ := hy j |
| 40 | exact ⟨r * s, by rw [map_mul, hs]; exact (Algebra.smul_def _ _).symm⟩ |
| 41 | · intro hx |
| 42 | choose r hr using hx |
| 43 | have he : (∑ j, r j • (Pi.single j 1 : J → K)) = x := by |
| 44 | funext j |
| 45 | simp [Pi.single_apply, Algebra.smul_def, hr] |
| 46 | rw [← he] |
| 47 | exact Submodule.sum_mem _ (fun j _ => Submodule.smul_mem _ _ |
| 48 | (Submodule.subset_span (Set.mem_range_self j))) |
| 49 | |
| 50 | variable {V : Type*} [AddCommGroup V] [Module K V] [Module R V] [IsScalarTower R K V] |
| 51 | (e : V ≃ₗ[K] (J → K)) (b : J → V) (hb : ∀ j, e (b j) = Pi.single j 1) |
| 52 | |
| 53 | include hb in |
| 54 | theorem span_basis_scalar_coordinates (x : V) : |
| 55 | x ∈ Submodule.span R (Set.range b) ↔ ∀ j, ∃ r : R, algebraMap R K r = e x j := by |
| 56 | have hm : (Submodule.span R (Set.range b)).map (e.restrictScalars R).toLinearMap = |
| 57 | Submodule.span R (Set.range (fun j : J => (Pi.single j 1 : J → K))) := by |
| 58 | rw [Submodule.map_span, ← Set.range_comp] |
| 59 | congr 2 |
| 60 | funext j |
| 61 | exact hb j |
| 62 | rw [← span_standard_vectors_iff (R := R) (e x), ← hm] |
| 63 | constructor |
| 64 | · intro hx |
| 65 | exact ⟨x, hx, rfl⟩ |
| 66 | · rintro ⟨y, hy, he⟩ |
| 67 | exact e.injective he ▸ hy |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.ScalarRangeCoordinates.TestTransport |