betaFeedback

WorksComputer Science

Certify What You Plant: Shortcut-Free Proof Depth in Logical Reasoning Data

Abstract

Procedurally generated logic problems are used to both evaluate and train reasoning in language models. Their difficulty is usually set by planting a proof, that is, by sampling a proof of the desired depth and stating its premises as the problem. However, a planted proof is only one possible proof. A problem can also have shorter proofs, or several unrelated ones, and its stated depth then overstates what solving it requires. We measure what a problem actually requires, relative to a stated set of inference rules. For each problem, we compute the steps every proof must make, the shortest proof, the number of minimal proofs and the indispensable premises, and export certificates that an independent checker verifies. Audits of eight datasets find depth that is forced (ProofWriter, Blocksworld), problems labelled depth 5 that require about two specific rule applications (FLDx2), and answers that need no particular step (ZebraLogic). We then construct problems whose every proof has a requested structure, using a catalog of shortcuts proved once per rule set. Every constructed problem is checked in full and comes with its own certificate. In training, the best data mixes depths and problem types. At equal size, such mixtures of certified problem types, including model-checking problems that forward generation does not produce, transfer better than FLDx2-style derivation data for Qwen3 models from 0.6B to 8B.

Introduction

Deductive reasoning is one of the few abilities of language models that can be tested and taught with exact supervision. A generator can produce logic problems in unlimited number, each with a label verified by a solver, and such data is now used both as benchmark and as training material ([8, 43, 30, 31, 25, 38, 27, 41]).

As models improve, shallow problems lose their value for both uses. Benchmarks saturate, and a model learns little from problems it already solves. Generators therefore expose a depth parameter, the number of inference steps a solution takes, and set it by planting. They sample a proof tree of the desired depth, state its leaves as premises, add distractors, and report the planted depth as the difficulty of the problem.

A planted proof shows that a problem can be solved in five steps, but not that five steps are needed. A rule that chains two implications (from A→BA \to B and B→CB \to C, infer A→CA \to C) replaces two modus ponens steps, a rule that chains two general statements (all A are B, all B are C, so all A are C) skips an intermediate conclusion about an individual, and distractors can open routes of their own. A problem labelled “5 steps” may then be provable in two, or in several ways that share no step, so that none of its five steps is required (Figure 3). We distinguish the planted structure of a problem, which describes one proof, from its realized structure, which describes what all proofs have in common. Only the second says what a solver must do, and nothing in forward generation makes the two agree. Measured this way, several datasets ask for much less than they state (Figure 1).

Figure 1. What datasets state and what their problems require. Open circles: the stated length (planted depth, plan length, number of operations); dots: the steps every solution needs (mandatory proof steps; for plans, landmark actions; for state tracking, operations without which the answer changes). Bottom row: 400 problems built by our construction (§ 5) in propositional logic, with 13.3 planted steps on average; circle and dot coincide because every planted step is required (Table 1).

Planted versus certified structure in propositional logic
(a) Planted by forward generation(b) Constructed by PROOFPLANT
premisesaa, a→ba\to b, b→cb\to c, c→dc\to d, d→ed\to e, e→fe\to fn∨kn\lor k, jj, t→gt\to g, ¬g\neg g, j→(¬t→(¬n∧b))j\to(\neg t\to(\neg n\land b)) Either Nora is happy or Kenji is calm. Jonas studies law. If Tara drinks tea, then Grace is busy. Grace is not busy. If Jonas studies law, then (if Tara does not drink tea, then both Nora is not happy and Bob is tired).
goalffkk (Kenji is calm)
planned proofMP, MP, MP, MP, MP: a⇒b⇒⋯⇒fa\Rightarrow b\Rightarrow\cdots\Rightarrow fMT: ¬t\neg t; MP: ¬t→(¬n∧b)\neg t\to(\neg n\land b); MP: ¬n∧b\neg n\land b; ∧\landE: ¬n\neg n; DS: kk
minimal proofs42 (with hypothetical syllogism, HS)exactly one
mandatory steps0 of 5: every MP can be routed around (re-routed, not over-determined)5 of 5; spine 4, one join
whynogood mp(mp,_)mp(mp,\_): HS bypasses an MP fed by another MPno placement completes a nogood

Figure 3. Planted vs. certified structure in propositional logic, row by row. (a) A planted five-step chain in which no step is mandatory once hypothetical syllogism is available. (b) A problem built by PROOFPLANT for the plan {MP, MP, MT, ∧\landE, DS}, whose five planned steps are all mandatory; its certificate lists the proof and its mandatory steps, and an independent checker re-derives both.

This leaves two questions. How deep are reasoning datasets, measured by what their problems require? And once depth can be guaranteed, how should training data use it?

For the first question, we make realized structure a measured and certified quantity, and then a construction target. The framework is general. A logic is declared by a signature, sound rule schemas and a semantics decided by a solver, and the measures, the construction and the checker run on any such declaration without logic-specific code. We instantiate fifteen, from propositional, first-order and modal logic to constraint puzzles, planning and state tracking. Because structure is counted in the declared rules, a reader who prefers other rules can declare them and rerun every audit. Adding rules can only make steps avoidable, never required (Proposition 1).

The second question turns out to be one of distribution design. At a fixed planted depth, examples that require their steps train much like examples that do not, once a label shortcut that comes with deep proofs is balanced. Deep-only data makes models abstain, and short proofs keep this in check. The best training sets combine depths and kinds of problems, and their advantage over uncertified data comes mainly from that combination. Our contributions are:

  • Measuring and auditing realized structure (§ 3, § 4). Relative to a stated calculus, we certify the mandatory steps of a problem (the rule applications present in every proof) and their topology, the shallowest and smallest proof and the number of minimal proofs, and, independently of any calculus, its minimal premise sets. Applied to ProofWriter, FLD×2, ZebraLogic, corrected FOLIO, PlanBench and the Boxes state-tracking data, and at the premise level to ProverQA and LogicGraph, from their own logical forms, these measures separate datasets whose claimed structure is forced from datasets where it is optional, and name four distinct ways in which a problem can have no mandatory step.

  • Constructing certified structure (§ 5, § 6). Target-conditioned construction (PROOFPLANT) builds problems whose every planned step is mandatory, at scale. It relies on a shortcut atlas, a set of nogoods1 over proof fragments proved once per calculus, with a soundness theorem for their use. Fifteen rule sets (propositional, first-order, modal, constraints, planning, state tracking) have machine-checked rules. Every generated problem comes with a certificate checked by code that shares nothing with the generator, and neutral labels are certified by finite countermodels.

  • A training study of depth and distribution shape (§ 7). Training sets that differ only in certified structure show that, at a fixed planted depth, the number of mandatory steps alone changes little once a label shortcut it brings along is controlled, that short proofs are needed beside deep ones, and that the number of proofs matters little. Certified problem types also give the training mixture coordinates: at equal size, mixtures over them transfer better to unseen benchmarks than FLD×2-style data over the same logics, for Qwen3 from 0.6B to 8B, through their composition, including Kripke examples the baseline lacks.

