module univTypes.Model.ConsistencyZF where open import Data.Fin using (zero) open import Relation.Nullary using (¬_) open import univTypes.Specification open import univTypes.Model.ZF using (ZF) open import univTypes.Model.FromZF using (fromZF) import univTypes.Model.Consistency as C open import univTypes.Model.Grothendieck using (ZFCU) import univTypes.Model.FromGrothendieck as FG open import univTypes.Model.TarskiGrothendieck using (TG) import univTypes.Model.FromTarski as FT open import univTypes.Model.Grothendieck using (UniverseAxiom) open import univTypes.Model.Mathlib using (Mathlib) import univTypes.Model.FromMathlib as FM -- Consistency relative to ZF set theory: classical ZF with a chain of -- Grothendieck universes along the strata (ω·2 inaccessible cardinals), -- stated as an interface in the style of con-leche (Model/ZF). Every -- operation the model uses is constructed from these axioms -- (Model/FromZF). no-False : ZF → ∀ {e : Term 0} → ¬ (∅ ⊢ e ⦂ `False) no-False Z = C.no-False (fromZF Z) no-0≡1 : ZF → ∀ {e : Term 0} → ¬ (∅ ⊢ e ⦂ `zero `≡ `suc `zero) no-0≡1 Z = C.no-0≡1 (fromZF Z) no-∀A→A : ZF → ∀ {f : Term 0} → ¬ (∅ ⊢ f ⦂ ∀[x⦂ `Set ] ` zero) no-∀A→A Z = C.no-∀A→A (fromZF Z) -- The same relative to ZFC with Grothendieck's universe axiom (SGA 4), via -- its derivation of the ZF record (Model/FromGrothendieck). no-False-UA : ZFCU → ∀ {e : Term 0} → ¬ (∅ ⊢ e ⦂ `False) no-False-UA G = no-False (FG.toZF G) no-0≡1-UA : ZFCU → ∀ {e : Term 0} → ¬ (∅ ⊢ e ⦂ `zero `≡ `suc `zero) no-0≡1-UA G = no-0≡1 (FG.toZF G) no-∀A→A-UA : ZFCU → ∀ {f : Term 0} → ¬ (∅ ⊢ f ⦂ ∀[x⦂ `Set ] ` zero) no-∀A→A-UA G = no-∀A→A (FG.toZF G) -- The same relative to Tarski–Grothendieck set theory (Tarski's Axiom A; -- the foundation of Mizar), via Grothendieck's axiom (Model/FromTarski). no-False-TG : TG → ∀ {e : Term 0} → ¬ (∅ ⊢ e ⦂ `False) no-False-TG T = no-False-UA (FT.toZFCU T) no-0≡1-TG : TG → ∀ {e : Term 0} → ¬ (∅ ⊢ e ⦂ `zero `≡ `suc `zero) no-0≡1-TG T = no-0≡1-UA (FT.toZFCU T) no-∀A→A-TG : TG → ∀ {f : Term 0} → ¬ (∅ ⊢ f ⦂ ∀[x⦂ `Set ] ` zero) no-∀A→A-TG T = no-∀A→A-UA (FT.toZFCU T) -- The same relative to the rules of Mathlib's ZFSet (Model/Mathlib) with -- Grothendieck's universe axiom on top (Mathlib's ZFSet has no universes). no-False-Mathlib : (M : Mathlib) → UniverseAxiom (FM.toBase M) → ∀ {e : Term 0} → ¬ (∅ ⊢ e ⦂ `False) no-False-Mathlib M ua = no-False-UA (record { base = FM.toBase M ; ua = ua }) no-0≡1-Mathlib : (M : Mathlib) → UniverseAxiom (FM.toBase M) → ∀ {e : Term 0} → ¬ (∅ ⊢ e ⦂ `zero `≡ `suc `zero) no-0≡1-Mathlib M ua = no-0≡1-UA (record { base = FM.toBase M ; ua = ua }) no-∀A→A-Mathlib : (M : Mathlib) → UniverseAxiom (FM.toBase M) → ∀ {f : Term 0} → ¬ (∅ ⊢ f ⦂ ∀[x⦂ `Set ] ` zero) no-∀A→A-Mathlib M ua = no-∀A→A-UA (record { base = FM.toBase M ; ua = ua })