Ultimate goal: Plotting the Veltman Curve
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
00_slides_computing-counterfactuals.pdf
README.md
basis.py
benchmark.py
complexity.py
counterfactual.py
example-basis.py
example-for-slides.py
example-retract-world.py
example-sitgen.py
example-texoutput.pdf
example-texoutput.py
example-texoutput.tex
example-updates.py
example1.py
genworlds.py
hansson.pdf
hansson.py
hansson.tex
plots.py
plotting_data
propositions.py
retraction.py
texoutput.py
truthchecker.py
updates.py
utilities.py

README.md

Counting counterfactuals, factually.

Taken from Making Counterfactual Assumptions by Frank Veltman.

USAGE

Following MCA, alphabets are defined as lists of single-character strings.

You can use the worldgen function from genworlds.py to automatically generate the truth table corresponding to your chosen alphabet.

Formulas use a simple syntax; logical symbols are ~, |, &, >, (, ) corresponding to negation, disjunction, conjunction, implication and parentheses, respectively. Everything must be enclosed by parentheses per the usual rules, except the main connective. Thus (~(p))|(q) is correct, but ((p)>(q)) is not.

Formula updates on states are done using the updateFormula function from updates.py and law updates are done using updateLaw.

Counterfactual assumptions are done using ifItHadBeenTheCase from counterfactual.py.