Abhishek Anand
2018-09-25 03:41:37 UTC
Is there a convenient way to fold a definition under binders?
(I can do a `change` of the whole term, but that is problematic when
dealing with large terms)
Consider the following example:
Definition add2 n := n +2.
Goal (fun n => n) = (fun n => n+2).
Is there a general advanced fold tactic such that `advanced_fold add2`
changes "n+2" to "add2 n"?
(I can do a `change` of the whole term, but that is problematic when
dealing with large terms)
Consider the following example:
Definition add2 n := n +2.
Goal (fun n => n) = (fun n => n+2).
Is there a general advanced fold tactic such that `advanced_fold add2`
changes "n+2" to "add2 n"?
--
-- Abhishek
http://www.cs.cornell.edu/~aa755/
-- Abhishek
http://www.cs.cornell.edu/~aa755/