diff options
| author | Maxime Dénès | 2017-11-08 12:39:34 +0100 |
|---|---|---|
| committer | Maxime Dénès | 2017-11-08 12:39:34 +0100 |
| commit | 7e42041f5c4711a9fece32ce601ef99ca8ab272f (patch) | |
| tree | f2330be6cbe2a8d0be1a7de17875c7ed62770e1f /test-suite | |
| parent | 0d81e80a09db7d352408be4dfc5ba263f6ed98ef (diff) | |
| parent | dd56ef10395a2ced84612aa799690b034306806e (diff) | |
Merge PR #922: New beta-iota compatibility refinements
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/destruct.v | 6 | ||||
| -rw-r--r-- | test-suite/success/refine.v | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/test-suite/success/destruct.v b/test-suite/success/destruct.v index 0219c3bfdf..6fbe61a9be 100644 --- a/test-suite/success/destruct.v +++ b/test-suite/success/destruct.v @@ -430,3 +430,9 @@ eexists ?[x]. destruct (S _). change (0 = ?x). Abort. + +Goal (forall P, P 0 -> True/\True) -> True. +intro H. +destruct (H (fun x => True)). +match goal with |- True => idtac end. +Abort. diff --git a/test-suite/success/refine.v b/test-suite/success/refine.v index b8a8ff7561..22fb4d7576 100644 --- a/test-suite/success/refine.v +++ b/test-suite/success/refine.v @@ -122,3 +122,13 @@ Abort. Goal (forall A : Prop, A -> ~~A). Proof. refine(fun A a f => _). + +(* Checking beta-iota normalization of hypotheses in created evars *) + +Goal {x|x=0} -> True. +refine (fun y => let (x,a) := y in _). +match goal with a:_=0 |- _ => idtac end. + +Goal (forall P, {P 0}+{P 1}) -> True. +refine (fun H => if H (fun x => x=x) then _ else _). +match goal with _:0=0 |- _ => idtac end. |
