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.Dual.Basis |
| 2 | import Mathlib.LinearAlgebra.FiniteDimensional.Lemmas |
| 3 | import Mathlib.LinearAlgebra.Dimension.Finrank |
| 4 | |
| 5 | /-! # Supported Bilinear Dimension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.SupportedBilinearDimension |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Symmetric bilinear forms supported between two specified sets |
| 12 | of basis vectors inject into their rectangular coefficient matrix. |
| 13 | Their dimension is at most the product of the two set sizes. -/ |
| 14 | |
| 15 | variable {k V I : Type*} [Field k] [AddCommGroup V] [Module k V] [DecidableEq I] |
| 16 | (b : Module.Basis I k V) (L R : Finset I) |
| 17 | |
| 18 | def basisCrossSymmetricForms : Submodule k (V →ₗ[k] V →ₗ[k] k) where |
| 19 | carrier := {B | (∀ i j, B (b i) (b j) = B (b j) (b i)) ∧ |
| 20 | ∀ i j, ¬ ((i ∈ L ∧ j ∈ R) ∨ (i ∈ R ∧ j ∈ L)) → B (b i) (b j) = 0} |
| 21 | zero_mem' := ⟨fun _ _ => rfl, fun _ _ _ => rfl⟩ |
| 22 | add_mem' := by |
| 23 | intro x y hx hy |
| 24 | constructor |
| 25 | · intro i j |
| 26 | change x (b i) (b j) + y (b i) (b j) = x (b j) (b i) + y (b j) (b i) |
| 27 | rw [hx.1 i j, hy.1 i j] |
| 28 | · intro i j h |
| 29 | change x (b i) (b j) + y (b i) (b j) = 0 |
| 30 | rw [hx.2 i j h, hy.2 i j h, add_zero] |
| 31 | smul_mem' c x hx := by |
| 32 | constructor |
| 33 | · intro i j |
| 34 | change c * _ = c * _ |
| 35 | rw [hx.1 i j] |
| 36 | · intro i j h |
| 37 | change c * _ = 0 |
| 38 | rw [hx.2 i j h, mul_zero] |
| 39 | |
| 40 | def basisCrossCoefficientLinear : basisCrossSymmetricForms b L R →ₗ[k] (L → R → k) where |
| 41 | toFun F i j := F.val (b i.val) (b j.val) |
| 42 | map_add' _ _ := rfl |
| 43 | map_smul' _ _ := rfl |
| 44 | |
| 45 | theorem basisCrossCoefficientLinear_injective : Function.Injective (basisCrossCoefficientLinear b L R) := by |
| 46 | intro F G h |
| 47 | apply Subtype.ext |
| 48 | apply b.ext |
| 49 | intro i |
| 50 | apply b.ext |
| 51 | intro j |
| 52 | by_cases hs : (i ∈ L ∧ j ∈ R) ∨ (i ∈ R ∧ j ∈ L) |
| 53 | · rcases hs with ⟨hi, hj⟩ | ⟨hi, hj⟩ |
| 54 | · exact congrFun (congrFun h ⟨i, hi⟩) ⟨j, hj⟩ |
| 55 | · rw [F.property.1 i j, G.property.1 i j] |
| 56 | exact congrFun (congrFun h ⟨j, hj⟩) ⟨i, hi⟩ |
| 57 | · rw [F.property.2 i j hs, G.property.2 i j hs] |
| 58 | |
| 59 | theorem basisCrossSymmetricForms_finrank_le : |
| 60 | Module.finrank k (basisCrossSymmetricForms b L R) ≤ L.card * R.card := by |
| 61 | have h := LinearMap.finrank_le_finrank_of_injective (basisCrossCoefficientLinear_injective b L R) |
| 62 | simpa only [Module.finrank_pi_fintype, Module.finrank_self, Finset.sum_const, |
| 63 | Finset.card_univ, Fintype.card_coe, smul_eq_mul, mul_one] using h |
| 64 | |
| 65 | theorem basisCrossSymmetricForms_finrank_le_two (hL : L.card = 2) (hR : R.card = 1) : |
| 66 | Module.finrank k (basisCrossSymmetricForms b L R) ≤ 2 := by |
| 67 | have h := basisCrossSymmetricForms_finrank_le b L R |
| 68 | simpa only [hL, hR, mul_one] using h |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.SupportedBilinearDimension |