Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] How to prove functions are equal?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] How to prove functions are equal?


chronological Thread 
  • From: Florian Hatat <florian.hatat AT ens-lyon.fr>
  • To: Wan Hai <wan.whyhigh AT gmail.com>
  • Cc: Coq Club <coq-club AT pauillac.inria.fr>
  • Subject: Re: [Coq-Club] How to prove functions are equal?
  • Date: Mon, 02 Jun 2008 15:11:32 +0200
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>

Hi,

Wan Hai a écrit :
> forall m1 m2 n, fc n (fun x=>m1*m2*x) = fc n (fun x=>m2*m1*x)
> (...)
> Is there another way to prove this not using the extensionality axiom
In this particular case (since you can rewrite using the equality
m1*m2*x = m2*m1*x, see the mult_comm lemma in Mult), you do not need the
extensionality axiom.

Theorem th1 : forall m1 m2 n, fc n (fun x=>m1*m2*x) = fc n (fun x=>m2*m1*x).
Proof.
intros m1 m2 n.
rewrite (mult_comm m1 m2).
reflexivity.
Qed.

By the way, I would be curious to known whether there exists an
unprovable (without extensionality) equality between two nat's...

-- 
Florian,
http://openweb.eu.org/
http://www.linux-france.org/


Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MhonArc 2.6.16.

Top of Page