Skip to main content
fpvandoorn/carleson
Source indexedlemma Ā· leanprover/lean4:v4.32.0

stackSize_le_one_of_pairwiseDisjoint

Carleson.TileStructure Ā· Carleson/TileStructure.lean:459 to 475

Mathematical statement

Exact Lean statement

lemma stackSize_le_one_of_pairwiseDisjoint {C : Set (š”“ X)} {x : X}
    (h : C.PairwiseDisjoint (fun p ↦ (š“˜ p : Set X))) : stackSize C x ≤ 1

Complete declaration

Lean source

Canonical source
Full Lean sourceLean 4
lemma stackSize_le_one_of_pairwiseDisjoint {C : Set (š”“ X)} {x : X}    (h : C.PairwiseDisjoint (fun p ↦ (š“˜ p : Set X))) : stackSize C x ≤ 1 := by  by_cases hx : ∃ p ∈ C, x ∈ (š“˜ p : Set X)  Ā· rcases hx with ⟨p, pC, hp⟩    rw [stackSize, Finset.sum_eq_single_of_mem p]; rotate_left    Ā· simp [pC]    Ā· intro b hb hbp      simp only [indicator_apply_eq_zero, Pi.one_apply, one_ne_zero, imp_false]      simp only [Finset.mem_filter_univ] at hb      exact disjoint_left.1 (h pC hb hbp.symm) hp    simp [hp]  Ā· have : stackSize C x = 0 := by      apply Finset.sum_eq_zero (fun p hp ↦ ?_)      simp only [Finset.mem_filter_univ, not_exists, not_and,        indicator_apply_eq_zero, Pi.one_apply, one_ne_zero, imp_false] at hp hx ⊢      exact hx _ hp    linarith