Every audit is reproduced from public data by one script, and the code is available ({link text}(https://github.com/sileod/semforge)).

Related Work

Synthetic reasoning corpora. RuleTaker and ProofWriter ([8, 43]) control proof depth; FLD and FLD×2 ([30, 31]) design a corpus by principles (multi-step deduction, distractors, diverse rules); PrOntoQA-OOD ([38]) controls rules and proof composition, MathGAP ([32]) proof-tree shape in arithmetic, and ScaleLogic ([47]) depth apart from expressiveness. SynLogic and Reasoning Gym ([27, 41]) scale up verifiable task families; PuzzleClone ([49]) verifies answers with an SMT solver; FOL-NLI ([39]) binds English to a prover’s language by grammars; ProverGen (Qi et al., [34]) verifies problems and proofs with a prover; RSS (Bu et al., [7]) samples reasoning topologies with a GFlowNet. A verified label and a valid proof do not make that proof’s steps necessary (§ 4): generators that plant a proof do not check which of its steps are required, and grammar sampling as in FOL-NLI plants no proof to check. We certify which planted structure is realized, and construct data so that all of it is.

Claimed against realized depth. HopToM (You et al., [51]) makes the same observation for theory of mind: nested-belief questions in existing benchmarks rarely require their nominal order, measured by the distinct events that support each belief layer, and it releases questions certified at full order. That measure reads one deterministic resolution trace of belief updates. Ours is relative to a stated calculus, counts alternative proofs (mandatory steps, re-routing, over-determination), covers deduction, constraint satisfaction and planning, is checked independently, and serves as a construction target and a training-mixture coordinate.

Multiple proofs. LogicGraph (Wu et al., [48]) enumerates every minimal proof to build a benchmark of multi-path problems (audited in § 4). Synthology (Van Schependom et al., [46]) builds proofs backward from ontologies. LogicSkills (Rabern et al., [35]) and ProofGrid (Arkoudas and Batzoglou, [2, 3]) evaluate countermodel construction and proof writing. We use alternative proofs as a quantity to audit and as a construction target (exactly one proof, or at least kk; § 5).

Shape of the training distribution. Zhang et al. [52] show that BERT fits one sampler of propositional Horn problems and fails on another sampler of the same logic: a generator’s statistical shape is learned.

Provenance, landmarks and puzzle generation. Mandatory steps are why-provenance ([14, 11]) read at the level of rule applications. In planning they are action landmarks (Karpas and Domshlak, [22]), the counterpart for actions of the fact landmarks of Hoffmann et al. [18]. Minimal premise sets are minimal unsatisfiable subsets, enumerated with MARCO (Liffiton et al., 2016), and justifications in description logics, found by axiom pinpointing ([4, 21, 19]). A premise in every justification is a counterfactual cause of the answer in the sense of database causality (Meliou et al. [29]). We carry these notions from premises to rule applications. Puzzle generators already constrain undesired solutions inside a solver (Smith et al., [40]) and generate natural-deduction exercises (Ahmed et al., [1]). Our atlas instead lifts such conflicts to schematic nogoods, proved once per calculus, that prune every later construction.

Realized Structure

Consider the problem of Figure 3a: premises aa, a→ba \to b, …, e→fe \to f and goal ff, planted as five applications of modus ponens. If the reasoner may also chain implications (hypothetical syllogism), adjacent implications can be merged before they are applied, and the goal acquires 42 minimal proofs. Each still has five applications and uses every premise, but no step belongs to all of them. A depth label of five merges three quantities that have come apart here: how long the shortest proof is, which steps all proofs share, and how many proofs there are. This section defines them.

Setting. Each logic in our framework fixes a signature, a calculus of sound rule schemas, a rendering into English, and a semantics decided by a complete solver (Z3 (de Moura and Bjørner, [9]), a CSP solver, or a Datalog chase). Semantics are first-order: quantified and modal statements compile into decidable fragments (monadic first-order logic, modal logics through the standard translation, finite domains for puzzles and plans), and a query the solver cannot settle is dropped. Calculi are ground and forward (no hypothetical steps). A problem is a set of premises Γ\Gamma, a hypothesis hh and a label: entailment, contradiction (together E/C) or neutral. Our claims come at three levels, which we keep apart throughout. Labels are exact relative to the solver. Structure is exact relative to the logic’s calculus over a bounded universe of formulas. Difficulty for models is measured, never certified.

Definition 1 (Proofs and mandatory steps). A rule application is a rule, a conclusion and premises. A proof of goal gg from Γ\Gamma is a set of applications that derives gg from Γ\Gamma. An application ss is mandatory if it occurs in every proof, i.e. gg is not derivable once ss is removed. Mandatory premises are defined the same way.

Depth is relative to a calculus. Every count of proof steps presupposes a set of rules, which fixes the granularity of a step. The planted depth is a count in the generator’s own rules. A measure of required structure cannot avoid this dependence, but it can state its calculus and say how its verdicts move when the calculus changes. They move in one direction.

Proposition 1 (Monotonicity). Let C⊆C′C \subseteq C' be sound calculi over one set of formulas, large enough for both (e.g. containing the assumptions of hypothetical steps). Every step mandatory for gg under C′C' is mandatory under CC; min depth and min size under C′C' are at most those under CC; and every inclusion-minimal CC-proof stays inclusion-minimal under C′C'.

Adding rules only adds proofs, so a step some proof avoids stays avoidable (proof in Appendix § 9). A finding of unforced structure therefore holds for every richer calculus, with hypothetical reasoning or fused macro-rules: adding rules cannot reverse it. A finding of forced structure is exact for the stated calculus and robust in rank: fused two-step rules lower counts by a fifth but keep the ranking of problems (Spearman .83; .98 for min depth).

Profile. Deciding which steps are mandatory takes one closure and one removal test per step of a single proof. The topology of the mandatory steps is read off the sub-derivation they form: its spine is the longest chain, and its joins are the mandatory steps that combine two or more mandatory sub-derivations. We call the number of mandatory steps the certified depth of a problem, as opposed to its planted depth, the length of the proof its generator sampled. It counts steps that every proof makes, and is neither the height of a shallowest derivation nor the size of a smallest proof, which the profile reports separately. The profile of a goal adds the height of the shallowest derivation (min depth), the fewest applications in any proof (min size) and the number of inclusion-minimal proofs. When proof enumeration reaches its cap, the profile is flagged inexact. Min depth and mandatory steps stay exact (Appendix § 10).

When no step is mandatory. Two disjoint 10-step proofs give no mandatory step but a min size of 10, so the absence of mandatory steps does not by itself mean a problem is easy. We split such problems into four groups: given (min size 0), one step (min size 1, several rules), re-routed (several proofs of two or more steps that share no step but use the same premises), and over-determined (several minimal premise sets).

eral minimal premise sets). The last two differ in kind. Re-routing depends on the granularity of the calculus: the chain of Figure 3a has many bracketings and no mandatory step, though every premise is needed, and without hypothetical syllogism every step of the chain is mandatory. Over-determination is a property of the premises, the same in any complete calculus. The four groups partition the problems without a mandatory step: first by min size, then, from two steps on, by the number of minimal premise sets. We also report the forced share: mandatory steps over min size, pooled over problems with min size at least one.

Premise level. Without any calculus, the solver alone gives the inclusion-minimal premise sets that still yield the label (enumerated completely with MARCO): premises needed, alternative justifications, distractor share, and rule kinds common to every justification. This level applies to any dataset with logical forms, including those whose rules we do not model.

Auditing Reasoning Datasets

We audit each dataset from its own logical forms, translated into one of our logics (Appendix § 10), and first check the translation: all 11,376 ProofWriter True/False questions re-derive, and FLD ×2 labels agree with z3 on all 455 problems drawn. The audit has two parts. The formal audit (§ 4.1) measures what each problem requires, without any model: the datasets fall into three cases, claimed depth that is forced, long proofs with mostly optional steps, and answers that need no particular step (Table 1). The empirical audit (§ 4.2) asks whether these measures, or the claimed depth, predict where language models fail.

dataset (sample size)diagnosisclaimedshallowest proofsmallest proofmandatory stepsforced shareallre-routedover-determined
ProofWriter, depth 5 (300)forced55.005.054.7494%0.7%0.3%0.3%
ProofWriter, all depths (1,800)forced2.52.502.522.3593%19%0.1%0.6%
FLD×2, depth 5 (400)optional5 (4.35)2.383.082.0868%18%17%0%
FLD×2, all depths (400)optional2.0 (1.73)1.431.650.9860%40%21%0%
ZebraLogic, propagated cells (400)re-routed–2.79≤3.480.84≥22%71%33%6%
PlanBench Blocksworld (501)forced–7.67.66.384%0%0%0%
Forward generation, propositional (400)mostly forced–5.318.987.8687%1.5%1.0%0%
Our construction, propositional (400)forced by design–7.4413.3113.31100%0%0%0%

Table 1. What problems require, by dataset (means over problems). Diagnosis: whether the claimed depth is forced, mostly optional, or met but by many interchangeable routes. Shallowest and smallest proof: the fewest levels and the fewest rule applications of any proof. Mandatory steps: rule applications present in every proof; forced share: mandatory steps over smallest proof size. The last three columns are shares of all problems: re-routed, several proofs over one premise set; over-determined, several minimal premise sets; the rest of “all” is answers that are given or take one step. For PlanBench, mandatory steps are action landmarks and the smallest proof is the optimal plan. In parentheses, FLD×2’s claim without the instantiation steps of its gold proof, which our ground calculus does not count. FLD×2 depth 5 is a separate sample of derivable depth-5 problems (95% bootstrap interval for mandatory steps 1.94–2.21). ZebraLogic proof enumeration hits its cap on 46% of cells, so its smallest proof is an upper bound and its forced share a lower bound. The last two rows are ours: problems in our propositional logic under the FLD×2 calculus, produced by forward generation (sampling a proof and verbalizing it, as FLD×2 does) and by the construction of §5.

Formal audit: what problems require

Depth that is forced: ProofWriter and PlanBench. ProofWriter defines depth as the depth of the shallowest proof, so our min depth matching it at every level (Figure 2) checks the certifier rather than the dataset. The finding is that this depth is also forced: 93% of the smallest proof is mandatory. ProofWriter’s weaknesses lie elsewhere. 85–90% of theory facts are never used, and depth-5 questions draw on only 42 distinct multisets of mandatory rule kinds. Blocksworld is similar: 84% of the actions of an optimal plan are landmarks, and 53% of instances have a unique optimal plan. PlanBench also offers a natural experiment on what a structural label leaves out. Mystery Blocksworld renames Blocksworld, and certification confirms that the two are structurally identical (same lengths, landmarks and plan counts). Reported accuracy of pre-0l models nevertheless falls from up to 62.6% to under 5% [45]: with structure held fixed, that drop measures the wording alone.

Figure 2. Mandatory steps by claimed depth. ProofWriter’s claim is nearly forced; FLD×2’s depth-5 problems force two steps. Constructed problems lie on the diagonal by construction (Table 1).

Long proofs, mostly optional steps: FLD×2. FLD×2’s claimed lengths hold up. Once the instantiation of universal facts is set aside (FLD×2 counts it as a step; our ground calculus does not), the smallest proof matches the claim up to depth 4 and falls short only at depth 5, where about half the problems admit a shortcut (Table 4 in Appendix § 10). Mandatory-step counts grow much more slowly. A depth-5 problem has about two steps that every proof must take. The rest can be routed around, and alternative proofs multiply with depth. Two problems in five have no mandatory step at all, because the hypothesis is already a premise or because the same premises combine in several orders.

claimed depth12345
problems128767924400
claim w/o instantiation0.861.972.563.294.35
min depth0.861.932.142.382.38
min size0.861.932.563.173.08
mandatory0.841.011.201.712.08
minimal proofs1.021.462.182.623.56

Table 4. FLD×2 by claimed depth. The smallest proof meets the claim without instantiation steps except at depth 5; mandatory steps grow far more slowly, and alternative proofs multiply. Depths 1–4 come from a random sample of 400 derivable problems (the others in it: 59 at depth 0, 34 at depths 5–7), depth 5 from a separate sample of 400 depth-5 problems.

The picture does not depend on our calculus: under FLD×2’s own rules it is the same, and adding contraposition forces even fewer steps, as Proposition 1 predicts (Appendix § 10). Given hypotheses and the absence of over-determination hold in any calculus. At the premise level FLD×2 is clean but thin: the gold premises are always the unique minimal support, but a problem needs only two or three of them and three quarters of the context is distractor. The 16% of problems our calculus cannot derive (hypothetical proofs, existential statements), 35% at depth 5, are not counted.

Answers that need no particular step: ZebraLogic. ZebraLogic is the opposite case: well-posed puzzles whose individual answers need no particular step. In an independent check every clue of each parsed grid is needed for the full solution, yet most cells that propagation reaches have no mandatory step. They are reached by several routes, almost always over the same clues: only 6% of cells (3% of the positive cells ZebraLogic asks for) have a second minimal set of clues (Table 1). Re-routing depends on the granularity of the calculus (§ 3), so this finding carries the same caveat as FLD×2’s. A model can thus be right about a cell while ignoring most of the interactions the puzzle was built around. Accuracy on cells says little about whether they were used.

Premise-level audits: FOLIO, ProverQA and LogicGraph. Where we do not model a dataset’s rules, the premise level still applies. Corrected FOLIO [15, 6], whose quantifiers, exclusive-or and biconditionals fall outside our calculi, is lean: a label needs 4.1 of 6.6 premises on average, and 93% of problems have a unique minimal justification. ProverQA [34] and LogicGraph [48] verify their data with a prover, which guarantees labels and valid proofs. The audit asks whether those proofs are needed. In ProverQA, often they are not. The premises cited by a problem’s reasoning chain always suffice, but a smaller set already gives the conclusion in 8% of easy, 30% of medium and 54% of hard problems, so the chain overstates the problem most where it is meant to be hardest. LogicGraph claims an exhaustive set of minimal proofs per query, and the claim holds where our enumeration is complete (all Small and Medium instances, a quarter of Large ones): every listed proof’s premise set is minimal and no support is missed. Its structure is as claimed. It is also fully redundant at scale, since no Large instance has a premise that every proof needs. Label agreement and enumeration details are in Appendix § 10.

State tracking: Boxes. The same analysis reaches beyond logic puzzles. The boxes data of Kim and Schuster [23] describe objects in seven boxes, then put, remove and move operations, and ask what a box contains. Declared as a logic with no change to our machinery (Appendix § 10), it yields two findings that sharpen the authors’ own analysis, which scores accuracy by the number of operations that changed the asked box. On the base split, the last sentence naming each object gives the answer exactly, at every length: composition never matters. And the operations that touch a box overstate those it depends on, since later operations overwrite earlier ones: with five or more, the answer depends on fewer in 94% of cases. Moving contents without naming them, as the authors’ harder split does, is what makes tracking necessary, and there the last-mention rule falls from 82% accuracy with one operation to 54% with five or more (an independent count and our logic agree on every sampled story).

Empirical audit: what predicts model errors

The formal audit says what a problem requires of an ideal solver. Whether that is what makes problems hard for language models is an empirical question, which we test on FLD×2, whose claimed and required depth differ most, and on constructed problems, where they coincide.

What makes FLD×2 hard. Two LLMs, DeepSeek-V4-Flash [10] and gpt-oss-120b [33] at low reasoning effort, label 763 derivable E/C problems of the FLD×2 test set from the dataset’s own English, balanced over claimed lengths. Almost every error is “neutral”: the model fails to find a derivation, rather than finding a wrong one. Errors grow with claimed length, as a depth label promises, but length is not the only thing that grows. Longer FLD×2 proofs more often use a universal fact, and at a fixed claimed length such a fact costs gpt-oss 20 to 40 points of accuracy. In joint logistic fits, universal facts predict errors beyond every depth measure for both models, and the depth measures add information beyond universal facts as well (Table 3 in Appendix § 10). The depth label thus leaves out a large factor that it does not measure.

DeepSeek-V4-Flashgpt-oss-120b
accuracy0.905 (n=704)0.670 (n=763)
gold proof uses a universal0.773 vs. 0.9570.444 vs. 0.774
claimed length−0.06 [−0.92, 0.84]−0.69 [−1.43, 0.25]
minimum proof size−0.19 [−0.96, 0.55]+0.06 [−0.70, 0.64]
universal fact used−0.79 [−1.16, −0.48]−0.47 [−0.77, −0.19]
shorter than claimed−0.30 [−0.68, 0.09]−0.37 [−0.79, −0.04]
depth measures, jointlyp=.02p = .02p<.001p < .001
universal fact, beyond depthp<.001p < .001p<.001p < .001

Table 3. LLM errors on FLD×2. Top: accuracy on parsed answers (59 DeepSeek replies gave no label and are excluded; scoring them as errors gives .835). Bottom: standardized logistic coefficients for correctness, with bootstrap 95% intervals. Shorter than claimed: minimum proof below the claim without instantiation steps. The depth measures are correlated, so their individual coefficients are not separately identified; the last two rows are likelihood-ratio tests of the three depth measures as a block given universal facts, and of universal facts given the three.

The models’ replies suggest why. FLD×2 words most universals with “some”, “somebody” or “something” (“Some man is unplanned if the one is a kind of a shadowed”), and the replies read them as particular (“It does not state that every shadowed thing is unplanned”). Rewording tests whether this is the cause. On the 161 problems whose gold proof uses such a fact, we change only the quantifier word (“Something that…” becomes “Everything that…”, the logic is untouched) and ask each model three times per version. Comparing replies obtained on the same day, rewording raises gpt-oss’s accuracy by 7 points (.59 to .66, interval over problems .00–.13) and DeepSeek’s by 5 (.58 to .63, −.01 to .11). The wording is thus one cause of errors, borderline for each model. (Replies to the unchanged prompts from an earlier run differ from same-day replies by as much as this effect, so only same-day replies are compared.) Necessity, unlike length, does carry signal: for gpt-oss, problems whose smallest proof is fully forced are easier and problems whose premises can be re-routed harder (forced share +0.47 [0.28, 0.68] in a fit with claimed length, min size and universal facts; no effect detected for DeepSeek). As with

Mystery Blocksworld, part of what predicts errors is something the depth label does not measure.

Mandatory steps predict errors. Constructed problems (§ 5) remove both confounds: every planted step is mandatory, the planted proof is the shortest, and universals are always worded “every”, “all” or “no”. On such problems depth does what FLD×2’s label could not (Table 2, 600 monadic problems with 1–20 mandatory steps). gpt-oss-120b goes from near-perfect on short proofs to near-floor on long ones, and more reasoning effort barely moves it. Gemma-4-31B (Gemma Team, [13]) is near ceiling, but its few errors sit at the deepest problems. DeepSeek-V4-Flash is perfect throughout, so the problems are solvable as written. The failure is again “neutral”: the model reports a missing premise that, in every error we traced by hand, is in the text. Depth is not standing in for length here: at a fixed number of premises, accuracy still falls with depth (below 15 premises, from .58 up to 7 steps to .17 from 13).

mandatory steps1–34–78–1213+
DeepSeek-V4-Flash (low)1.001.001.001.00
gpt-oss-120b (low)0.890.400.130.10
gpt-oss-120b (high)0.900.450.220.13
Gemma-4-31B1.001.000.990.95
problems (E/C)2973139166

Table 2. Accuracy on constructed monadic E/C problems by certified mandatory depth. Neutral problems: 0.97–0.99. gpt-oss (high), standardized logistic coefficients: mandatory steps −0.63 [−1.00, −0.33], premises −0.66 [−1.07, −0.25]; Gemma: mandatory −2.29 [−5.67, −1.32], premises +0.48 [−0.29, 1.34]. Gemma makes about ten errors in all, so its coefficients are imprecise.

Constructing Certified Structure

The audit separates planted from realized structure after the fact. Construction closes the gap beforehand: a request states the structure every proof should have, and the output is a problem certified to have it. A target requests a label, a multiset of rule applications or the shape of the mandatory steps (spine and joins), a number of minimal proofs, and distractors (irrelevant derivations and near misses that miss the goal by one premise). Our construction algorithm, PROOFPLANT (Algorithm 1), builds an intended derivation backward and binds it to fresh constants. It then certifies the problem: every planned application must be mandatory, and the topology of the mandatory steps must equal the requested shape; the rest of a proof may vary.

Algorithm 1 PROOFPLANT: atlas-guided construction of a certified problem.

Require: target TT (label; plan: rule multiset or mandatory-step shape; kk minimal proofs; distractors), logic PP, atlas AA of nogoods

Ensure: a problem (Γ,h)(\Gamma,h), its label and its certificate, or failure

  1. for attempt =1,…,N=1,\ldots,N do

  2. D←D \leftarrow derivation of the goal built backward from TT’s plan; place a rule schema at an open node by unification, unless the placement completes a nogood of AA (constants kept distinct)

  3. bind the metavariables of DD to fresh constants; add TT’s distractors

  4. ℓ←\ell\leftarrow label of (Γ,h)(\Gamma,h) from PP’s solver

  5. π←\pi\leftarrow profile of (Γ,h)(\Gamma,h) ▹\triangleright mandatory steps, topology, minimal proofs

  6. if the requested steps are mandatory in π\pi (every planned step; for k≥2k \ge2, the requested bottlenecks and at least kk minimal proofs) and π\pi’s topology is TT’s then

  7. return (Γ,h)(\Gamma,h), ℓ\ell, and the certificate (proof, mandatory steps; countermodels if neutral)

  8. end if

  9. lift the fragment of DD that a proof bypasses to a schematic nogood nn; verify nn over U∗(n)U^*(n) and add it to AA

  10. end for

  11. return failure

Why filtering is not enough. The obvious alternative is to generate forward and keep the problems that certify. In a redundant calculus this fails more often as size grows, because deleting distractors cannot remove a shortcut that lies inside the intended proof. At 30 rule applications, only 5% (propositional) and 15% (monadic) of forward-generated problems need all their planned steps. Backward construction with per-instance rejection fails 33–44% of requests when it may redraw each one eight times, as the atlas may; given 64 redraws it succeeds on 98–99%, and the atlas still makes a certified instance two to three and a half times cheaper (Table 5 in Appendix § 10).

logicnnforward all neededfilter s/instancesuccess reject, 8success reject, 64success ours
prop.852%0.010100% (0.013)—100% (0.010)
prop.305%0.2756% (0.40)98% (0.22)100% (0.058)
monadic850%0.02099% (0.021)—99.5% (0.021)
monadic3015%0.2667% (0.29)99% (0.17)99.8% (0.081)
CSP8–30100%0.02–0.04100%—100% (0.08)

Table 5. Building instances with nn applications, all certified mandatory. Forward all needed: share of forward-generated instances whose planned steps are all mandatory; filter: forward generation kept only when all steps are mandatory; reject: backward construction with per-instance rejection and no atlas, with at most 8 or 64 redraws per request (ours: 8). 200 instances or requests per line (CSP: 20; redraws: 100, where the atlas takes 0.064 and 0.086 s). CSP propagation has no shortcuts and serves as the control.

Shortcut atlas. The shortcuts that defeat planting are few and recurrent. In Figure 3a the cause is the same at every step: a modus ponens whose minor premise comes from another modus ponens is bypassed by hypothetical syllogism, whatever the formulas involved. The atlas records such patterns once per calculus, and construction never builds them.

Formally, a fragment is the top of a derivation tree: a rule, and for each premise either a hole or a sub-fragment. Its most general instances (MGIs) apply the schemas with most general unifiers and replace the remaining metavariables by fresh, distinct constants. A fragment FF is a nogood if every MGI has a proof of its root that avoids one of FF’s applications, checked over a stable universe U∗U^* of subformulas, their non-cancelling negations and closed constructors.

Theorem 1 (Soundness). Let FF be a nogood and DD a tree derivation in which no application occurs twice, in an instance that may contain any further premises and distractors. If DD contains σ(M)\sigma(M) for an MGI MM of FF and a sort-preserving substitution σ\sigma that is injective on U∗(M)U^*(M) and maps it into the instance’s universe, then some proof of DD’s conclusion avoids one of DD’s planned applications.

The proof (Appendix § 9, which also shows both hypotheses necessary) maps the shortcut of MM into the instance and splices it into DD. Atlases enumerate fragments up to three applications (about a second per logic) and are small: the propositional one has six nogoods, e.g. mp(mp,_)mp(mp,\_), shortcut by hypothetical syllogism. Construction rejects a placement as soon as it completes a nogood. Every output is still certified in full, so pruning can only lose valid problems (Appendix § 9). When certification still finds a shortcut, the responsible fragment is lifted to a new schematic nogood, which prunes all later constructions of any size.

The atlas also makes explicit what a calculus can teach. With hypothetical syllogism among the rules, no constructed problem contains a chain of modus ponens, because no such chain can be forced there. Which chains appear follows from the calculus a logic declares. A logic that should teach such chains omits hypothetical syllogism.

Scale and coverage. With the atlas, failure by shortcut disappears. Certified success is 99–100% for propositional and monadic requests of 20, 30, 40 and 60 steps (200 requests each; 0.03–0.34 s per problem). Construction also steers which proof shapes appear. It keeps an archive of shape classes (label ×\times spine length ×\times number of joins, spine up to 12, joins up to 6), picks the least-covered class, draws a skeleton uniformly among the trees of that class, and fills it. With 380 E/C problems per strategy, this reaches all 140 E/C shape classes in each of five logics (propositional, monadic, CSP, modal K, order), against 78–88 for forward generation, at 0.75–1.5×\times its throughput. The lead survives size matching, and the same archive can follow a requested distribution over classes instead of uniform coverage (Appendix § 10).

Certificates and Logics

Independent checking. A structural claim is only as good as the code that computes it, so each problem exports a certificate that can be checked without that code: the proof, the claimed mandatory steps and premises, the background facts, and the label query in SMT-LIB. The checker trusts what the certificate refers to: the rules of the calculus and the logic’s encoding into SMT, whose soundness is checked separately (§ 6, Logics). A checker that shares no code with the generator re-verifies each proof step and re-saturates without each one: the claimed mandatory steps must be exactly those whose removal makes the goal unreachable. A neutral label carries finite countermodels, which the checker evaluates directly, without a solver. Over 540 certificates from 9 logics, all pass, and every injected corruption that invalidates a certificate is caught (Appendix Appendix § 10). Certificates depend only on the problem as shown: analysed from its premises and hypothesis alone, without the formulas the generator passed through, each of 800 generated problems (four logics, both generators) has the same depth, mandatory steps and smallest proof.

Logics. Fifteen logics are instantiated: propositional logic, monadic first-order logic (with and without syllogisms), a CSP propagation calculus, modal K and S4 (flat and nested), hybrid modal logic with named worlds, strict orders, Zebra-style grids, a kinship program imported from Datalog, bounded planning, objects moved between boxes, and arithmetic over scores. Each lists its signature, rule schemas, semantics and rendering, and its rules are proved sound for all instances when it is loaded (137 rules in all, each proved for every instance by z3). Logics are also checked for requiredness: whether each rule is mandatory in some instance, since structural claims are only informative for calculi in which each rule can be required. Every rule passes except two, kept on purpose as one-rule shortcuts: in flat modal S4, “necessarily AA at ww, and ww sees vv, so AA at vv” chains two other rules, and in arithmetic, “PP scores below QQ, so PP is not higher than QQ” does too. They are never mandatory, so construction never plans them as steps that must be made. What a logic can express, and where construction stops, is detailed in Appendix § 10.

Training with Certified Structure

Construction makes depth something we can guarantee. This section asks how training data should use it: whether certified depth changes what a model learns, whether more of it is better, and how depth should be combined with other properties of the data. Certification is what makes these questions testable, because training sets can be made to differ in one structural variable while labels, premise counts and neutrals are matched.

Setup. We fine-tune small LLMs, Qwen3-0.6B-Base (Yang et al., [50]) unless stated, to predict the label (full fine-tuning, 2 epochs, 3,000 examples) and score labels by log-probability. Label prediction is the simplest training signal, and it keeps differences between training sets attributable to the data rather than to a decoding or reward scheme. The experiments therefore show how certified structure shapes label prediction and transfer. Models can also be trained to write proofs, which our checkers grade: trained on certified problems, they answer deep problems while citing premises that suffice for the answer several times more often than when trained on forward problems in the same format, and the gap opens with depth (Figure 6 in Appendix § 12). Encoders point the same way and are left to Appendix § 11: constructed data leads FLD×2’s own training data on its test by 1–2 points, and rule kinds and shapes matter more than depth.

Figure 6. Share of problems answered correctly with a proof whose cited premises alone give the answer (intermediate steps unchecked), on held-out certified monadic problems, by the problem’s mandatory steps. Qwen3-0.6B, 4,500 training examples in the same proof format, mean of three seeds (Table 10).

Controls and metric. Comparisons between reasoning datasets are easily decided by something other than reasoning. In our first comparisons, shared neutral examples, generator style, a hypothesis-only cue and three-way accuracy on test sets without neutral problems each decided the outcome until a matched control removed it (Appendix § 12). Training sets are therefore matched on labels, premise counts and how neutrals are built, and we report two-way accuracy (on problems labelled E or C, whether the model prefers the right one of these two labels, balanced over both) and the neutral rate separately. Two-way accuracy cannot be raised by answering neutral more often, since neutral is not an option.

Certified depth alone changes little. The audit found that FLD×2’s depth-5 problems force two steps under standard derived rules. Whether such a gap matters for training can be tested directly. We take forward-generated monadic examples planted at depth 5–9 and split them by their number of mandatory steps: at most three (the FLD×2 pattern), or at least the planted depth minus one. The two training sets are matched per label and planted depth (mean 5.8; certified 2.5 vs. 5.8) and in length (472 vs. 490 characters), and their neutrals are split the same way by the depth of the proof their deleted premise belonged to. A first version of this contrast seemed to show that certified-deep examples train better (two-way accuracy +.11 on QMLTP, +.03 on FLD×2 and ModalBench) and make the model abstain far more often. Most of both effects came from a label shortcut that selecting by certified depth brings along: deep proofs more often end in a negated contradiction, so negation separated contradictions from entailments by .34 in the deep set against .13 in the shallow one, and the deep set gained where a negated hypothesis signals contradiction and lost where it misleads (Appendix § 12). With negation balanced in both sets (half the examples of each label and planted depth negated), fourteen seeds of Qwen3-0.6B show no two-way difference on any test (largest: QMLTP +.05, interval −.00 to .10), and more neutral answers only on FOLIO, ProverQA and ProofWriter. At a fixed planted depth, then, what certification changes in this data is mostly which conclusions proofs reach, not how well a model trained on it reasons. Full results for this and the other controlled contrasts are in Table 12 (Appendix § 12).

testmany − few mandatory steps, balanced (14)several proofs − one (14)certified − forward derivations (7)
two-wayN ratetwo-wayN ratetwo-wayN rate
FOLIO−.012 [−.047, .021]-.012\ [-.047,\ .021].48→.66.48 \to.66+.008 [−.023, .040]+.008\ [-.023,\ .040].28→.26.28 \to.26+.022 [−.015, .061]+.022\ [-.015,\ .061].10→.09.10 \to.09
ModalBench+.003 [−.013, .020]+.003\ [-.013,\ .020].39→.30.39 \to.30−.002 [−.022, .019]-.002\ [-.022,\ .019].27→.30.27 \to.30+.015 [−.009, .042]+.015\ [-.009,\ .042].00→.01.00 \to.01
FLD×2+.011 [−.007, .030]+.011\ [-.007,\ .030].34→.34.34 \to.34−.021 [−.040, −.003]-.021\ [-.040,\ -.003].17→.21.17 \to.21+.014 [−.007, .034]+.014\ [-.007,\ .034].04→.02.04 \to.02
ProverQA−.007 [−.026, .009]-.007\ [-.026,\ .009].48→.58.48 \to.58−.011 [−.030, .006]-.011\ [-.030,\ .006].37→.35.37 \to.35.000 [−.017, .019].000\ [-.017,\ .019].27→.28.27 \to.28
ProofWriter−.004 [−.028, .018]-.004\ [-.028,\ .018].07→.14.07 \to.14+.027 [.007, .049]+.027\ [.007,\ .049].12→.04.12 \to.04+.007 [−.019, .031]+.007\ [-.019,\ .031].03→.02.03 \to.02
TPTP+.025 [−.019, .070]+.025\ [-.019,\ .070].62→.64.62 \to.64−.024 [−.063, .012]-.024\ [-.063,\ .012].55→.50.55 \to.50+.005 [−.019, .028]+.005\ [-.019,\ .028].19→.14.19 \to.14
QMLTP+.049 [−.003, .103]+.049\ [-.003,\ .103].63→.63.63 \to.63−.017 [−.076, .039]-.017\ [-.076,\ .039].35→.46.35 \to.46+.039 [−.020, .102]+.039\ [-.020,\ .102].01→.01.01 \to.01
W-A pairs−.016 [−.038, .006]-.016\ [-.038,\ .006].46→.49.46 \to.49+.007 [−.013, .025]+.007\ [-.013,\ .025].32→.34.32 \to.34−.016 [−.047, .016]-.016\ [-.047,\ .016].06→.06.06 \to.06

Table 12. The three controlled contrasts on every test (Qwen3-0.6B). The depth contrast has negated hypotheses balanced per label and planted depth in both sets (the unbalanced version and its polarity confound are in Appendix § 12). Two-way accuracy difference with 95% intervals that resample seeds and test problems (bold: excludes zero), and the share of neutral answers from the first training set to the second. FLD×2 and ModalBench have no neutral problems; on the other tests a third or fewer are neutral.

Deep examples need short ones beside them. We split examples into three ranges of mandatory steps (1–3, 4–7, 8+), matched on label and premise count; a neutral example deletes one premise of a proof and is placed by the depth of that proof. Deep-only training buys little on deep test examples and costs the short ones, and on FLD×2 it fails in a telling way (Table 9, Appendix § 12). Qwen trained on deep examples alone answers neutral on half of FLD×2’s derivable problems, yet the answers it does commit to are as accurate as those of any other mixture. Deep-only training makes models ready to declare a label underivable, and short proofs hold that back. Every mixture with shallow examples avoids this collapse, in three model families, while finer rankings between such mixtures do not carry over between models (Figure 5). Distractor load contributes too: depth ranges are matched on premise count, so shallow examples carry more irrelevant premises, and without any distractors shallow-only training reaches .54 on FLD×2 instead of .62, still well above deep-only data. Training data should cover a range of depths that includes short proofs, which is also what the benchmarks we transfer to look like.

training examples (shallow:medium:deep)Qwen3-0.6B in-logicQwen3-0.6B FOLIOQwen3-0.6B FLD×\times2Qwen3-0.6B NQwen3-0.6B commitSmolLM2 FLD×\times2Gemma-3 FLD×\times2
constructed 2:0:0.77.47.62.02.64.43.47
constructed 1:1:0.77.46.61.05.64.39–
constructed 1:1:1.76.45.60.06.64.46.45
constructed 0:0:2.72.40.32.53.68.23.30
forward + filter 1:1:1.73–.32.49.64––
with forward-style neutrals.74–.60.10.66.17.32

Table 9. LLMs trained on mixtures of mandatory-step ranges: macro accuracy, mean of seeds 10–12. On FLD×\times2, N is the share of derivable problems answered neutral and commit the accuracy of the answers that are E or C: deep-only training loses by abstaining, not by confusing the two labels (FLD×\times2 ranges ±.03 for constructed training sets on Qwen). Forward + filter: FLD×\times2-style forward examples certified and filtered into the same depth ranges. FOLIO: corrected validation set (202 examples). Untrained Qwen: .34 in-logic, .32 FOLIO, .30 FLD×\times2. Qwen deep-only is seed-sensitive (five-seed mean .39 on FLD×\times2).

Figure 5. Training with and without shallow examples, scored on FLD×\times2 (accuracy on its entailment and contradiction problems, averaged over the two labels; a neutral answer counts as wrong). Each training set mixes shallow (1–3 mandatory steps), medium (4–7) and deep (8+) examples in the proportions shown: 2:0:0 is shallow only, 1:1:1 equal thirds. One dot per seed (Qwen: seeds 0–1 and 10–12; SmolLM2, Gemma: 10–12), bars at the mean. Every mixture with shallow examples beats every mixture without them on SmolLM2 and Gemma; on Qwen, mixtures without them vary widely across seeds.

Redundant proofs are not a defect. The audit also finds problems whose goal can be reached in many ways from the same premises. Training on such problems (several minimal proofs, three or more for 71% of them, re-routings of one premise set) instead of single-proof problems with the same shortest proof changes two-way accuracy by at most three points, on two of eight tests and in opposite directions (fourteen seeds, Table 12). How deep a problem’s proofs are matters for training, but how many routes it offers matters little.

Sources. Depth is one axis of the distribution; the kind of problem is another, and certified sources can be mixed. We add two to the monadic examples: labelled modal logic problems, and closed Kripke models where the question is whether a formula holds at a world (z3, checked by an independent evaluator; E/C only). Mixtures selected on development sets (FLD×2 validation, 400 FOLIO training examples, a third of ModalBench’s English track ([16])) and confirmed on fresh seeds improve FOLIO and ModalBench and leave FLD×2 unchanged (Table 7 in Appendix § 12). The gains survive when every training set is restricted to E/C examples, so they come from what the sources teach and not from mixing as such. One thing they teach is wrong, and the way it is repaired shows what control over the distribution is for. A Kripke example lists every fact of its world, and the model carries this closed-world reading to text that does not license it: FOLIO neutrals start being answered as contradictions. Hiding a share of the Kripke facts, so that some formulas are undecided and labelled neutral, undoes this while keeping the other gains (designed after the tests exposed the problem, then confirmed on fresh seeds). It also teaches the model to read the stated assumption, and one failure remains in every mixture: models keep answering entailment when a mandatory premise is removed (Appendix § 12).

training sourcesFOLIO macroFOLIO N recallFOLIO N→CModalBench E/CFLD×2 macrocounterf. all three
+ monadic (3k examples).46.24.25.53.62.18
+ modal + Kripke (3k).48.12.33.61.62.22
+ modal + Kripke (9k, selected).50.14.38.65.62—
+ modal + partial Kripke (9k).51.32.26.64.63.34

Table 7. Qwen3-0.6B on certified sources, seeds 10–12. ModalBench: held-out two-thirds, neutral answers replaced by the likelier of E and C. N recall / N→C: FOLIO neutrals answered neutral / contradiction. Counterfactual: share of 201 groups with all three examples right.

Mixtures of certified problem types. No single depth range or source is best, so we describe the training distribution by nine certified problem types (monadic and modal examples in three depth ranges, closed Kripke examples by modal depth, partially observed Kripke examples) and mix them. At equal size we compare mixtures over these types (uniform, or searched as described below) with an FLD×\times2-style baseline (forward-generated monadic and modal examples, half each, labelled by the same solver and rendered by the same templates, taken as the generator makes them, with no selection on certified structure; forward generation has no counterpart for Kripke examples) and with 3,000 training examples of FLD×\times2, ProverQA and ProofWriter. FLD×\times2-style generation is the main baseline because it is the established way to build deductive training data: FLD and FLD×\times2 were designed as training corpora and shown to improve LLM reasoning ([30, 31]), and ProverQA also builds each problem from a sampled proof. Rebuilding it in our own logics, with our solver and templates, leaves the two training sets differing in whether their structure is certified and chosen, and through that choice in their composition of problem types and depths. We separate the two below. Besides the five tests used so far, three were seen by no selection step: TPTP ([42]) and QMLTP ([36]) problems rendered in English with prover-checked labels (1,412 and 900 examples), and 300 world-assumption pairs, Kripke problems that differ only in the sentence closing the world (Table 8).

training dataFOLIOModalB.FLD×2ProverQAProofW.*TPTPQMLTPW-AN gap
Qwen3-0.6B, 3,000 examples
certified types, searched.68.62.65.62.86.78.74.69.14
certified types, uniform.65.61.63.60.78.72.69.72.13
planted-depth types, searched.68.58.63.60.88.78.71.70.12
planted-depth types, uniform.67.63.63.60.81.69.71.77.14
FLD×2-style, same logics.62.58.59.55.94.77.58.61.21
FLD×2.61.53.82.64.91.84.62.59.36
ProverQA.63.54.62.80.93.64.49.57.36
ProofWriter.58.57.66.60.99.84.75.57.28
Qwen3-0.6B, 9,000 examples
certified types, searched.73.65.63.62.90.76.68.74.11
certified types, uniform.71.66.63.63.81.68.68.80.11
FLD×2-style, same logics.66.59.58.57.94.72.64.61.11
Qwen3-1.7B, 3,000 examples
certified types, searched.73.64.70.71.85.79.77.73.14
certified types, uniform.70.64.69.71.83.75.71.75.15
FLD×2-style, same logics.71.59.65.68.86.82.81.65.18
Qwen3-4B, 3,000 examples
certified types, searched.84.74.73.79.77.86.91.79.13
certified types, uniform.84.75.72.80.74.81.87.82.12
FLD×2-style, same logics.82.68.68.74.89.82.81.66.14
Qwen3-8B, 3,000 examples
certified types, searched.86.74.75.78.83.89.92.82.11
certified types, uniform.87.75.74.79.78.86.91.82.11
FLD×2-style, same logics.85.69.72.77.87.86.90.66.11
SmolLM2-1.7B, 3,000 examples
certified types, searched.66.50.63.63.90.82.54.67.14
certified types, uniform.67.50.66.67.89.70.51.65.18
FLD×2-style, same logics.66.51.66.65.93.62.51.63.36

Table 8. Two-way accuracy (E vs. C) on untouched tests at equal training size. Qwen3-0.6B (full fine-tuning) and Qwen3-1.7B, 4B, 8B and SmolLM2-1.7B (LoRA, rank 16); mean of seeds 10–16. The mixture was searched once (0.6B, 3,000 examples) and reused unchanged. Planted-depth types: the same nine types built from forward examples binned by planted depth instead of mandatory steps. Italics: test from the training source; bold: best of the others in its block. W-A: world-assumption pairs, Kripke pairs differing only in the sentence that closes the world. FLD×2-style examples are derivations only; about a quarter of the certified mixture is Kripke model checking. N gap: mean absolute gap between the share of neutral answers and the share of neutral examples, over the eight tests. *ProofWriter’s labels follow hypothesis negation (the cue alone scores .945), so its column partly measures reliance on that cue (Appendix § 12).

Certified problem types beat FLD×\times2-style examples on most tests, at every model size we tried (Figure 4). The lead is systematic on FLD×\times2, ModalBench and ProverQA, where it holds in all five Qwen settings (ProverQA except at 8B) with paired bootstrap intervals over test examples that exclude zero, and uniform weights over the types already

Figure 4. Gain from training on certified data instead of FLD×2-style data. Each point is the two-way accuracy of a model trained on the certified mixture minus that of the same model trained on FLD×2-style examples from the same logics, in percentage points; above zero, certified data is better. Both training sets have 3,000 examples; points are means over seeds 10–16 with 95% intervals. ∗ProofWriter’s labels follow a surface cue (§ 7). All scores: Table 8.

obtain it. It also holds on the world-assumption pairs, partly by construction, since only the certified mixture contains Kripke examples. FLD×\times2-style examples win on ProofWriter at every size, mostly through a surface cue: 96% of its test contradictions and 7% of entailments have a negated hypothesis, so answering contradiction exactly on negation scores .945. On the 22 problems where the cue misleads, the certified mixture leads instead (by .17 at 0.6B and .10 at 8B), as it does on TPTP’s (Appendix § 12). On the prover-derived tests the picture turns with scale, FLD×\times2-style examples leading at 1.7B and the certified mixture from 4B on, which suggests that the harder problem types pay off once the model can use them. The gains transfer only partially to a second model family: SmolLM2-1.7B (Ben Allal et al., [5]), at chance on ModalBench and QMLTP whatever it is trained on, keeps the TPTP lead and the neutral rate. The neutral rate is the most portable effect: the certified mixture’s stays near the gold share across tests, while existing datasets carry their label prior with them: on ModalBench, where no example is neutral, they answer neutral on most examples. Against those datasets, the certified mixture is the best out-of-domain source on FOLIO and ModalBench and close to the best elsewhere, except on ProofWriter and TPTP.

Where the lead comes from. The comparison above changes two things at once, the examples and their proportions, and the two can be separated. Keeping a searched mixture and swapping only its derivation examples for forward examples changes accuracy significantly on no test over seven seeds (Appendix § 12): at the level of a mixture, the gain is composition. The per-example value of a certificate is the planted-against-certified contrast above, where composition is held fixed. The two results fit together: the mixture’s problem types are defined by certified depth and include model-checked examples (neutrals with countermodels, Kripke examples) that a forward generator does not produce.

The same holds for the bins themselves. Building the nine types from forward examples binned by their planted depth, as a generator without certificates would, and reusing the searched weights, loses on ModalBench in every seed and slightly on FLD×\times2, and matches the certified mixture elsewhere; with uniform weights the two binnings cannot be told apart (Table 8). Which depth labels the bins carry matters only once weights are fitted to them: a search learns how much of each depth to include, and planted depth misreports what each bin holds.

Searching the mixture. With problem types as coordinates the mixture can be searched. Following [28], we train 60 one-seed proxies on random mixtures, regress the mean development score on the weights, and confirm the predicted optimum on fresh seeds (Appendix § 12). Composition matters and is predictable, and the fit reads as an analysis: shallow monadic examples and deep modal examples help every task and deep monadic examples get no weight, so the useful control is over which depth, per source, and not over depth as such. The selected mixture beats uniform weights on most tests in the setting it was searched for, without shifting the label prior. Carried to other model sizes and to 9,000 examples, it is mostly level with them. Search is thus an instrument to rerun at the size of interest, and the lead over FLD×\times2-style examples does not depend on it.

Conclusion

Generators plant depth, and what they plant can be checked. Measured by what every proof requires, ProofWriter’s depth is real and forced, FLD×\times2’s has its length but is rarely forced, most ZebraLogic grid cells need no particular step, Blocksworld plans are almost fully forced, and ProverQA’s chains are often longer than needed. A shortcut atlas with a soundness theorem makes the converse practical: data whose every proof makes the requested steps, with checkable certificates. The training study then qualifies the goal. At a fixed planted depth, certified depth alone changes little once the label shortcut it brings along is balanced, and the best training data covers short proofs beside deep ones and several kinds of problems. Its composition accounts for most of its lead over uncertified FLD×\times2-style data from the same calculi. The gap between planted and required structure widens with depth, so we expect certification to matter more as generators are asked for harder problems.

Limitations

Structure is relative to a calculus. Mandatory structure is defined relative to a set of inference rules. This is inherent to the notion: a proof step can only be counted once the rules that license it are fixed, and a different reasoner may take shortcuts that ours cannot. We address this with generality rather than with a single privileged calculus. A logic is declared by its rule schemas, fifteen are instantiated (propositional, first-order, modal, constraint, planning and state-tracking reasoning), and a Datalog program can be imported as one, so a reader who prefers other rules can state them and rerun every audit. The verdicts then move in a known direction. A step found avoidable stays avoidable under any sound extension of the calculus (Proposition 1). Forced steps, including those of certified construction, are exact only for the stated calculus: under coarser rules their counts shrink, although rankings between problems are largely preserved (from 11.1 to 8.7 mandatory steps on average with fused rules; topology is the least stable measure, Spearman .66).

What the audits cannot see. Our logics omit hypothetical reasoning and case splits, so 16% of FLD×\times2 problems, FOLIO at the proof level and some ZebraLogic cells are out of reach. We report them as such rather than approximating them. Proof enumeration is capped, so for the few problems whose profile is inexact (flagged in the data), the smallest proof size and the number of proofs are bounds. Each audit also depends on a translation of the dataset’s logical forms into one of our logics. We check these translations by re-deriving every label we can (all ProofWriter True/False questions, every FLD×\times2 problem drawn), but a translation that agrees on labels could still differ in which rules it exposes.

What construction selects. Requiring every planned step to be mandatory also decides which problems can exist. Where the rules offer two routes (with a rule that chains “all A are B” and “all B are C”, the facts A(a)A(a), all A are B and all B are C have two two-step proofs and no mandatory step), redundant and compositional instances are excluded, so our deep problems are also problems with a single proof. At a fixed proof length this matters little for training (§ 7), but we have not tested it with deeper or deliberately over-determined problems. A neutral example’s counterfactual depth is the depth of the proof its removed premise would complete, which does not measure how hard it is to establish that the problem is neutral. Rule-kind vocabularies differ across sources, so diversity counts across sources are approximate, while counts within one vocabulary are exact. Finally, our texts are templated: a certificate covers the formal instance, not the faithfulness or naturalness of its English rendering, and models trained on templates may learn surface regularities that natural text lacks.

How far the training evidence goes. The training study uses small models (Qwen3-0.6B with full fine-tuning, 360M and 270M models, and Qwen3 1.7B to 8B with LoRA [20] for the mixture comparison), short training runs and three to fourteen seeds per setting. Most effects are a few points, small relative to seed variance, so we report intervals over seeds and test problems and say where model sizes disagree; the encoder experiments are smaller still. Several external tests carry surface cues of their own (ProofWriter and TPTP labels follow hypothesis negation), so we split results on them by whether the cue gives the right answer. Training supervises the label only. Whether the same conclusions about data design hold when models are trained to write out their reasoning, or with verifiable rewards, is open. A first test with proof supervision is in Appendix § 12.

Ethics Statement

We release synthetic data and audits of public datasets. No personal data is involved. The audits report properties of datasets, not of their authors’ intentions, and several of them (ProofWriter’s depth, ZebraLogic’s clue minimality) confirm the datasets’ own claims.

Acknowledgments

This work was (partially) funded by the National Research Agency under the France 2030 program, with the reference ANR-25-APEV-0001.

Proofs

Proposition 1 (monotonicity). Every CC-proof is a C′C'-proof: the intersection of the proofs shrinks, minima drop, and a proper subset of a CC-proof uses only CC-applications, so it proves gg under C′C' only if it does under CC. □\square

Soundness theorem.

Setting. Formulas are terms over the logic’s signature; atoms apply predicates to constants of declared sorts. A rule schema has premise patterns and a conclusion pattern over metavariables; an application (r,c,p⃗)(r,c,\vec{p}) is a rule with a ground conclusion and premises that match its schema, with unordered argument groups matched modulo permutation. negate⁡(f)\operatorname{negate}(f) is gg if f=¬gf = \neg g and ¬f\neg f otherwise. For a set of formulas XX, let L(X)L(X) be the subformulas of XX together with their negations and the double negations ¬¬g\neg\neg g of their negated members $\neg g (which modus tollens on a negated antecedent concludes), and let U(X)U(X) contain L(X)L(X), every closed constructor applied to members of L(X)L(X), and every formula whose negation is such a construction. A proof of gg from Γ\Gamma in universe UU is a set of applications whose conclusions and premises lie in UU and which derives gg from Γ\Gamma. An instance with premises Γ\Gamma and hypothesis hh is analyzed in U(Γ∪{h})U(\Gamma\cup\{h\}).

An MGI MM of a fragment FF instantiates FF’s schemas with most general unifiers; its remaining entity metavariables become fresh, pairwise distinct constants and its formula metavariables fresh schematic atoms SS. Its stable universe U∗(M)U^*(M) is defined like UU, except that L∗L^* omits the negations of schematic atoms. FF is a nogood if, for every MGI MM with root gMg_M, some proof PMP_M of gMg_M from MM’s leaves in U∗(M)U^*(M) omits an application sMs_M of MM. A substitution σ\sigma maps constants to constants of the same sort and schematic atoms to formulas, and acts homomorphically.

Lemma 1 (substitution). If (r,c,p⃗)(r,c,\vec{p}) is an application of rr, so is (r,σc,σp⃗)(r,\sigma c,\sigma\vec{p}). Proof. If θ\theta matches the schema to (c,p⃗)(c,\vec{p}), then σ∘θ\sigma\circ\theta matches it to (σc,σp⃗)(\sigma c,\sigma\vec{p}); a permutation of an unordered group commutes with σ\sigma. □

Lemma 2 (stability). σ(L∗(M))⊆L(σM)\sigma(L^*(M)) \subseteq L(\sigma M) and σ(U∗(M))⊆U(σM)\sigma(U^*(M)) \subseteq U(\sigma M). Proof. σ\sigma maps subformulas of MM to subformulas of σM\sigma M. Let n=negate⁡(f)n = \operatorname{negate}(f) with ff a subformula of MM and f∉Sf \notin S. If f=¬gf = \neg g, then n=gn = g and σg\sigma g is a subformula of σM\sigma M. Otherwise ff’s head is a predicate, constant connective or symbol other than ¬\neg; σ\sigma preserves heads of non-schematic formulas, so σn=¬σf=negate⁡(σf)∈L(σM)\sigma n = \neg\sigma f = \operatorname{negate}(\sigma f) \in L(\sigma M). A closed construction k(x⃗)k(\vec{x}) over L∗(M)L^*(M) maps to k(σx⃗)k(\sigma\vec{x}) over L(σM)L(\sigma M), and a formula whose negation is a construction maps to one whose negation is the image construction (same case analysis on its head). A double negation ¬f\neg f with f=¬gf = \neg g a subformula of MM maps to ¬σf\neg\sigma f, the double negation of the negated subformula σf=¬σg\sigma f = \neg\sigma g of σM\sigma M. □

Without double negations in LL, excluding the negations of schematic atoms was necessary: for b∈Sb \in S with σb=¬q\sigma b = \neg q, σ(¬b)=¬¬q\sigma(\neg b) = \neg\neg q was outside the instance’s universe, and the propositional atlas built with UU instead of U∗U^* contained a nogood, mt(hs,_)mt(hs,\_), that A→¬bA \to\neg b, ¬b→C\neg b \to C, ¬C⊢¬A\neg C \vdash\neg A refuted. With them, ¬¬q∈L(σM)\neg\neg q \in L(\sigma M) since σb=¬q\sigma b = \neg q is a subformula of σM\sigma M, that problem has a second proof (two modus tollens steps through ¬¬b\neg\neg b), and the exclusion is kept only as a precaution: a smaller U∗U^* can remove nogoods, never add them.

Proof of the theorem. Let F′=σ(M)F' = \sigma(M) be the occurrence in DD, P=PMP = P_M and s=sMs = s_M. By Lemma 1, σP\sigma P (applications mapped one by one) is a set of applications deriving σgM\sigma g_M, the conclusion of F′F', from σ\sigma of MM’s leaves, which are the leaves of F′F'. By hypothesis its formulas lie in the instance’s universe (Lemma 2 gives U(σM)U(\sigma M); the hypothesis places these formulas in U(Γ∪{h})U(\Gamma\cup\{h\}), which holds in particular when the formulas of F′F' are subformulas of Γ∪{h}\Gamma\cup\{h\} or their negations). Since DD is a tree in which no application occurs twice, the internal nodes of F′F' are used only inside F′F' and no application of F′F' occurs elsewhere in DD: removing F′F'’s applications from DD and adding σP\sigma P yields a set QQ of applications that still derives DD’s conclusion from Γ\Gamma (proofs are monotone: extra premises and distractors add applications but remove none). It remains to show that σs∉Q\sigma s \notin Q. By the non-repetition hypothesis, applications of DD outside F′F' differ from those of F′F', and σs\sigma s is an application of F′F'. If σt=σs\sigma t = \sigma s for some t∈Pt \in P, then tt and ss have the same rule and their conclusions and premises have equal images; all of them lie in U∗(M)U^*(M), where σ\sigma is injective, so t=st=s, contradicting s∉Ps \notin P. Hence QQ is a proof of DD’s conclusion without the planned application σs\sigma s. □

