diff options
author | Chloe Brown <chloe.brown.00@outlook.com> | 2022-01-06 18:35:46 +0000 |
---|---|---|
committer | Chloe Brown <chloe.brown.00@outlook.com> | 2022-01-06 18:35:46 +0000 |
commit | 9c9e71fcd63bb5f2ce7f6fd3ee54ed51b108bcf2 (patch) | |
tree | 719819ea2ba4982752af7f71229dcf0601eab1e0 | |
parent | f23b3c0e5d72d65b60f8eb9611e2ccfff9b99412 (diff) |
-rw-r--r-- | src/CatTheory/Exercise1/Contradiction/EpiAndMonoImpliesIso.agda | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/CatTheory/Exercise1/Contradiction/EpiAndMonoImpliesIso.agda b/src/CatTheory/Exercise1/Contradiction/EpiAndMonoImpliesIso.agda new file mode 100644 index 0000000..d0ed35b --- /dev/null +++ b/src/CatTheory/Exercise1/Contradiction/EpiAndMonoImpliesIso.agda @@ -0,0 +1,24 @@ +{-# OPTIONS --without-K --safe #-} + +module CatTheory.Exercise1.Contradiction.EpiAndMonoImpliesIso where + +open import Data.Bool using (Bool; true; false; _≤_; f≤t) +open import Data.Bool.Properties using (≤-preorder) +open import Relation.Binary.PropositionalEquality +open import Relation.Nullary using (¬_) + +open import CatTheory.Category.Instance.Of.Preorder +open import CatTheory.Category.Instance.Of.Properties.Preorder ≤-preorder +open import Categories.Morphism (OfPreorder ≤-preorder) + +f : false ≤ true +f = f≤t + +f-epi : Epi f +f-epi = ∀-Epi {f = f} + +f-mono : Mono f +f-mono = ∀-Mono {f = f} + +¬f-iso : ∀ {g : true ≤ false} → ¬ Iso f g +¬f-iso {()} |