coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Fred Smith <fsmith1024 AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] A question of encoding...
- Date: Tue, 4 Dec 2018 21:41:28 -0500
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=fsmith1024 AT gmail.com; spf=Pass smtp.mailfrom=fsmith1024 AT gmail.com; spf=None smtp.helo=postmaster AT mail-oi1-f178.google.com
- Ironport-phdr: 9a23:MM+ENx1ZxNadZJlpsmDT+DRfVm0co7zxezQtwd8ZsewfKfad9pjvdHbS+e9qxAeQG9mDu7Qc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPYAhEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLnhykHODw5/m/ZicJ+kbxVrw66qhNl34LZepuYOOZicq7fe94RWGpPXtxWVyxEGo6yb5EPAPQcMu1Fsof9oloOrQe+BQKxA+7vxCRIhnr33a0m0+QtDB3K0BIvEt8Vv3TUqc/6NKYWUeyv0KbIyjDDYupQ1Dzg64bIaggsre+QUb90a8bcykkiGxnYgliRq4HpJS6Z2+YOvmWd8uFuT/igi3Q9pAF0ujWvxtkjio3Oho8Nz1DL7yR5wIIsKd2/SU53fMeoEJVNuyyYNIZ6WMwiQ2ZvuCY1zr0Jp4S3czQNyJQi3xLfavqHfJaU4h/7SuqdPTN1iGhmdb+/nRq+7Emtx+/mWsWp0ltHrTJJktzWuXAM0xzT5NKHSvx4/kq51zaPzAXT6uBYIUA0iKbXN4Atz7Erm5octETMBC72mEHsgKCKcUUk//Ck6/77bbX+up+cK4h0hxniPaQpg8yzGPg3MgwTX2eA4um8z73i/UjhQLpQlPE2k6/ZsIrbJcsBvKK5DRVVgc4f7EO0CC7j29AFl1EGKkhEcVSJldvHIVbLdd7iAPv3uFGtjDcjk/7dO7z9AsyVdCTrn7LofLI74ElZnllghetD7o5ZX+lSaMn4XVX84YSBX00JdjesyuOiM+1Tk4YXWGaBGKicafqAvlqB5+ZpKO6JNtZM5GTNbsM97vurtkcX3EcHdPDwj5QSYXG8WP9hJhfBOCe+spI6CW4P+zEGYqnqhVmFC2ABYn+zW+c752h+Btv5XcHMQYeihLHH1yC+TMVb
Hi Emilio,
Thanks for the pointer. George actually starts off his paper "Packaging Mathematical Structures" with exactly the path example I raised. I still don't fully understand his use of coercions and voodoo Coq meta-theoretic programming, but it is certainly worth studying.
-Fred
On Mon, Dec 3, 2018 at 5:52 AM Emilio Jesús Gallego Arias <e AT x80.org> wrote:
Hi Fred,
Fred Smith <fsmith1024 AT gmail.com> writes:
> I am looking for engineering advice to help me understand the tradeoffs
> between different ways of encoding the same information in Coq.
>
> As my exercise, I am trying to encode paths in a graph. For simplicity
> these are just lists of edges where each edge ends where the next edge
> begins.
>
> Below is a Coq file that uses 3 different encodings. Two inductive ones,
> and the third as a predicate. What are the pros and cons of these choices?
You may also be interested in the math-comp's definition of path:
Fixpoint path T (e : rel T) x (p : seq T) :=
if p is y :: p' then e x y && path y p' else true.
Actually there are some talks by George Gonthier where [IRRC] he
discussed the different tradeoffs among the different ways of encoding
paths [I'm afraid you'll have to google for the exact video link]
Cheers,
E.
- [Coq-Club] A question of encoding..., Fred Smith, 12/02/2018
- Re: [Coq-Club] A question of encoding..., Jason -Zhong Sheng- Hu, 12/02/2018
- Re: [Coq-Club] A question of encoding..., Fred Smith, 12/02/2018
- Re: [Coq-Club] A question of encoding..., Jason -Zhong Sheng- Hu, 12/02/2018
- Re: [Coq-Club] A question of encoding..., Fred Smith, 12/02/2018
- Re: [Coq-Club] A question of encoding..., Pierre Casteran, 12/03/2018
- Re: [Coq-Club] A question of encoding..., Fred Smith, 12/02/2018
- Re: [Coq-Club] A question of encoding..., Jason -Zhong Sheng- Hu, 12/02/2018
- Re: [Coq-Club] A question of encoding..., Fred Smith, 12/02/2018
- Re: [Coq-Club] A question of encoding..., Emilio Jesús Gallego Arias, 12/03/2018
- Re: [Coq-Club] A question of encoding..., Fred Smith, 12/05/2018
- Re: [Coq-Club] A question of encoding..., Christian Doczkal, 12/03/2018
- Re: [Coq-Club] A question of encoding..., Xuanrui Qi, 12/03/2018
- Re: [Coq-Club] A question of encoding..., Fred Smith, 12/05/2018
- Re: [Coq-Club] A question of encoding..., Fred Smith, 12/05/2018
- Re: [Coq-Club] A question of encoding..., Fred Smith, 12/05/2018
- Re: [Coq-Club] A question of encoding..., Jason -Zhong Sheng- Hu, 12/02/2018
Archive powered by MHonArc 2.6.18.