HOL icon indicating copy to clipboard operation
HOL copied to clipboard

REABBREV_TAC renames duplicate abbreviations

Open ordinarymath opened this issue 8 months ago • 3 comments

Given a goal of

    0.  Abbrev (a = FOO BAR)
    1.  Abbrev (a = GOO BAR)
   ------------------------------------
        test

REABBREV_TAC results in this

    0.  Abbrev (a = GOO BAR)
    1.  Abbrev (a' = FOO BAR)
   ------------------------------------
        test

ordinarymath avatar Apr 29 '25 08:04 ordinarymath

Note that this was discovered using LET_ELIM_TAC. I've also encounter other weird issues due to its rewrite based implementation that perhaps there should be a non rewrite based LET_ELIM_TAC

ordinarymath avatar Apr 29 '25 08:04 ordinarymath

It's not clear to me that this is a problematic behaviour.

mn200 avatar Apr 29 '25 09:04 mn200

Before REABBREV_TAC i can prove GOO BAR = FOO BAR after that i can't. I'm currently using the abbreviation to prevent var_eq_tac from exploding the goal

ordinarymath avatar Apr 29 '25 10:04 ordinarymath