Remarks. (i) Injectivity is needed: a stress test of the monadic atlas finds 6 counterexamples among 5,219 substitutions that identify constants (celarent chained with two classes merged) and none among about 13,000 injective ones. (ii) Construction checks injectivity on constants, which implies injectivity on U∗(M)U^*(M) when schematic atoms are bound to distinct atoms; it does not check either hypothesis for compound bindings. (iii) Non-repetition is needed: if σs\sigma s also occurred in another branch of DD, splicing would leave it in QQ. Construction applies nogoods without checking it, which can only reject placements that would have been valid, never admit an invalid instance. (iv) The theorem only justifies pruning. Every constructed instance is certified in full afterwards, so a nogood applied outside the theorem’s hypotheses can only reject a placement that would have been valid; it cannot produce a wrong certificate. Guarded nogoods (a fragment bypassed only when a formula metavariable is not a negation) split each formula metavariable into a plain case and a ¬w\neg w case, both closed under substitution, and apply the theorem per case.

Audit and Construction Details

Computing profiles. Mandatory steps are decided by one closure and one removal test per step of a single proof. Min depth, min size and the number of inclusion-minimal proofs are computed by a provenance chase that tracks a Pareto front of supports and depths. When that front reaches its cap, the profile is flagged inexact. Min size is then an upper bound and the proof count is approximate; min depth and mandatory steps stay exact.

