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.
Figures & tables
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 ).
depth (steps)
necessity
problems with no mandatory step
dataset (sample size)
diagnosis
claimed
shallowest
smallest
mandatory
forced
all
re-routed
over-determined
proof
proof
steps
share
ProofWriter, depth 5 (300)
forced
5
5.00
5.05
4.74
94%
0.7%
0.3%
0.3%
ProofWriter, all depths (1,800)
forced
2.5
2.50
2.52
2.35
93%
19%
0.1%
0.6%
FLD × 2, depth 5 (400)
optional
5 (4.35)
2.38
3.08
2.08
68%
18%
17%
0%
FLD × 2, all depths (400)
optional
2.0 (1.73)
1.43
1.65
0.98
60%
40%
21%
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 .
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 ).
mandatory steps
1–3
4–7
8–12
13+
DeepSeek-V4-Flash (low)
1.00
1.00
1.00
1.00
gpt-oss-120b (low)
0.89
0.40
0.13
0.10
gpt-oss-120b (high)
0.90
0.45
0.22
0.13
Gemma-4-31B
1.00
1.00
0.99
0.95
problems (E/C)
29
73
139
166
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.
(a) Planted by forward generation
(b) Constructed by ProofPlant
premises
a,a→b,b→c,c→d,d→e,e→f
n∨k,j,t→g,¬g,j→(¬t→(¬n∧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).
0 of 5 : every MP can be routed around (re-routed, not over-determined)
5 of 5 ; spine 4, one join
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, ∧ E, DS}, whose five planned steps are all mandatory; its certificate lists the proof and its mandatory steps, and an independent checker re-derives both.
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 .
Appendix figures & tables12 assets
Supplementary material from the paper’s appendix.
Appendix
DeepSeek-V4-Flash
gpt-oss-120b
accuracy
0.905 (n=704)
0.670 (n=763)
gold proof uses a universal
0.773 vs. 0.957
0.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]
Appendix
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.
claimed depth
1
2
3
4
5
problems
128
76
79
24
400
claim w/o instantiation
0.86
1.97
2.56
3.29
4.35
min depth
0.86
1.93
2.14
2.38
2.38
min size
0.86
1.93
2.56
3.17
3.08
mandatory
0.84
1.01
1.20
1.71
2.08
minimal proofs
1.02
1.46
2.18
2.62
3.56
Appendix
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.
forward
filter
success (seconds per certified instance)
logic
n
all needed
s/instance
reject, 8
reject, 64
ours
prop.
8
52%
0.010
100% (0.013)
–
100% (0.010)
prop.
30
5%
0.27
56% (0.40)
98% (0.22)
100% (0.058)
monadic
8
50%
0.020
99% (0.021)
–
99.5% (0.021)
monadic
30
15%
0.26
67% (0.29)
99% (0.17)
99% (0.081)
CSP
8–30
100%
0.02–0.04
100%
–
100%
Appendix
Table 5: Building instances with n 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; 64 redraws: 100, where the atlas takes 0.064 and 0.086 s). CSP propagation has no shortcuts and serves as the control.
necessary − bypass
constructed − FLD × 2
target
ModernBERT
DeBERTa-v3
ModernBERT
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)
Appendix
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.
FOLIO
ModalBench
FLD × 2
counterf.
training sources
macro
N recall
N → C
E/C
macro
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
Appendix
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.
training data
FOLIO
ModalB.
FLD × 2
ProverQA
ProofW. ∗
TPTP
QMLTP
W-A
N 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
Appendix
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 D ).
Qwen3-0.6B
SmolLM2
Gemma-3
training examples (shallow:mid:deep)
in-logic
FOLIO
FLD × 2
N
commit
FLD × 2
FLD × 2
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
–
–
Appendix
Table 9: LLMs trained on mixtures of mandatory-step ranges: macro accuracy, mean of seeds 10–12. On FLD × 2, 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 × 2 ranges ± .03 for constructed training sets on Qwen). Forward + filter : FLD × 2-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 × 2. Qwen deep-only is seed-sensitive (five-seed mean .39 on FLD × 2).
Figure 5: Training with and without shallow examples, scored on FLD × 2 (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.
held-out monadic
training proofs
all
11–15
16+
propos.
FLD × 2
ProofW.
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 × 2 proofs
.02
.01
.00
.02
.57
.17
.07
Appendix
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 × 2 and ProofWriter almost no proof from constructed training is minimal, because the cited sets include distractors. Italics: test from the training source.
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 ).
test
rows
0.6B
1.7B
4B
8B
ProofWriter
cue right (378)
− .08
− .01
− .12
− .05
cue wrong (22)
+.17
− .03
+.05
+.10
TPTP
cue right (890)
.00
− .02
+.03
+.02
cue wrong (140)
+.08
− .06
+.09
+.06
QMLTP
cue right (464)
+.25
− .06
+.12
+.01
cue wrong (136)
− .16
.00
+.03
+.07
Appendix
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.
many − few mandatory steps, balanced (14)
several proofs − one (14)
certified − forward derivations (7)
test
two-way
N rate
two-way
N rate
two-way
N rate
FOLIO
− .012 [ − .047, .021]
.48 → .66
+.008 [ − .023, .040]
.28 → .26
+.022 [ − .015, .061]
.10 → .09
ModalBench
+.003 [ − .013, .020]
.39 → .30
− .002 [ − .022, .019]
.27 → .30
+.015 [ − .009, .042]
.00 → .01
FLD × 2
+.011 [ − .007, .030]
.34 → .34
− .021 [ − .040, − .003]
.17 → .21
+.014 [ − .007, .034]
.04 → .02
ProverQA
− .007 [ − .026, .009]
.48 → .58
− .011 [ − .030, .006]
.37 → .35
.000 [ − .017, .019]
.27 → .28
ProofWriter
− .004 [ − .028, .018]
.07 → .14
+.027 [.007, .049]
.12 → .04
+.007 [ − .019, .031]
.03 → .02
Appendix
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 D ). 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.