refactor(library/data/set/map.lean): put map into set namespace
This is needed to repair a conflict in the tutorial, but it is the right thing to do anyhow. The type "map A B" should not be a top-level identifier.
This commit is contained in:
parent
17f2c240e1
commit
feb385748f
1 changed files with 4 additions and 1 deletions
|
@ -6,7 +6,9 @@ Author: Jeremy Avigad, Andrew Zipperer
|
|||
Functions between subsets of finite types, bundled with the domain and range.
|
||||
-/
|
||||
import data.set.function
|
||||
open eq.ops set
|
||||
open eq.ops
|
||||
|
||||
namespace set
|
||||
|
||||
record map {X Y : Type} (a : set X) (b : set Y) := (func : X → Y) (mapsto : maps_to func a b)
|
||||
attribute map.func [coercion]
|
||||
|
@ -164,3 +166,4 @@ and.intro
|
|||
(surjective_of_right_inverse (and.right H))
|
||||
|
||||
end map
|
||||
end set
|
||||
|
|
Loading…
Reference in a new issue