Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Coq data types

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Coq data types


Chronological Thread 
  • From: Justus Matthiesen <justus.matthiesen AT cl.cam.ac.uk>
  • To: coq-club AT inria.fr
  • Cc: kennethadammiller AT gmail.com
  • Subject: Re: [Coq-Club] Coq data types
  • Date: Sun, 11 Nov 2012 21:48:20 +0000

> I'm lost as to why t was used in place of vector. Why would the designers
> choose t instead of vector?

It's a convention in OCaml to give the name "t" to the main data structure
implemented in a file/module. I guessed it's spilled over into the Coq
standard library in places.


> Also, as part of an assignment, I have to model some C unions in Coq-I'm new
> to Coq, so I was wondering what data type I would use to get this done.

Have you tried the "Software Foundations" book [1] by Benjamin Pierce et al.?
The first few sections of the first chapter should give you enough
information
to answer your assignment.


Justus

[1] http://www.cis.upenn.edu/~bcpierce/sf/



Archive powered by MHonArc 2.6.18.

Top of Page