LLM-based formal provers have become good at retrieving lemmas and prior proofs, but relevance is not enough. A lemma might look related to the theorem at hand, yet the mathematical method behind it could be unusable because its prerequisites, target, or intended action do not align with the current goal. This gap between relevance and applicability is the problem tackled in a new preprint on arXiv.
The paper, titled "Let the Library Speak: Self-Advertised Method Selection for Formal Proving," proposes that methods themselves should advertise their conditions for use. Instead of relying on the prover to infer applicability from context, each method explicitly states what it requires and what it does. The prover then selects methods based on these self-descriptions, rather than on surface-level similarity to the theorem.
This shift could make formal proof search more reliable, especially as libraries of lemmas and proofs grow. The authors argue that a method's own declaration of its scope is a stronger signal than relevance scores computed by a retriever. While the abstract does not provide experimental results, the conceptual contribution addresses a known bottleneck in LLM-driven formal reasoning: knowing not just what exists, but what can be used here and now.