Findings of EMNLP 2026

Counterexample Generation via Per‑Theorem Symbolic Verifiers

When Imitation Hurts and Reinforcement Repairs

Omar Farouk Zouak1, Houssam Eddine Boukhalfa1, Soumaya Lakehal1, Shiv Katiyar2, Samia Nefti-Meziani2

1National School of Artificial Intelligence (ENSIA), Algiers  ·  2University of Birmingham

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. 1 · True theorem G × H is abelian if and only if G and H are both abelian.
  2. 2 · Drop a hypothesis “If H is abelian, then G × H is abelian.” False.
  3. 3 · Model answers (SymmetricGroup(3), CyclicGroup(2))
    or NONE if it thinks no counterexample exists
  4. 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.

False conjectures disprovedPass@1, 201 test items
Base0.30
+ SFT0.34
+ RL dense0.49
+ RL sparse0.46
True theorems recognised347 true theorems, training-style prompt
Base0.27
+ SFT0.00
+ RL dense0.33
+ RL sparse0.66

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.

Reward for one answer to a false conjecture. Dense: NONE earns -0.2, a wrong witness 0.10 to 0.35, a valid one 1. Sparse: NONE and a wrong witness both earn 0, a valid one 1. −0.200.51 −0.200.51 Dense Sparse wrong witness NONE valid wrong witness = NONE = 0 valid
Reward for one answer to a false conjecture. After RL, the sparse model abstains on 10% of test items and the dense model on 2% (reference seed).

Results

Disproved
Pass@1
True theorems
training prompt
True theorems
true/false prompt
Qwen3-4B base0.300.270.36
+ SFT0.340.000.16
+ RL dense0.490.330.71
+ RL sparse0.460.660.75
Best open 7B math model0.30··
Six frontier APIs0.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",
}