refactor(library): remove unnecessary :max
hack in notation declarations
This hack is not needed anymore. Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
40fb66bf07
commit
2e9141b7e1
4 changed files with 9 additions and 13 deletions
|
@ -26,8 +26,8 @@ namespace prod
|
||||||
|
|
||||||
definition pr1 (p : prod A B) := rec (λ x y, x) p
|
definition pr1 (p : prod A B) := rec (λ x y, x) p
|
||||||
definition pr2 (p : prod A B) := rec (λ x y, y) p
|
definition pr2 (p : prod A B) := rec (λ x y, y) p
|
||||||
notation `pr₁`:max := pr1
|
notation `pr₁` := pr1
|
||||||
notation `pr₂`:max := pr2
|
notation `pr₂` := pr2
|
||||||
|
|
||||||
variables (a : A) (b : B)
|
variables (a : A) (b : B)
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ open decidable
|
||||||
inductive unit : Type :=
|
inductive unit : Type :=
|
||||||
star : unit
|
star : unit
|
||||||
namespace unit
|
namespace unit
|
||||||
notation `⋆`:max := star
|
notation `⋆` := star
|
||||||
|
|
||||||
-- remove duplication?
|
-- remove duplication?
|
||||||
protected theorem equal (a b : unit) : a = b :=
|
protected theorem equal (a b : unit) : a = b :=
|
||||||
|
|
|
@ -40,9 +40,6 @@ precedence `▸`:75 -- infixr
|
||||||
|
|
||||||
-- ### types and type constructors
|
-- ### types and type constructors
|
||||||
|
|
||||||
precedence `ℕ`:max
|
|
||||||
precedence `ℤ`:max
|
|
||||||
|
|
||||||
precedence `⊎`:25 -- infixr
|
precedence `⊎`:25 -- infixr
|
||||||
precedence `×`:30 -- infixr
|
precedence `×`:30 -- infixr
|
||||||
|
|
||||||
|
@ -69,7 +66,6 @@ precedence `||`:65 -- infixl
|
||||||
-- ### set operations
|
-- ### set operations
|
||||||
|
|
||||||
precedence `∈`:50
|
precedence `∈`:50
|
||||||
precedence `∅`:max
|
|
||||||
precedence `∩`:70
|
precedence `∩`:70
|
||||||
precedence `∪`:65
|
precedence `∪`:65
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
-- Released under Apache 2.0 license as described in the file LICENSE.
|
-- Released under Apache 2.0 license as described in the file LICENSE.
|
||||||
-- Authors: Leonardo de Moura
|
-- Authors: Leonardo de Moura
|
||||||
|
|
||||||
notation `Prop`:max := Type.{0}
|
notation `Prop` := Type.{0}
|
||||||
notation `Type'`:max := Type.{_+1}
|
notation `Type'` := Type.{_+1}
|
||||||
notation `Type₊`:max := Type.{_+1}
|
notation `Type₊` := Type.{_+1}
|
||||||
notation `Type₁`:max := Type.{1}
|
notation `Type₁` := Type.{1}
|
||||||
notation `Type₂`:max := Type.{2}
|
notation `Type₂` := Type.{2}
|
||||||
notation `Type₃`:max := Type.{3}
|
notation `Type₃` := Type.{3}
|
||||||
|
|
Loading…
Reference in a new issue