kframework / matching-logic-prover

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace `\hole()` with `#hole`

h0nzZik opened this issue · comments

This:

syntax Pattern ::= Int
...
| "\\hole" "(" ")" [klabel(Phole)]

is a conceptual duplication of

syntax Variable ::= "#hole"

(from https://github.com/kframework/matching-logic-prover/blob/master/prover/lang/kore-lang.md)

Any reason that this is not a variable?
nevermind. I misunderstood

Adding this: rule #hole => \\hole()?

\hole() looks more like a symbol than a variable. I think replacing all instances of \hole() with #hole makes sense? We may need to change #hole to a set variable depending on how we use it of course

I have been thinking of completely removing \hole() and use only #hole.