diff options
| author | Pierre-Marie Pédrot | 2020-05-12 17:13:05 +0200 |
|---|---|---|
| committer | Pierre-Marie Pédrot | 2020-05-12 17:13:05 +0200 |
| commit | efb78e3c413bcc66d470ba4046c56bae0a61f56f (patch) | |
| tree | a2139fd2681c93563a1272c4d545931ad7b6485b /test-suite | |
| parent | 697730186f17ac3992b9b7966c505b8f64eab69d (diff) | |
| parent | 3a8376b5dc39e9b546470509b80de3fe9881c7f3 (diff) | |
Merge PR #12146: Fixes #10812: tactic subst failure with section variables indirectly dependent in goal
Ack-by: Zimmi48
Reviewed-by: ppedrot
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/bugs/closed/bug_10812.v | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test-suite/bugs/closed/bug_10812.v b/test-suite/bugs/closed/bug_10812.v new file mode 100644 index 0000000000..68f3814781 --- /dev/null +++ b/test-suite/bugs/closed/bug_10812.v @@ -0,0 +1,28 @@ +(* subst with indirectly dependent section variables *) + +Section A. + +Variable a:nat. +Definition b := a. + +Goal a=1 -> a+a=1 -> b=1. +intros. +Fail subst a. (* was working; we make it failing *) +rewrite H in H0. +discriminate. +Qed. + +Goal a=1 -> a+a=1 -> b=1. +intros. +subst. (* should not apply to a *) +rewrite H in H0. +discriminate. +Qed. + +Goal forall t, a=t -> b=t. +intros. +subst. +reflexivity. +Qed. + +End A. |
