diff options
| author | Jason Gross | 2019-09-19 16:31:33 -0400 |
|---|---|---|
| committer | Jason Gross | 2019-11-26 14:14:04 -0500 |
| commit | 8d9afb9c459ed7affdf6c0752ff6397e0281e0c3 (patch) | |
| tree | 4f3efc331b48d3068e8e9b340e7ae46db56e4c26 /test-suite | |
| parent | b09444fdaee1cf608dd40465d5e400fbd46ef6ad (diff) | |
Remove `rapply` tactic notation in favor of just the tactic
This increases backwards compatibility. If desired, we can add a tactic
notation to simplify the spec of `rapply` in the future if we want.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/rapply.v | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/test-suite/success/rapply.v b/test-suite/success/rapply.v index 5bc2322842..13efd986f0 100644 --- a/test-suite/success/rapply.v +++ b/test-suite/success/rapply.v @@ -1,22 +1,27 @@ Require Import Coq.Program.Tactics. +(** We make a version of [rapply] that takes [uconstr]; we do not +currently test what scope [rapply] interprets terms in. *) + +Tactic Notation "urapply" uconstr(p) := rapply p. + Ltac test n := (*let __ := match goal with _ => idtac n end in*) lazymatch n with - | O => let __ := match goal with _ => assert True by rapply I; clear end in + | O => let __ := match goal with _ => assert True by urapply I; clear end in uconstr:(fun _ => I) | S ?n' => let lem := test n' in - let __ := match goal with _ => assert True by (unshelve rapply lem; try exact I); clear end in + let __ := match goal with _ => assert True by (unshelve urapply lem; try exact I); clear end in uconstr:(fun _ : True => lem) end. Goal True. - assert True by rapply I. - assert True by (unshelve rapply (fun _ => I); try exact I). - assert True by (unshelve rapply (fun _ _ => I); try exact I). - assert True by (unshelve rapply (fun _ _ _ => I); try exact I). + assert True by urapply I. + assert True by (unshelve urapply (fun _ => I); try exact I). + assert True by (unshelve urapply (fun _ _ => I); try exact I). + assert True by (unshelve urapply (fun _ _ _ => I); try exact I). clear. Time let __ := test 50 in idtac. - rapply I. + urapply I. Qed. |
