A small Lean/UFPL notebook that formalizes bite‑sized ideas from Sophie's World as multi‑modal logic formulas and toy models.
- UFPL: typed terms, first‑order formulas, and modalities: alethic (□/◇), epistemic (K/B), deontic (Obl), temporal (G/F/H/P), with both Prop semantics (
sat) and an executable Boolean semantics (satB). We usesatBfor quick checks. Source: UFPL repo. - Build:
lake build- Run:lake exe sw.
SophiesWorld/Core/Signature.lean # shared predicates
SophiesWorld/Core/Model.lean # one tiny shared model + EvalSupport
SophiesWorld/Examples/Kant.lean # Obl (promise‑keeping)
SophiesWorld/Examples/Socrates.lean
- UFPL (library & semantics): see repo's README.
- Lake/TOML project setup: Lean docs.