| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Results concerning double negation elimination. |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
module Axiom.DoubleNegationElimination where |
| 10 |
|
| 11 |
open import Axiom.ExcludedMiddle using (ExcludedMiddle) |
| 12 |
open import Level using (Level; suc) |
| 13 |
open import Relation.Nullary.Decidable.Core |
| 14 |
using (decidable-stable; ¬¬-excluded-middle) |
| 15 |
open import Relation.Nullary.Negation.Core using (Stable) |
| 16 |
|
| 17 |
private |
| 18 |
variable |
| 19 |
ℓ : Level |
| 20 |
|
| 21 |
------------------------------------------------------------------------ |
| 22 |
-- Definition |
| 23 |
|
| 24 |
-- The classical statement of double negation elimination says that |
| 25 |
-- if a property is not not true then it is true. |
| 26 |
|
| 27 |
DoubleNegationElimination : ∀ ℓ → Set (suc ℓ) |
| 28 |
DoubleNegationElimination ℓ = {P : Set ℓ} → Stable P |
| 29 |
|
| 30 |
------------------------------------------------------------------------ |
| 31 |
-- Properties |
| 32 |
|
| 33 |
-- Double negation elimination is equivalent to excluded middle |
| 34 |
|
| 35 |
em⇒dne : ExcludedMiddle ℓ → DoubleNegationElimination ℓ |
| 36 |
em⇒dne em = decidable-stable em |
| 37 |
|
| 38 |
dne⇒em : DoubleNegationElimination ℓ → ExcludedMiddle ℓ |
| 39 |
dne⇒em dne = dne ¬¬-excluded-middle |