diff options
| author | Enrico Tassi | 2020-01-03 19:09:15 +0100 |
|---|---|---|
| committer | Enrico Tassi | 2020-01-03 19:09:15 +0100 |
| commit | 793bddef6b4f615297e9f9088cd0b603c56b2014 (patch) | |
| tree | bff9cb13225836a72ebed11044636204b7537eb3 /test-suite | |
| parent | fbd911ee701a63a05c213cfe6e98271fa54c874a (diff) | |
| parent | c380202139b158647089c1352bcacf82c99012ea (diff) | |
Merge PR #11343: fix: Shorten ssrsetoid.v to fix TC performance issue
Reviewed-by: gares
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/ssr/under.v | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test-suite/ssr/under.v b/test-suite/ssr/under.v index c12491138a..0312b9c733 100644 --- a/test-suite/ssr/under.v +++ b/test-suite/ssr/under.v @@ -313,8 +313,7 @@ Qed. End TestGeneric2. Section TestPreOrder. -(* inspired by https://github.com/coq/coq/pull/10022#issuecomment-530101950 - but without needing to do [rewrite UnderE] manually. *) +(* inspired by https://github.com/coq/coq/pull/10022#issuecomment-530101950 *) Require Import Morphisms. @@ -330,7 +329,7 @@ Parameter leq_mul : Local Notation "+%N" := addn (at level 0, only parsing). -(** Context lemma (could *) +(** Context lemma *) Lemma leq'_big : forall I (F G : I -> nat) (r : seq I), (forall i : I, leq' (F i) (G i)) -> (leq' (\big[+%N/0%N]_(i <- r) F i) (\big[+%N/0%N]_(i <- r) G i)). @@ -370,8 +369,10 @@ have lem : forall (i : nat), i < n -> leq' (3 + i) (3 + n). under leq'_big => i. { - (* The "magic" is here: instantiate the evar with the bound "3 + n" *) - rewrite lem ?ltn_ord //. over. + rewrite UnderE. + + (* instantiate the evar with the bound "3 + n" *) + apply: lem; exact: ltn_ord. } cbv beta. |
