forked from agda/agda-stdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNullary.agda
More file actions
37 lines (27 loc) · 1.15 KB
/
Copy pathNullary.agda
File metadata and controls
37 lines (27 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
------------------------------------------------------------------------
-- The Agda standard library
--
-- Operations on nullary relations (like negation and decidability)
------------------------------------------------------------------------
-- Some operations on/properties of nullary relations, i.e. sets.
{-# OPTIONS --cubical-compatible --safe #-}
module Relation.Nullary where
open import Agda.Builtin.Equality
------------------------------------------------------------------------
-- Re-exports
open import Relation.Nullary.Negation.Core public using
( ¬_; _¬-⊎_
; contradiction; contradiction₂; contraposition
)
open import Relation.Nullary.Reflects public using
( Reflects; ofʸ; ofⁿ; reflects; reflects′; of; invert; Recomputable
; _×-reflects_; _⊎-reflects_; _→-reflects_
)
open import Relation.Nullary.Decidable.Core public using
( Dec; _because_; does; proof; yes′; no′; yes; no; recompute
; ¬?; _×-dec_; _⊎-dec_; _→-dec_
)
------------------------------------------------------------------------
-- Irrelevant types
Irrelevant : ∀ {p} → Set p → Set p
Irrelevant P = ∀ (p₁ p₂ : P) → p₁ ≡ p₂