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.NumberTheory.ArithmeticGroups.Lattices.FrameMatrices |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.StabilizerRestriction |
| 3 | |
| 4 | /-! # Lattice Frame Action -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.LatticeFrameAction.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Matrix actions on lattice frames and integral change of basis. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | open Set _root_.Module _root_.MeasureTheory |
| 16 | |
| 17 | def matrixFrameAction |
| 18 | {E ι : Type*} [AddCommGroup E] [Module ℝ E] [Fintype ι] [DecidableEq ι] |
| 19 | (b : Basis ι ℝ E) : Matrix.GeneralLinearGroup ι ℝ ≃* (E ≃ₗ[ℝ] E) := |
| 20 | (Units.mapEquiv (Matrix.toLinAlgEquiv b).toMulEquiv).trans |
| 21 | (LinearMap.GeneralLinearGroup.generalLinearEquiv ℝ E) |
| 22 | |
| 23 | theorem matrixFrameAction_toLinearMap |
| 24 | {E ι : Type*} [AddCommGroup E] [Module ℝ E] [Fintype ι] [DecidableEq ι] |
| 25 | (b : Basis ι ℝ E) (g : Matrix.GeneralLinearGroup ι ℝ) : |
| 26 | (matrixFrameAction b g).toLinearMap = Matrix.toLin b b g.val := rfl |
| 27 | |
| 28 | theorem matrixFrameAction_det |
| 29 | {E ι : Type*} [AddCommGroup E] [Module ℝ E] [Fintype ι] [DecidableEq ι] |
| 30 | (b : Basis ι ℝ E) (g : Matrix.GeneralLinearGroup ι ℝ) : |
| 31 | (matrixFrameAction b g).toLinearMap.det = g.val.det := by |
| 32 | rw [matrixFrameAction_toLinearMap, ← LinearMap.det_toMatrix b, LinearMap.toMatrix_toLin] |
| 33 | |
| 34 | theorem matrixFrameAction_ofFrame |
| 35 | {E ι : Type*} [AddCommGroup E] [Module ℝ E] [Fintype ι] [DecidableEq ι] |
| 36 | (b : Basis ι ℝ E) (v : ι → E) |
| 37 | (hv : LinearIndependent ℝ v ∧ Submodule.span ℝ (Set.range v) = ⊤) (i : ι) : |
| 38 | matrixFrameAction b (FrameMatrices.Construction.matrixOfFrame b v hv) (b i) = v i := by |
| 39 | change (matrixFrameAction b (FrameMatrices.Construction.matrixOfFrame b v hv)).toLinearMap (b i) = v i |
| 40 | rw [matrixFrameAction_toLinearMap, FrameMatrices.Construction.matrixOfFrame_val, Basis.toMatrix_eq_toMatrix_constr, |
| 41 | Matrix.toLin_toMatrix, Basis.constr_basis] |
| 42 | |
| 43 | def matrixFrameIntegralAction |
| 44 | {E ι : Type*} [AddCommGroup E] [Module ℝ E] [Fintype ι] [DecidableEq ι] |
| 45 | (b : Basis ι ℝ E) : Matrix.GeneralLinearGroup ι ℝ →* (E ≃ₗ[ℤ] E) where |
| 46 | toFun g := (matrixFrameAction b g).restrictScalars ℤ |
| 47 | map_one' := by ext x; simp [matrixFrameAction] |
| 48 | map_mul' g h := by ext x; simp only [map_mul]; rfl |
| 49 | |
| 50 | theorem map_lattice_of_basis_images |
| 51 | {E ι : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 52 | [Fintype ι] (Λ Ω : Submodule ℤ E) |
| 53 | [DiscreteTopology Λ] [IsZLattice ℝ Λ] [DiscreteTopology Ω] [IsZLattice ℝ Ω] |
| 54 | (b : Basis ι ℤ Λ) (c : Basis ι ℤ Ω) (f : E →ₗ[ℝ] E) |
| 55 | (h : ∀ i, f (b i).val = (c i).val) : |
| 56 | Λ.map (f.restrictScalars ℤ) = Ω := by |
| 57 | rw [← b.ofZLatticeBasis_span ℝ, Submodule.map_span, ← c.ofZLatticeBasis_span ℝ] |
| 58 | congr 1 |
| 59 | rw [← Set.range_comp] |
| 60 | congr 1 |
| 61 | funext i |
| 62 | simpa only [Function.comp_apply, Basis.ofZLatticeBasis_apply, LinearMap.restrictScalars_apply] |
| 63 | using h i |
| 64 | |
| 65 | theorem linearEquiv_measurePreserving_of_abs_det_one |
| 66 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 67 | [MeasurableSpace E] [BorelSpace E] |
| 68 | (μ : Measure E) [Measure.IsAddHaarMeasure μ] (e : E ≃ₗ[ℝ] E) |
| 69 | (he : |e.toLinearMap.det| = 1) : MeasurePreserving e μ μ := by |
| 70 | have hd : e.toLinearMap.det ≠ 0 := by |
| 71 | intro h |
| 72 | simp only [h, abs_zero] at he |
| 73 | norm_num at he |
| 74 | refine ⟨e.continuous_of_finiteDimensional.measurable, ?_⟩ |
| 75 | change Measure.map e.toLinearMap μ = μ |
| 76 | rw [Measure.map_linearMap_addHaar_eq_smul_addHaar μ hd, abs_inv, he] |
| 77 | simp |
| 78 | |
| 79 | theorem covolume_comap_of_abs_det_one |
| 80 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 81 | [MeasurableSpace E] [BorelSpace E] |
| 82 | (Λ : Submodule ℤ E) [DiscreteTopology Λ] [IsZLattice ℝ Λ] |
| 83 | (μ : Measure E) [Measure.IsAddHaarMeasure μ] (e : E ≃ₗ[ℝ] E) |
| 84 | (he : |e.toLinearMap.det| = 1) : |
| 85 | ZLattice.covolume (ZLattice.comap ℝ Λ e.toLinearMap) μ = ZLattice.covolume Λ μ := by |
| 86 | exact ZLattice.covolume_comap Λ μ μ |
| 87 | (e := e.toContinuousLinearEquiv) (linearEquiv_measurePreserving_of_abs_det_one μ e he) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | /-! Compact matrix representatives for lattices with a uniform lower bound |
| 92 | on their nonzero vector lengths. -/ |
| 93 | |
| 94 | open scoped Classical |
| 95 | open Set _root_.Module _root_.MeasureTheory |
| 96 | |
| 97 | theorem exists_compact_matrix_lattice_representatives |
| 98 | {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] |
| 99 | [MeasurableSpace E] [BorelSpace E] |
| 100 | (Λ : Submodule ℤ E) [DiscreteTopology Λ] [IsZLattice ℝ Λ] |
| 101 | (b : Basis (Fin (finrank ℝ E)) ℤ Λ) |
| 102 | (μ : Measure E) [Measure.IsAddHaarMeasure μ] (ε : ℝ) (hε : 0 < ε) : |
| 103 | ∃ K : Set (Matrix.GeneralLinearGroup (Fin (finrank ℝ E)) ℝ), IsCompact K ∧ |
| 104 | ∀ g : Matrix.GeneralLinearGroup (Fin (finrank ℝ E)) ℝ, |
| 105 | |g.val.det| = 1 → |
| 106 | (∀ x ∈ Λ, x ≠ 0 → ε ≤ ‖matrixFrameAction (b.ofZLatticeBasis ℝ) g x‖) → |
| 107 | ∃ γ ∈ SubmoduleOrbit.Construction.submoduleImageStabilizer (matrixFrameIntegralAction (b.ofZLatticeBasis ℝ)) Λ, |
| 108 | g * γ ∈ K := by |
| 109 | let b₀ := b.ofZLatticeBasis ℝ |
| 110 | let ρ := matrixFrameIntegralAction b₀ |
| 111 | let c := ZLattice.covolume Λ μ |
| 112 | obtain ⟨K, hK, hrep⟩ := FrameMatrices.Construction.exists_compact_lattice_matrices μ b₀ ε c c hε |
| 113 | (ZLattice.covolume_pos Λ μ) |
| 114 | refine ⟨K, hK, ?_⟩ |
| 115 | intro g hg hgap |
| 116 | let e := (matrixFrameAction b₀ g).toContinuousLinearEquiv |
| 117 | let Ω := ZLattice.comap ℝ Λ e.symm.toLinearMap |
| 118 | have hedet : |e.symm.toLinearMap.det| = 1 := by |
| 119 | change |(matrixFrameAction b₀ g).symm.toLinearMap.det| = 1 |
| 120 | rw [LinearEquiv.det_coe_symm, abs_inv] |
| 121 | change |(matrixFrameAction b₀ g).toLinearMap.det|⁻¹ = 1 |
| 122 | rw [matrixFrameAction_det, hg, inv_one] |
| 123 | have hcov : ZLattice.covolume Ω μ = c := |
| 124 | covolume_comap_of_abs_det_one Λ μ e.symm.toLinearEquiv hedet |
| 125 | have hΩgap : ∀ y ∈ Ω, y ≠ 0 → ε ≤ ‖y‖ := by |
| 126 | intro y hy hy0 |
| 127 | have hx : e.symm y ∈ Λ := hy |
| 128 | have hx0 : e.symm y ≠ 0 := fun he => hy0 (e.symm.injective (he.trans (map_zero e.symm).symm)) |
| 129 | have h := hgap (e.symm y) hx hx0 |
| 130 | change ε ≤ ‖e (e.symm y)‖ at h |
| 131 | simpa only [e.apply_symm_apply] using h |
| 132 | obtain ⟨B, M, hMK, hM⟩ := hrep Ω hcov.ge hcov.le hΩgap |
| 133 | have hMact (i : Fin (finrank ℝ E)) : matrixFrameAction b₀ M (b i).val = (B i).val := by |
| 134 | rw [← b.ofZLatticeBasis_apply ℝ Λ i] |
| 135 | change (matrixFrameAction b₀ M).toLinearMap (b₀ i) = (B i).val |
| 136 | rw [matrixFrameAction_toLinearMap, hM, Basis.toMatrix_eq_toMatrix_constr, |
| 137 | Matrix.toLin_toMatrix, Basis.constr_basis] |
| 138 | have hMmap : Λ.map (ρ M).toLinearMap = Ω := |
| 139 | map_lattice_of_basis_images Λ Ω b B (matrixFrameAction b₀ M).toLinearMap hMact |
| 140 | have hgmap : Λ.map (ρ g).toLinearMap = Ω := by |
| 141 | ext y |
| 142 | constructor |
| 143 | · rintro ⟨x, hx, rfl⟩ |
| 144 | change e.symm (e x) ∈ Λ |
| 145 | rw [e.symm_apply_apply] |
| 146 | exact hx |
| 147 | · intro hy |
| 148 | refine ⟨e.symm y, hy, ?_⟩ |
| 149 | exact e.apply_symm_apply y |
| 150 | have hgcomp : (ρ g⁻¹).toLinearMap.comp (ρ g).toLinearMap = LinearMap.id := by |
| 151 | rw [map_inv] |
| 152 | ext x |
| 153 | exact (ρ g).symm_apply_apply x |
| 154 | have hinvmap : Ω.map (ρ g⁻¹).toLinearMap = Λ := by |
| 155 | rw [← hgmap, ← Submodule.map_comp, hgcomp, Submodule.map_id] |
| 156 | refine ⟨g⁻¹ * M, ?_, ?_⟩ |
| 157 | · change Λ.map (ρ (g⁻¹ * M)).toLinearMap = Λ |
| 158 | rw [map_mul] |
| 159 | change Λ.map ((ρ g⁻¹).toLinearMap.comp (ρ M).toLinearMap) = Λ |
| 160 | rw [Submodule.map_comp, hMmap, hinvmap] |
| 161 | · simpa only [← mul_assoc, mul_inv_cancel, one_mul] using hMK |
| 162 | |
| 163 | end |
| 164 | |
| 165 | end OAI.NumberTheory.ArithmeticGroups.Lattices.LatticeFrameAction.Construction |