Certify What You Plant: Shortcut-Free Proof Depth in Logical Reasoning Data
Organizations: Univ. Lille, Inria, CNRS, Centrale Lille, UMR 9189 CRIStAL, F-59000 Lille, France
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.
Figures & tables
| 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% |
| 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 |
| (a) Planted by forward generation | (b) Constructed by ProofPlant | |
| premises | ||
| 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). | ||
| goal | ( Kenji is calm ) | |
| planned proof | MP, MP, MP, MP, MP: | MT: ; MP: ; MP: ; E: ; DS: |
| minimal proofs | 42 (with hypothetical syllogism, HS) | exactly one |
| mandatory steps | 0 of 5 : every MP can be routed around (re-routed, not over-determined) | 5 of 5 ; spine 4, one join |
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 | [ 1.16, 0.48] | [ 0.77, 0.19] |
| shorter than claimed | 0.30 [ 0.68, 0.09] | [ 0.79, 0.04] |
| 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 |
| forward | filter | success (seconds per certified instance) | ||||
|---|---|---|---|---|---|---|
| logic | 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% |
| 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) |
| 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 |
| 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 |
| 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 | – | – |
| 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 |
| 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 |
| 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 |