Intuitionistic negation.
Moduledec-0.0.6Haskell2010
Data.Type.Dec
- 2 types
- 1 class
- 10 values
- Packagedec-0.0.6
- Exports13
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceDec.hs
Types
3 declarationsInstances3Eq, Ord, Boring
Class of decidable types.
Law
a should be a Proposition, i.e. the Yes answers should be unique.
Note: We'd want to have decidable equality :~: here too,
but that seems to be a deep dive into singletons.
Neg combinators
4 declarationsWe can negate anything twice.
Double-negation elimination is inverse of toNegNeg and generally impossible.
Triple negation can be reduced to a single one.
Weak contradiction.
A variant of contraposition.
Dec combinators
4 declarationsFlip Dec branches.