HOL icon indicating copy to clipboard operation
HOL copied to clipboard

rename EVERY2 to LIST_REL in theorem names

Open xrchz opened this issue 9 years ago • 4 comments

EVERY2 and LIST_REL are the same constant (one is an overload for the other). But several theorems use "EVERY2" in their name, which makes it hard to find theorems about "LIST_REL" if one only knows the constant by that name. It would be nice if all the theorems used "LIST_REL" in their name. (Suggested by @SOwens.)


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

xrchz avatar Nov 11 '15 17:11 xrchz

This is a general problem. If existing constants are going to be renamed/overloaded, then perhaps the search facilities should look at the overloading maps in order to get all the info.

Konrad.

On Wed, Nov 11, 2015 at 11:05 AM, Ramana Kumar [email protected] wrote:

EVERY2 and LIST_REL are the same constant (one is an overload for the other). But several theorems use "EVERY2" in their name, which makes it hard to find theorems about "LIST_REL" if one only knows the constant by that name. It would be nice if all the theorems used "LIST_REL" in their name. (Suggested by @SOwens https://github.com/SOwens.)

— Reply to this email directly or view it on GitHub https://github.com/HOL-Theorem-Prover/HOL/issues/316.

konrad-slind avatar Nov 11 '15 18:11 konrad-slind

If you want to add additional bindings so that theorems are available under two names, that's fine. On the other hand, don't remove existing bindings to break stuff gratuitously.

I'd tend to use DB.match in preference to DB.find, and then the name of the theorem doesn't really matter.

mn200 avatar Nov 11 '15 23:11 mn200

#319 is relevant

xrchz avatar Nov 27 '16 08:11 xrchz

#98 also

xrchz avatar Nov 03 '17 01:11 xrchz