From 72029c8b00126f92c8f8e8d73e6c27b0b0a8b685 Mon Sep 17 00:00:00 2001 From: Guillaume Melquiond Date: Thu, 25 Jul 2019 13:51:51 +0200 Subject: Mark primitives integer as able to participate in reductions (fixes #10560). The documentation states: - Norm means the term is fully normalized and cannot create a redex when substituted - Cstr means the term is in head normal form and that it can create a redex when substituted (i.e. constructor, fix, lambda) --- test-suite/bugs/closed/bug_10560.v | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test-suite/bugs/closed/bug_10560.v (limited to 'test-suite') diff --git a/test-suite/bugs/closed/bug_10560.v b/test-suite/bugs/closed/bug_10560.v new file mode 100644 index 0000000000..a9a0949d9a --- /dev/null +++ b/test-suite/bugs/closed/bug_10560.v @@ -0,0 +1,9 @@ +From Coq Require Import Int63. +Open Scope int63_scope. + +Lemma foo : + let n := opp 0 in add n 0 = n. +Proof. +cbv. +apply eq_refl. +Qed. -- cgit v1.2.3