Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] an inductive types question

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] an inductive types question


chronological Thread 
  • From: André Hirschowitz <ah AT unice.fr>
  • To: AUGER Cédric <Cedric.Auger AT lri.fr>
  • Cc: Coq Club <coq-club AT pauillac.inria.fr>
  • Subject: Re: [Coq-Club] an inductive types question
  • Date: Sun, 11 Oct 2009 16:28:32 +0200
  • List-archive: <http://pauillac.inria.fr/pipermail/coq-club/>
  • Organization: UNS


You loose pattern matching, but how can we define it?

match z with
| O => ...
| S n => (any value is matched even O since S (S O)=O)
end

You could write

Newmatch z with
| O => .A
| S n => B n
end

which should generate the single goal

Goal Oblig_O : B (S 0) =A.

ah





Archive powered by MhonArc 2.6.16.

Top of Page