| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- A type `A` is irrelevant if all of its elements are equal. |
| 5 |
-- This is also refered to as "A is an h-proposition". |
| 6 |
------------------------------------------------------------------------ |
| 7 |
|
| 8 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 9 |
|
| 10 |
module Relation.Nullary.Irrelevant where |
| 11 |
|
| 12 |
open import Agda.Builtin.Equality using (_≡_) |
| 13 |
open import Level using (Level) |
| 14 |
|
| 15 |
private |
| 16 |
variable |
| 17 |
p : Level |
| 18 |
|
| 19 |
Irrelevant : Set p → Set p |
| 20 |
Irrelevant P = ∀ (p₁ p₂ : P) → p₁ ≡ p₂ |