FLD×2\mathrm{FLD}\times2 under its own rules. FLD×2\mathrm{FLD}\times2’s gold proofs use hypothetical syllogism, contraposition and constructive dilemma as single steps. Our calculus has the first and the last, has modus tollens where FLD×2\mathrm{FLD}\times2 has contraposition, and adds disjunctive syllogism and double negation. In FLD×2\mathrm{FLD}\times2’s basic rules with its three derived ones, the picture is the same (0.95 mandatory steps, 41% of problems with none), and with contraposition as well even fewer steps are forced (1.37 instead of 2.08 at depth 5).

Boxes as a logic. The domain is declared with positions at numbered steps and, per operation type, one rule for what it changes and one for what it leaves alone. Every operation must be read, so instead of mandatory steps we count the operations whose replacement by “nothing happens” changes the answer. The authors’ harder split moves a box’s contents without naming them.

Audit inputs. ProofWriter’s signed literals and rules over one variable become a ground Horn program; FLD×2\mathrm{FLD}\times2 formulas are parsed and certified in the propositional logic’s calculus extended with FLD×2\mathrm{FLD}\times2’s simple rules; ZebraLogic grid cells are certified in a grid propagation calculus without case splits; corrected FOLIO (Han et al., [15]; Brunello et al., [6]) is parsed into first-order logic and decided by z3; PlanBench STRIPS instances (Valmeekam et al., [44]) are searched exactly.

