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.ExteriorPower.Basis |
| 2 | |
| 3 | /-! # Exterior Basis Permutation -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.ExteriorBasisPermutation.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Permuting exterior-basis lines |
| 11 | |
| 12 | A permutation of a degree-one basis sends each exterior-basis vector to a |
| 13 | nonzero multiple of the vector indexed by the image subset. The proof uses |
| 14 | determinant coordinates and injectivity of the induced exterior map. It |
| 15 | does not assume that reordering wedge factors leaves a vector unchanged. |
| 16 | -/ |
| 17 | |
| 18 | open scoped Classical |
| 19 | |
| 20 | variable {K V ι : Type*} [Field K] [AddCommGroup V] [Module K V] [LinearOrder ι] |
| 21 | variable (n : ℕ) (b : Module.Basis ι K V) (π : Equiv.Perm ι) |
| 22 | |
| 23 | /-- A permutation acts on finite subsets of a fixed cardinality. -/ |
| 24 | def exteriorIndexPermutation : Equiv.Perm (Set.powersetCard ι n) where |
| 25 | toFun := Set.powersetCard.map n π.toEmbedding |
| 26 | invFun := Set.powersetCard.map n π.symm.toEmbedding |
| 27 | left_inv s := by |
| 28 | apply SetLike.coe_injective |
| 29 | simp [Set.powersetCard.coe_map, Set.image_image] |
| 30 | right_inv s := by |
| 31 | apply SetLike.coe_injective |
| 32 | simp [Set.powersetCard.coe_map, Set.image_image] |
| 33 | |
| 34 | /-- Wedge a basis subset after applying a permutation to its indices. -/ |
| 35 | def permutedExteriorVector (s : Set.powersetCard ι n) : ⋀[K]^n V := |
| 36 | exteriorPower.ιMulti K n (fun i => b (π (Set.powersetCard.ofFinEmbEquiv.symm s i))) |
| 37 | |
| 38 | theorem permutedExteriorVector_eq_map (s : Set.powersetCard ι n) : |
| 39 | permutedExteriorVector n b π s = |
| 40 | exteriorPower.map n (b.equiv b π).toLinearMap (b.exteriorPower n s) := by |
| 41 | rw [exteriorPower.basis_apply, exteriorPower.ιMulti_family, exteriorPower.map_apply_ιMulti] |
| 42 | apply congrArg (exteriorPower.ιMulti K n) |
| 43 | funext i |
| 44 | simp only [Function.comp_apply, LinearEquiv.coe_coe, Module.Basis.equiv_apply] |
| 45 | |
| 46 | /-- Permuting independent wedge factors cannot annihilate their exterior product. -/ |
| 47 | theorem permutedExteriorVector_ne_zero (s : Set.powersetCard ι n) : |
| 48 | permutedExteriorVector n b π s ≠ 0 := by |
| 49 | rw [permutedExteriorVector_eq_map] |
| 50 | exact (map_ne_zero_iff _ (exteriorPower.map_injective_field (b.equiv b π).injective)).mpr |
| 51 | ((b.exteriorPower n).ne_zero s) |
| 52 | |
| 53 | /-- A permuted wedge has zero coordinates away from the permuted subset. -/ |
| 54 | theorem permutedExteriorVector_coordinate_zero (s t : Set.powersetCard ι n) |
| 55 | (hne : t ≠ exteriorIndexPermutation n π s) : |
| 56 | (b.exteriorPower n).repr (permutedExteriorVector n b π s) t = 0 := by |
| 57 | rw [exteriorPower.basis_repr_apply, permutedExteriorVector, |
| 58 | exteriorPower.ιMultiDual_apply_ιMulti] |
| 59 | obtain ⟨a, hat, han⟩ := (Set.powersetCard.exists_mem_notMem_iff_ne t |
| 60 | (exteriorIndexPermutation n π s)).mp hne |
| 61 | obtain ⟨j, rfl⟩ := (Set.powersetCard.mem_range_ofFinEmbEquiv_symm_iff_mem t a).mpr hat |
| 62 | apply Matrix.det_eq_zero_of_column_eq_zero j |
| 63 | intro i |
| 64 | have hi : π (Set.powersetCard.ofFinEmbEquiv.symm s i) ∈ |
| 65 | exteriorIndexPermutation n π s := by |
| 66 | change π (Set.powersetCard.ofFinEmbEquiv.symm s i) ∈ Set.powersetCard.map n π.toEmbedding s |
| 67 | rw [Set.powersetCard.mem_map_iff_mem_range] |
| 68 | exact ⟨_, (Set.powersetCard.mem_range_ofFinEmbEquiv_symm_iff_mem s _).mp ⟨i, rfl⟩, rfl⟩ |
| 69 | have hneq : Set.powersetCard.ofFinEmbEquiv.symm t j ≠ |
| 70 | π (Set.powersetCard.ofFinEmbEquiv.symm s i) := fun he => han (he ▸ hi) |
| 71 | simp only [Matrix.of_apply, Module.Basis.coord_apply, Module.Basis.repr_self, |
| 72 | Finsupp.single_eq_of_ne hneq] |
| 73 | |
| 74 | /-- The only remaining exterior coordinate is the multiplier of the image basis vector. -/ |
| 75 | theorem permutedExteriorVector_eq_smul (s : Set.powersetCard ι n) : |
| 76 | permutedExteriorVector n b π s = |
| 77 | (b.exteriorPower n).repr (permutedExteriorVector n b π s) |
| 78 | (exteriorIndexPermutation n π s) • b.exteriorPower n (exteriorIndexPermutation n π s) := by |
| 79 | apply (b.exteriorPower n).ext_elem |
| 80 | intro t |
| 81 | by_cases ht : t = exteriorIndexPermutation n π s |
| 82 | · subst t |
| 83 | simp |
| 84 | · rw [permutedExteriorVector_coordinate_zero n b π s t ht] |
| 85 | simp [Ne.symm ht] |
| 86 | |
| 87 | /-- Reordering only contributes a nonzero scalar on each exterior-basis line. -/ |
| 88 | theorem permutedExteriorVector_coordinate_ne_zero (s : Set.powersetCard ι n) : |
| 89 | (b.exteriorPower n).repr (permutedExteriorVector n b π s) |
| 90 | (exteriorIndexPermutation n π s) ≠ 0 := by |
| 91 | intro hz |
| 92 | apply permutedExteriorVector_ne_zero n b π s |
| 93 | rw [permutedExteriorVector_eq_smul n b π s, hz, zero_smul] |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.AlgebraicGeometry.ComplexMultiplication.ExteriorBasisPermutation.CM |