Files
univTypes/Model/TarskiGrothendieck.agda
Julius FischerandClaude Opus 5.5 bbc335501a
Typecheck / agda (push) Successful in 2m28s
Model: Tarski–Grothendieck set theory
Model/TarskiGrothendieck states Tarski's Axiom A (Mizar's foundation; with
transitivity as in con-leche): every set is a member of a Tarski universe.
Model/FromTarski shows every Tarski universe is a Grothendieck universe,
without choice: replacement by Cantor's theorem, unions by regularity (a
member Y with Y ∈ y ∈ Y otherwise), pairs as an image of 𝒫 (𝒫 ∅). So TG
gives Grothendieck's universe axiom and our ZF record;
Model/ConsistencyZF adds no-False-TG, no-0≡1-TG, no-∀A→A-TG.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q7dfaHQ3dYSfqcxR7V5UrJ
2026-11-23 21:00:50 +01:00

48 lines
2.0 KiB
Agda
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
module univTypes.Model.TarskiGrothendieck where
open import Data.Product using (Σ; _×_)
open import Data.Sum using (_⊎_)
open import Relation.Binary.PropositionalEquality using (_≡_)
open import univTypes.Model.Grothendieck using (ZFBase)
-- Tarski–Grothendieck set theory: ZF plus Tarski's Axiom A (A. Tarski,
-- Über unerreichbare Kardinalzahlen, Fund. Math. 30, 1938), the foundation
-- of Mizar (A. Trybulec, Tarski Grothendieck Set Theory, Formalized
-- Mathematics 1, 1990). Every set is a member of a Tarski universe U:
-- * U is transitive (as in con-leche's IsTGUniverse; Mizar omits it),
-- * U is closed under subsets of its members,
-- * for every member, U has a member containing all its subsets,
-- * every subset of U is a member of U or equinumerous with U.
-- Equinumerosity is witnessed by an Agda-level function, as in con-leche
-- (it keeps ordered pairs out of the axioms). Model/FromTarski derives
-- Grothendieck's universe axiom (Model/Grothendieck) from this.
module _ (B : ZFBase) where
open ZFBase B
-- A bijection from the members of X onto the members of Y.
Equinumerous : V → V → Set
Equinumerous X Y =
Σ (V → V) λ f → (∀ a → a ∈ X → f a ∈ Y)
× (∀ a b → a ∈ X → b ∈ X → f a ≡ f b → a ≡ b)
× (∀ y → y ∈ Y → Σ V λ a → a ∈ X × f a ≡ y)
record IsTarski (U : V) : Set where
field
trans : ∀ {x y} → x ∈ U → y ∈ x → y ∈ U
subset : ∀ {x y} → x ∈ U → (∀ w → w ∈ y → w ∈ x) → y ∈ U
powers : ∀ {x} → x ∈ U → Σ V λ p → p ∈ U × (∀ z → (∀ w → w ∈ z → w ∈ x) → z ∈ p)
card : ∀ {y} → (∀ w → w ∈ y → w ∈ U) → Equinumerous y U ⊎ y ∈ U
-- Axiom A: every set is a member of a Tarski universe.
record TarskiAxiom : Set where
field
tarski : ∀ x → Σ V λ U → x ∈ U × IsTarski U
-- Tarski–Grothendieck set theory.
record TG : Set₁ where
field
base : ZFBase
ta : TarskiAxiom base