Download data/lean/OAI/Geometry/ComplexBall/Levels.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.66 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/ComplexBall/Levels.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/ComplexBall/Levels.lean
-
curl -L -o Levels.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/ComplexBall/Levels.lean
6.66 kB
| import OAI.Geometry.ComplexBall.ArithmeticQuotientEquationsData | |
| import OAI.NumberTheory.ArithmeticGroups.Lattice | |
| /-! # Levels -/ | |
| namespace OAI.Geometry.ComplexBall.Levels.ArithmeticQuotient | |
| noncomputable section | |
| /-! The exact matrix principal levels in ArithmeticQuotient agree with the full-lattice | |
| conditions needed to apply the supplied TorsionFreeLevel proposition. -/ | |
| open scoped BigOperators Classical | |
| open OAI.Geometry.ComplexBall.ArithmeticQuotientEquationsData | |
| variable {E : Type*} [Field E] [NumberField E] [Algebra β E] | |
| [NumberField.IsCMField E] | |
| /-- The supplied first TorsionFreeLevel proposition, kept as an explicit input. -/ | |
| def TorsionFreeLevelsInput (E : Type*) [Field E] [NumberField E] [Algebra β E] | |
| [NumberField.IsCMField E] : Prop := | |
| β (b : E) (Ξ : Submodule β€ (ArithmeticQuotientEquationsData.Vec E)), NumberTheory.ArithmeticGroups.Data.CongruenceLevel.FullStableLattice Ξ β | |
| β Nβ : β, 0 < Nβ β | |
| β N : β, 3 β€ N β§ Nβ β£ N β§ | |
| β M : β, 0 < M β N β£ M β | |
| β g : ArithmeticQuotientEquationsData.Vec E ββ[E] ArithmeticQuotientEquationsData.Vec E, | |
| NumberTheory.ArithmeticGroups.Data.CongruenceLevel.PrincipalLevel b Ξ M g β | |
| β k : β, 0 < k β g ^ k = 1 β g = 1 | |
| omit [NumberField E] [Algebra β E] [NumberField.IsCMField E] in | |
| lemma integral_adjugate (g : ArithmeticQuotientEquationsData.Mat E) (hg : β i j, IsIntegral β€ (g i j)) : | |
| β i j, IsIntegral β€ (g.adjugate i j) := by | |
| let A : ArithmeticQuotientEquationsData.Mat (NumberField.RingOfIntegers E) := fun i j => β¨g i j, hg i jβ© | |
| have hm := (algebraMap (NumberField.RingOfIntegers E) E).map_adjugate A | |
| intro i j | |
| have hij := congrArg (fun M : ArithmeticQuotientEquationsData.Mat E => M i j) hm | |
| change (A.adjugate i j : E) = g.adjugate i j at hij | |
| rw [β hij] | |
| exact (A.adjugate i j).property | |
| omit [NumberField E] [Algebra β E] [NumberField.IsCMField E] in | |
| lemma integral_mulVec (g : ArithmeticQuotientEquationsData.Mat E) (hg : β i j, IsIntegral β€ (g i j)) | |
| (x : ArithmeticQuotientEquationsData.Vec E) (hx : β i, IsIntegral β€ (x i)) : | |
| β i, IsIntegral β€ (g.mulVec x i) := by | |
| intro i | |
| change IsIntegral β€ (β j, g i j * x j) | |
| exact IsIntegral.sum _ (fun j _ => (hg i j).mul (hx j)) | |
| omit [Algebra β E] in | |
| lemma principal_entries_integral (b : E) (N : β) (g : ArithmeticQuotientEquationsData.Mat E) | |
| (hg : ArithmeticQuotientEquationsData.principalLevel b N g) : β i j, IsIntegral β€ (g i j) := by | |
| obtain β¨B, hBβ© := hg.2.2 | |
| intro i j | |
| have hi : IsIntegral β€ ((1 : ArithmeticQuotientEquationsData.Mat E) i j) := by | |
| by_cases h : i = j | |
| Β· simpa only [Matrix.one_apply, ite_eq_left h] using (isIntegral_one : IsIntegral β€ (1 : E)) | |
| Β· simpa only [Matrix.one_apply, ite_eq_right h] using (isIntegral_zero : IsIntegral β€ (0 : E)) | |
| have hn : IsIntegral β€ (N : E) := isIntegral_natCast N | |
| rw [(sub_eq_iff_eq_add).mp (hB i j)] | |
| exact (hn.mul (B i j).property).add hi | |
| omit [Algebra β E] in | |
| lemma matrixPrincipalLevel_to_lattice (b : E) (N : β) (g : ArithmeticQuotientEquationsData.Mat E) | |
| (hg : ArithmeticQuotientEquationsData.principalLevel b N g) : | |
| NumberTheory.ArithmeticGroups.Data.CongruenceLevel.PrincipalLevel b (NumberTheory.ArithmeticGroups.Lattice.CongruenceLevel.standardLattice (E := E)) N | |
| (Matrix.SpecialLinearGroup.toLin' (β¨g, hg.1β© : ArithmeticQuotientEquationsData.SL E)) := by | |
| let s : ArithmeticQuotientEquationsData.SL E := β¨g, hg.1β© | |
| have hint := principal_entries_integral b N g hg | |
| refine β¨hg.2.1, ?_, ?_β© | |
| Β· intro x | |
| constructor | |
| Β· intro hx | |
| exact (NumberTheory.ArithmeticGroups.Lattice.CongruenceLevel.mem_standardLattice _).mpr | |
| (integral_mulVec g hint x ((NumberTheory.ArithmeticGroups.Lattice.CongruenceLevel.mem_standardLattice _).mp hx)) | |
| Β· intro hx | |
| have hinv := integral_mulVec g.adjugate (integral_adjugate g hint) | |
| (g.mulVec x) ((NumberTheory.ArithmeticGroups.Lattice.CongruenceLevel.mem_standardLattice _).mp hx) | |
| have hc : g.adjugate.mulVec (g.mulVec x) = x := by | |
| change Matrix.SpecialLinearGroup.toLin' sβ»ΒΉ | |
| (Matrix.SpecialLinearGroup.toLin' s x) = x | |
| rw [β LinearEquiv.mul_apply, β map_mul, inv_mul_cancel, map_one] | |
| rfl | |
| rw [hc] at hinv | |
| exact (NumberTheory.ArithmeticGroups.Lattice.CongruenceLevel.mem_standardLattice _).mpr hinv | |
| Β· intro x hx | |
| obtain β¨B, hBβ© := hg.2.2 | |
| let B' : ArithmeticQuotientEquationsData.Mat E := fun i j => (B i j : E) | |
| refine β¨B'.mulVec x, ?_, ?_β© | |
| Β· exact (NumberTheory.ArithmeticGroups.Lattice.CongruenceLevel.mem_standardLattice _).mpr | |
| (integral_mulVec B' (fun i j => (B i j).property) x | |
| ((NumberTheory.ArithmeticGroups.Lattice.CongruenceLevel.mem_standardLattice _).mp hx)) | |
| Β· have hm : g - 1 = (N : E) β’ B' := by | |
| ext i j | |
| exact hB i j | |
| change g.mulVec x - x = (N : β€) β’ B'.mulVec x | |
| calc | |
| g.mulVec x - x = (g - 1).mulVec x := by rw [Matrix.sub_mulVec, Matrix.one_mulVec] | |
| _ = ((N : E) β’ B').mulVec x := by rw [hm] | |
| _ = (N : β€) β’ B'.mulVec x := by | |
| rw [Matrix.smul_mulVec] | |
| ext i | |
| simp [smul_eq_mul] | |
| /-- Arbitrarily deep torsion-free levels in the exact matrix formulation. -/ | |
| theorem matrix_levels_torsion_free (hTorsionFreeLevel : TorsionFreeLevelsInput E) | |
| (b : E) (Nβ : β) (hNβ : 0 < Nβ) : | |
| β N : β, 0 < N β§ Nβ β£ N β§ | |
| β g : ArithmeticQuotientEquationsData.Mat E, ArithmeticQuotientEquationsData.principalLevel b N g β | |
| β k : β, 0 < k β g ^ k = 1 β g = 1 := by | |
| obtain β¨N, hN, hdiv, htβ© := hTorsionFreeLevel b (NumberTheory.ArithmeticGroups.Lattice.CongruenceLevel.standardLattice (E := E)) | |
| NumberTheory.ArithmeticGroups.Lattice.CongruenceLevel.standardLattice_full_stable Nβ hNβ | |
| refine β¨N, by omega, hdiv, ?_β© | |
| intro g hg k hk hpow | |
| let s : ArithmeticQuotientEquationsData.SL E := β¨g, hg.1β© | |
| have hspow : s ^ k = 1 := Subtype.ext hpow | |
| have hlpow : (Matrix.SpecialLinearGroup.toLin' s) ^ k = 1 := by | |
| simpa only [map_pow, map_one] using | |
| congrArg Matrix.SpecialLinearGroup.toLin' hspow | |
| have he := ht N (by omega) (dvd_refl N) (Matrix.SpecialLinearGroup.toLin' s) | |
| (matrixPrincipalLevel_to_lattice b N g hg) k hk hlpow | |
| have hs : s = 1 := Matrix.SpecialLinearGroup.toLin'_injective (by simpa using he) | |
| exact congrArg (fun a : ArithmeticQuotientEquationsData.SL E => (a : ArithmeticQuotientEquationsData.Mat E)) hs | |
| end | |
| end OAI.Geometry.ComplexBall.Levels.ArithmeticQuotient | |