Skip to content

Commit

Permalink
refactor(logic/encodable/small): migrate to countable (#15557)
Browse files Browse the repository at this point in the history
  • Loading branch information
urkud committed Jul 20, 2022
1 parent 0c79da0 commit 6fed037
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -3,7 +3,7 @@ Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import logic.encodable.basic
import data.countable.basic
import logic.small

/-!
Expand All @@ -15,5 +15,5 @@ That is, any encodable type is equivalent to a type in any universe.
universes w v

@[priority 100]
instance small_of_encodable (α : Type v) [encodable α] : small.{w} α :=
small_of_injective encodable.encode_injective
instance small_of_countable (α : Type v) [countable α] : small.{w} α :=
let ⟨f, hf⟩ := exists_injective_nat α in small_of_injective hf
2 changes: 1 addition & 1 deletion src/logic/small.lean
Expand Up @@ -94,7 +94,7 @@ begin
end

/-!
We don't define `small_of_fintype` or `small_of_encodable` in this file,
We don't define `small_of_fintype` or `small_of_countable` in this file,
to keep imports to `logic` to a minimum.
-/

Expand Down

0 comments on commit 6fed037

Please sign in to comment.