Debian Codegraph @

src/Relation/Nullary.agda

raw
1 ------------------------------------------------------------------------
2 -- The Agda standard library
3 --
4 -- Operations on nullary relations (like negation and decidability)
5 ------------------------------------------------------------------------
6
7 -- Some operations on/properties of nullary relations, i.e. sets.
8
9 {-# OPTIONS --cubical-compatible --safe #-}
10
11 module Relation.Nullary where
12
13 open import Agda.Builtin.Equality using (_≡_)
14 open import Agda.Builtin.Maybe using (Maybe)
15 open import Level using (Level)
16
17 private
18 variable
19 p : Level
20 P : Set p
21
22
23 ------------------------------------------------------------------------
24 -- Re-exports
25
26 open import Relation.Nullary.Recomputable public using (Recomputable)
27 open import Relation.Nullary.Negation.Core public
28 open import Relation.Nullary.Reflects public hiding (recompute; recompute-constant)
29 open import Relation.Nullary.Decidable.Core public
30 open import Relation.Nullary.Irrelevant public
31
32 ------------------------------------------------------------------------
33 -- Weak decidability
34 -- `nothing` is 'don't know'/'give up'; `just` is `yes`/`definitely`
35
36 WeaklyDecidable : Set p → Set p
37 WeaklyDecidable = Maybe