coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Jonathan <jonikelee AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] problem to prove associativity law with n parameters
- Date: Tue, 29 Jul 2014 11:10:47 -0400
On 07/29/2014 10:40 AM, coqcdp wrote:
Hi, Recently I want to prove associativity law in algebra ,I have proved that with 3 parameters,but I don't know how to prove that with arbitrary n parameters. for example I can prove (a+b)+c = a +(b+c) with coq , but I don't know how to prove or formalize (a1+a2)+...+an=a1+(a2+a3)+...+an=...=a1+a2+...+(an-1+an). I hope you can give me some suggestions. Thank you . Yours Sincerely , D.P.Chen Once you have the basic associativity law proved, the rest are just repeated applications of that law. For example: Require Import Arith.The rewrite plus_assoc is defined as an alias for Nat.add_assoc, which is defined as: add_assoc : forall n m p : nat, n + (m + p) = n + m + p So, there is no reason to prove more complex variations, as the single assoc law can handle all cases itself. -- Jonathan |
- [Coq-Club] problem to prove associativity law with n parameters, coqcdp, 07/29/2014
- Re: [Coq-Club] problem to prove associativity law with n parameters, Jonathan, 07/29/2014
- Re: [Coq-Club] problem to prove associativity law with n parameters, Cedric Auger, 07/29/2014
Archive powered by MHonArc 2.6.18.