coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Daniel Schepler <dschepler AT gmail.com>
- To: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] Proving efficient decidability of a Prop?
- Date: Wed, 9 Jul 2014 16:55:01 -0700
You might try replacing "eval compute" with "eval hnf" so it only does
the computation needed to determine which constructor the result is,
and not computation of the internal details of proofs. If that still
doesn't make things efficient enough, you might try writing an
intermediate function MyRel_dec_int : forall a b, Acc lt (weight_fn a
b) -> {MyRel a b} + {~MyRel a b} which is a fixed point on the Acc
predicate. Then, use the trick of expanding the Acc proof 2^N times
and feeding that into MyRel_dec_int instead of your original Acc
proof, to define MyRel_dec. (Sorry I don't recall the details of how
the expansion of Acc is written off the top of my head, but it's been
posted several times before in the mailing list.)
--
Daniel Schepler
- [Coq-Club] Proving efficient decidability of a Prop?, Andrew Kent, 07/09/2014
- Re: [Coq-Club] Proving efficient decidability of a Prop?, Pierre-Marie Pédrot, 07/09/2014
- Re: [Coq-Club] Proving efficient decidability of a Prop?, Daniel Schepler, 07/10/2014
- Re: [Coq-Club] Proving efficient decidability of a Prop?, Andrew Kent, 07/10/2014
- Re: [Coq-Club] Proving efficient decidability of a Prop?, Cedric Auger, 07/10/2014
- Re: [Coq-Club] Proving efficient decidability of a Prop?, Andrew Kent, 07/10/2014
Archive powered by MHonArc 2.6.18.