feat(hott/init/types): add 'sum' notation
This commit is contained in:
parent
6843fe3a8b
commit
d75ef7a07a
1 changed files with 17 additions and 0 deletions
17
hott/init/types/sum.hlean
Normal file
17
hott/init/types/sum.hlean
Normal file
|
@ -0,0 +1,17 @@
|
|||
/-
|
||||
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
|
||||
Released under Apache 2.0 license as described in the file LICENSE.
|
||||
|
||||
Author: Leonardo de Moura, Jeremy Avigad
|
||||
-/
|
||||
prelude
|
||||
import init.datatypes init.reserved_notation
|
||||
|
||||
namespace sum
|
||||
notation A ⊎ B := sum A B
|
||||
notation A + B := sum A B
|
||||
namespace low_precedence_plus
|
||||
reserve infixr `+`:25 -- conflicts with notation for addition
|
||||
infixr `+` := sum
|
||||
end low_precedence_plus
|
||||
end sum
|
Loading…
Add table
Reference in a new issue