| 1 |
# fitch.sty |
| 2 |
|
| 3 |
LaTeX macros for Fitch style natural deduction |
| 4 |
|
| 5 |
## Usage |
| 6 |
|
| 7 |
Fitch-style natural deduction is a system for writing proofs in |
| 8 |
propositional logic and predicate logic. This is a set of easy-to-use |
| 9 |
LaTeX macros originally written by Peter Selinger. It is used, e.g., |
| 10 |
in the various versions of _forall x_ by PD Magnus (e.g., the |
| 11 |
[original](https://www.fecundity.com/logic/download.html), |
| 12 |
[Cambridge](http://www.homepages.ucl.ac.uk/~uctytbu/OERs.html), and |
| 13 |
[Calgary](https://forallx.openlogicproject.org) versions) |
| 14 |
|
| 15 |
With these macros, one can typeset natural deduction proofs in Fitch |
| 16 |
style, as in the following example: |
| 17 |
|
| 18 |
 |
| 19 |
|
| 20 |
``` |
| 21 |
\begin{nd} |
| 22 |
\hypo {1} {\forall y \neg P(y)} |
| 23 |
\open |
| 24 |
\hypo {2} {\exists x P(x)} |
| 25 |
\open[u] |
| 26 |
\hypo {3} {P(u)} |
| 27 |
\have {4}{\forall y \neg P(y)} \r{1} |
| 28 |
\have {5} {\neg P(u)} \Ae{4} |
| 29 |
\have {6} {\bot} \ne{3,5} |
| 30 |
\close |
| 31 |
\have {6a} {\bot} \Ee{2,3-6} |
| 32 |
\close |
| 33 |
\have {7} {\neg \exists x P(x)} \ni{2-6a} |
| 34 |
\end{nd} |
| 35 |
``` |
| 36 |
|
| 37 |
The output is shown above, and the corresponding LaTeX code below. |
| 38 |
|
| 39 |
## Changes |
| 40 |
|
| 41 |
**v1.0-beta, October 15, 2023** Adds `outerline` option; improves |
| 42 |
`\by`; fixes spacing when using `tabular` |
| 43 |
|
| 44 |
**v1.0-alpha, Sept 30, 2023** This is an alpha release that adds key-value |
| 45 |
options to the package and commands for customization. It is not fully |
| 46 |
compatible with the 0.x versions (see documentation). Please report |
| 47 |
any issues or suggestions. |
| 48 |
|
| 49 |
**v0.6, Sept 4, 2023.** Updated the documentation and license (from |
| 50 |
GPL to LPPL). The code is essentially unchanged. |
| 51 |
|
| 52 |
**v0.5, Feb 8, 2005.** The ability to handle multi-line formulas |
| 53 |
was added. |
| 54 |
|
| 55 |
## Download |
| 56 |
|
| 57 |
The package is available on CTAN as |
| 58 |
[`fitch`](https://ctan.org/pkg/fitch). |
| 59 |
|
| 60 |
The code is [maintained on Github](https://github.com/OpenLogicProject/fitch/). |
| 61 |
|
| 62 |
## Related packages |
| 63 |
|
| 64 |
- [`logicproof`](https://ctan.org/pkg/logicproof): natural deduction |
| 65 |
with boxed subproofs in the style of Huth and Ryan's _Logic in |
| 66 |
Computer Science_. |
| 67 |
- [`lplfitch`](https://ctan.org/pkg/lplfitch): Fitch-style proofs in |
| 68 |
the format used in Barwise & Etchemendy's textbook _Language, Proof, |
| 69 |
and Logic_. |
| 70 |
- [`natded`](https://ctan.org/pkg/natded): natural deduction proofs |
| 71 |
in the style of Jaśkowski, or that of Kalish and Montague. |
| 72 |
- [`synproof`](https://ctan.org/pkg/synproof): natural deduction |
| 73 |
proofs in the style of Gamut's _Logic, |
| 74 |
Language, and Meaning_. |
| 75 |
|
| 76 |
|
| 77 |
Additional packages for proofs, including Johan Klüwer's, are |
| 78 |
available at a [page maintained by Alex Kocurek](https://www.actual.world/latex/) |
| 79 |
|
| 80 |
## People |
| 81 |
|
| 82 |
Peter Selinger, Dalhousie University, is the original author. |
| 83 |
|
| 84 |
Richard Zach, University of Calgary, it the current maintainer. |
| 85 |
|
| 86 |
## License |
| 87 |
|
| 88 |
Copyright (C) 2002-2023 Peter Selinger |
| 89 |
|
| 90 |
This work may be distributed and/or modified under the conditions of |
| 91 |
the LaTeX Project Public License, either version 1.3 of this license |
| 92 |
or (at your option) any later version. The latest version of this |
| 93 |
license is in |
| 94 |
|
| 95 |
https://www.latex-project.org/lppl.txt |
| 96 |
|
| 97 |
and version 1.3c or later is part of all distributions of LaTeX |
| 98 |
version 2008 or later. |