Training a model only on counterexamples makes it treat every theorem as false. Reinforcement learning against a symbolic verifier fixes this, but only when the reward is sparse.
How it works
Take a true theorem, drop one hypothesis, and ask the model for a counterexample. A Python verifier written for that conjecture checks the answer, and the same check is the RL reward.
- 1 · True theorem G × H is abelian if and only if G and H are both abelian.
- 2 · Drop a hypothesis “If H is abelian, then G × H is abelian.” False.
-
3 · Model answers
(SymmetricGroup(3), CyclicGroup(2))
orNONEif it thinks no counterexample exists -
4 · Verifier runs
[True, True]
H is abelian; S3 × C2 is not. Accepted.
One boolean per remaining hypothesis, plus one for the negated conclusion. No language model judges the answer.
The imitation trap
Fine-tuned on counterexamples alone, Qwen3-4B stops recognising true theorems. Two RL rewards then reach the same success rate on false conjectures, but only the sparse one restores calibration.
Qwen3-4B, means over four training seeds. SFT scores 0.00 on true theorems in every seed, and on an explicit true/false question it calls 70% of them false. The collapse also appears on Gemma-3-4B.
Why: what each answer earns
Every training conjecture is false, so answering NONE is never correct during training.
The dense reward makes any parsable guess worth more than abstaining. The sparse reward does not, so the model keeps the option of saying NONE, which is what a true theorem needs.
Results
| Disproved Pass@1 | True theorems training prompt | True theorems true/false prompt | |
|---|---|---|---|
| Qwen3-4B base | 0.30 | 0.27 | 0.36 |
| + SFT | 0.34 | 0.00 | 0.16 |
| + RL dense | 0.49 | 0.33 | 0.71 |
| + RL sparse | 0.46 | 0.66 | 0.75 |
| Best open 7B math model | 0.30 | · | · |
| Six frontier APIs | 0.42 to 0.58 | · | · |
Our rows: mean over four seeds. Comparator rows: reference seed. The trained 4B model also improves GSM8K (0.83 to 0.88), MATH-500 (0.13 to 0.65) and MMLU college math (0.34 to 0.72) under the same chain-of-thought prompt, with none of their data in training.
The dataset
- 4,707
- false conjectures
- 12,376
- verifier modules
- 6
- areas of algebra and analysis
- 132 ms
- median check
Group, ring, number and field theory, linear algebra and real analysis. Splits: 201 test, 1,000 SFT, 3,506 RL, plus 347 true theorems as a calibration probe. A hand audit of 177 verifier decisions found 97.7% correct.
from datasets import load_dataset
test = load_dataset("ce-rlvr/SymCE", "test")["test"]
Citation
@inproceedings{zouak-etal-2026-counterexample,
title = "Counterexample Generation via Per-Theorem Symbolic Verifiers: When Imitation Hurts and Reinforcement Repairs",
author = "Zouak, Omar Farouk and
Boukhalfa, Houssam Eddine and
Lakehal, Soumaya and
Katiyar, Shiv and
Nefti-Meziani, Samia",
booktitle = "Findings of the {A}ssociation for {C}omputational {L}inguistics: {EMNLP} 2026",
month = oct,
year = "2026",
address = "Budapest, Hungary",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.findings-emnlp.2112/",
pages = "45032--45047",
}