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 OAI.AlgebraicGeometry.AbelianVariety.CupGeneration |
| 2 | import OAI.AlgebraicGeometry.AbelianVariety.PureAverage |
| 3 | import Mathlib.LinearAlgebra.Basis.Prod |
| 4 | |
| 5 | /-! # Hodge Basis -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianVariety.HodgeBasis.Constructions.ExteriorCohomology |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open scoped TensorProduct Classical |
| 12 | |
| 13 | variable {U : Type*} [AddCommGroup U] [Module ℚ U] |
| 14 | |
| 15 | abbrev HodgeBasisIndex (H : ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure U) := |
| 16 | Fin (Module.finrank ℂ H.holomorphic) ⊕ Fin (Module.finrank ℂ H.antiholomorphic) |
| 17 | |
| 18 | def hodgeBasis (H : ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure U) : |
| 19 | Module.Basis (HodgeBasisIndex H) ℂ (ComplexMultiplication.WeightOne.CM.Complexification U) := by |
| 20 | let : FiniteDimensional ℚ U := H.finiteDimensional |
| 21 | exact ((Module.finBasis ℂ H.holomorphic).prod |
| 22 | (Module.finBasis ℂ H.antiholomorphic)).map |
| 23 | (Submodule.prodEquivOfIsCompl _ _ H.complementary) |
| 24 | |
| 25 | def hodgeBasisSign (H : ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure U) : HodgeBasisIndex H → Bool |
| 26 | | .inl _ => true |
| 27 | | .inr _ => false |
| 28 | |
| 29 | theorem hodgeBasis_mem_signSubspace (H : ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure U) (i : HodgeBasisIndex H) : |
| 30 | hodgeBasis H i ∈ H.signSubspace (hodgeBasisSign H i) := by |
| 31 | let : FiniteDimensional ℚ U := H.finiteDimensional |
| 32 | cases i with |
| 33 | | inl i => |
| 34 | change hodgeBasis H (.inl i) ∈ H.holomorphic |
| 35 | have he : hodgeBasis H (.inl i) = (Module.finBasis ℂ H.holomorphic i).val := by |
| 36 | simp [hodgeBasis, Module.Basis.map_apply, Submodule.coe_prodEquivOfIsCompl'] |
| 37 | rw [he] |
| 38 | exact (Module.finBasis ℂ H.holomorphic i).property |
| 39 | | inr i => |
| 40 | change hodgeBasis H (.inr i) ∈ H.antiholomorphic |
| 41 | have he : hodgeBasis H (.inr i) = (Module.finBasis ℂ H.antiholomorphic i).val := by |
| 42 | simp [hodgeBasis, Module.Basis.map_apply, Submodule.coe_prodEquivOfIsCompl'] |
| 43 | rw [he] |
| 44 | exact (Module.finBasis ℂ H.antiholomorphic i).property |
| 45 | |
| 46 | theorem signSubspace_eq_span_hodgeBasis (H : ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure U) (b : Bool) : |
| 47 | H.signSubspace b = Submodule.span ℂ ((hodgeBasis H) '' {i | hodgeBasisSign H i = b}) := by |
| 48 | apply le_antisymm |
| 49 | · intro x hx |
| 50 | let P := (H.signSubspace b).projection (H.signSubspace (!b)) (H.signSubspace_isCompl b) |
| 51 | have hp : P x = x := Submodule.projection_apply_of_mem_left (H.signSubspace_isCompl b) hx |
| 52 | have he := congrArg P ((hodgeBasis H).sum_repr x) |
| 53 | rw [hp] at he |
| 54 | rw [← he] |
| 55 | simp only [map_sum, map_smul] |
| 56 | apply Submodule.sum_mem |
| 57 | intro j _ |
| 58 | by_cases hj : hodgeBasisSign H j = b |
| 59 | · have hm : hodgeBasis H j ∈ H.signSubspace b := hj ▸ hodgeBasis_mem_signSubspace H j |
| 60 | rw [Submodule.projection_apply_of_mem_left (H.signSubspace_isCompl b) hm] |
| 61 | exact Submodule.smul_mem _ _ (Submodule.subset_span ⟨j, hj, rfl⟩) |
| 62 | · have hj' : hodgeBasisSign H j = !b := by |
| 63 | cases b <;> cases heq : hodgeBasisSign H j <;> simp_all |
| 64 | have hm : hodgeBasis H j ∈ H.signSubspace (!b) := hj' ▸ hodgeBasis_mem_signSubspace H j |
| 65 | rw [Submodule.projection_apply_of_mem_right (H.signSubspace_isCompl b) hm, smul_zero] |
| 66 | exact Submodule.zero_mem _ |
| 67 | · apply Submodule.span_le.mpr |
| 68 | rintro x ⟨j, hj, rfl⟩ |
| 69 | exact hj ▸ hodgeBasis_mem_signSubspace H j |
| 70 | |
| 71 | local instance (H : ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure U) : LinearOrder (HodgeBasisIndex H) := |
| 72 | linearOrderOfSTO WellOrderingRel |
| 73 | |
| 74 | def hodgeExteriorBasis (H : ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure U) (n : ℕ) : |
| 75 | Module.Basis (Set.powersetCard (HodgeBasisIndex H) n) ℂ |
| 76 | (ComplexMultiplication.WeightOne.CM.Complexification (⋀[ℚ]^n U)) := |
| 77 | ((hodgeBasis H).exteriorPower n).map (ComplexMultiplication.ExteriorBaseChange.CM.exteriorBaseChangeEquiv ℂ U n).symm |
| 78 | |
| 79 | theorem exteriorSignedSubspace_eq_hodgeBasisSpan (H : ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure U) |
| 80 | (n : ℕ) (w : ℤ) : |
| 81 | H.exteriorSignedSubspace n w = Submodule.span ℂ |
| 82 | ((hodgeExteriorBasis H n) '' {t | ComplexMultiplication.ExteriorTypedBasis.CM.exteriorBasisSignSum n (hodgeBasisSign H) t = w}) := by |
| 83 | unfold ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure.exteriorSignedSubspace |
| 84 | rw [ComplexMultiplication.ExteriorTypedBasis.CM.exteriorSignedSpan_eq_basisSpan n (hodgeBasis H) (hodgeBasisSign H) w H.signSubspace |
| 85 | (signSubspace_eq_span_hodgeBasis H)] |
| 86 | unfold ComplexMultiplication.ExteriorTypedBasis.CM.exteriorSignedBasisSpan |
| 87 | rw [Submodule.map_span, Set.image_image] |
| 88 | rfl |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.AbelianVariety.HodgeBasis.Constructions.ExteriorCohomology |