HOL-Theorem-Prover / HOL

Canonical sources for HOL4 theorem-proving system. Branch develop is where “mainline development” occurs; when develop passes our regression tests, master is merged forward to catch up.
https://hol-theorem-prover.org
Other
621 stars 140 forks source link

Polarity search functionality #1208

Closed Eric-C-Hall closed 6 months ago

Eric-C-Hall commented 6 months ago

Functionality that allows one to search for theorems such that a certain term specifically appears as a premise or as a conclusion to that theorem, rather than simply testing that the term is present somewhere in the theorem.

mn200 commented 6 months ago

How about adjusting the Emacs code so that if the user provides a "prefix argument" (types C-u first), the sense of the search is flipped so that negative occurrences are searched for? See the elisp for hol-subgoal-tactic for how to do this:

mn200 commented 6 months ago

BTW: your regression failures are a result of having used Unicode in files committed under src. There's an emacs command to fix this up semi-automatically. The rules allow the lambda and the magic quotes to be used even if everything else is forbidden.

mn200 commented 6 months ago

Thanks for your work on this!