-- goal: construct a model of set theory -- a type V (the "universe of sets") containing something which -- deserves the name ∅, {x}, ℕ, ... data V : Set₁ where sup : {I : Set} → (I → V) → V _∈_ : V → V → Set {!!} _∈_ = ? -- model of set theory: a type V together with a relation _∈_ -- and an equivalence relation _≈_ such that (V,_∈_,_≈_) satisfies -- the set theory axioms. -- study Kripke models of set theory -- study presheaf models of set theory -- study sheaf models of set theory data ⊥ : Set where data ⊥' : Set where ∅ : V ∅ = sup f where f : ⊥ → V f () ∅' : V ∅' = sup f where f : ⊥' → V f () record ⊤ : Set where ⟨∅⟩ : V ⟨∅⟩ = sup f where f : ⊤ → V f x = ∅ succ : V → V succ x = {!!} -- succ x should be x ∪ {x}. -- define ℕ -- define ⋃ : V → V -- define × -- ... -- (1) formulate set-theoretical axioms and see whether they hold for V -- (2) create a datatype "Form" (or similar) for formulas of set theory, -- write a function eval : Form → Set₁ which computes the truth value -- of any formula -- for instance, the type (eval (EXISTS (FORALL (NOT (var vzero ∈ var (vsucc vzero)))))) should be inhabited. -- (2b) write down the axioms of CZF (constructive Zermelo--Fraenkel) in Agda and check that they hold -- (3) explore "large cardinals" (like Grothendieck universes) -- (4) explore ordinal numbers in V -- (5) define a new quotient of V