| 1 |
------------------------------------------------------------------------ |
| 2 |
-- The Agda standard library |
| 3 |
-- |
| 4 |
-- Properties of indexed negation |
| 5 |
------------------------------------------------------------------------ |
| 6 |
|
| 7 |
{-# OPTIONS --cubical-compatible --safe #-} |
| 8 |
|
| 9 |
module Relation.Nullary.Indexed.Negation where |
| 10 |
|
| 11 |
open import Axiom.Extensionality.Propositional using (Extensionality) |
| 12 |
open import Data.Empty.Polymorphic using (⊥; ⊥-elim) |
| 13 |
open import Function.Bundles using (_↔_) |
| 14 |
open import Function.Properties using (→-cong-↔) |
| 15 |
import Function.Construct.Identity as Identity using (↔-id) |
| 16 |
open import Relation.Nullary.Indexed |
| 17 |
|
| 18 |
------------------------------------------------------------------------ |
| 19 |
-- ¬_ preserves ↔ (assuming extensionality) |
| 20 |
|
| 21 |
¬-cong : ∀ {a b c} {A : Set a} {B : Set b} → |
| 22 |
Extensionality a c → Extensionality b c → |
| 23 |
A ↔ B → (¬ c A) ↔ (¬ c B) |
| 24 |
¬-cong extA extB A≈B = →-cong-↔ extA extB A≈B (Identity.↔-id ⊥) |