Skip to Content.
Sympa Menu

coq-club - [Coq-Club] Simple question about refine in 8.5

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] Simple question about refine in 8.5


Chronological Thread 
  • From: Daniel Schepler <dschepler AT gmail.com>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: [Coq-Club] Simple question about refine in 8.5
  • Date: Sun, 7 Feb 2016 12:44:04 -0800
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=dschepler AT gmail.com; spf=Pass smtp.mailfrom=dschepler AT gmail.com; spf=None smtp.helo=postmaster AT mail-ob0-f181.google.com
  • Ironport-phdr: 9a23:9wypSRIr5tGUt429K9mcpTZWNBhigK39O0sv0rFitYgULf/xwZ3uMQTl6Ol3ixeRBMOAu60C0bed6vuwEUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35vxjb35osaDKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46Fp34d6XK77Z6U1S6BDRHRjajhtpZ6jiR6WZgyWrlAYT29exhFPGk3O6Azwdpb3qCrz8ORnjnq0J8rzGJw9XzWv6+9QQx/lkCMKLXZt/HrcisFoiK9BiB2krh17hYXTZdfGZ7JFYqrBcIZCFiJ6VcFLWnkEW9vkYg==

According to https://coq.inria.fr/distrib/V8.5/CHANGES:

- Tactic "refine" has been changed back to the 8.4 behavior of shelving
subgoals
that occur in other subgoals. The "refine" tactic of 8.5beta3 has been
renamed "simple refine"; it does not shelve any subgoal.

However, in my experience, refine still behaves differently in Coq 8.5
than it did in 8.4. For example:

Goal forall f : nat -> nat,
(forall m n:nat, m <= n -> f m <= f n) ->
f 1 <= 5 -> f 0 <= 5.
Proof.
intros f fincr f1.
refine (let H := fincr 0 1 _ in _).

In 8.4, this would produce two subgoals (Γ |- 0 <= 1; Γ, H : f 0 <= f
1 |- f 0 <= 5). However, in 8.5 it produces a single goal (Γ, H :=
fincr 0 1 ?existential |- f 0 <= 5). It seems to get the 8.4 behavior
back, I need "simple refine (let H := fincr 0 1 _ in _); [|clearbody
H]", or the same with unshelve refine.

So, am I completely misunderstanding that CHANGES entry, or is it
inaccurate? (I'm using the Debian 8.5-2 packages.)

Daniel Schepler



Archive powered by MHonArc 2.6.18.

Top of Page