FOLIO. On the corrected validation split, 112 entailment/contradiction problems from stories whose premises are consistent parse into first-order logic, and z3 agrees with all their gold labels. Three stories (12 of the 202 conclusions) are inconsistent as encoded, one only under unique names; of the other 190 conclusions z3 agrees with 186, and the four others need knowledge left unstated, such as “bees are animals”. FOLIO has no proof level here: its quantifiers, exclusive-or and biconditionals fall outside our calculus.

ProverQA and LogicGraph. Both are audited at the premise level from their own formal premises. Over ProverQA’s 1,500 development problems z3 agrees with 99% of labels (1% are translation errors). For LogicGraph we enumerate all minimal premise supports of its 900 instances by MARCO on a SAT solver; enumeration is proved complete on all Small and Medium instances and on 24% of Large ones within 120 s each.

Coverage of proof shapes. Skeletons are drawn uniformly among the trees of a shape class from exact counts by height, joins and size. The archive’s lead over forward generation (all 140 E/C shape classes against 78–88) survives size matching. When every mandatory-step count occurs equally often, the archive covers 125–134 classes against forward’s 71–81, and steering rule kinds as well yields more mandatory rule-kind sets (propositional 157 vs. 103; monadic 53 vs. 34; modal K 39 vs. 29). The same archive can follow a requested distribution over classes instead of uniform coverage. It then requests the class furthest below its quota, ignoring failures, and reports classes that never succeed instead of renormalizing them away: in the grid logic, a quarter to a third of a uniform request is never reached by the constructor (which does not prove those classes impossible), and the realizable classes are matched within 0.05–0.08 total variation. Premise-level diversity (distinct required rule-kind multisets) saturates once sources are subsampled to the same needed-premise distribution (FLD×2, forward and constructed monadic data: 78, 72 and 80 of 85 kinds): sources differ in depth, not in diversity at a given depth.

