# HG changeset patch # User Shinji KONO # Date 1672705703 -32400 # Node ID e086a266c6b75debb1cec938da5f41f600d9af97 # Parent 5b0525cb9a5df2a8383fd9fc1f038c4bac783036 FIP fix diff -r 5b0525cb9a5d -r e086a266c6b7 src/LEMC.agda --- a/src/LEMC.agda Mon Jan 02 10:15:20 2023 +0900 +++ b/src/LEMC.agda Tue Jan 03 09:28:23 2023 +0900 @@ -2,7 +2,7 @@ open import Ordinals open import logic open import Relation.Nullary -module LEMC {n : Level } (O : Ordinals {n} ) (p∨¬p : ( p : Set n) → p ∨ ( ¬ p )) where +module LEMC {n : Level } (O : Ordinals {n} ) where open import zf open import Data.Nat renaming ( zero to Zero ; suc to Suc ; ℕ to Nat ; _⊔_ to _n⊔_ ) @@ -32,6 +32,9 @@ open HOD +postulate + p∨¬p : ( p : Set n) → p ∨ ( ¬ p ) + decp : ( p : Set n ) → Dec p -- assuming axiom of choice decp p with p∨¬p p decp p | case1 x = yes x @@ -42,11 +45,16 @@ ∋-p A x | case1 t = yes t ∋-p A x | case2 t = no (λ x → t x) -double-neg-eilm : {A : Set n} → ¬ ¬ A → A -- we don't have this in intutionistic logic -double-neg-eilm {A} notnot with decp A -- assuming axiom of choice +double-neg-elim : {A : Set n} → ¬ ¬ A → A -- we don't have this in intutionistic logic +double-neg-elim {A} notnot with decp A -- assuming axiom of choice ... | yes p = p ... | no ¬p = ⊥-elim ( notnot ¬p ) +-- by-contradiction : {A : Set n} {B : A → Set n} → ¬ ( (a : A ) → ¬ B a ) → A +-- by-contradiction {A} {B} not with p∨¬p A +-- ... | case2 ¬a = ⊥-elim (not (λ a → ⊥-elim (¬a a ))) +-- ... | case1 a = a + power→⊆ : ( A t : HOD) → Power A ∋ t → t ⊆ A power→⊆ A t PA∋t t∋x = subst (λ k → odef A k ) &iso ( t1 (subst (λ k → odef t k ) (sym &iso) t∋x)) where t1 : {x : HOD } → t ∋ x → A ∋ x diff -r 5b0525cb9a5d -r e086a266c6b7 src/ODC.agda --- a/src/ODC.agda Mon Jan 02 10:15:20 2023 +0900 +++ b/src/ODC.agda Tue Jan 03 09:28:23 2023 +0900 @@ -4,9 +4,9 @@ module ODC {n : Level } (O : Ordinals {n} ) where open import zf -open import Data.Nat renaming ( zero to Zero ; suc to Suc ; ℕ to Nat ; _⊔_ to _n⊔_ ) +open import Data.Nat renaming ( zero to Zero ; suc to Suc ; ℕ to Nat ; _⊔_ to _n⊔_ ) open import Relation.Binary.PropositionalEquality -open import Data.Nat.Properties +open import Data.Nat.Properties open import Data.Empty open import Relation.Nullary open import Relation.Binary @@ -35,9 +35,9 @@ open _∧_ -postulate +postulate -- mimimul and x∋minimal is an Axiom of choice - minimal : (x : HOD ) → ¬ (x =h= od∅ )→ HOD + minimal : (x : HOD ) → ¬ (x =h= od∅ )→ HOD -- this should be ¬ (x =h= od∅ )→ ∃ ox → x ∋ Ord ox ( minimum of x ) x∋minimal : (x : HOD ) → ( ne : ¬ (x =h= od∅ ) ) → odef x ( & ( minimal x ne ) ) -- minimality (proved by ε-induction with LEM) @@ -51,7 +51,7 @@ pred-od : ( p : Set n ) → HOD pred-od p = record { od = record { def = λ x → (x ≡ o∅) ∧ p } ; - odmax = osuc o∅;