Skip to content
daedalusPublic

About

Formal models of philosophical arguments about God, each written in Lean 4 (proofs) and TLA+ (specifications and model checking).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

God

Formal models of five accounts of God, or of its absence, each written in Lean 4 (proofs) and TLA+ (specifications and model checking).

God/
├── godel/                     Gödel's ontological argument (Scott's variant)
│   ├── lean/
│   │   └── Godel.lean         Shallow modal embedding; proves Th.1–Th.4, modal collapse, consistency
│   └── tla/
│       ├── README.md          Encoding, TLC results, interpretation
│       ├── Ontological.tla    Finite Kripke-model spec
│       ├── check.py           Brute-force Python cross-check
│       └── models/            TLC configs (*.cfg)
├── spinoza/                   Spinoza, Ethics Part I: Deus sive Natura
│   ├── lean/
│   │   └── Spinoza.lean       Proves P14, P15, P18 and monism from the axioms, plus a model
│   └── tla/
│       ├── Deus.tla           One substance, deterministic Next, parallel attributes (IIP7)
│       └── Hombre.tla         Felt freedom as hidden state (IIP35); INSTANCEs Deus
├── descartes/                 Descartes, Meditations III and V
│   ├── README.md              Contents and expected TLC results per config
│   ├── lean/
│   │   └── Descartes.lean     Ontological and trademark arguments, models, countermodels for the objections
│   └── tla/
│       ├── Ontological.tla    Med. V over every interpretation on a finite domain
│       ├── Trademark.tla      Med. III over every assignment of degrees of reality
│       ├── Meditations.tla    Order of reasons as a state machine; reproduces the Cartesian Circle
│       └── *.cfg              TLC configs (see descartes/README.md)
├── epicurus/                  Epicurus: immortal, blessed, and not to be feared
│   ├── README.md              Contents and expected TLC results
│   ├── lean/
│   │   └── Epicurus.lean      Derives tranquillity, non-providence, "not to be feared"; two models
│   └── tla/
│       ├── Epicurus.tla       Constant module; Axioms => Conclusions as a TLAPS THEOREM
│       ├── MC.tla             TLC harness over every interpretation (2 beings, 1 instant)
│       └── MC.cfg
└── buddhism/                  Buddhism: no creator; dependent origination
    ├── README.md              Contents and expected TLC results
    ├── lean/
    │   └── NoCreator.lean     Nirvana is the only unconditioned element and conditions nothing, so no creator
    └── tla/
        ├── Paticcasamuppada.tla  The 12 links as a cycle with no god variable; Liberation => Nibbana
        └── *.cfg              TLC configs: Liberation (holds), Samsara (fails)

Checking

Lean (core only, no Mathlib):

lean godel/lean/Godel.lean
lean spinoza/lean/Spinoza.lean
lean descartes/lean/Descartes.lean
lean epicurus/lean/Epicurus.lean
lean buddhism/lean/NoCreator.lean

TLA+, Gödel (run from godel/tla/):

java -cp tla2tools.jar tlc2.TLC -config models/sat_d2w1.cfg Ontological.tla
python3 check.py

TLA+, Spinoza: Deus.tla and Hombre.tla state their results as THEOREMs. They are meant for TLAPS, not TLC, because their constants (State, F, …) are uninterpreted. Hombre.tla must stay in the same folder as Deus.tla.

TLA+, Descartes (run from descartes/tla/):

java -cp tla2tools.jar tlc2.TLC -config Ontological.cfg Ontological.tla

Some configs are expected to fail; descartes/README.md lists the expected result for each one.

TLA+, Epicurus (run from epicurus/tla/):

java -cp tla2tools.jar tlc2.TLC -config MC.cfg MC.tla

TLA+, Buddhism (run from buddhism/tla/):

java -cp tla2tools.jar tlc2.TLC -config Liberation.cfg Paticcasamuppada.tla
java -cp tla2tools.jar tlc2.TLC -config Samsara.cfg Paticcasamuppada.tla

Samsara.cfg is expected to fail; see buddhism/README.md.

About

Formal models of philosophical arguments about God, each written in Lean 4 (proofs) and TLA+ (specifications and model checking).

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages