-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from ayberkt/readme
Add a basic explanation of how to build and use
- Loading branch information
Showing
2 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,52 @@ | ||
# proof-search [![Build Status](https://travis-ci.com/ayberkt/proof-search.svg?token=2eB5JJ87XAYaE2ZJnQaJ&branch=master)](https://travis-ci.com/ayberkt/proof-search) | ||
Some implementations of proof search for constructive logic. | ||
# sequents [![Build Status](https://travis-ci.com/ayberkt/sequents.svg?token=2eB5JJ87XAYaE2ZJnQaJ&branch=master)](https://travis-ci.com/ayberkt/sequents) | ||
|
||
**sequents** is an implementation of [Roy Dyckhoff's LJT](https://rd.host.cs.st-andrews.ac.uk/publications/jsl57.pdf)—a sequent | ||
calculus for intuitionistic logic that is decidable and does _not_ need loop | ||
checking | ||
|
||
## Building | ||
|
||
First make sure that you have `smlnj` installed. To build, run | ||
``` | ||
./script/build.sh | ||
``` | ||
|
||
## Trying out | ||
|
||
Let's prove the commutativity of conjunction `A ∧ B ⊃ B ∧ A`. Using the ASCII | ||
approximations of the connectives, we can pipe this proposition into `sequents`. | ||
``` | ||
➜ echo "A /\ B => B /\ A" | ./sequents | ||
``` | ||
which gives the following: | ||
``` | ||
• NTS ---> A ∧ B ⊃ B ∧ A | ||
- Apply ⊃R. | ||
- New goal: A ∧ B ----> B ∧ A | ||
• NTS A ∧ B ----> B ∧ A | ||
- Apply ∧R. | ||
- New goal: A ∧ B ----> B | ||
- New goal: A ∧ B ----> A | ||
• NTS A ∧ B ----> B | ||
- New goal: A, B ----> B | ||
- Apply ∧L. | ||
• NTS A, B ----> B | ||
- Note: B ∈ [A, B] | ||
- Apply init. | ||
- QED | ||
• NTS A ∧ B ----> A | ||
- New goal: A, B ----> A | ||
- Apply ∧L. | ||
• NTS A, B ----> A | ||
- Note: A ∈ [B, A] | ||
- Apply init. | ||
- QED | ||
Proof found! | ||
``` | ||
|
||
By the way, you can also generate LaTeX with `--latex` flag: | ||
``` | ||
➜ echo "A /\ B => B /\ A" | ./sequents --latex > out.tex | ||
➜ pdflatex out.tex | ||
``` | ||
![derivation](resources/derivation.png) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.