From 1e67a490cd5ebbf5669e4cbf34a2a3066c0b5fc1 Mon Sep 17 00:00:00 2001 From: gareuselesinge Date: Mon, 18 Jun 2012 14:52:27 +0000 Subject: Proof using: nested sections bugfix It used to be the case that the list of declared section variables for a constant was taken into account only when discharging the first enclosing sections, but not any outer section. Example of the bug: Section A. Variable x : bool. Section B. Variable y : nat. Lemma foo : True. Proof using x y. Admitted. End B. End A. Check foo. (* nat -> True instead of bool -> nat -> True *) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@15445 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/success/proof_using.v | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test-suite/success') diff --git a/test-suite/success/proof_using.v b/test-suite/success/proof_using.v index 93a9ef116..bf302df44 100644 --- a/test-suite/success/proof_using.v +++ b/test-suite/success/proof_using.v @@ -51,11 +51,17 @@ Proof using v1 v2. admit. Qed. +Lemma deep2 : v1 = v2. +Proof using v1 v2. +Admitted. + End S2. Check (deep 3 : v1 = 3). +Check (deep2 3 : v1 = 3). End S1. Check (deep 3 4 : 3 = 4). +Check (deep2 3 4 : 3 = 4). -- cgit v1.2.3