fpvandoorn/carleson
Source indexedlemma · leanprover/lean4:v4.32.0
Grid.exists_supercube
Carleson.GridStructure · Carleson/GridStructure.lean:295 to 305
Mathematical statement
Exact Lean statement
lemma exists_supercube (l : ℤ) (h : l ∈ Icc (s i) S) : ∃ j, s j = l ∧ i ≤ j
Complete declaration
Lean source
Full Lean sourceLean 4
lemma exists_supercube (l : ℤ) (h : l ∈ Icc (s i) S) : ∃ j, s j = l ∧ i ≤ j := by obtain ⟨lb, ub⟩ := h rcases ub.eq_or_lt with ub | ub; · exact ⟨topCube, by simpa [ub] using! s_topCube, le_topCube⟩ obtain ⟨x, hx⟩ := i.nonempty have bound_i : -S ≤ s i ∧ s i ≤ S := scale_mem_Icc have ts := Grid_subset_biUnion (X := X) (i := topCube) l (by rw [s_topCube, mem_Ico]; omega) have := mem_of_mem_of_subset hx ((le_topCube (i := i)).1.trans ts) push _ ∈ _ at this obtain ⟨j, (sj : s j = l), mj⟩ := this; use j, sj exact le_of_mem_of_mem (by lia) hx mj