~ubuntu-branches/ubuntu/wily/coq-doc/wily

« back to all changes in this revision

Viewing changes to theories/Program/Utils.v

  • Committer: Bazaar Package Importer
  • Author(s): Stéphane Glondu, Stéphane Glondu, Samuel Mimram
  • Date: 2010-01-07 22:50:39 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100107225039-n3cq82589u0qt0s2
Tags: 8.2pl1-1
[ Stéphane Glondu ]
* New upstream release (Closes: #563669)
  - remove patches
* Packaging overhaul:
  - use git, advertise it in Vcs-* fields of debian/control
  - use debhelper 7 and dh with override
  - use source format 3.0 (quilt)
* debian/control:
  - set Maintainer to d-o-m, set Uploaders to Sam and myself
  - add Homepage field
  - bump Standards-Version to 3.8.3
* Register PDF documentation into doc-base
* Add debian/watch
* Update debian/copyright

[ Samuel Mimram ]
* Change coq-doc's description to mention that it provides documentation in
  pdf format, not postscript, closes: #543545.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
(************************************************************************)
 
2
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
 
3
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
 
4
(*   \VV/  **************************************************************)
 
5
(*    //   *      This file is distributed under the terms of the       *)
 
6
(*         *       GNU Lesser General Public License Version 2.1        *)
 
7
(************************************************************************)
 
8
 
 
9
(*i $Id: Utils.v 11709 2008-12-20 11:42:15Z msozeau $ i*)
 
10
 
 
11
(** Various syntaxic shortands that are useful with [Program]. *)
 
12
 
 
13
Require Export Coq.Program.Tactics.
 
14
 
 
15
Set Implicit Arguments.
 
16
 
 
17
(** A simpler notation for subsets defined on a cartesian product. *)
 
18
 
 
19
Notation "{ ( x , y )  :  A  |  P }" :=
 
20
  (sig (fun anonymous : A => let (x,y) := anonymous in P))
 
21
  (x ident, y ident, at level 10) : type_scope.
 
22
 
 
23
(** Generates an obligation to prove False. *)
 
24
 
 
25
Notation " ! " := (False_rect _ _) : program_scope.
 
26
 
 
27
Delimit Scope program_scope with prg.
 
28
 
 
29
(** Abbreviation for first projection and hiding of proofs of subset objects. *)
 
30
 
 
31
Notation " ` t " := (proj1_sig t) (at level 10, t at next level) : program_scope.
 
32
 
 
33
(** Coerces objects to their support before comparing them. *)
 
34
 
 
35
Notation " x '`=' y " := ((x :>) = (y :>)) (at level 70) : program_scope.
 
36
 
 
37
Require Import Coq.Bool.Sumbool.
 
38
 
 
39
(** Construct a dependent disjunction from a boolean. *)
 
40
 
 
41
Notation dec := sumbool_of_bool.
 
42
 
 
43
(** The notations [in_right] and [in_left] construct objects of a dependent disjunction. *)
 
44
 
 
45
(** Hide proofs and generates obligations when put in a term. *)
 
46
 
 
47
Notation in_left := (@left _ _ _).
 
48
Notation in_right := (@right _ _ _).
 
49
 
 
50
(** Extraction directives *)
 
51
(*
 
52
Extraction Inline proj1_sig.
 
53
Extract Inductive unit => "unit" [ "()" ].
 
54
Extract Inductive bool => "bool" [ "true" "false" ].
 
55
Extract Inductive sumbool => "bool" [ "true" "false" ].
 
56
(* Extract Inductive prod "'a" "'b" => " 'a * 'b " [ "(,)" ]. *)
 
57
(* Extract Inductive sigT => "prod" [ "" ]. *)
 
58
*)
 
 
b'\\ No newline at end of file'