Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat: small_iUnion and small_sUnion #10921

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
Move
  • Loading branch information
TwoFX committed Feb 25, 2024
commit 50a5ec76700f5c7b69c2749ef89c64604bdf8bdf
5 changes: 5 additions & 0 deletions Mathlib/Logic/Small/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,9 @@ instance small_image {α : Type v} {β : Type w} (f : α → β) (S : Set α) [S
small_of_surjective Set.surjective_onto_image
#align small_image small_image

instance small_union {α : Type v} (s t : Set α) [Small.{u} s] [Small.{u} t] :
Small.{u} (s ∪ t : Set α) := by
rw [← Subtype.range_val (s := s), ← Subtype.range_val (s := t), ← Set.Sum.elim_range]
infer_instance
TwoFX marked this conversation as resolved.
Show resolved Hide resolved

end
Loading