open import univTypes.Model.Grothendieck using (ZFCU; ZFBase; UniverseAxiom; IsUniverse) module univTypes.Model.FromGrothendieck (G : ZFCU) where open import Data.Empty using (⊥; ⊥-elim) open import Data.Nat using (ℕ; zero; suc; _<_; s≤s) open import Data.Nat.Properties using (<-cmp; m≤n⇒m) open import Relation.Binary.PropositionalEquality using (_≡_; refl; sym; trans; cong; subst) open import univTypes.Model.SetTheory using (Stratum; fin; ω+) open import univTypes.Model.ZF using (ZF) open ZFCU G open ZFBase base open UniverseAxiom ua module U (x : V) = IsUniverse (𝕌-is x) -- Our ZF record (Model/ZF), from ZFC with Grothendieck's universe axiom: -- the chain of universes is obtained by iterating the universe axiom, -- with replacement over ω for the limit Setω 0. -- Basics ---------------------------------------------------------------------------------------- sng : V → V sng a = upair a a sng-in : ∀ {z a} → z ∈ sng a → z ≡ a sng-in p with upair-in p ... | inj₁ q = q ... | inj₂ q = q -- The empty set: an ∈-minimal member of the (nonempty, transitive) 𝕌 ω. private minimal : Σ V λ y → y ∈ 𝕌 ω × (∀ z → z ∈ y → z ∈ 𝕌 ω → ⊥) minimal = regularity (𝕌 ω) ⟨ ω , 𝕌-∋ ω ⟩ ∅ : V ∅ = proj₁ minimal ∉∅ : ∀ {z} → z ∈ ∅ → ⊥ ∉∅ {z} z∈ = proj₂ (proj₂ minimal) z z∈ (U.trans ω (proj₁ (proj₂ minimal)) z∈) -- Numerals ------------------------------------------------------------------------------------ succᶻ : V → V succᶻ x = ⋃ (upair x (upair x x)) num : ℕ → V num zero = ∅ num (suc k) = succᶻ (num k) num-∈ : ∀ k → num k ∈ ω num-∈ zero = ω-zero (λ z → ∉∅) num-∈ (suc k) = ω-suc (num-∈ k) num-< : ∀ {j k} → j < k → num j ∈ num k num-< {j} {suc k} (s≤s j≤k) with m≤n⇒m _ _ k