Skip to Content.
Sympa Menu

coq-club - [Coq-Club] why it does not work?

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

[Coq-Club] why it does not work?


Chronological Thread 
  • From: Vladimir Voevodsky <vladimir AT ias.edu>
  • To: Coq Club <coq-club AT inria.fr>
  • Cc: Vladimir Voevodsky <vladimir AT ias.edu>
  • Subject: [Coq-Club] why it does not work?
  • Date: Mon, 16 Dec 2013 11:34:20 -0500

Hello,

could someone explain to me why the following code does not compile?


Fixpoint minuswithzero ( n m : nat ) : nat :=

match m , n with

| O , n => n
| S k , O => O
| S k , S l => minuswithzero l k
end .

Lemma test ( n : nat ) : paths n ( minuswithzero n O ) .
Proof . intro . unfold minuswithzero . apply idpath .



V.





Archive powered by MHonArc 2.6.18.

Top of Page