deduxit: linear and ordinary logic, proved in the browser
deduxit proves sequents of linear and ordinary logic in the browser; the page needs JavaScript and WebAssembly.
deduxit proves sequents of linear and ordinary logic in the browser; the page needs JavaScript and WebAssembly.
A proof starts from a sequent typed in the box at the bottom, in ASCII or in
signs. The tour typed A * B |- B * A and pressed Enter: the sequent is now a
chip at the top.
The derivation grows upwards on the stage. Drag or scroll to move it, and zoom with the buttons at the bottom right. A dashed line marks each open goal.
Every formula of an open goal is a button. Pressing it shows its rules side by side. A grey rule does not apply here; point at it, or press it, to see why.
The tour applied ⅋ to the first formula. The goal’s ⊢ is a button too: it
closes the goal by the search, or opens it as a sequent of its own.
⊗ splits the goal’s other formulas between two premises. The tour sent B⊥
to the first one, with B. A goal the search shows to have no proof turns red.
Close all lets the search finish every open goal within the budget set in Settings; its steps are drawn grey. Hint points at your next press: a formula, then its rule, then what a split still needs.
The mark on the chip is the verdict: a check for a proof that deduxit checked, a cross for a sequent with no proof.
Undo takes back the last step, Steps goes back to any step, Export writes the proof in every format, and Import reads one back.
On this page you prove sequents of linear logic, and of ordinary propositional logic in the sequent calculi LK and LJ. Type a sequent, then prove it step by step or let the search close a goal. The prover is deduxit’s library, compiled to WebAssembly and run in your browser: nothing you type is sent anywhere, and your proofs stay in this browser’s storage.
deduxit’s manual describes its command-line prover and its benchmarks, the library’s documentation is at /deduxit/, and their source is on GitHub. For AI models, llms.txt says what this page is and where deduxit’s guide for them is. Questions, mistakes and wishes are welcome as issues.
Every problem here has a proof; Learn’s lessons hold the ones without. Choose the kinds and the difficulty you want, or let chance choose. A problem opens in a new tab of the page, beside the sequent field.
A problem counts as proved when your steps close every goal. Steps that Hint applies count as yours; a goal that Close goal or Close all closes does not. Difficulty counts the steps a proof by hand takes and the choices on the way.
Each problem is a sequent to decide in its logic, classical, intuitionistic or minimal: prove it, or find that it has none. Choose the kinds and the difficulty you want, or let chance choose. A problem opens in a new tab of the page.
A problem counts as proved when your steps close every goal. Where a goal has no proof, Close goal says so and draws a countermodel.
The connectives, as you type them and as deduxit prints them. One-sided, every
formula is on the right of ⊢ and A⊥ is the dual of A; two-sided
(intuitionistic, or classical with the Two-sided switch), the hypotheses are on the left.
| sign | typed | name | reading |
|---|---|---|---|
A ⊗ B |
A * B |
tensor | both, side by side |
A ⅋ B |
A | B, A par B |
par | the dual of tensor |
A ⊸ B |
A -o B |
linear implication | consumes A, gives B; A⊥ ⅋ B |
A & B |
A & B |
with | either one, the other’s choice |
A ⊕ B |
A + B |
plus | one of them, the prover’s choice |
!A |
!A |
of course | as many A as needed |
?A |
?A |
why not | the dual of of course |
A⊥ |
~A, A^ |
negation | the dual |
1, ⊥ |
1, bot |
the units of ⊗ and ⅋ |
|
⊤, 0 |
top, 0 |
the units of & and ⊕ |
|
∀x. A |
forall x. A |
for all | A for every x; the dual of exists |
∃x. A |
exists x. A |
exists | A for some x, a witness chosen |
⊢ is typed |-. With quantifiers, atoms take arguments: p(x, f(a)) is the
predicate p of the variable x and the term f(a). A name a quantifier binds is
its variable; any other name in an argument is a constant or, with arguments, a function
symbol; a name has one arity throughout. A quantifier reaches as far right as it can, so
forall x. p(x) * q(x) is ∀x. (p(x) ⊗ q(x)), and forall x y. A binds both.
Proving, ∀R and ∃L make an eigenvariable, a fresh constant written a, b, …;
∃R and ∀L take a witness, a term of the sequent’s constants and function symbols
and of the eigenvariables made below the goal, or leave it open as $1 for an axiom or
the search to fill. An open witness never takes an eigenvariable made after it: the
eigenvariable condition.
The rules
Each rule as a schema: its premises above the bar, its conclusion below, its name
beside it, as the stage writes it. Γ and Δ stand for any formulas, ?Γ for
formulas each under ?. No rule acts on 0. On the stage, every rule’s name shows
its schema and what it does when you point at it or focus it; on a touch screen, tap a
rule’s name in the drawing, or its ⓘ in the rule list. With Learn on,
pointing at a formula shows its connective’s reading.
These are the rules of the one-sided calculus as the LLHandbook project’s Handbook
of linear logic states them (draft of 6 March 2026, section 1.3.5, Table 1.4,
p. 22), with its cut and its first-order quantifiers, there (∀₁) and (∃₁). There the
axiom takes any formula; section 1.3.2 (p. 14) shows that atoms suffice, and deduxit’s
axiom takes an atom. A[t/x] is A with the term t in place of x. The two-sided names are deduxit’s names for
the same rule in a two-sided derivation: the principal formula on the right, or its
dual on the left.
The two-sided rules
In intuitionistic mode a sequent has its hypotheses on the left of ⊢ and exactly
one formula on the right, and the stage names each rule two-sided: a left rule uses
a hypothesis, a right rule proves the goal. Each is a one-sided rule above read from
the other side: ⊸L is ⊗ on the hypothesis A ⊸ B, whose dual is A ⊗ B⊥. With
Learn on, a rule in an intuitionistic proof’s popover shows its two-sided schema.
These are the rules of intuitionistic linear logic as the Handbook
of linear logic states them (section 1.7.2.1, Table 1.5, p. 48), with the cut and
the first-order quantifiers and without the exchange, in deduxit’s names: there (wL),
(cL), (∀₁L) and the like, here !w, !c, ∀L. As above, deduxit’s axiom takes an
atom.
Mix and weakening
Two switches at the Logic mark beside the sequent each add a rule. With Mix on, mix
splits a goal into two goals that share no formula. With Affine on, wk drops any
formula, under ? or not. Here each is one-sided, and wk intuitionistic too; the next
section has both two-sided.
Classical, two-sided
With the Two-sided switch on, the stage draws a classical derivation as the sequent was
typed: each formula on its side of ⊢, any number on each side, and each rule named by
the side it acts on. Most are a one-sided rule above read from that side, and listed
under it by name. A formula typed as a negation has two more rules, ~L and ~R, which move it
to the other side of ⊢.
The Lambek calculus
The Lambek calculus keeps the hypotheses in the order they are written, and has an
implication for each side: A \ B takes its A from the left, and B / A from the
right. The Logic mark does not offer it; the stage draws a session of it opened from a
link or a file.
Ordinary logic
The ordinary suite proves classical logic in LK, and intuitionistic and minimal logic
in LJ, which has one formula right of ⊢. The stage draws both as G3 does: the axiom
takes a context, and the rules contract what they use twice. So weakening and
contraction are drawn only with the Structural rules switch on. In minimal logic,
⊥L is no rule.
LK
LJ
The engines
Every search on this page is deduxit’s: it picks an engine by the sequent’s fragment and mode (Settings can force one), and the page names the engine beside what it did. Each engine and where it comes from:
- Focused search
- Searches backward from the goal: the invertible rules first, then one formula in focus at a time. Classical mode; the two-sided focused search is the same on intuitionistic sequents. Jean-Marc Andreoli, Logic programming with focusing proofs in linear logic, Journal of Logic and Computation 2(3), 297–347, 1992.
- Two-sided focused search
- The focused search on an intuitionistic sequent, one formula right of
⊢. Andreoli 1992, as above. - Proof-net search
- For MLL without units: links each atom with a dual until the net passes Danos and Regnier's switching criterion (every switching leaves the graph a tree). Proof nets: Jean-Yves Girard, Linear logic, Theoretical Computer Science 50(1), 1–102, 1987. The criterion, stated and proved: Jean Gallier, Constructive logics. Part II: linear logic and proof nets, University of Pennsylvania, section 7 (Definition 7.6, Theorem 7.9).
- Essential-net search
- For intuitionistic MLL without units: Lamarche's essential net, directed from the hypotheses toward the goal, correct when it has no cycle and its paths pass where the criterion says. Stated, with Lamarche's theorem that a sequent is provable exactly when its essential net is correct: Richard Moot, Graph algorithms for improving type-logical proof search, arXiv:0805.2303, 2008, section 2.3.
- Planar nets of the ordered modes
- deduxit's cyclic mode and Lambek calculus keep the order of the formulas, and their nets are linked without crossings. François Lamarche and Christian Retoré, Proof nets for the Lambek calculus: an overview, Proofs and Linguistic Categories (3rd Roma Workshop), 1996; the planar linkings: Moot 2008, as above. This page offers neither mode yet.
- Horn engine
- A goal of atoms, implications and implications under
!is a Petri net with a marking to reach: the engine searches its markings, and in affine mode, where tokens may be left over, whether a marking covering the goal is reachable, backward from the goal. Petri nets and linear logic: Uffe Engberg and Glynn Winskel, Petri nets as models of linear logic, DAIMI Report PB-301, Aarhus University, 1990; the backward search: Parosh Aziz Abdulla, Kārlis Čerāns, Bengt Jonsson and Yih-Kuen Tsay, General decidability theorems for infinite-state systems, LICS 1996, 313–321. - Inverse method
- Searches forward: derives sequents from the axioms upward, whole focused phases at a time, until it reaches the goal or nothing new comes; then the set it derived, which deduxit checks, is the refutation. Kaustuv Chaudhuri and Frank Pfenning, Focusing the inverse method for linear logic, CSL 2005, LNCS 3634, 200–215.
- Additive path
- For two formulas built of
&,⊕, their units and atoms: decides each pair of their subformulas by linear logic's additive rules,&,⊕and⊤, with the axiom, remembering each answer. The rules: the LLHandbook project, Handbook of linear logic, section 1.3.5, Table 1.4. Related: the word problem for lattices, which Whitman solved; Alan Day, A simple solution to the word problem for lattices, Canadian Mathematical Bulletin 13(2), 253–254, 1970. - Classical refuter
- Reads the sequent as ordinary logic (
⊗and&as and,⅋and⊕as or,!and?erased) and looks for an assignment that makes it false: read so, every rule of linear logic is a rule of ordinary logic, so a sequent false under one assignment has no proof. "Mapping ⊗ and & to ∧ and ⅋ and ⊕ to ∨ turns linear provable formulas into valid classical formulas": the LLHandbook project, Handbook of linear logic, section 1.1, proved in section 1.8 (Theorem 1.8.1, the skeleton). The refuter's ground is that statement read backward: a formula false under one assignment is no valid classical formula, so no provable linear one.
Lessons that perform real steps on the stage and teach the logic, from reading a sequent to proof nets, cut, the quantifiers and ordinary logic. Each plays a worked proof one inference at a time, asking you to predict each rule before it shows the step and its reason; then it leaves the same proof’s last steps to you, gives practice, and ends with a check. The tour shows the page itself.
The text of this page is © Fabian Lukas Grubmüller 2026, licensed underCC BY 4.0.