module import Mathlib.MeasureTheory.Constructions.Polish.EmbeddingReal import Mathlib.Tactic.Linter.Style import TauCeti.NumberTheory.NumberField.Countable import TauCeti.NumberTheory.NumberField.RingOfIntegers.BoundedConjugates public import New.Spanning.Unfolding.Setup import Lib.Adelic.Adeles.SemilocalProducts import Lib.General.NumberTheory.SUnitsAndClassNumber /-! # The box Let `S : Filling E 𝔰` be admissible data for a CM field `E` and a shape `𝔰`, with `M = S.M` the level and `b = S.b`. Consider the tuples of complex numbers, one for each infinite place, modulo `M π“ž_E`, and fix a measurable set `D` of representatives, each coordinate of each point of `D` having modulus at most `b ^ 26`. An archimedean point `y` is reduced if the entries above the diagonal of its triangular matrix `S.ratTriangle y` lie in `D`. It is boxed if it is reduced and lies in the cut at every place `v`, that is, `besselLength (y v) ≀ b ^ (6 n + 2)`, where `n = 𝔰.n = 𝔰.Ο± + 1`. Notions from other files: * `frameVector z a`: for `z` in `𝔰.G₁`, the image of the `a`-th frame vector under `z⁻¹`; `orthoFrame z` is the result of the Gram–Schmidt process on these vectors. * `gramSchmidtMatrix z`: the unitriangular matrix of the coefficients of `frameVector z` in `orthoFrame z`; `S.ratTriangle` reads it in the rational frame. * `besselLength z`: the infimum of `β€–s * zβ€– + 1` over `s` in the Bessel subgroup. * `frameBox r`: the points at which all frame vectors have length at most `r`. ## Main definitions and results * `New.Filling.exists_isResidueDomain`: such a set `D` exists. * `New.Filling.boxedPoints`: the boxed points. * `New.Filling.mul_mem_boxedPoints_iff`: invariance under the unipotent elements fixing the frame. * `New.Filling.mem_frameBox_of_mem_boxedPoints`: at a boxed point the frame vectors have length at most `b ^ (37 n)`. -/ @[expose] public section open NumberField Matrix Set ENNReal namespace New.Filling /-- Let `V` be an abelian group and a standard Borel space with measurable translations. Let `L` be a countable subgroup and `B` a measurable set that meets every coset of `L` in a finite nonempty set. Then `B` contains a measurable set of representatives of the cosets. -/ lemma _root_.New.exists_measurableSet_existsUnique_add_mem {V : Type*} [AddCommGroup V] [MeasurableSpace V] [StandardBorelSpace V] [MeasurableAdd V] (L : AddSubgroup V) [Countable L] {B : Set V} (hB : MeasurableSet B) (h_nonempty : βˆ€ w : V, βˆƒ l : L, l.val + w ∈ B) (h_finite : βˆ€ w : V, {l : L | l.val + w ∈ B}.Finite) : βˆƒ D βŠ† B, MeasurableSet D ∧ βˆ€ w : V, βˆƒ! l : L, l.val + w ∈ D := by -- In each coset take the point of `B` at which a measurable injection `f` to `ℝ` is least. let f : V β†’ ℝ := MeasureTheory.embeddingReal V have hf : MeasurableEmbedding f := MeasureTheory.measurableEmbedding_embeddingReal V let least (l : L) : Set V := {w : V | l.val + w ∈ B β†’ f w ≀ f (l.val + w)} have h_meas (l : L) : MeasurableSet (least l) := .imp (measurable_const_add _ hB) (measurableSet_le hf.measurable (hf.measurable.comp (measurable_const_add _))) refine ⟨B ∩ β‹‚ l : L, least l, inter_subset_left, hB.inter (.iInter h_meas), fun w ↦ ?_⟩ obtain ⟨lβ‚€, hlβ‚€, h_least⟩ := exists_min_image _ (fun l : L ↦ f (l.val + w)) (h_finite w) (h_nonempty w) refine ⟨lβ‚€, ⟨hlβ‚€, mem_iInter.2 fun l hl ↦ ?_⟩, ?_⟩ Β· -- `lβ‚€ + w` is least in its coset. rw [← add_assoc, ← AddSubgroup.coe_add] at hl ⊒ exact h_least (l + lβ‚€) hl Β· -- Any least point of the coset has the same value of `f`. rintro l ⟨hl, hl_least⟩ have h_least_l := mem_iInter.1 hl_least (lβ‚€ - l) simp only [least, mem_ofPred_eq, AddSubgroup.coe_sub, ← add_assoc, sub_add_cancel] at h_least_l have h_eq : l.val + w = lβ‚€.val + w := hf.injective ((h_least_l hlβ‚€).antisymm (h_least l hl)) exact Subtype.ext (add_right_cancel h_eq) /-- Few integral vectors have bounded conjugates. If `f` maps `A` injectively to vectors in `E^ΞΉ` whose entries are algebraic integers of absolute value at most `r` under the embedding `Ξ¦ v` of every infinite place `v` (chosen by the instance `PlaceEmbedding E`), then `A` has at most `(1 + 2 r) ^ (2 |ΞΉ| m)` elements, where `m = Core.numInfPlaces E` is the number of infinite places. -/ lemma encard_le_of_isIntegral_norm_le {Ξ± ΞΉ E : Type*} [Fintype ΞΉ] {A : Set Ξ±} [Field E] [NumberField E] [PlaceEmbedding E] {r : ℝ} (f : Ξ± β†’ ΞΉ β†’ E) (hf : βˆ€ a ∈ A, βˆ€ i : ΞΉ, IsIntegral β„€ (f a i) ∧ βˆ€ v : InfinitePlace E, β€–Ξ¦ v (f a i)β€– ≀ r) (h_inj : InjOn f A) : A.encard ≀ ENNReal.ofReal ((1 + 2 * r) ^ (Fintype.card ΞΉ * Core.numInfPlaces E * 2)) := by classical let S : Set (ΞΉ β†’ π“ž E) := {v | βˆ€ i (w : InfinitePlace E), w (v i) ≀ r} have hS : βˆ€ v ∈ S, βˆ€ i (w : InfinitePlace E), w (v i) ≀ r := fun _ hv ↦ hv let g : Ξ± β†’ ΞΉ β†’ π“ž E := fun a i ↦ if ha : a ∈ A then ⟨f a i, (hf a ha i).1⟩ else 0 have h_maps : MapsTo g A S := fun a ha i w ↦ by simp only [g, ha, ↓reduceDIte] rw [← PlaceEmbedding.norm_apply] exact (hf a ha i).2 w have h_inj_g : InjOn g A := fun a ha b hb h_eq ↦ h_inj ha hb <| funext fun i ↦ by simpa [g, ha, hb] using congrArg Subtype.val (congrFun h_eq i) have hfin : S.Finite := NumberField.RingOfIntegers.finite_of_forall_infinitePlace_le hS have h_enc : A.encard ≀ S.ncard := (Set.encard_le_encard_of_injOn h_maps h_inj_g).trans_eq hfin.cast_ncard_eq.symm have h_real : (S.ncard : ℝ) ≀ (1 + 2 * r) ^ (Fintype.card ΞΉ * Core.numInfPlaces E * 2) := by simpa only [Nat.card_eq_fintype_card, Core.numInfPlaces, mul_comm, mul_left_comm, mul_assoc] using NumberField.RingOfIntegers.ncard_le_one_add_two_mul_pow hS exact (ENat.toENNReal_le.mpr h_enc).trans <| by simpa [ENat.toENNReal_coe, ENNReal.ofReal_natCast] using ENNReal.ofReal_le_ofReal h_real variable {E : Type} [Field E] [CMType E] {𝔰 : Shape} {S : Filling E 𝔰} {D : Set (InfinitePlace E β†’ β„‚)} /-- A tuple of complex numbers, one for each infinite place, lies in `S.levelMultiples`, the multiples of the level `M = S.M`, if and only if it consists of the images of `M x` for an integer `x` of `E`. -/ lemma mem_levelMultiples {w : InfinitePlace E β†’ β„‚} : w ∈ S.levelMultiples ↔ βˆƒ x : π“ž E, (fun v : InfinitePlace E ↦ Ξ¦ v (S.M * (x : E))) = w := .rfl /-- For any real radius `r` and any tuple `w` over the infinite places, only finitely many `l` in `S.levelMultiples` make all coordinates of `l + w` have modulus at most `r`. Here `S.levelMultiples` consists of the tuples `M x` for integers `x` of `E`, where `M = S.M`. -/ lemma finite_setOf_levelMultiples_add_le {r : ℝ} (w : InfinitePlace E β†’ β„‚) : {l : S.levelMultiples | βˆ€ v : InfinitePlace E, β€–(l.val + w) vβ€– ≀ r}.Finite := by have h_fin := (Embeddings.finite_of_norm_le E β„‚ (r + β€–wβ€–)).image (fun z : E ↦ fun v : InfinitePlace E ↦ Ξ¦ v z) refine (h_fin.preimage Subtype.val_injective.injOn).subset ?_ intro l hl obtain ⟨x, hx⟩ := mem_levelMultiples.1 l.property refine ⟨S.M * (x : E), ⟨(isIntegral_natCast _).mul x.isIntegral_coe, fun Ο† ↦ ?_⟩, hx⟩ rw [← PlaceEmbedding.norm_mk_eq, congrFun hx (InfinitePlace.mk Ο†), ← add_sub_cancel_right (l.val _) (w _)] exact norm_sub_le_of_le (hl _) (norm_le_pi_norm w _) /-- For an admissible filling datum `S` of shape `𝔰` over a CM field `E` and any tuple `w` of complex numbers over the infinite places of `E`, some `l` in `S.levelMultiples` makes every coordinate of `l + w` have modulus at most `S.b ^ 26`. -/ private lemma exists_levelMultiples_add_norm_le [S.IsAdmissible] (w : InfinitePlace E β†’ β„‚) : βˆƒ l : S.levelMultiples, βˆ€ v : InfinitePlace E, β€–(l.val + w) vβ€– ≀ S.b ^ 26 := by -- Every tuple is within `M (2 f) ^ 2 |Ο–| ≀ b ^ 26` of a tuple in `S.levelMultiples`, where -- `M = S.M` is the level, `Ο– = S.deltaE` and `f = numInfPlaces E`. have hb : 1000 ≀ S.b := S.thousand_le_b have h_ne : S.deltaE β‰  0 := mod_cast S.deltaE_ne_zero have h_different : S.deltaE ∈ differentIdeal β„€ (π“ž E) := by simp [S.span_deltaE] obtain ⟨a, ha_int, ha_near⟩ := exists_principal_near_of_mem_differentIdeal h_ne h_different (fun v ↦ -w v / S.M) 0 rw [zero_sub, neg_mem_iff, algebraMap_mem_Γ”] at ha_int refine ⟨⟨fun v ↦ Ξ¦ v (S.M * a), mem_levelMultiples.2 ⟨⟨a, ha_int⟩, rfl⟩⟩, fun v ↦ ?_⟩ have hM_ne : (S.M : β„‚) β‰  0 := by simp [Nat.Prime.ne_zero] have h_places : 2 * (numInfPlaces E : ℝ) ≀ S.b := by linarith [S.numInfPlaces_le_div] calc β€–Ξ¦ v (S.M * a) + w vβ€– = β€–(S.M : β„‚)β€– * β€–-w v / S.M - Ξ¦ v aβ€– := by rw [← norm_mul, ← norm_neg, map_mul, map_natCast] congr 1 field _ ≀ S.b ^ 23 * (S.b ^ 2 * S.b) := by grw [ha_near, RCLike.norm_natCast, M_le_b_pow, IsAdmissible.norm_deltaE_le, h_places] _ = S.b ^ 26 := by ring variable (S) in /-- Let `S : Filling E 𝔰`, the data of the filling theorem over `E`, satisfy the standing hypotheses `S.IsAdmissible`, which bound the data by powers of `b = S.b`. Then there is a set `D` with `S.IsResidueDomain D`: a measurable set of representatives for the tuples of complex numbers, one for each infinite place, modulo `M π“ž_E`. -/ lemma exists_isResidueDomain [S.IsAdmissible] : βˆƒ D : Set (InfinitePlace E β†’ β„‚), S.IsResidueDomain D := by have : Countable (π“ž E) := RingOfIntegers.coe_injective.countable have : Countable S.levelMultiples := (countable_range _).to_subtype let B : Set (InfinitePlace E β†’ β„‚) := {w | βˆ€ v, β€–w vβ€– ≀ S.b ^ 26} -- Every tuple lies within `S.b ^ 26` of some element of `S.levelMultiples`. have h_nonempty (w : InfinitePlace E β†’ β„‚) : βˆƒ l : S.levelMultiples, l.val + w ∈ B := exists_levelMultiples_add_norm_le w -- Only finitely many integers have bounded conjugates. have h_finite (w : InfinitePlace E β†’ β„‚) : {l : S.levelMultiples | l.val + w ∈ B}.Finite := finite_setOf_levelMultiples_add_le w have hB : MeasurableSet B := by measurability obtain ⟨D, hDB, hD_meas, hD⟩ := exists_measurableSet_existsUnique_add_mem S.levelMultiples hB h_nonempty h_finite exact ⟨D, { measurableSet := hD_meas, norm_le := fun w v hw ↦ hDB hw v, existsUnique_add_mem := hD }⟩ /-- For any set `D` of tuples over the infinite places, let `S.reducedPoints D` be the set of points whose matrix has all its entries above the diagonal in `D`. This set is left invariant by the fixer `besselFixer` of the frame, the elements fixing each frame vector: if every `s v` lies in `besselFixer`, then `s * y` is in `S.reducedPoints D` if and only if `y` is. -/ lemma mul_mem_reducedPoints_iff {s y : InfinitePlace E β†’ 𝔰.G₁} (hs : βˆ€ v : InfinitePlace E, s v ∈ besselFixer) : s * y ∈ S.reducedPoints D ↔ y ∈ S.reducedPoints D := by have h_triangle : S.ratTriangle (s * y) = S.ratTriangle y := by funext a b v simp only [ratTriangle, gramSchmidtMatrix, orthoFrame, Pi.mul_apply, frameVector_mul_of_mem_besselFixer (hs v)] simp only [reducedPoints, mem_ofPred_eq, h_triangle] variable (S) in /-- The chosen set of representatives modulo the level lattice at the infinite places. -/ noncomputable def residueDomain : Set (InfinitePlace E β†’ β„‚) := Classical.epsilon S.IsResidueDomain /-- The standard residue domain of an admissible structure is a residue domain. -/ lemma isResidueDomain_residueDomain [S.IsAdmissible] : S.IsResidueDomain S.residueDomain := Classical.epsilon_spec S.exists_isResidueDomain variable (S) in /-- The boxed points: the archimedean points `y` that are reduced for a chosen set satisfying `New.Filling.IsResidueDomain` (one exists for admissible data) and lie in the cut at every infinite place `v`, that is, `besselLength (y v) ≀ S.b ^ (6 * 𝔰.n + 2)`. -/ def boxedPoints : Set (InfinitePlace E β†’ 𝔰.G₁) := {y ∈ S.reducedPoints S.residueDomain | βˆ€ v : InfinitePlace E, InCut (y v) S.b} /-- A boxed point `y` lies in the cut at every infinite place `v`, that is, `besselLength (y v) ≀ S.b ^ (6 * 𝔰.n + 2)`. -/ lemma inCut_of_mem_boxedPoints {y : InfinitePlace E β†’ 𝔰.G₁} (hy : y ∈ S.boxedPoints) (v : InfinitePlace E) : InCut (y v) S.b := hy.2 v /-- If `S.reducedIndicator`, the indicator of the reduced points for the chosen set of representatives, is nonzero at `y` and `y` lies in the cut at every infinite place (`besselLength (y v) ≀ S.b ^ (6 * 𝔰.n + 2)`), then `y` is boxed. -/ lemma mem_boxedPoints_of_reducedIndicator_ne_zero {y : InfinitePlace E β†’ 𝔰.G₁} (hy : S.reducedIndicator y β‰  0) (h_cut : βˆ€ v : InfinitePlace E, InCut (y v) S.b) : y ∈ S.boxedPoints := ⟨mem_of_indicator_ne_zero hy, h_cut⟩ /-- The group `New.Shape.Form.besselU0` consists of the elements of the Bessel unipotent group `besselU` that fix each frame vector. If every component of `u` lies in `besselU0`, then `u * y` is boxed if and only if `y` is. -/ lemma mul_mem_boxedPoints_iff {y u : InfinitePlace E β†’ 𝔰.G₁} (hu : βˆ€ v : InfinitePlace E, u v ∈ besselU0) : u * y ∈ S.boxedPoints ↔ y ∈ S.boxedPoints := by have h_besselLength (v : InfinitePlace E) : besselLength (u v * y v) = besselLength (y v) := by obtain ⟨hu_unipotent, -⟩ := Subgroup.mem_inf.1 (hu v) exact besselLength_besselS_mul (mem_partialUnitriangularGroup_of_mem_besselU hu_unipotent) simp [boxedPoints, mul_mem_reducedPoints_iff fun v ↦ mem_besselFixer_of_mem_besselU0 (hu v), h_besselLength] /-- On and below the diagonal, at every infinite place, the matrix `S.ratTriangle y` (the triangular matrix of the frame at `y`, read in the rational frame) agrees with the identity matrix. -/ lemma ratTriangle_eq_one_apply_of_le (y : InfinitePlace E β†’ 𝔰.G₁) {row col : Fin (𝔰.Ο± + 1)} (h_col_le_row : col ≀ row) (v : InfinitePlace E) : S.ratTriangle y row col v = (1 : Matrix (Fin (𝔰.Ο± + 1)) (Fin (𝔰.Ο± + 1)) β„‚) row col := by rw [ratTriangle, gramSchmidtMatrix, RealPlace.unitriangularMatrix, of_apply, dite_eq_right h_col_le_row.not_gt, Matrix.one_apply] split_ifs with h_diagonal Β· rw [h_diagonal, div_self (S.basisScale_ne_zero v _), mul_one] Β· rw [zero_mul] /-- If `D` is a set of representatives modulo `S.M π“ž_E` as in `New.Filling.IsResidueDomain`, in particular measurable, then the set of points whose triangular matrix has its entries above the diagonal in `D` is measurable. -/ lemma IsResidueDomain.measurableSet_reducedPoints (hD : S.IsResidueDomain D) : MeasurableSet (S.reducedPoints D) := by have h_entry (a b : Fin (𝔰.Ο± + 1)) : Measurable fun y : InfinitePlace E β†’ 𝔰.G₁ ↦ S.ratTriangle y a b := measurable_pi_iff.2 fun v ↦ ((measurable_gramSchmidtMatrix a b).comp (measurable_pi_apply v)).mul_const _ simp only [reducedPoints, ofPred_forall] exact .iInter fun a ↦ .iInter fun b ↦ .iInter fun _ ↦ h_entry a b hD.measurableSet /-- At an infinite place `v` the scale `S.basisScale v` of the normalised basis is `ΞΊ_v ^ (Ο± - a) / √N` at the `a`-th frame vector `𝔰.besselFrame a`. Here `Ο± = 𝔰.Ο±` is the number of hyperbolic planes, `N = S.N` is the prime of the data, and `ΞΊ_v = S.realM v` is the real number `S.M * Ξ¦ v S.deltaE / (2 Ο€ i)`. For admissible `S` one has `1 ≀ |ΞΊ_v|`, so the scale does not grow along the frame: for `a ≀ b` the scale at `b` divided by the scale at `a` has modulus at most one. -/ lemma norm_basisScale_div_le_one [S.IsAdmissible] (v : InfinitePlace E) {a b : Fin (𝔰.Ο± + 1)} (hab : a ≀ b) : β€–S.basisScale v (𝔰.besselFrame b) / S.basisScale v (𝔰.besselFrame a)β€– ≀ 1 := by simp only [basisScale_besselFrame, norm_div, norm_pow, Complex.norm_real, Real.norm_eq_abs] have h_pow : |S.realM v| ^ (𝔰.Ο± - (b : β„•)) ≀ |S.realM v| ^ (𝔰.Ο± - (a : β„•)) := pow_le_pow_rightβ‚€ (IsAdmissible.one_le_abs_realM v) (Nat.sub_le_sub_left hab 𝔰.Ο±) refine div_le_one_of_leβ‚€ ?_ (by positivity) gcongr /-- Let `S` be admissible and `D` a measurable set of representatives modulo `S.M π“ž_E` whose points have modulus at most `S.b ^ 26` at every place. If `y` is reduced for `D`, that is, the entries above the diagonal of `S.ratTriangle y` lie in `D`, then all entries of `gramSchmidtMatrix (y v)` have modulus at most `S.b ^ 26`. -/ lemma IsResidueDomain.norm_gramSchmidtMatrix_le [S.IsAdmissible] (hD : S.IsResidueDomain D) {y : InfinitePlace E β†’ 𝔰.G₁} (hy : y ∈ S.reducedPoints D) (v : InfinitePlace E) (a b : Fin (𝔰.Ο± + 1)) : β€–gramSchmidtMatrix (y v) a bβ€– ≀ S.b ^ 26 := by have h_scale : gramSchmidtMatrix (y v) a b = S.ratTriangle y a b v * (S.basisScale v (𝔰.besselFrame b) / S.basisScale v (𝔰.besselFrame a)) := by rw [ratTriangle, mul_assoc, div_mul_div_cancelβ‚€ (S.basisScale_ne_zero v _), div_self (S.basisScale_ne_zero v _), mul_one] rw [h_scale] obtain hab | rfl | hba : a < b ∨ a = b ∨ b < a := lt_trichotomy a b Β· grw [norm_mul, norm_basisScale_div_le_one v hab.le, mul_one, hD.norm_le _ v (hy a b hab)] Β· simp [ratTriangle_eq_one_apply_of_le y le_rfl, one_le_powβ‚€ S.one_le_b] Β· simp [ratTriangle_eq_one_apply_of_le y hba.le, hba.ne', pow_nonneg (zero_le_one.trans S.one_le_b)] /-- Let `S` be admissible, let `D` be a measurable set of representatives modulo `S.M π“ž_E`, the points of `D` having modulus at most `S.b ^ 26` at every place, and let `y` be reduced for `D`: the entries of the triangular matrix `S.ratTriangle y` above the diagonal lie in `D`. Then at every infinite place `v` the point `y v` is in the `frameBox` of radius `S.b ^ 27 * besselLength (y v)`. -/ lemma IsResidueDomain.mem_frameBox [S.IsAdmissible] (hD : S.IsResidueDomain D) {y : InfinitePlace E β†’ 𝔰.G₁} (hy : y ∈ S.reducedPoints D) (v : InfinitePlace E) : y v ∈ frameBox (S.b ^ 27 * besselLength (y v)) := by -- A frame vector is a sum of `Ο± + 1 ≀ b` orthogonal vectors, each no longer than the Bessel -- length, with coefficients of modulus at most `b ^ 26`. intro l have hb_pos : 0 < S.b := zero_lt_one.trans_le S.one_le_b have h_nonneg : 0 ≀ besselLength (y v) := besselLength_nonneg (y v) calc β€–frameVector (y v) lβ€– _ = β€–βˆ‘ a : Fin (𝔰.Ο± + 1), gramSchmidtMatrix (y v) a l β€’ orthoFrame (y v) aβ€– := by rw [← frameVector_eq_sum_orthoFrame] _ ≀ βˆ‘ _ : Fin (𝔰.Ο± + 1), S.b ^ 26 * besselLength (y v) := norm_sum_le_of_le _ fun a _ ↦ by grw [norm_smul, hD.norm_gramSchmidtMatrix_le hy, (norm_orthoFrame_mem_Icc (y v) a le_rfl).2] _ ≀ S.b ^ 27 * besselLength (y v) := by simpa [pow_succ', mul_assoc] using mul_le_mul_of_nonneg_right S.succ_le_b (by positivity) /-- Let `S` be admissible, that is, satisfy the standing hypotheses `New.Filling.IsAdmissible`, `n = 𝔰.n`, and let `y` be boxed: the entries above the diagonal of `S.ratTriangle y` lie in the set of representatives modulo `S.M π“ž_E` chosen in `S.boxedPoints`, and `besselLength (y v) ≀ S.b ^ (6 n + 2)` at every infinite place `v`, where `besselLength g` is the infimum of `β€–s * gβ€– + 1` over `s` in the Bessel subgroup `besselS` of `𝔰.G₁`. Then `y v` lies in the `frameBox` of radius `S.frameBoxRadius = S.b ^ (37 n)`. -/ lemma mem_frameBox_of_mem_boxedPoints [S.IsAdmissible] {y : InfinitePlace E β†’ 𝔰.G₁} (hy : y ∈ S.boxedPoints) (v : InfinitePlace E) : y v ∈ frameBox S.frameBoxRadius := by have hy_reduced : y ∈ S.reducedPoints S.residueDomain := hy.left have hy_cut : besselLength (y v) ≀ S.b ^ (6 * 𝔰.n + 2) := inCut_of_mem_boxedPoints hy v intro (a : Fin (𝔰.Ο± + 1)) show β€–frameVector (y v) aβ€– ≀ S.frameBoxRadius have hb : 1 ≀ S.b := S.one_le_b -- The norm is at most `b ^ 27 * b ^ (6 n + 2) ≀ b ^ (37 n)`. grw [isResidueDomain_residueDomain.mem_frameBox hy_reduced v a, hy_cut, frameBoxRadius, ← pow_add] exact pow_le_pow_rightβ‚€ hb (by lia) /-- For admissible data the set of boxed points is measurable. -/ lemma measurableSet_boxedPoints [S.IsAdmissible] : MeasurableSet S.boxedPoints := by change MeasurableSet (S.reducedPoints S.residueDomain ∩ {y : InfinitePlace E β†’ 𝔰.G₁ | βˆ€ v, InCut (y v) S.b}) refine isResidueDomain_residueDomain.measurableSet_reducedPoints.inter ?_ change MeasurableSet {y : InfinitePlace E β†’ 𝔰.G₁ | βˆ€ v, besselLength (y v) ≀ S.b ^ (6 * 𝔰.n + 2)} measurability end New.Filling