feat(init/reserved_notation): product binds to the right
This commit is contained in:
parent
b0abea78b6
commit
9fe8e09f30
2 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ attribute [constructor]
|
|||
definition pair := @prod.mk
|
||||
notation A × B := prod A B
|
||||
-- notation for n-ary tuples
|
||||
notation `(` h `, ` t:(foldl `, ` (e r, prod.mk r e) h) `)` := t
|
||||
notation `(` h `, ` t:(foldr `, ` (e r, prod.mk e r)) `)` := prod.mk h t
|
||||
|
||||
namespace prod
|
||||
notation `pr₁` := pr1
|
||||
|
|
|
|||
|
|
@ -170,8 +170,8 @@ reserve infixr ` ▹ `:75
|
|||
|
||||
/- types and type constructors -/
|
||||
|
||||
reserve infixl ` ⊎ `:25
|
||||
reserve infixl ` × `:30
|
||||
reserve infixr ` ⊕ `:25
|
||||
reserve infixr ` × `:30
|
||||
|
||||
/- arithmetic operations -/
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue