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:
Jeremy Avigad 2015-06-07 11:43:23 +10:00 committed by Leonardo de Moura
parent 17f2c240e1
commit feb385748f

View file

@ -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