Debian Codegraph @

texmf-dist/doc/latex/seqcalc/README.md

raw
1 # seqcalc - A structured sequent calculus wrapper for `bussproofs`
2
3 ## Overview
4 **Version:** 1.0
5 **Date:** 2026-01-31
6 **Author:** Julian ([lambdaphoenix](https://github.com/lambdaphoenix))
7 **License:** LPPL 1.3c or later
8
9 `seqcalc` is a structured, declarative wrapper around the [`bussproofs`](https://ctan.org/pkg/bussproofs) package. It provides an interface for building sequent calculus proofs while preserving the underlying layout logic of `bussproofs`.
10
11 The package adds:
12 - a declarative rule system with automatic macro generation,
13 - optional formula-list normalization,
14 - optional debug output,
15 - optional shortcut commands,
16 - optional built-in standard rule sets,
17 - wrapper environments for proof trees.
18
19 `seqcalc` does not modify the spacing, box construction, or layout algorithms of `bussproofs`. It only adds a structured interface on top.
20
21 ## Features
22
23 ### Sequent commands
24 - `\seq{A}{B}` - typeset a sequent
25 - `\seqL{A}`, `\seqR{A}` - left/right-only sequents
26 - Automatic normalization of formula lists (optional)
27
28 ### Axioms and premises
29 - `\SeqAxiom{A}` - closed leaf
30 - `\SeqPremise{A}` - open leaf
31
32 ### Conclusions
33 - `\SeqConclusion[Label]{Cmd}{Formula}[Hint]`
34 - Convenience forms:
35 - `\SeqConclusionU{Formula}`
36 - `\SeqConclusionB{Formula}`
37
38 ### Rule system
39 - Declare rules:
40 ```latex
41 \SeqCalcDeclareRule{Name}{Arity}[Label]
42 ```
43 - Apply rules:
44 ```latex
45 \SeqRule{Name}{Formula}[Hint]
46 \Name{Formula}[Hint] % auto-generated
47 ```
48
49 ### Shortcuts (optional)
50 - Enabled via:
51 ```latex
52 \EnableSeqShortcuts
53 ```
54 ### Standard rules (optional)
55 - Enabled via:
56 ```latex
57 \EnableSeqStandardRules
58 ```
59 ### Proof environments
60 - `seqproof` - wrapper around prooftree
61 - `seqproofinline` - compact inline proof trees
62
63 ## Installation
64 Place `seqcalc.sty` somewhere in your TeX tree, then load it:
65 ```latex
66 \usepackage{seqcalc}
67 ```
68
69 ## Package options
70 | Option | Values | Default | Description |
71 |---|---|---|---|
72 | `normalize-formulas` | true, false | true | Normalize formula lists |
73 | `debug` | true, false | false | Print debug messages |
74 | `shortcuts` | true, false | false | Enable shortcut macros |
75 | `standard-rules` | true, false | false | Load built-in rule set |
76
77 ## Documentation
78 The full package documentation is available in:
79
80 - `doc/seqcalc-doc.pdf`
81 - Online: https://github.com/lambdaphoenix/seqcalc/blob/main/doc/seqcalc-doc.pdf
82
83
84 ## License
85 This work may be distributed and/or modified under the conditions of the LaTeX Project Public License, either version 1.3c of this license or (at your option) any later version. The latest version of this license is in
86    https://www.latex-project.org/lppl.txt
87 and version 1.3c or later is part of all distributions of LaTeX version 2008 or later.
88
89 This work has the LPPL maintenance status `maintained'.
90 The Current Maintainer of this work is Julian.
91
92 ## Development
93 The package is developed openly on GitHub:
94  Repository: https://github.com/lambdaphoenix/seqcalc
95  Issue tracker: https://github.com/lambdaphoenix/seqcalc/issues