Skip to content

Commit

Permalink
feat: Cardinal.mk_insert_le (#11749)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben-VandeVelde committed Mar 29, 2024
1 parent 3cecb82 commit e6b2fea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Mathlib/SetTheory/Cardinal/Basic.lean
Expand Up @@ -2104,6 +2104,11 @@ theorem mk_insert {α : Type u} {s : Set α} {a : α} (h : a ∉ s) :
simpa
#align cardinal.mk_insert Cardinal.mk_insert

theorem mk_insert_le {α : Type u} {s : Set α} {a : α} : #(insert a s : Set α) ≤ #s + 1 := by
by_cases h : a ∈ s
· simp only [insert_eq_of_mem h, self_le_add_right]
· rw [mk_insert h]

theorem mk_sum_compl {α} (s : Set α) : #s + #(sᶜ : Set α) = #α :=
mk_congr (Equiv.Set.sumCompl s)
#align cardinal.mk_sum_compl Cardinal.mk_sum_compl
Expand Down

0 comments on commit e6b2fea

Please sign in to comment.