Apoth3osis
>_RESEARCH/MODAL_CATEGORY_OF_SETS

Modal Theory of the Category of Sets

Semantic Grz.2 Classification — Formalized in Lean 4

Formalization: Apoth3osis Labs
37 modules376 theorems0 sorry8,253 lines
>_VERIFICATION.SEAL
FORMALLY VERIFIED • LEAN 4 • MACHINE-CHECKED • APOTH3OSIS¬QED376 theorems • 0 sorry37 modules0 SORRY

Formal Verification Certificate

Every theorem in this project has been machine-checked by the Lean 4 kernel. No axiom is assumed without proof. No gap exists in the verification chain.

376 THEOREMS VERIFIED37 MODULES8,253 LINES0 SORRY

Modal Theory of the Category of Sets • Lean 4 + Mathlib • Apoth3osis Labs

Research Objective

Characterize the modal theory of the category of sets at the semantic level. The category of sets, viewed through equality-modal logic, gives rise to a Kripke-categorical structure where worlds are types and accessibility is mediated by functions (all functions) or surjections. The central question: which propositional modal formulas are valid on this structure?

The answer is Grz.2 — the modal logic extending S4 with the Grzegorczyk axiom and the directedness axiom. This formalization proves the classification at the semantic level: a formula belongs to the theory if and only if it is valid on all finite Boolean frames, or equivalently, true at the bottom world of every finite join-semilattice with bottom.

Semantic boundary: This is a frame-semantic characterization, not a syntactic completeness proof. The formalization does not construct an internal Hilbert calculus for Grz.2.

Key Results

QEDFormulaTheory.Grz2
Propositional.Theories

The semantic Grz.2 theory defined as the class of formulas valid on all finite Boolean frames

QEDgrz2_iff_validAtBottomAllFiniteJoinSemilattices
Propositional.Theories

Boolean frame validity is equivalent to bottom-validity on all finite join-semilattices

QEDinfsets_formulaic_grz2_upper_bound_at_nat_root
Validities.PaperRows

Crown classification: Grz.2 membership via all-functions substitution instances at the natural number root

QEDinfsurj_formulaic_grz2_upper_bound_at_nat_root
Validities.PaperRows

Crown classification: Grz.2 membership via surjections substitution instances at the natural number root

QEDinfsets_formulas_partition_normal_form
Validities.PaperRows

Every equality-modal formula on an infinite world reduces to a finite disjunction of partition formulas

QEDinfsets_sentences_truth_invariant
Validities.PaperRows

Closed equality-modal sentences are truth-invariant across all infinite worlds of the all-functions subcategory

Module Architecture

PROPOSITIONAL (5 modules)
  • Core — formulas, models, satisfaction
  • Axioms — K, T, 4, 5, .2, .3, Triv, Grz
  • Frames — reflexive, linear-order, directed
  • Substitution — propositional substitution
  • Theories — Grz.2 definition + axiom membership
FRAMEWORK (20 modules)
  • AssertionSemantics — truth invariance
  • EqualityLanguage — equality-modal assertions
  • GuardedBooleanTransfer — Boolean-to-infinite bridge
  • InfiniteButtons — button pattern machinery
  • InfinitePartitionElimination — core elimination
  • KripkeCategory — categorical semantics
  • + 14 supporting modules
VALIDITIES (12 modules)
  • BooleanFrames — finite Boolean frame validity
  • FiniteLatticeCharacterization — semilattice equiv
  • PaperRows — crown classification theorems
  • ControlCore — T+4+.2+Grz lower bounds
  • GrzFinite — Grz on finite preorders
  • S4Universal — universal S4 validity
  • + 6 supporting modules

Resources