annotate src/coq/Name.v @ 639:9da62680adc5

RPC returning an option datatype
author Adam Chlipala <adamc@hcoop.net>
date Sun, 08 Mar 2009 12:54:07 -0400
parents 75c7a69354d6
children
rev   line source
adamc@620 1 (* Copyright (c) 2009, Adam Chlipala
adamc@620 2 * All rights reserved.
adamc@620 3 *
adamc@620 4 * Redistribution and use in source and binary forms, with or without
adamc@620 5 * modification, are permitted provided that the following conditions are met:
adamc@620 6 *
adamc@620 7 * - Redistributions of source code must retain the above copyright notice,
adamc@620 8 * this list of conditions and the following disclaimer.
adamc@620 9 * - Redistributions in binary form must reproduce the above copyright notice,
adamc@620 10 * this list of conditions and the following disclaimer in the documentation
adamc@620 11 * and/or other materials provided with the distribution.
adamc@620 12 * - The names of contributors may not be used to endorse or promote products
adamc@620 13 * derived from this software without specific prior written permission.
adamc@620 14 *
adamc@620 15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
adamc@620 16 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
adamc@620 17 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
adamc@620 18 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
adamc@620 19 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
adamc@620 20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
adamc@620 21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
adamc@620 22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
adamc@620 23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
adamc@620 24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
adamc@620 25 * POSSIBILITY OF SUCH DAMAGE.
adamc@620 26 *)
adamc@620 27
adamc@635 28 Require Import String.
adamc@620 29
adamc@635 30 Definition name := string.
adamc@635 31 Definition name_eq_dec : forall x y : name, {x = y} + {x <> y} := string_dec.