English

Using Counterexample Generation and Theory Exploration to Suggest Missing Hypotheses

Logic in Computer Science 2023-11-16 v1

Abstract

Newcomers to ACL2 are sometimes surprised that ACL2 rejects formulas that they believe should be theorems, such as (REVERSE (REVERSE X)) = X. Experienced ACL2 users will recognize that the theorem only holds for intended values of X, and given ACL2's total logic, there are many counterexamples for which this formula is simply not true. Counterexample generation (cgen) is a technique that helps by giving the user a number of counterexamples (and also witnesses) to the formula, e.g., letting the user know that the intended theorem is false when X is equal to 10. In this paper we describe a tool called DrLA that goes further by suggesting additional hypotheses that will make the theorem true. In this case, for example, DrLA may suggest that X needs to be either a TRUE-LIST or a STRING. The suggestions are discovered using the ideas of theory exploration and subsumption from automated theorem proving.

Cite

@article{arxiv.2311.08857,
  title  = {Using Counterexample Generation and Theory Exploration to Suggest Missing Hypotheses},
  author = {Ruben Gamboa and Panagiotis Manolios and Eric Smith and Kyle Thompson},
  journal= {arXiv preprint arXiv:2311.08857},
  year   = {2023}
}

Comments

In Proceedings ACL2-2023, arXiv:2311.08373

R2 v1 2026-06-28T13:21:55.720Z