feat(hott/init/types): add 'sum' notation

This commit is contained in:
Leonardo de Moura 2014-12-20 11:05:13 -08:00
parent 6843fe3a8b
commit d75ef7a07a

17
hott/init/types/sum.hlean Normal file
View 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