Skip to content

Commit

Permalink
Merge pull request #12 from ayberkt/readme
Browse files Browse the repository at this point in the history
Add a basic explanation of how to build and use
  • Loading branch information
ayberkt committed Jul 9, 2017
2 parents e1975b4 + 9b77a7a commit 578d2a2
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
54 changes: 52 additions & 2 deletions README.md
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)
Binary file added 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.

0 comments on commit 578d2a2

Please sign in to comment.