Certificate corruption tests. Countermodels are searched over small domains first, giving models of 1–14 elements and 3–14 KB per problem. Over 540 certificates from 9 logics, all pass, and every injected corruption is caught: altered steps (539/539), deleted mandatory premises (540/540), false mandatory claims (53/53), omitted mandatory steps (531/531), dropped or swapped countermodels (540/540 each) and altered ones (538/540; the other two altered tables are still models of their query), each counted over the certificates the corruption applies to. The test covers nine logics (propositional, monadic, CSP, modal K and S4, nested K and S4, order and kinship); monadic logic with syllogisms, hybrid modal logic, grids, planning and arithmetic were not included. As an example of the requiredness check, with contraposition in the rule set, modus tollens is never required.

What a logic can express. A logic has three layers, and they differ in reach. Its semantics can be anything a complete solver decides: z3 formulas, a CSP, a Datalog chase. Its calculus is a set of monotone rule schemas over typed terms, with unification and symmetry handled once for all logics; this covers forward reasoning in every logic listed, and adding one is a matter of declaring symbols and rules (hybrid modal logic and state tracking over boxes were added without any change to the machinery; for state tracking, where every event must be read, what a question requires is the set of events whose replacement by an idle step loses the answer). The calculus has no scoped assumptions (conditional proof, reductio, case splits), no computed terms such as a+ba+b, and no side conditions beyond typing, which is why hypothetical FLD×2 problems and some ZebraLogic cells are out of reach. Construction, finally, depends on how redundant the calculus is: shapes are built reliably where shortcuts are few and recurrent, and fail where a quantity can be derived many ways, as in arithmetic over scores. Scoped subproofs are the extension that would widen the second layer most, at the price of a mandatory-step analysis over assumptions.

Several proofs requested. When k≥2k \ge2 proofs are requested, only the requested bottlenecks must be mandatory, since a fully mandatory plan is the unique minimal proof (line 6 of Algorithm 1).

Encoder Experiments

Protocol. Each run fine-tunes a pretrained encoder with a shared body and one classification head per task, on a procedural source and the target’s 200 training examples jointly, for 600 optimizer steps (batch 4, gradient accumulation 4, learning rate 3⋅10−53\cdot10^{-5}, bf16), with batches drawn from source and target in equal numbers. The baseline trains on the target examples alone for the same number of steps. Every training set shares the baseline of its seed, so training sets compare as paired per-seed differences. Targets are FLD×2’s held-out test, semantic fragments (Richardson et al., [37]), WANLI (Liu et al., [26]), FOLIO and held-out constructed examples; encoders are ModernBERT-base (Warner et al., 2025}) and DeBERTa-v3-base (He et al., 2023}).

Constructed vs. FLD×2 at equal size. With ModernBERT and three seeds, constructed monadic data beats FLD×2’s own training data on FLD×2’s held-out test (45.5±0.5 vs. 44.0±1.7, 3/3 seeds) and on semantic fragments (50.7 vs. 45.6), and ties on WANLI (47.6 vs. 48.1). Over five seeds, the paired per-seed differences, constructed minus FLD×2, are +2.2±1.3 on FLD×2 held-out and +6.5±2.0 on semantic fragments (5/5 seeds each), +3.9±4.1 on FOLIO (4/5) and −1.0±2.7 on WANLI (2/5). Training on FLD×2 itself barely moves its own held-out test (+0.2 over the baseline). With DeBERTa-v3 the FLD×2 held-out lead replicates (+1.1±1.6, 5/5); the other targets are noisier (Table 6); single DeBERTa-v3 seeds collapse at this budget (60% in-domain for one constructed seed). Shape-constructed and forward-generated examples matched on certified structure do not separate outside the domain (all differences within one standard deviation), as with LLMs (Appendix § 12).

targetnecessary − bypass: ModernBERTnecessary − bypass: DeBERTa-v3constructed − FLD×2: ModernBERTconstructed − FLD×2: DeBERTa-v3
FLD×2 held-out+1.1±1.1 (4)−1.8±1.9 (1)+2.2±1.3 (5)+1.1±1.6 (5)
semantic fragments+0.5±3.1 (2)+0.5±7.0 (2)+6.5±2.0 (5)+6.1±10.3 (3)
WANLI−0.8±0.6 (0)−0.5±1.9 (3)−1.0±2.7 (2)−2.2±2.5 (1)
FOLIO (corrected)+0.2±2.2 (1)−0.8±3.1 (2)+3.9±4.1 (4)−1.8±3.7 (2)
constructed held-out−0.3±3.2 (3)−0.7±5.5 (2)+31.9±6.7 (5)+15.4±22.1 (4)

Table 6. Encoders: paired per-seed differences in accuracy (points; mean ± sample standard deviation over 5 seeds; in parentheses, seeds where the difference is positive). The necessity training sets differ in mandatory steps (10.82 vs. 1.77) and, through the bypass premise, in smallest proof size.

Paired necessity training sets. Adding to each certified example one premise that either bypasses most of its proof or, with constants renamed, leaves it intact gives training sets that differ in mandatory steps (1.77 vs. 10.82) and in smallest proof size at matched planted depth, length and label; they tie within a standard deviation except on FLD×2 held-out, where the two encoders disagree in sign (Table 6). Constructed monadic data beats both on semantic fragments (+7.7) and in-domain (+33.4 against +20), so the gap points to the distribution of rule kinds and shapes, not to depth.

