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

« back to all changes in this revision

Viewing changes to kernel/esubst.mli

  • 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: esubst.mli 8799 2006-05-09 21:15:07Z barras $ i*)
 
10
 
 
11
(*s Compact representation of explicit relocations. \\
 
12
   [ELSHFT(l,n)] == lift of [n], then apply [lift l].
 
13
   [ELLFT(n,l)] == apply [l] to de Bruijn > [n] i.e under n binders. *)
 
14
type lift =
 
15
  | ELID
 
16
  | ELSHFT of lift * int
 
17
  | ELLFT of int * lift
 
18
 
 
19
val el_shft : int -> lift -> lift
 
20
val el_liftn : int -> lift -> lift
 
21
val el_lift : lift -> lift
 
22
val reloc_rel : int -> lift -> int
 
23
val is_lift_id : lift -> bool
 
24
 
 
25
(*s Explicit substitutions of type ['a]. *)
 
26
type 'a subs =
 
27
  | ESID of int            (* ESID(n)    = %n END   bounded identity *)
 
28
  | CONS of 'a array * 'a subs
 
29
                           (* CONS([|t1..tn|],S)  =
 
30
                              (S.t1...tn)    parallel substitution
 
31
                              beware of the order *)
 
32
  | SHIFT of int * 'a subs (* SHIFT(n,S) = (^n o S) terms in S are relocated *)
 
33
                           (*                        with n vars *)
 
34
  | LIFT of int * 'a subs  (* LIFT(n,S) = (%n S) stands for ((^n o S).n...1) *)
 
35
 
 
36
val subs_cons: 'a array * 'a subs -> 'a subs
 
37
val subs_shft: int * 'a subs -> 'a subs
 
38
val subs_lift: 'a subs -> 'a subs
 
39
val subs_liftn: int -> 'a subs -> 'a subs
 
40
val subs_shift_cons: int * 'a subs * 'a array -> 'a subs
 
41
val expand_rel: int -> 'a subs -> (int * 'a, int * int option) Util.union
 
42
val is_subs_id: 'a subs -> bool
 
43
val comp : ('a subs * 'a -> 'a) -> 'a subs -> 'a subs -> 'a subs