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

« back to all changes in this revision

Viewing changes to kernel/type_errors.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: type_errors.mli 10533 2008-02-08 16:54:47Z msozeau $ i*)
 
10
 
 
11
(*i*)
 
12
open Names
 
13
open Term
 
14
open Environ
 
15
(*i*)
 
16
 
 
17
(* Type errors. \label{typeerrors} *)
 
18
 
 
19
(*i Rem: NotEnoughAbstractionInFixBody should only occur with "/i" Fix
 
20
    notation i*)
 
21
type guard_error =
 
22
  (* Fixpoints *)
 
23
  | NotEnoughAbstractionInFixBody
 
24
  | RecursionNotOnInductiveType of constr
 
25
  | RecursionOnIllegalTerm of int * constr * int list * int list
 
26
  | NotEnoughArgumentsForFixCall of int
 
27
  (* CoFixpoints *)
 
28
  | CodomainNotInductiveType of constr
 
29
  | NestedRecursiveOccurrences
 
30
  | UnguardedRecursiveCall of constr
 
31
  | RecCallInTypeOfAbstraction of constr
 
32
  | RecCallInNonRecArgOfConstructor of constr
 
33
  | RecCallInTypeOfDef of constr
 
34
  | RecCallInCaseFun of constr
 
35
  | RecCallInCaseArg of constr
 
36
  | RecCallInCasePred of constr
 
37
  | NotGuardedForm of constr
 
38
 
 
39
type arity_error =
 
40
  | NonInformativeToInformative
 
41
  | StrongEliminationOnNonSmallType
 
42
  | WrongArity
 
43
 
 
44
type type_error =
 
45
  | UnboundRel of int
 
46
  | UnboundVar of variable
 
47
  | NotAType of unsafe_judgment
 
48
  | BadAssumption of unsafe_judgment
 
49
  | ReferenceVariables of constr
 
50
  | ElimArity of inductive * sorts_family list * constr * unsafe_judgment
 
51
      * (sorts_family * sorts_family * arity_error) option
 
52
  | CaseNotInductive of unsafe_judgment
 
53
  | WrongCaseInfo of inductive * case_info
 
54
  | NumberBranches of unsafe_judgment * int
 
55
  | IllFormedBranch of constr * int * constr * constr
 
56
  | Generalization of (name * types) * unsafe_judgment
 
57
  | ActualType of unsafe_judgment * types
 
58
  | CantApplyBadType of
 
59
      (int * constr * constr) * unsafe_judgment * unsafe_judgment array
 
60
  | CantApplyNonFunctional of unsafe_judgment * unsafe_judgment array
 
61
  | IllFormedRecBody of guard_error * name array * int * env * unsafe_judgment array
 
62
  | IllTypedRecBody of
 
63
      int * name array * unsafe_judgment array * types array
 
64
 
 
65
exception TypeError of env * type_error
 
66
 
 
67
val error_unbound_rel : env -> int -> 'a
 
68
 
 
69
val error_unbound_var : env -> variable -> 'a
 
70
 
 
71
val error_not_type : env -> unsafe_judgment -> 'a
 
72
 
 
73
val error_assumption : env -> unsafe_judgment -> 'a
 
74
 
 
75
val error_reference_variables : env -> constr -> 'a
 
76
 
 
77
val error_elim_arity : 
 
78
  env -> inductive -> sorts_family list -> constr -> unsafe_judgment -> 
 
79
      (sorts_family * sorts_family * arity_error) option -> 'a
 
80
 
 
81
val error_case_not_inductive : env -> unsafe_judgment -> 'a
 
82
 
 
83
val error_number_branches : env -> unsafe_judgment -> int -> 'a
 
84
 
 
85
val error_ill_formed_branch : env -> constr -> int -> constr -> constr -> 'a
 
86
 
 
87
val error_generalization : env -> name * types -> unsafe_judgment -> 'a
 
88
 
 
89
val error_actual_type : env -> unsafe_judgment -> types -> 'a
 
90
 
 
91
val error_cant_apply_not_functional : 
 
92
  env -> unsafe_judgment -> unsafe_judgment array -> 'a
 
93
 
 
94
val error_cant_apply_bad_type : 
 
95
  env -> int * constr * constr -> 
 
96
      unsafe_judgment -> unsafe_judgment array -> 'a
 
97
 
 
98
val error_ill_formed_rec_body :
 
99
  env -> guard_error -> name array -> int -> env -> unsafe_judgment array -> 'a
 
100
 
 
101
val error_ill_typed_rec_body  :
 
102
  env -> int -> name array -> unsafe_judgment array -> types array -> 'a
 
103