coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonathan Leivent <jonikelee AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Axioms in default hint databases
- Date: Tue, 15 Dec 2015 19:35:29 -0500
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=jonikelee AT gmail.com; spf=Pass smtp.mailfrom=jonikelee AT gmail.com; spf=None smtp.helo=postmaster AT mail-qg0-f54.google.com
- Ironport-phdr: 9a23:VClaQBPpaH4dNNYDU3Il6mtUPXoX/o7sNwtQ0KIMzox0KP/4rarrMEGX3/hxlliBBdydsKIazbKO+4nbGkU+or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6anHS+4HYoFwnlMkItf6KuStCU15z//tvx0qOQSj0AvCC6b7J2IUf+hiTqne5Sv7FfLL0swADCuHpCdrce72ppIVWOg0S0vZ/or9YwuxhX7vkm7otLVbjwV6U+V71RSjo8YE4v48i+lx7FRBeP731UdmgXjBdOH0CR7hb8X5T8tib3nuV40Siee8bxSOZnCnyZ8653RUqw2288PDkj/TSPhw==
On 12/15/2015 07:22 PM, Gregory Malecha wrote:
Hello --
I just did a "Print Assumptions foo" on my final theorem and found out that
some of my development depends on the following axiom:
Eqdep.Eq_rect_eq.eq_rect_eq : forall (U : Type) (p : U)
(Q : U -> Type) (x : Q p)
(h : p = p), x = eq_rect p Q x p h
After tracing down the bug for about 20 minutes, I found that it was
introduced by a call to [intuition]. [intuition] uses some hint databases
that include axioms. The above axiom was included by the following chain of
includes and definitions.
Coq.Classes.EquivDec
which includes
Coq.Program.Program
which includes
Coq.Program.Equality
which defines the following
Ltac is_ground_goal :=
match goal with
|- ?T => is_ground T
end.
(** Try to find a contradiction. *)
Hint Extern 10 => is_ground_goal ; progress exfalso : exfalso.
and includes
Coq.Logic.Eqdep
which contains the hint
Hint Resolve eq_dep_eq: eqdep v62.
I assume that one of these databases (eqdep or v62) is included by default.
This seems like bad behavior and I'm wondering if it is possible to prevent
tactics from using axioms that occur in hint databases. I'm also wondering
if anyone knows a fragment of the standard library that is safe to use and
avoid axioms.
intuition is really a shorthand for "intuition auto with *" - so if you want intuition to restrict the hint database, you need to provide its secondary tactic instead of allowing that to default to "auto with *".
There aren't many built in tactics that do things like "auto with *". Another is firstorder, which is an enhanced version of intuition. I can't think of any more.
-- Jonathan
- [Coq-Club] Axioms in default hint databases, Gregory Malecha, 12/16/2015
- Re: [Coq-Club] Axioms in default hint databases, Jonathan Leivent, 12/16/2015
- Re: [Coq-Club] Axioms in default hint databases, Matthieu Sozeau, 12/16/2015
- RE: [Coq-Club] Axioms in default hint databases, Soegtrop, Michael, 12/16/2015
- Re: [Coq-Club] Axioms in default hint databases, Matthieu Sozeau, 12/16/2015
- Re: [Coq-Club] Axioms in default hint databases, Jonathan Leivent, 12/16/2015
Archive powered by MHonArc 2.6.18.