1-- Large cardinal axioms as named hypotheses: the Tarski–Grothendieck axiom2-- and the existence of an inaccessible cardinal3-- Part of Cumulus, the Grace17 mathematics library.4-- Copyright (c) 2026 Grant Passmore.5-- Released under the Apache License 2.0. See LICENSE in the repository root.6-- Authors: Grant Passmore78module Grace.Cumulus.LargeCardinal.Axioms9import Universe10import Inaccessible1112-- Large cardinal axioms are not axioms of the kernel. They are nullary13-- predicates, written applied to no arguments: a theorem that needs one14-- takes it as a hypothesis, `requires TG : TarskiGrothendieck()` or a15-- section's `hypothesis TG : TarskiGrothendieck()`, so its certificate is16-- a ZF(C) proof of the implication from the axiom.1718-- Every set is a member of some Grothendieck universe.19predicate TarskiGrothendieck :=∀ x, ∃ U, GrothendieckUniverse(U) ∧ x ∈ U20register largecardinal TarskiGrothendieck "every set lies in a Grothendieck universe"2122-- Some inaccessible cardinal exists.23predicate ExistsInaccessible :=∃ κ, Inaccessible(κ)24register largecardinal ExistsInaccessible "an inaccessible cardinal exists"2526theorem ExistsInaccessible.iff_exists_universe27shows ExistsInaccessible() ↔∃ U, GrothendieckUniverse(U)28proof29unfold ExistsInaccessible30constructor31 . intro exists32obtain⟨κ, inaccessible⟩:= exists33exact⟨V(κ), (Inaccessible.universe with inaccessible)⟩34 . intro exists35obtain⟨U, universe⟩:= exists36exact⟨ordinalsWithin(U), (GrothendieckUniverse.inaccessible with universe)⟩3738section TarskiGrothendieckLaws39hypothesis TG : TarskiGrothendieck()4041theorem TarskiGrothendieck.universe_containing (x : Set)42shows∃ U, GrothendieckUniverse(U) ∧ x ∈ U43proof44exact TG with x4546-- Every set lies in the stage V(κ) of some inaccessible κ.47theorem TarskiGrothendieck.inaccessible_containing (x : Set)48shows∃ κ, Inaccessible(κ) ∧ x ∈ V(κ)49proof50obtain⟨U, universe, hx⟩:= TarskiGrothendieck.universe_containing at x with TG51have stage := GrothendieckUniverse.eq_V with universe52rw stage at hx53exact⟨ordinalsWithin(U), (GrothendieckUniverse.inaccessible with universe), hx⟩5455theorem TarskiGrothendieck.existsInaccessible56shows ExistsInaccessible()57proof58obtain⟨U, universe, _⟩:= TarskiGrothendieck.universe_containing at∅with TG59exact ExistsInaccessible.iff_exists_universe.backward with⟨U, universe⟩6061end TarskiGrothendieckLaws62