Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] proofs involving 'match' constructs

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] proofs involving 'match' constructs


Chronological Thread 
  • From: Laurent Théry <Laurent.Thery AT inria.fr>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] proofs involving 'match' constructs
  • Date: Fri, 29 May 2015 23:36:55 +0200

Or even shorter ;-)

Require Import Vector.
Require Import ArithRing.

Goal match mult_n_O 0 in (_ = y) return (t (option nat) y) with
| eq_refl => nil (option nat)
end = nil (option nat).
Proof.
apply trans_equal with (Vector.const (@None nat) (0 * 0)); auto.
now destruct (mult_n_O O).
Qed.





Archive powered by MHonArc 2.6.18.

Top of Page