LLM Experiments

Shortcuts the controls removed. Each naive comparison we ran was first decided by a shortcut that a matched control then removed. When deep and shallow training sets shared their neutral examples, depth alone told the model which answers were neutral, and the depth result reversed (deep 0.78 vs. shallow 0.45 at 13+ steps); pairing forward-generated E/C examples with our constructed neutrals let the generator’s style give the label away (0.32 on FLD×2, 0.60 with forward-style neutrals). A hypothesis-only TF-IDF probe reached .48 (chance .33) because our monadic calculus could not refute a universal; every training set shares the cue, and two refutation rules bring it to .39 on fresh examples. The metric is a shortcut too: FLD×2’s test and ModalBench have no neutral problems, so macro accuracy over three labels rewards a training set that merely makes the model answer neutral less. A mixture search that maximized it found such a mixture (neutral answers on 2% of FLD×2 examples against 12% for uniform weights), which then failed the world-assumption test below (.44 against .68).

Depth mixtures: protocol. We fine-tune Qwen3-0.6B-Base, SmolLM2-360M and Gemma-3-270M ([12]) with full fine-tuning (2 epochs, 3,000 monadic examples), scoring labels by log-probability (macro accuracy). Weights over the three depth ranges are chosen on validation sets and confirmed on fresh seeds (10–12) and untouched tests (Table 9, per seed in Figure 5). Finer rankings than shallow vs. deep-only do not transfer between models (Spearman 0.41), and SmolLM2 and Gemma stay near chance on FOLIO.

Construction vs. filtered forward examples. With matched neutrals, forward examples filtered to the same depth ranges equal constructed ones on Qwen (0.60 vs. 0.60) but trail on the two smaller models, which call 42–73% of derivable FLD×2 examples neutral. Forced to choose entailment or contradiction, SmolLM2’s forward training set matches the constructed one (0.53 vs. 0.54): the gap is the neutral decision, and both smaller models are near chance on FLD×2’s direction, so only Qwen’s transfer measures reasoning.

Writing proofs. Models can also be trained to write proofs instead of labels, and then graded on the proofs. Premises are numbered; the target is a proof whose steps cite the premises they use, followed by the answer. A proof is grounded when its cited premises alone give the answer (by the logic’s semantics; for FLD×2 and ProverQA by z3 over their formulas, for ProofWriter by chasing its rules) and minimal when none of them can be dropped. The intermediate steps are not checked, so grounding measures premise selection, not the validity of each inference. Training sets have 4,500 examples (3,000 entailment and contradiction, 1,500 neutral; seeds 10–12) and are otherwise matched as in Section 7. Certified problems with their smallest proofs give models whose proofs of held-out certified problems are grounded twice as often as models trained on forward problems in the same format (Table 10), and the gap is concentrated among deeper problems: on problems with at most five mandatory steps every training set does equally well, while past ten mandatory steps the forward-trained models rarely produce a proof that holds. The gap is not citation volume: citing a random set of premises of the same size grounds .29 (certified) and .12 (forward) of answers, and the certified lead holds for minimal citations (.52 against .29), which citing every premise cannot obtain. Replacing the smallest proof by the planted one on the same forward problems changes little; in this logic the two have the same size. Outside the training logic grounded proofs are rare for every training set at this model size, and only FLD×2’s own proofs do well on FLD×2. A larger model trained on

training proofsheld-out monadic allheld-out monadic 11–15held-out monadic 16+propos.FLD×\times2ProofW.ProverQA
certified problems, smallest proof.63.67.24.05.17.10.12
forward problems, smallest proof.30.12.02.05.20.11.12
forward problems, planted proof.37.27.05.05.20.13.15
FLD×\times2 proofs.02.01.00.02.57.17.07

Table 10. Grounded proofs: share of entailment and contradiction test problems answered correctly with a proof whose cited premises alone give the answer, checked exactly. Qwen3-0.6B, mean of seeds 10–12; 11–15 and 16+: certified mandatory steps. Minimal proofs follow the same pattern on the monadic tests (.53, .29, .36, .02); on FLD×\times2 and ProofWriter almost no proof from constructed training is minimal, because the cited sets include distractors. Italics: test from the training source.

several logics at once (Qwen3-1.7B with LoRA, the same 3,000 problems split over propositional, monadic, order, kinship and modal logic; seeds 10–12) roughly doubles transfer on shallow problems, for certified and forward training alike: grounded proofs of ProverQA’s easy problems rise from .25 to .46 (certified) and of depth-0 FLD×\times2 problems from .19 to .42. Proofs of deeper benchmark problems stay rare (at most .08 on ProofWriter beyond depth 1 and on ProverQA’s hard problems), and with the training problems split across logics the certified lead on held-out monadic problems narrows (.27 against .21). Writing a proof also costs label accuracy against training on answers alone, as generating a proof before the label did above, and the certified model tends to answer neutral problems with a proof. With labels as the answer, training on the certified proof after the label leaves accuracy unchanged, and generating it before the label gains .03 in the logic but loses .07 on FLD×\times2, whose proofs end in the hypothesis as stated as often for contradictions as for entailments.

Sources: reading assumptions and counterfactuals. On 300 Kripke pairs that differ only in the sentence closing the world, the mixture with partially observed Kripke examples changes its answer exactly when it should in four pairs of five, the others at chance. One failure is shared by every mixture: models keep answering entailment when a mandatory premise is removed, also under paraphrase, so none gets a full counterfactual group (entailment, missing premise, negated hypothesis) right more than a third of the time.

Mixture search: protocol. The 60 proxies are trained on random 3,000-example mixtures of the nine problem types. The regression target is the mean score over the development splits of FLD×\times2, FOLIO, ModalBench, ProverQA and ProofWriter, scored with the label prior factored out. Development scores span .48–.64, and leave-one-out predictions correlate .55 with them. Tasks agree on what helps, except ProofWriter, which barely correlates with the others. It beats the best of the 60 proxies mainly on tests no selection saw. Carried to other model sizes and to 9,000 examples, it keeps its gains on ProofWriter and the prover-derived tests and is otherwise level with uniform weights. The nine problem types are monadic and labelled modal examples in three ranges of mandatory steps (1–3, 4–7 and 8+), closed Kripke examples of modal depth 0–1 and 2–3 (E/C only), and partially observed Kripke examples (modal depth 0–3, each fact hidden with probability 0.3, E/C/N in thirds). The full selected weights, in that order, are .292, .289, .003; .037, .011, .119; .001, .109; .140. The regression is a ridge regression of the mean development score on the nine weights; with the label prior factored out, a development set without neutral problems is scored by the likelier of E and C, and one with neutral problems by macro accuracy under the best pair of per-label biases fitted on that set, so that a mixture is not rewarded for a label prior that happens to suit it.

Polarity cue in the external tests. A test is cue-heavy when one surface feature nearly gives the label. For each test, we count how often the E/C problems with a negated hypothesis (a negation word in the hypothesis sentence) are contradictions. Predicting contradiction exactly when the hypothesis is negated scores (two-way) .945 on ProofWriter, .864 on TPTP, .773 on QMLTP, and .50–.60 on every other test. Training sets carry the cue to different degrees: the gap between the negation rates of contradictions and entailments is +.90 in ProofWriter’s training data, +.28 in the FLD×2-style set, +.16 in FLD×2’s and +.13 in the certified mixture. On the three cue-heavy tests, Table 11 splits the certified-minus-FLD×2-style difference into problems where the cue gives the right answer and problems where it gives the wrong one. FLD×2-style examples win on the first kind and lose on the second at most sizes. On QMLTP, all contradictions are negated, so the cue misleads only on entailments.

testrows0.6B1.7B4B8B
ProofWritercue right (378)−.08−.01−.12−.05
cue wrong (22)+.17−.03+.05+.10
TPTPcue right (890).00−.02+.03+.02
cue wrong (140)+.08−.06+.09+.06
QMLTPcue right (464)+.25−.06+.12+.01
cue wrong (136)−.16.00+.03+.07

Table 11. Certified mixture minus FLD×2-style examples (two-way accuracy, Qwen3, seeds 10–16), on problems where the polarity cue gives the right label and where it gives the wrong one. Bold: 95% interval resampling seeds and test problems excludes zero.

one. FLD×2-style examples win on the first kind and lose on the second at most sizes. On QMLTP, all contradictions are negated, so the cue misleads only on entailments.

The training skew does not cause the FLD×2-style pattern. We rebuilt both sets with the same problem types and the same label counts per type, choosing within each type and label half the examples with a negated hypothesis (0.6B, seeds 10–16). The balanced FLD×2-style set keeps its ProofWriter score (.930 against .935) and matches the original on cue-right and cue-wrong problems of every test, except small gains where the cue misleads on FOLIO and ModalBench (+.07, +.06). The balanced certified mixture still leads it where the cue misleads: by .20 on ProofWriter, .14 on TPTP, and on the tests the cue barely predicts, by .21 on ModalBench, .19 on ProverQA and .09 on FOLIO. Balancing the certified mixture itself trades cue-right for cue-wrong problems (ProofWriter −.04 and +.07, ModalBench −.12 and +.08) and lowers its overall ProofWriter score (.83 against .86), so we keep the published mixture.

The certified-depth contrast of § 7 carries the cue unevenly: the negation gap is .34 in the certified-deep set and .13 in the shallow one, because deep proofs more often end in a negated contradiction. Deep minus shallow, on problems where the cue is right and where it misleads (fourteen seeds, bold as in Table 11): QMLTP +.19 and −.15, TPTP +.05 and −.14, FLD×2 +.09 and −.05, FOLIO +.03 and −.06, ProverQA +.02 and −.05, world-assumption pairs +.05 and −.07, ProofWriter +.01 and −.04, ModalBench +.04 and +.02. Rebuilt with half the examples of each label and planted depth negated in both sets (same generator, same matching), the asymmetry disappears: the only interval that excludes zero is ProofWriter’s 22 cue-wrong problems (+.08), and QMLTP keeps a trend (+.08 and −.06, both intervals touching zero). Table 12 reports the balanced contrast.

Controlled contrasts in full. Table 12 gives every test for the three contrasts that isolate a structural variable: mandatory steps at fixed planted depth, one proof against several at fixed proof length (forward-generated monadic problems with exactly one or several minimal proofs, matched per label and shortest proof at 6.6 steps, so that the many-proof problems force 3.7 steps against 6.6), and certified against forward derivation examples at fixed mixture composition (the forward examples of the same pack and label replace the derivation examples of the searched mixture as the generator makes them, with no binning by depth).

