diff options
| author | Jason Gross | 2017-05-30 12:48:47 -0400 |
|---|---|---|
| committer | Jason Gross | 2017-06-01 03:55:05 -0400 |
| commit | 1d6a1036a7c472e1f20c5ec586d2484203a2fe2e (patch) | |
| tree | 582c15703090acc0f79d930f0f0c81d5ed2b9440 /test-suite/bugs/opened | |
| parent | 4af77d01c434ff11f0899d504628f4ff91c49142 (diff) | |
Fix bug #5019 (looping zify on dependent types)
This fixes [bug #5019](https://coq.inria.fr/bugs/show_bug.cgi?id=5019),
"[zify] loops on dependent types"; before, we would see a `Z.of_nat (S
?k)` which could not be turned into `Z.succ (Z.of_nat k)`, add a
hypothesis of the shape `0 <= Z.of_nat (S k)`, turn that into a
hypothesis of the shape `0 <= Z.succ (Z.of_nat k)`, and loop forever on
this.
This may not be the "right" fix (there may be cases where `zify` should
succeed where it still fails with this change), but this is a pure
bugfix in the sense that the only places where it changes the behavior
of `zify` are the places where, previously, `zify` looped forever.
Diffstat (limited to 'test-suite/bugs/opened')
| -rw-r--r-- | test-suite/bugs/opened/5019.v | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test-suite/bugs/opened/5019.v b/test-suite/bugs/opened/5019.v deleted file mode 100644 index 09622097c5..0000000000 --- a/test-suite/bugs/opened/5019.v +++ /dev/null @@ -1,4 +0,0 @@ -Require Import Coq.ZArith.ZArith. -Goal forall (T0 : Z -> Type) (k : nat) d (P : T0 (Z.of_nat (S k)) -> Prop), P d. - clear; intros. - Fail Timeout 1 zify. |
