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.LatticeFrameAction |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.CovolumeTransport |
| 3 | |
| 4 | /-! # Mahler Frame Of -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.MahlerFrameOf.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Orientation correction gives Mahler representatives in the special |
| 13 | linear group itself. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | open Set _root_.Module _root_.MeasureTheory |
| 17 | |
| 18 | theorem special_linear_compact_representatives_of_general |
| 19 | {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 20 | (Γ : Subgroup (Matrix.GeneralLinearGroup ι ℝ)) |
| 21 | (hΓ : ∀ γ ∈ Γ, |γ.val.det| = 1) |
| 22 | (P : Matrix.SpecialLinearGroup ι ℝ → Prop) |
| 23 | (K : Set (Matrix.GeneralLinearGroup ι ℝ)) (hK : IsCompact K) |
| 24 | (hcover : ∀ g, P g → ∃ γ ∈ Γ, g.toGL * γ ∈ K) : |
| 25 | ∃ C : Set (Matrix.SpecialLinearGroup ι ℝ), IsCompact C ∧ |
| 26 | ∀ g, P g → ∃ γ ∈ Γ.comap Matrix.SpecialLinearGroup.toGL, g * γ ∈ C := by |
| 27 | have hcorrect : ∃ D : Set (Matrix.GeneralLinearGroup ι ℝ), IsCompact D ∧ |
| 28 | ∀ g, P g → ∃ γ ∈ Γ, γ.val.det = 1 ∧ g.toGL * γ ∈ D := by |
| 29 | by_cases hall : ∀ γ ∈ Γ, γ.val.det = 1 |
| 30 | · refine ⟨K, hK, fun g hg => ?_⟩ |
| 31 | obtain ⟨γ, hγ, hγK⟩ := hcover g hg |
| 32 | exact ⟨γ, hγ, hall γ hγ, hγK⟩ |
| 33 | · push Not at hall |
| 34 | obtain ⟨τ, hτ, hτne⟩ := hall |
| 35 | have hτdet : τ.val.det = -1 := (eq_or_eq_neg_of_abs_eq (hΓ τ hτ)).resolve_left hτne |
| 36 | refine ⟨K ∪ (fun M => M * τ) '' K, |
| 37 | hK.union (hK.image (continuous_id.mul continuous_const)), fun g hg => ?_⟩ |
| 38 | obtain ⟨γ, hγ, hγK⟩ := hcover g hg |
| 39 | rcases eq_or_eq_neg_of_abs_eq (hΓ γ hγ) with hγdet | hγdet |
| 40 | · exact ⟨γ, hγ, hγdet, Or.inl hγK⟩ |
| 41 | · refine ⟨γ * τ, Γ.mul_mem hγ hτ, ?_, Or.inr ?_⟩ |
| 42 | · rw [Matrix.GeneralLinearGroup.coe_mul, Matrix.det_mul, hγdet, hτdet] |
| 43 | norm_num |
| 44 | · exact ⟨g.toGL * γ, hγK, mul_assoc _ _ _⟩ |
| 45 | obtain ⟨D, hD, hDcover⟩ := hcorrect |
| 46 | refine ⟨Matrix.SpecialLinearGroup.toGL ⁻¹' D, |
| 47 | Matrix.SpecialLinearGroup.isClosedEmbedding_toGL.isCompact_preimage hD, ?_⟩ |
| 48 | intro g hg |
| 49 | obtain ⟨γ, hγ, hγdet, hγD⟩ := hDcover g hg |
| 50 | let δ : Matrix.SpecialLinearGroup ι ℝ := ⟨γ.val, hγdet⟩ |
| 51 | have hδ : δ.toGL = γ := Units.ext rfl |
| 52 | refine ⟨δ, ?_, ?_⟩ |
| 53 | · change δ.toGL ∈ Γ |
| 54 | rwa [hδ] |
| 55 | · change (g * δ).toGL ∈ D |
| 56 | simpa only [map_mul, hδ] using hγD |
| 57 | |
| 58 | theorem exists_compact_special_lattice_representatives |
| 59 | {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] |
| 60 | [MeasurableSpace E] [BorelSpace E] |
| 61 | (Λ : Submodule ℤ E) [DiscreteTopology Λ] [IsZLattice ℝ Λ] |
| 62 | (b : Basis (Fin (finrank ℝ E)) ℤ Λ) |
| 63 | (μ : Measure E) [Measure.IsAddHaarMeasure μ] (ε : ℝ) (hε : 0 < ε) : |
| 64 | ∃ K : Set (Matrix.SpecialLinearGroup (Fin (finrank ℝ E)) ℝ), IsCompact K ∧ |
| 65 | ∀ g : Matrix.SpecialLinearGroup (Fin (finrank ℝ E)) ℝ, |
| 66 | (∀ x ∈ Λ, x ≠ 0 → ε ≤ ‖LatticeFrameAction.Construction.matrixFrameAction (b.ofZLatticeBasis ℝ) g.toGL x‖) → |
| 67 | ∃ γ ∈ (SubmoduleOrbit.Construction.submoduleImageStabilizer (LatticeFrameAction.Construction.matrixFrameIntegralAction (b.ofZLatticeBasis ℝ)) Λ).comap |
| 68 | Matrix.SpecialLinearGroup.toGL, g * γ ∈ K := by |
| 69 | obtain ⟨K, hK, hrep⟩ := LatticeFrameAction.Construction.exists_compact_matrix_lattice_representatives Λ b μ ε hε |
| 70 | apply special_linear_compact_representatives_of_general |
| 71 | (SubmoduleOrbit.Construction.submoduleImageStabilizer (LatticeFrameAction.Construction.matrixFrameIntegralAction (b.ofZLatticeBasis ℝ)) Λ) |
| 72 | (fun _ hγ => CovolumeTransport.Construction.matrix_lattice_stabilizer_abs_det_one Λ μ (b.ofZLatticeBasis ℝ) hγ) |
| 73 | _ K hK |
| 74 | intro g hgap |
| 75 | apply hrep g.toGL _ hgap |
| 76 | change |g.val.det| = 1 |
| 77 | rw [g.property, abs_one] |
| 78 | |
| 79 | end |
| 80 | |
| 81 | section |
| 82 | |
| 83 | /-! Mahler compactness in the quotient of the special linear group by |
| 84 | the stabilizer of a full integral lattice. -/ |
| 85 | |
| 86 | open scoped Classical |
| 87 | open Set _root_.Module _root_.MeasureTheory |
| 88 | |
| 89 | theorem continuous_matrixFrameAction |
| 90 | {E ι : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 91 | [Fintype ι] [DecidableEq ι] (b : Basis ι ℝ E) (x : E) : |
| 92 | Continuous (fun g : Matrix.GeneralLinearGroup ι ℝ => LatticeFrameAction.Construction.matrixFrameAction b g x) := by |
| 93 | have he (g : Matrix.GeneralLinearGroup ι ℝ) : |
| 94 | LatticeFrameAction.Construction.matrixFrameAction b g x = b.equivFun.symm (g.val.mulVec (b.repr x)) := by |
| 95 | apply b.equivFun.injective |
| 96 | rw [b.equivFun.apply_symm_apply] |
| 97 | rw [Basis.equivFun_apply] |
| 98 | change (b.repr ((LatticeFrameAction.Construction.matrixFrameAction b g).toLinearMap x) : ι → ℝ) = _ |
| 99 | rw [LatticeFrameAction.Construction.matrixFrameAction_toLinearMap] |
| 100 | exact Matrix.repr_toLin b b g.val x |
| 101 | simp_rw [he] |
| 102 | exact b.equivFun.symm.continuous_of_finiteDimensional.comp |
| 103 | (Units.continuous_val.matrix_mulVec continuous_const) |
| 104 | |
| 105 | theorem compact_quotient_image_of_representatives |
| 106 | {H : Type*} [Group H] [TopologicalSpace H] |
| 107 | (Γ : Subgroup H) (S K : Set H) (hS : IsClosed S) (hK : IsCompact K) |
| 108 | (hsat : ∀ g ∈ S, ∀ γ ∈ Γ, g * γ ∈ S) |
| 109 | (hrep : ∀ g ∈ S, ∃ γ ∈ Γ, g * γ ∈ K) : |
| 110 | IsCompact ((QuotientGroup.mk : H → H ⧸ Γ) '' S) := by |
| 111 | have hpre : (QuotientGroup.mk : H → H ⧸ Γ) ⁻¹' |
| 112 | ((QuotientGroup.mk : H → H ⧸ Γ) '' S) = S := by |
| 113 | ext g |
| 114 | constructor |
| 115 | · rintro ⟨x, hx, he⟩ |
| 116 | have hγ : x⁻¹ * g ∈ Γ := QuotientGroup.eq.mp he |
| 117 | simpa only [mul_inv_cancel_left] using hsat x hx (x⁻¹ * g) hγ |
| 118 | · intro hg |
| 119 | exact ⟨g, hg, rfl⟩ |
| 120 | have hclosed : IsClosed ((QuotientGroup.mk : H → H ⧸ Γ) '' S) := by |
| 121 | rw [← (QuotientGroup.isQuotientMap_mk Γ).isClosed_preimage, hpre] |
| 122 | exact hS |
| 123 | apply (hK.image (QuotientGroup.continuous_mk (N := Γ))).of_isClosed_subset hclosed |
| 124 | rintro _ ⟨g, hg, rfl⟩ |
| 125 | obtain ⟨γ, hγ, hγK⟩ := hrep g hg |
| 126 | exact ⟨g * γ, hγK, QuotientGroup.mk_mul_of_mem g hγ⟩ |
| 127 | |
| 128 | theorem mahler_compactness |
| 129 | {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] |
| 130 | [MeasurableSpace E] [BorelSpace E] |
| 131 | (Λ : Submodule ℤ E) [DiscreteTopology Λ] [IsZLattice ℝ Λ] |
| 132 | (b : Basis (Fin (finrank ℝ E)) ℤ Λ) |
| 133 | (μ : Measure E) [Measure.IsAddHaarMeasure μ] (ε : ℝ) (hε : 0 < ε) : |
| 134 | let Γ := (SubmoduleOrbit.Construction.submoduleImageStabilizer (LatticeFrameAction.Construction.matrixFrameIntegralAction (b.ofZLatticeBasis ℝ)) Λ).comap |
| 135 | Matrix.SpecialLinearGroup.toGL |
| 136 | IsCompact ((QuotientGroup.mk : Matrix.SpecialLinearGroup (Fin (finrank ℝ E)) ℝ → |
| 137 | Matrix.SpecialLinearGroup (Fin (finrank ℝ E)) ℝ ⧸ Γ) '' |
| 138 | {g | ∀ x ∈ Λ, x ≠ 0 → ε ≤ ‖LatticeFrameAction.Construction.matrixFrameAction (b.ofZLatticeBasis ℝ) g.toGL x‖}) := by |
| 139 | let b₀ := b.ofZLatticeBasis ℝ |
| 140 | let Γ := (SubmoduleOrbit.Construction.submoduleImageStabilizer (LatticeFrameAction.Construction.matrixFrameIntegralAction b₀) Λ).comap |
| 141 | Matrix.SpecialLinearGroup.toGL |
| 142 | let S : Set (Matrix.SpecialLinearGroup (Fin (finrank ℝ E)) ℝ) := |
| 143 | {g | ∀ x ∈ Λ, x ≠ 0 → ε ≤ ‖LatticeFrameAction.Construction.matrixFrameAction b₀ g.toGL x‖} |
| 144 | obtain ⟨K, hK, hrep⟩ := exists_compact_special_lattice_representatives Λ b μ ε hε |
| 145 | apply compact_quotient_image_of_representatives Γ S K _ hK _ hrep |
| 146 | · simp only [S, Set.ofPred_forall] |
| 147 | apply isClosed_iInter |
| 148 | intro x |
| 149 | apply isClosed_iInter |
| 150 | intro _ |
| 151 | apply isClosed_iInter |
| 152 | intro _ |
| 153 | exact isClosed_le continuous_const |
| 154 | (((continuous_matrixFrameAction b₀ x).comp Matrix.SpecialLinearGroup.continuous_toGL).norm) |
| 155 | · intro g hg γ hγ x hx hx0 |
| 156 | have hγmem : LatticeFrameAction.Construction.matrixFrameAction b₀ γ.toGL x ∈ Λ := |
| 157 | (StabilizerRestriction.Construction.submoduleImageStabilizer_mem_iff (LatticeFrameAction.Construction.matrixFrameIntegralAction b₀) Λ γ.toGL).mp hγ x |>.mpr hx |
| 158 | have hγ0 : LatticeFrameAction.Construction.matrixFrameAction b₀ γ.toGL x ≠ 0 := by |
| 159 | intro he |
| 160 | exact hx0 ((LatticeFrameAction.Construction.matrixFrameAction b₀ γ.toGL).injective (he.trans (map_zero _).symm)) |
| 161 | have h := hg (LatticeFrameAction.Construction.matrixFrameAction b₀ γ.toGL x) hγmem hγ0 |
| 162 | simpa only [map_mul, LinearEquiv.mul_apply] using h |
| 163 | |
| 164 | end |
| 165 | |
| 166 | /-! Discreteness of a full lattice stabilizer in matrix coordinates. -/ |
| 167 | |
| 168 | open scoped Classical |
| 169 | open Set _root_.Module |
| 170 | |
| 171 | theorem matrix_frame_stabilizer_discrete |
| 172 | {E ι : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 173 | [Fintype ι] [DecidableEq ι] |
| 174 | (Λ : Submodule ℤ E) [DiscreteTopology Λ] [IsZLattice ℝ Λ] (b : Basis ι ℤ Λ) : |
| 175 | DiscreteTopology (SubmoduleOrbit.Construction.submoduleImageStabilizer (LatticeFrameAction.Construction.matrixFrameIntegralAction (b.ofZLatticeBasis ℝ)) Λ) := by |
| 176 | let b₀ := b.ofZLatticeBasis ℝ |
| 177 | let Γ := SubmoduleOrbit.Construction.submoduleImageStabilizer (LatticeFrameAction.Construction.matrixFrameIntegralAction b₀) Λ |
| 178 | let f : Γ → (ι → Λ) := fun g i => ⟨LatticeFrameAction.Construction.matrixFrameAction b₀ g.val (b i).val, by |
| 179 | exact (StabilizerRestriction.Construction.submoduleImageStabilizer_mem_iff (LatticeFrameAction.Construction.matrixFrameIntegralAction b₀) Λ g.val).mp |
| 180 | g.property (b i).val |>.mpr (b i).property⟩ |
| 181 | apply DiscreteTopology.of_continuous_injective (f := f) |
| 182 | · apply continuous_pi |
| 183 | intro i |
| 184 | exact ((continuous_matrixFrameAction b₀ (b i).val).comp continuous_subtype_val).subtype_mk _ |
| 185 | · intro g h he |
| 186 | apply Subtype.ext |
| 187 | apply (LatticeFrameAction.Construction.matrixFrameAction b₀).injective |
| 188 | apply b₀.ext' |
| 189 | intro i |
| 190 | have hi := congrArg (fun u : ι → Λ => (u i).val) he |
| 191 | simpa only [f, b₀, Basis.ofZLatticeBasis_apply] using hi |
| 192 | |
| 193 | theorem special_frame_stabilizer_discrete |
| 194 | {E ι : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 195 | [Fintype ι] [DecidableEq ι] |
| 196 | (Λ : Submodule ℤ E) [DiscreteTopology Λ] [IsZLattice ℝ Λ] (b : Basis ι ℤ Λ) : |
| 197 | DiscreteTopology |
| 198 | ((SubmoduleOrbit.Construction.submoduleImageStabilizer (LatticeFrameAction.Construction.matrixFrameIntegralAction (b.ofZLatticeBasis ℝ)) Λ).comap |
| 199 | Matrix.SpecialLinearGroup.toGL) := by |
| 200 | let Γ := SubmoduleOrbit.Construction.submoduleImageStabilizer (LatticeFrameAction.Construction.matrixFrameIntegralAction (b.ofZLatticeBasis ℝ)) Λ |
| 201 | let : DiscreteTopology Γ := matrix_frame_stabilizer_discrete Λ b |
| 202 | exact DiscreteTopology.preimage_of_continuous_injective (Γ : Set (Matrix.GeneralLinearGroup ι ℝ)) |
| 203 | Matrix.SpecialLinearGroup.continuous_toGL Matrix.SpecialLinearGroup.toGL_injective |
| 204 | |
| 205 | end |
| 206 | |
| 207 | end OAI.NumberTheory.ArithmeticGroups.Lattices.MahlerFrameOf.Construction |