Repair loop

Does feeding Lean's errors back help?

A repair round shows the model its previous proof and exactly what Lean printed, nothing more. The fair comparison is against spending the same number of calls on independent fresh drafts (Direct ×4), not against a single draft.

Repair success

Among theorems whose first draft failed, the share later verified within the same run.

ConfigurationFirst draft failedLater verified
Full (plan + retrieval + repair)1674%
Full − compiler feedback1672%
Full − memory1672%
Full − retrieval1661%
Full − skeleton1652%
Hybrid retrieval + repair1713%
BM25 retrieval + repair1684%
Dense retrieval + repair1714%
Repair1736%
Repair (paraphrased prompt)1694%

Which errors get repaired

For each class of first error, how often the very next round in the same run produced a verified proof. Classes with fewer than five cases are omitted; 95% Wilson intervals.