aboutsummaryrefslogtreecommitdiff
path: root/test-suite/bugs/opened
diff options
context:
space:
mode:
authorJason Gross2017-05-30 12:48:47 -0400
committerJason Gross2017-06-01 03:55:05 -0400
commit1d6a1036a7c472e1f20c5ec586d2484203a2fe2e (patch)
tree582c15703090acc0f79d930f0f0c81d5ed2b9440 /test-suite/bugs/opened
parent4af77d01c434ff11f0899d504628f4ff91c49142 (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.v4
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.