Abhishek Anand
2018-09-28 20:13:58 UTC
Many times, we wish to unfold only certain occurrences of a definition.
The unfold tactic takes the occurrence number as an integer.
However, using an integer to refer to occurrence seems less robust and the
integer provides less useful information when proofs break.
Is there a way to more structurally specify where to unfold?
For example, is there a way to specify where to unfold as follows:
match goal with
[|- context[?x+978]] => unfold foo in ?x
end
Thanks,
-- Abhishek
http://www.cs.cornell.edu/~aa755/
The unfold tactic takes the occurrence number as an integer.
However, using an integer to refer to occurrence seems less robust and the
integer provides less useful information when proofs break.
Is there a way to more structurally specify where to unfold?
For example, is there a way to specify where to unfold as follows:
match goal with
[|- context[?x+978]] => unfold foo in ?x
end
Thanks,
-- Abhishek
http://www.cs.cornell.edu/~aa755/