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

« back to all changes in this revision

Viewing changes to kernel/inductive.mli

  • Committer: Package Import Robot
  • Author(s): Stéphane Glondu
  • Date: 2012-01-03 23:42:48 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20120103234248-p9r8h1579n67v55a
Tags: 8.3pl3-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
(************************************************************************)
2
2
(*  v      *   The Coq Proof Assistant  /  The Coq Development Team     *)
3
 
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2010     *)
 
3
(* <O___,, *   INRIA - CNRS - LIX - LRI - PPS - Copyright 1999-2011     *)
4
4
(*   \VV/  **************************************************************)
5
5
(*    //   *      This file is distributed under the terms of the       *)
6
6
(*         *       GNU Lesser General Public License Version 2.1        *)
7
7
(************************************************************************)
8
8
 
9
 
(*i $Id: inductive.mli 13368 2010-08-03 13:22:49Z barras $ i*)
 
9
(*i $Id: inductive.mli 14641 2011-11-06 11:59:10Z herbelin $ i*)
10
10
 
11
11
(*i*)
12
12
open Names
85
85
 
86
86
(*s Support for sort-polymorphic inductive types *)
87
87
 
88
 
val type_of_inductive_knowing_parameters :
 
88
(** The "polyprop" optional argument below allows to control
 
89
    the "Prop-polymorphism". By default, it is allowed.
 
90
    But when "polyprop=false", the following exception is raised
 
91
    when a polymorphic singleton inductive type becomes Prop due to
 
92
    parameter instantiation. This is used by the Ocaml extraction,
 
93
    which cannot handle (yet?) Prop-polymorphism. *)
 
94
 
 
95
exception SingletonInductiveBecomesProp of identifier
 
96
 
 
97
val type_of_inductive_knowing_parameters : ?polyprop:bool ->
89
98
  env -> one_inductive_body -> types array -> types
90
99
 
91
100
val max_inductive_sort : sorts array -> universe