From e7b83e2a07fffaba0b19c62ef1a02c40d6ef603a Mon Sep 17 00:00:00 2001 From: Kazuhiko Sakaguchi Date: Fri, 20 Sep 2019 18:58:51 +0200 Subject: Make `zify` does work for `Z.to_N` --- test-suite/micromega/bug_9162.v | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test-suite/micromega/bug_9162.v (limited to 'test-suite') diff --git a/test-suite/micromega/bug_9162.v b/test-suite/micromega/bug_9162.v new file mode 100644 index 0000000000..4aedf57faf --- /dev/null +++ b/test-suite/micromega/bug_9162.v @@ -0,0 +1,8 @@ +Require Import ZArith Lia. +Local Open Scope Z_scope. + +Goal Z.of_N (Z.to_N 0) = 0. +Proof. lia. Qed. + +Goal forall q, (Z.of_N (Z.to_N 0) = 0 -> q = 0) -> Z.of_N (Z.to_N 0) = q. +Proof. lia. Qed. -- cgit v1.2.3