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 more
  • Loading branch information
TwoFX committed Feb 25, 2024
commit 520f8022c32ae805a7efc143af62aaa515171096
5 changes: 5 additions & 0 deletions Mathlib/Logic/Small/Set.lean
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,22 @@

universe u v w

theorem small_subset {α : Type v} {s t : Set α} (hts : t ⊆ s) [Small.{u} s] : Small.{u} t :=

Check failure on line 15 in Mathlib/Logic/Small/Set.lean

View workflow job for this annotation

GitHub Actions / Build

'small_subset' has already been declared
let f : t → s := fun x => ⟨x, hts x.prop⟩
@small_of_injective _ _ _ f fun _ _ hxy => Subtype.ext (Subtype.mk.inj hxy)
#align small_subset small_subset

Check failure on line 18 in Mathlib/Logic/Small/Set.lean

View workflow job for this annotation

GitHub Actions / Build

small_subset has already been aligned (to small_subset)

instance small_range {α : Type v} {β : Type w} (f : α → β) [Small.{u} α] :

Check failure on line 20 in Mathlib/Logic/Small/Set.lean

View workflow job for this annotation

GitHub Actions / Build

'small_range' has already been declared
Small.{u} (Set.range f) :=
small_of_surjective Set.surjective_onto_range
#align small_range small_range

Check failure on line 23 in Mathlib/Logic/Small/Set.lean

View workflow job for this annotation

GitHub Actions / Build

small_range has already been aligned (to small_range)

instance small_image {α : Type v} {β : Type w} (f : α → β) (S : Set α) [Small.{u} S] :

Check failure on line 25 in Mathlib/Logic/Small/Set.lean

View workflow job for this annotation

GitHub Actions / Build

'small_image' has already been declared
Small.{u} (f '' S) :=
small_of_surjective Set.surjective_onto_image
#align small_image small_image

Check failure on line 28 in Mathlib/Logic/Small/Set.lean

View workflow job for this annotation

GitHub Actions / Build

small_image has already been aligned (to small_image)

instance small_union {α : Type v} (s t : Set α) [Small.{u} s] [Small.{u} t] :

Check failure on line 30 in Mathlib/Logic/Small/Set.lean

View workflow job for this annotation

GitHub Actions / Build

'small_union' has already been declared
Small.{u} (s ∪ t : Set α) := by
rw [← Subtype.range_val (s := s), ← Subtype.range_val (s := t), ← Set.Sum.elim_range]
infer_instance
Expand Down
Loading