References

  1. [1]Umair Z. Ahmed, Sumit Gulwani, and Amey Karkare. 2013. Automatically generating problems and solutions for natural deduction. In Proceedings of the Twenty-Third International Joint Conference on Artificial Intelligence (IJCAI).
  2. [2]Konstantine Arkoudas and Serafim Batzoglou. 2025. Stress-testing the reasoning competence of language models with formal proofs. In Findings of the Association for Computational Linguistics: EMNLP 2025, pages 12376–12394.DOI
  3. [3]Konstantine Arkoudas and Serafim Batzoglou. 2026. Stress-testing the reasoning competence of LLMs with proofs under minimal formalism. Preprint, arXiv:2605.12524. Extended version of the EMNLP 2025 Findings paper.arxiv.org/abs/2605.12524
  4. [4]Franz Baader and Rafael Peñaloza. 2010. Axiom pinpointing in general tableaux. Journal of Logic and Computation, 20(1):5–34.
  5. [5]Loubna Ben Allal, Anton Lozhkov, Elie Bakouch, Gabriel Martín Blázquez, Guilherme Penedo, Lewis Tunstall, Andrés Marafioti, Agustín Piqueres Lajarín, Hynek Kydlíček, Vaibhav Srivastav, Joshua Lochner, Caleb Fahlgren, Xuan Son Nguyen, Ben Burtenshaw, Clémentine Fourrier, Haoujin Zhao, Hugo Larcher, Mathieu Morlon, Cyril Zakka, and 3 others. 2025. SmolLM2: When smol goes big – data-centric training of a fully open small language model. In Conference on Language Modeling (COLM).DOI
  6. [6]Andrea Brunello, Cristian Curaba, Luca Geatti, Michele Mignani, Angelo Montanari, and Nicola Saccomanno. 2026. Fixing FOLIO and MALLS: Verified annotations and an LLM-assisted framework to focus human relabeling. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, pages 13195–13220.DOI
  7. [7]Tianpeng Bu, Minying Zhang, Hongtao Duan, Shurui Li, Lulu Hu, and Yu Li. 2025. Enhanced data synthesis for LLM through reasoning structures generated by hierarchical GFlowNet. In Findings of the Association for Computational Linguistics: ACL 2025, pages 15931–15958.
  8. [8]Peter Clark, Oyvind Tafjord, and Kyle Richardson. 2020. Transformers as soft reasoners over language. In Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence (IJCAI).arxiv.org/abs/2002.05867
  9. [9]Leonardo de Moura and Nikolaj Bjørner. 2008. Z3: An efficient SMT solver. In Tools and Algorithms for the Construction and Analysis of Systems (TACAS).DOI
  10. [10]DeepSeek-AI. 2026. DeepSeek-V4: Towards highly efficient million-token context intelligence. Preprint, arXiv:2606.19348.arxiv.org/abs/2606.19348
  11. [11]Ali Elhalawati, Markus Krötzsch, and Stephan Mennicke. 2022. An existential rule framework for computing why-provenance on-demand for Datalog. In Rules and Reasoning (RuleML+RR).DOI
  12. [12]Gemma Team. 2025. Gemma 3 technical report. Preprint, arXiv:2503.19786.
  13. [13]Gemma Team. 2026. Gemma 4 technical report. Preprint, arXiv:2607.02770.
  14. [14]Todd J. Green, Grigoris Karvounarakis, and Val Tannen. 2007. Provenance semirings. In Proceedings of the 26th ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems (PODS).DOI
  15. [15]Simeng Han, Hailey Schoelkopf, Yilun Zhao, Zhenting Qi, Martin Riddell, Wenfei Zhou, James Coady, David Peng, Yujie Qiao, Luke Benson, Lucy Sun, Alexander Wardle-Solano, Hannah Szabó, Ekaterina Zubova, Matthew Burtell, Jonathan Fan, Yixin Liu, Brian Wong, Malcolm Sailor, and 16 others. 2024. FOLIO: Natural language reasoning with first-order logic. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 22017–22031.
  16. [16]Mujtaba Hasan. 2026. ModalBench: Evaluating modal and deductive logic reasoning in large language models. In ICLR 2026 Workshop on Logical Reasoning of Large Language Models.
  17. [18]Jörg Hoffmann, Julie Porteous, and Laura Sebastia. 2004. Ordered landmarks in planning. Journal of Artificial Intelligence Research, 22:215–278.
  18. [19]Matthew Horridge. 2011. Justification Based Explanation in Ontologies. Ph.D. thesis, University of Manchester.
  19. [20]Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. 2022. LoRA: Low-rank adaptation of large language models. In International Conference on Learning Representations (ICLR).arxiv.org/abs/2106.09685
  20. [21]Aditya Kalyanpur, Bijan Parsia, Matthew Horridge, and Evren Sirin. 2007. Finding all justifications of OWL DL entailments. In International Semantic Web Conference, pages 267–280.DOI
  21. [22]Erez Karpas and Carmel Domshlak. 2009. Cost-optimal planning with landmarks. In Proceedings of the Twenty-First International Joint Conference on Artificial Intelligence (IJCAI), pages 1728–1733.
  22. [23]Najoung Kim and Sebastian Schuster. 2023. Entity tracking in language models. In Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 3835–3855.arxiv.org/abs/2305.02363
  23. [25]Bill Yuchen Lin, Ronan Le Bras, Kyle Richardson, Ashish Sabharwal, Radha Poovendran, Peter Clark, and Yejin Choi. 2025. ZebraLogic: On the scaling limits of LLMs for logical reasoning. In Proceedings of the 42nd International Conference on Machine Learning (ICML).
  24. [26]Alisa Liu, Swabha Swawmdipta, Noah A. Smith, and Yejin Choi. 2022. WANLI: Worker and AI collaboration for natural language inference dataset creation. In Findings of the Association for Computational Linguistics: EMNLP 2022.
  25. [27]Junteng Liu, Yuanxiang Fan, Zhuo Jiang, Han Ding, Yongyu Hu, Chi Zhang, Yiqi Shi, Shitong Weng, Aili Chen, Shiqi Chen, Yunan Huang, Mozhi Zhang, Pengyu Zhao, Junjie Yan, and Junxian He. 2025a. SynLogic: Synthesizing verifiable reasoning data at scale for learning logical reasoning and beyond. In Advances in Neural Information Processing Systems (NeurIPS), volume 38, pages 100976–100997.arxiv.org/abs/2505.19641
  26. [28]Qian Liu, Xiaosen Zheng, Niklas Muennighoff, Guangtao Zeng, Longxu Dou, Tianyu Pang, Jing Jiang, and Min Lin. 2025b. RegMix: Data mixture as regression for language model pre-training. In International Conference on Learning Representations (ICLR).arxiv.org/abs/2407.01492
  27. [29]Alexandra Meliou, Wolfgang Gatterbauer, Katherine F. Moore, and Dan Suciu. 2010. The complexity of causality and responsibility for query answers and non-answers. Proceedings of the VLDB Endowment, 4(1):34–45.arxiv.org/abs/1009.2021
  28. [30]Terufumi Morishita, Gaku Morio, Atsuki Yamaguchi, and Yasuhiro Sogawa. 2023. Learning deductive reasoning from synthetic corpus based on formal logic. In Proceedings of the 40th International Conference on Machine Learning (ICML).arxiv.org/abs/2308.07336
  29. [31]Terufumi Morishita, Gaku Morio, Atsuki Yamaguchi, and Yasuhiro Sogawa. 2024. Enhancing reasoning capabilities of LLMs via principled synthetic logic corpus. In Advances in Neural Information Processing Systems (NeurIPS).arxiv.org/abs/2411.12498
  30. [32]Andreas Opedal, Haruki Shirakami, Bernhard Schölkopf, Akihair Saparo, and Minrmaya Sachan. 2025. MathGAP: Out-of-distribution evaluation on problems with arbitrarily complex proofs. In International Conference on Learning Representations (ICLR).arxiv.org/abs/2410.13502
  31. [33]OpenAI. 2025. gpt-oss-120b & gpt-oss-20b model card. Preprint, arXiv:2508.10925.
  32. [34]Chengwen Qi, Ren Ma, Bowen Li, He Du, Binyuan Hui, Jinwang Wu, Yuanjun Laili, and Conghui He. 2025. Large language models meet symbolic provers for logical reasoning evaluation. In International Conference on Learning Representations (ICLR).arxiv.org/abs/2502.06563
  33. [35]Brian Rabern, Philipp Mondorf, and Barbara Plank. 2026. LogicSkills: A structured benchmark for formal reasoning in large language models. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 2035–2047.arxiv.org/abs/2602.06533
  34. [36]Thomas Raths and Jens Otten. 2012. The QMLTP problem library for first-order modal logics. In International Joint Conference on Automated Reasoning, pages 454–461.DOI
  35. [37]Kyle Richardson, Hai Hu, Lawrence S. Moss, and Ashish Sabharwal. 2020. Probing natural language inference models through semantic fragments. In Proceedings of the AAAI Conference on Artificial Intelligence.arxiv.org/abs/1909.07521
  36. [38]Abulhair Saparov, Richard Yuanzhe Pang, Vishakh Padmakumar, Nitish Joshi, Mehran Kazemi, Najoung Kim, and He He. 2023. Testing the general deductive reasoning capacity of large language models using Benjamin Warner, Antoine Chaffin, Benjamin Clavié, Orion Weller, Oskar Hallström, Said Taghadouini, Alexis Gallagher, Raja Biswas, Faisal Ladhak, Tom Aarsen, Griffith Thomas Adams, Jeremy Howard, and Iacopo Poli. 2025. Smarter, better, faster, longer: A modern bidirectional encoder for fast, memory efficient, and long context finetuning and inference. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 2526–2547.
  37. [39]Damien Sileo. 2024. Scaling synthetic logical reasoning datasets with context-sensitive declarative grammars. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 5275–5283.
  38. [40]Adam M. Smith, Eric Butler, and Zoran Popović. 2013. Quantifying over play: Constraining undesirable solutions in puzzle design. In Proceedings of the International Conference on the Foundations of Digital Games (FDG).
  39. [41]Zafir Stojanovski, Oliver Stanley, Joe Sharratt, Richard Jones, Abdulhakeem Adefioye, Jean Kaddour, and Andreas Köpf. 2025. Reasoning Gym: Reasoning environments for reinforcement learning with verifiable rewards. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track, volume 38.arxiv.org/abs/2505.24760
  40. [42]Geoff Sutcliffe. 2017. The PTTP problem library and associated infrastructure: From CNF to THO, TPTP v6.4.0. Journal of Automated Reasoning, 59(4):483–502.DOI
  41. [43]Oyvind Tafjord, Bhavana Dalvi, and Peter Clark. 2021. ProofWriter: Generating implications, proofs, and abductive statements over natural language. In Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021.
  42. [44]Karthik Valmeekam, Matthew Marquez, Alberto Olmo, Sarath Sreedharan, and Subbarao Kambhampati. 2023. PlanBench: An extensible benchmark for evaluating large language models on planning and reasoning about change. In Advances in Neural Information Processing Systems (NeurIPS), Datasets and Benchmarks Track.arxiv.org/abs/2206.10498
  43. [45]Karthik Valmeekam, Kaya Stechly, Atharva Gundawar, and Subbarao Kambhampati. 2025. A systematic evaluation of the planning and scheduling abilities of the reasoning model o1. Transactions on Machine Learning Research.
  44. [46]Vincent Van Schependom, Cas Proost, and Pieter Bonte. 2026. SYNTHOLOGY: Ontology-based data generation for neurosymbolic reasoning. In Bridging the Gap Between Curated and Induced Semantics (SEMANTICS). IOS Press.DOI
  45. [47]Tianle Wang, Zhaoyang Wang, Guangchen Lan, Xinpeng Wei, Sipeng Zhang, Guanwen Qiu, and Abdulhair Saparov. 2026. How deep can LLMs learn to reason? expressiveness is key. Preprint, arXiv:2605.06638.arxiv.org/abs/2605.06638
  46. [48]Yanrui Wu, Lingling Zhang, Xinyu Zhang, Jiayu Chang, Pengyu Li, Xu Jiang, Jingtao Hu, and Jun Liu. 2026. LogicGraph: Benchmarking multi-path logical reasoning via neuro-symbolic generation and verification. In Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing, pages 15931–15959.DOI
  47. [49]Kai Xiong, Yanwei Huang, Rongjunch en Zhang, Kun Chen, Haipang Wu, and Yingcai Wu. 2026. Puzzle-Clone: A DSL-powered framework for synthesizing verifiable data. In Findings of the Association for Computational Linguistics: ACL 2026, pages 33378–33404.
  48. [50]An Yang, Anfeng Li, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chang Gao, Chengeng Huang, Chenxu Lv, Chujie Zheng, Dayiheng Liu, Fan Zhou, Fei Huang, Feng Hu, Hao Ge, Haoran Wei, Huan Lin, Jialong Tang, and 41 others. 2025. Qwen3 technical report. Preprint, arXiv:2505.09388.arxiv.org/abs/2505.09388
  49. [51]Shanshan You, Zhengqi Wang, Hao Liu, Yuqin Liu, Ya He, Xin Hao, and Liyuan Wang. 2026. Beyond belief nesting: Rethinking higher-order theory of mind in large language models. Preprint, arXiv:2610.17777.arxiv.org/abs/2610.17777
  50. [52]Honghua Zhang, Liunian Harold Li, Tao Meng, Kai-Wei Chang, and Guy Van den Broeck. 2023. On the paradox of learning to reason from data. In Proceedings of the Thirty-Second International Joint Conference on Artificial Intelligence (IJCAI), pages 3365–3373.arxiv.org/abs/2205.11502

Paper details

vlnc:W_kxr5mvrf
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents