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:
Leonardo de Moura 2014-10-20 18:43:56 -07:00
parent 40fb66bf07
commit 2e9141b7e1
4 changed files with 9 additions and 13 deletions

View file

@ -26,8 +26,8 @@ namespace prod
definition pr1 (p : prod A B) := rec (λ x y, x) p
definition pr2 (p : prod A B) := rec (λ x y, y) p
notation `pr₁`:max := pr1
notation `pr₂`:max := pr2
notation `pr₁` := pr1
notation `pr₂` := pr2
variables (a : A) (b : B)

View file

@ -7,7 +7,7 @@ open decidable
inductive unit : Type :=
star : unit
namespace unit
notation `⋆`:max := star
notation `⋆` := star
-- remove duplication?
protected theorem equal (a b : unit) : a = b :=

View file

@ -40,9 +40,6 @@ precedence `▸`:75 -- infixr
-- ### types and type constructors
precedence ``:max
precedence ``:max
precedence `⊎`:25 -- infixr
precedence `×`:30 -- infixr
@ -69,7 +66,6 @@ precedence `||`:65 -- infixl
-- ### set operations
precedence `∈`:50
precedence `∅`:max
precedence `∩`:70
precedence ``:65

View file

@ -2,9 +2,9 @@
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Leonardo de Moura
notation `Prop`:max := Type.{0}
notation `Type'`:max := Type.{_+1}
notation `Type₊`:max := Type.{_+1}
notation `Type₁`:max := Type.{1}
notation `Type₂`:max := Type.{2}
notation `Type₃`:max := Type.{3}
notation `Prop` := Type.{0}
notation `Type'` := Type.{_+1}
notation `Type₊` := Type.{_+1}
notation `Type₁` := Type.{1}
notation `Type₂` := Type.{2}
notation `Type₃` := Type.{3}