Skip to content

Commit

Permalink
Merge pull request #16 from ayberkt/readme
Browse files Browse the repository at this point in the history
Update the sample output in README
  • Loading branch information
ayberkt authored Jul 10, 2017
2 parents 5caa859 + b5c6d26 commit 1682b91
Showing 1 changed file with 11 additions and 22 deletions.
33 changes: 11 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,20 @@ approximations of the connectives, we can pipe this proposition into `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!
Theorem: A ∧ B ⊃ B ∧ A.
• A, B ----> B by init
• A ∧ B ----> B by ∧L
• B, A ----> A by init
• A ∧ B ----> A by ∧L
• A ∧ B ----> B ∧ A by ∧R
• ----> A ∧ B ⊃ B ∧ A by ⊃R
QED
```

By the way, you can also generate LaTeX with `--latex` flag:
You can also generate LaTeX with `--latex` flag:
```
➜ echo "A /\ B => B /\ A" | ./sequents --latex > out.tex
➜ pdflatex out.tex
Expand Down

0 comments on commit 1682b91

Please sign in to comment.