fpvandoorn/carleson
Source indexedlemma · leanprover/lean4:v4.32.0
Grid.exists_unique_succ
Carleson.GridStructure · Carleson/GridStructure.lean:235 to 249
Source documentation
There exists a unique successor of each non-maximal cube.
Exact Lean statement
lemma exists_unique_succ (i : Grid X) (h : ¬IsMax i) :
∃! j ∈ Finset.univ, i < j ∧ ∀ j', i < j' → j ≤ j'Complete declaration
Lean source
Full Lean sourceLean 4
lemma exists_unique_succ (i : Grid X) (h : ¬IsMax i) : ∃! j ∈ Finset.univ, i < j ∧ ∀ j', i < j' → j ≤ j' := by simp_rw [Finset.mem_univ, true_and] classical let incs : Finset (Grid X) := { j | i < j } have ine : incs.Nonempty := by use topCube; simp_rw [incs, Finset.mem_filter_univ] exact lt_of_le_of_ne le_topCube (isMax_iff.not.mp h) obtain ⟨j, mj, hj⟩ := incs.exists_minimal ine simp only [incs, Finset.mem_filter_univ] at mj hj replace hj : ∀ (x : Grid X), i < x → j ≤ x := fun x mx ↦ by rcases lt_or_ge (s x) (s j) with c | c · refine (eq_of_le_of_not_lt (le_dyadic c.le mx.le mj.le) ?_).symm.le exact not_lt_iff_le_imp_ge.mpr (hj mx) · exact le_dyadic c mj.le mx.le use j, ⟨mj, hj⟩, fun k ⟨hk₁, hk₂⟩ ↦ le_antisymm (hk₂ j mj) (hj k hk₁)