| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
open Util |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
module Id : |
| 30 |
sig |
| 31 |
type t |
| 32 |
|
| 33 |
|
| 34 |
val equal : t -> t -> bool |
| 35 |
|
| 36 |
|
| 37 |
val compare : t -> t -> int |
| 38 |
|
| 39 |
|
| 40 |
val hash : t -> int |
| 41 |
|
| 42 |
|
| 43 |
val is_valid : string -> bool |
| 44 |
|
| 45 |
|
| 46 |
val is_valid_ident_part : string -> bool |
| 47 |
|
| 48 |
|
| 49 |
val of_bytes : bytes -> t |
| 50 |
val of_string : string -> t |
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
val of_string_soft : string -> t |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
val to_string : t -> string |
| 59 |
|
| 60 |
|
| 61 |
val print : t -> Pp.t |
| 62 |
|
| 63 |
|
| 64 |
module Set : Set.ExtS with type elt = t |
| 65 |
|
| 66 |
|
| 67 |
module Map : Map.ExtS with type key = t and module Set := Set |
| 68 |
|
| 69 |
|
| 70 |
module Pred : Predicate.S with type elt = t |
| 71 |
|
| 72 |
|
| 73 |
module List : List.MonoS with type elt = t |
| 74 |
|
| 75 |
|
| 76 |
val hcons : t Hashcons.f |
| 77 |
|
| 78 |
|
| 79 |
end |
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
module Name : |
| 84 |
sig |
| 85 |
type t = Anonymous |
| 86 |
| Name of Id.t |
| 87 |
|
| 88 |
val mk_name : Id.t -> t |
| 89 |
|
| 90 |
|
| 91 |
val is_anonymous : t -> bool |
| 92 |
|
| 93 |
|
| 94 |
val is_name : t -> bool |
| 95 |
|
| 96 |
|
| 97 |
val compare : t -> t -> int |
| 98 |
|
| 99 |
|
| 100 |
val equal : t -> t -> bool |
| 101 |
|
| 102 |
|
| 103 |
val hash : t -> int |
| 104 |
|
| 105 |
|
| 106 |
val hcons : t Hashcons.f |
| 107 |
|
| 108 |
|
| 109 |
val print : t -> Pp.t |
| 110 |
|
| 111 |
|
| 112 |
end |
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
type name = Name.t = Anonymous | Name of Id.t |
| 117 |
[@@ocaml.deprecated "(8.8) Use Name.t"] |
| 118 |
|
| 119 |
type variable = Id.t |
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
module DirPath : |
| 124 |
sig |
| 125 |
type t |
| 126 |
|
| 127 |
|
| 128 |
|
| 129 |
val equal : t -> t -> bool |
| 130 |
|
| 131 |
|
| 132 |
val compare : t -> t -> int |
| 133 |
|
| 134 |
|
| 135 |
val hash : t -> int |
| 136 |
|
| 137 |
|
| 138 |
val make : Id.t list -> t |
| 139 |
|
| 140 |
|
| 141 |
val repr : t -> Id.t list |
| 142 |
|
| 143 |
|
| 144 |
val empty : t |
| 145 |
|
| 146 |
|
| 147 |
val is_empty : t -> bool |
| 148 |
|
| 149 |
|
| 150 |
val dummy : t |
| 151 |
|
| 152 |
|
| 153 |
val hcons : t Hashcons.f |
| 154 |
|
| 155 |
|
| 156 |
val to_string : t -> string |
| 157 |
|
| 158 |
|
| 159 |
val print : t -> Pp.t |
| 160 |
|
| 161 |
module Set : Set.ExtS with type elt = t |
| 162 |
module Map : Map.ExtS with type key = t and module Set := Set |
| 163 |
end |
| 164 |
|
| 165 |
module DPset = DirPath.Set [@@deprecated "Use DirPath.Set"] |
| 166 |
module DPmap = DirPath.Map [@@deprecated "Use DirPath.Map"] |
| 167 |
|
| 168 |
|
| 169 |
|
| 170 |
module MBId : |
| 171 |
sig |
| 172 |
type t |
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
val equal : t -> t -> bool |
| 177 |
|
| 178 |
|
| 179 |
val compare : t -> t -> int |
| 180 |
|
| 181 |
|
| 182 |
val hash : t -> int |
| 183 |
|
| 184 |
|
| 185 |
val make : DirPath.t -> Id.t -> t |
| 186 |
|
| 187 |
|
| 188 |
|
| 189 |
val repr : t -> int * Id.t * DirPath.t |
| 190 |
|
| 191 |
|
| 192 |
val to_id : t -> Id.t |
| 193 |
|
| 194 |
|
| 195 |
val to_string : t -> string |
| 196 |
|
| 197 |
|
| 198 |
val debug_to_string : t -> string |
| 199 |
|
| 200 |
|
| 201 |
module Set : Set.ExtS with type elt = t |
| 202 |
module Map : Map.ExtS with type key = t and module Set := Set |
| 203 |
|
| 204 |
end |
| 205 |
|
| 206 |
module MBIset = MBId.Set [@@deprecated "Use MBId.Set"] |
| 207 |
module MBImap = MBId.Map [@@deprecated "Use MBId.Map"] |
| 208 |
|
| 209 |
|
| 210 |
|
| 211 |
module ModPath : |
| 212 |
sig |
| 213 |
type t = |
| 214 |
| MPfile of DirPath.t |
| 215 |
| MPbound of MBId.t |
| 216 |
| MPdot of t * Id.t |
| 217 |
|
| 218 |
val compare : t -> t -> int |
| 219 |
val equal : t -> t -> bool |
| 220 |
val hash : t -> int |
| 221 |
|
| 222 |
val subpath : t -> t -> bool |
| 223 |
|
| 224 |
|
| 225 |
val is_bound : t -> bool |
| 226 |
|
| 227 |
val dummy : t |
| 228 |
|
| 229 |
|
| 230 |
val dp : t -> DirPath.t |
| 231 |
|
| 232 |
val to_string : t -> string |
| 233 |
|
| 234 |
|
| 235 |
val print : t -> Pp.t |
| 236 |
|
| 237 |
|
| 238 |
val debug_to_string : t -> string |
| 239 |
|
| 240 |
|
| 241 |
module Set : Set.ExtS with type elt = t |
| 242 |
module Map : Map.ExtS with type key = t and module Set := Set |
| 243 |
|
| 244 |
end |
| 245 |
|
| 246 |
module MPset = ModPath.Set [@@deprecated "Use ModPath.Set"] |
| 247 |
module MPmap = ModPath.Map [@@deprecated "Use ModPath.Map"] |
| 248 |
|
| 249 |
|
| 250 |
|
| 251 |
module KerName : |
| 252 |
sig |
| 253 |
type t |
| 254 |
|
| 255 |
|
| 256 |
val make : ModPath.t -> Id.t -> t |
| 257 |
val repr : t -> ModPath.t * Id.t |
| 258 |
|
| 259 |
|
| 260 |
val modpath : t -> ModPath.t |
| 261 |
val label : t -> Id.t |
| 262 |
|
| 263 |
val to_string : t -> string |
| 264 |
|
| 265 |
|
| 266 |
val print : t -> Pp.t |
| 267 |
|
| 268 |
|
| 269 |
val debug_to_string : t -> string |
| 270 |
|
| 271 |
|
| 272 |
val debug_print : t -> Pp.t |
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
val compare : t -> t -> int |
| 277 |
val equal : t -> t -> bool |
| 278 |
val hash : t -> int |
| 279 |
|
| 280 |
module Set : CSig.USetS with type elt = t |
| 281 |
module Map : Map.UExtS with type key = t and module Set := Set |
| 282 |
module Pred : Predicate.S with type elt = t |
| 283 |
|
| 284 |
end |
| 285 |
|
| 286 |
module KNset = KerName.Set [@@deprecated "Use KerName.Set"] |
| 287 |
module KNpred = KerName.Pred [@@deprecated "Use KerName.Pred"] |
| 288 |
module KNmap = KerName.Map [@@deprecated "Use KerName.Map"] |
| 289 |
|
| 290 |
|
| 291 |
|
| 292 |
module type EqType = |
| 293 |
sig |
| 294 |
type t |
| 295 |
val compare : t -> t -> int |
| 296 |
val equal : t -> t -> bool |
| 297 |
val hash : t -> int |
| 298 |
end |
| 299 |
|
| 300 |
module type QNameS = |
| 301 |
sig |
| 302 |
type t |
| 303 |
|
| 304 |
|
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
|
| 314 |
|
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
|
| 325 |
|
| 326 |
|
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
module CanOrd : EqType with type t = t |
| 334 |
|
| 335 |
|
| 336 |
|
| 337 |
module UserOrd : EqType with type t = t |
| 338 |
|
| 339 |
|
| 340 |
val canonize : t -> t |
| 341 |
|
| 342 |
end |
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
module Constant: |
| 347 |
sig |
| 348 |
type t |
| 349 |
|
| 350 |
|
| 351 |
|
| 352 |
val make : KerName.t -> KerName.t -> t |
| 353 |
|
| 354 |
|
| 355 |
val make1 : KerName.t -> t |
| 356 |
|
| 357 |
|
| 358 |
val make2 : ModPath.t -> Id.t -> t |
| 359 |
|
| 360 |
|
| 361 |
|
| 362 |
|
| 363 |
val user : t -> KerName.t |
| 364 |
val canonical : t -> KerName.t |
| 365 |
|
| 366 |
val modpath : t -> ModPath.t |
| 367 |
|
| 368 |
|
| 369 |
val label : t -> Id.t |
| 370 |
|
| 371 |
|
| 372 |
|
| 373 |
|
| 374 |
include QNameS with type t := t |
| 375 |
|
| 376 |
val change_label : t -> Id.t -> t |
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
|
| 381 |
val to_string : t -> string |
| 382 |
|
| 383 |
|
| 384 |
val print : t -> Pp.t |
| 385 |
|
| 386 |
|
| 387 |
val debug_to_string : t -> string |
| 388 |
|
| 389 |
|
| 390 |
val debug_print : t -> Pp.t |
| 391 |
|
| 392 |
|
| 393 |
end |
| 394 |
|
| 395 |
|
| 396 |
|
| 397 |
module Cpred : Predicate.S with type elt = Constant.t |
| 398 |
module Cset : CSig.USetS with type elt = Constant.t |
| 399 |
module Cset_env : CSig.USetS with type elt = Constant.t |
| 400 |
|
| 401 |
module Cmap : Map.UExtS with type key = Constant.t and module Set := Cset |
| 402 |
|
| 403 |
|
| 404 |
|
| 405 |
module Cmap_env : Map.UExtS with type key = Constant.t and module Set := Cset_env |
| 406 |
|
| 407 |
|
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
module MutInd : |
| 412 |
sig |
| 413 |
type t |
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
val make : KerName.t -> KerName.t -> t |
| 418 |
|
| 419 |
|
| 420 |
val make1 : KerName.t -> t |
| 421 |
|
| 422 |
|
| 423 |
val make2 : ModPath.t -> Id.t -> t |
| 424 |
|
| 425 |
|
| 426 |
|
| 427 |
|
| 428 |
val user : t -> KerName.t |
| 429 |
val canonical : t -> KerName.t |
| 430 |
|
| 431 |
val modpath : t -> ModPath.t |
| 432 |
|
| 433 |
|
| 434 |
val label : t -> Id.t |
| 435 |
|
| 436 |
|
| 437 |
|
| 438 |
|
| 439 |
include QNameS with type t := t |
| 440 |
|
| 441 |
|
| 442 |
|
| 443 |
val to_string : t -> string |
| 444 |
|
| 445 |
|
| 446 |
val print : t -> Pp.t |
| 447 |
|
| 448 |
|
| 449 |
val debug_to_string : t -> string |
| 450 |
|
| 451 |
|
| 452 |
val debug_print : t -> Pp.t |
| 453 |
|
| 454 |
|
| 455 |
end |
| 456 |
|
| 457 |
module Mindset : CSig.USetS with type elt = MutInd.t |
| 458 |
[@@ocaml.deprecated "(9.2) This will switch to user ordering at some point in \ |
| 459 |
the future. In the meantime either use the _env variant or the Q-variant from \ |
| 460 |
Environ, depending on the desired semantics."] |
| 461 |
module Mindmap : Map.UExtS with type key = MutInd.t and module Set := Mindset [@ocaml.warning "-3"] |
| 462 |
[@@ocaml.deprecated "(9.2) This will switch to user ordering at some point in \ |
| 463 |
the future. In the meantime either use the _env variant or the Q-variant from \ |
| 464 |
Environ, depending on the desired semantics."] |
| 465 |
|
| 466 |
module Mindmap_env : CMap.UExtS with type key = MutInd.t |
| 467 |
|
| 468 |
module Ind : |
| 469 |
sig |
| 470 |
|
| 471 |
type t = MutInd.t |
| 472 |
* int |
| 473 |
|
| 474 |
|
| 475 |
val modpath : t -> ModPath.t |
| 476 |
|
| 477 |
include QNameS with type t := t |
| 478 |
|
| 479 |
end |
| 480 |
|
| 481 |
type inductive = Ind.t |
| 482 |
|
| 483 |
module Construct : |
| 484 |
sig |
| 485 |
|
| 486 |
type t = Ind.t |
| 487 |
* int |
| 488 |
|
| 489 |
|
| 490 |
val modpath : t -> ModPath.t |
| 491 |
|
| 492 |
include QNameS with type t := t |
| 493 |
|
| 494 |
end |
| 495 |
|
| 496 |
type constructor = Construct.t |
| 497 |
|
| 498 |
module Indset : CSet.ExtS with type elt = inductive |
| 499 |
[@@ocaml.deprecated "(9.2) This will switch to user ordering at some point in \ |
| 500 |
the future. In the meantime either use the _env variant or the Q-variant from \ |
| 501 |
Environ, depending on the desired semantics."] |
| 502 |
module Constrset : CSet.ExtS with type elt = constructor |
| 503 |
[@@ocaml.deprecated "(9.2) This will switch to user ordering at some point in \ |
| 504 |
the future. In the meantime either use the _env variant or the Q-variant from \ |
| 505 |
Environ, depending on the desired semantics."] |
| 506 |
|
| 507 |
module Indset_env : CSet.ExtS with type elt = inductive |
| 508 |
module Constrset_env : CSet.ExtS with type elt = constructor |
| 509 |
|
| 510 |
module Indmap : CMap.ExtS with type key = inductive and module Set := Indset [@ocaml.warning "-3"] |
| 511 |
[@@ocaml.deprecated "(9.2) This will switch to user ordering at some point in \ |
| 512 |
the future. In the meantime either use the _env variant or the Q-variant from \ |
| 513 |
Environ, depending on the desired semantics."] |
| 514 |
module Constrmap : CMap.ExtS with type key = constructor and module Set := Constrset [@ocaml.warning "-3"] |
| 515 |
[@@ocaml.deprecated "(9.2) This will switch to user ordering at some point in \ |
| 516 |
the future. In the meantime either use the _env variant or the Q-variant from \ |
| 517 |
Environ, depending on the desired semantics."] |
| 518 |
|
| 519 |
module Indmap_env : CMap.ExtS with type key = inductive and module Set := Indset_env |
| 520 |
module Constrmap_env : CMap.ExtS with type key = constructor and module Set := Constrset_env |
| 521 |
|
| 522 |
val ith_mutual_inductive : inductive -> int -> inductive |
| 523 |
val ith_constructor_of_inductive : inductive -> int -> constructor |
| 524 |
val inductive_of_constructor : constructor -> inductive |
| 525 |
val index_of_constructor : constructor -> int |
| 526 |
|
| 527 |
|
| 528 |
|
| 529 |
val hcons_con : Constant.t Hashcons.f |
| 530 |
val hcons_mind : MutInd.t Hashcons.f |
| 531 |
val hcons_ind : inductive Hashcons.f |
| 532 |
val hcons_construct : constructor Hashcons.f |
| 533 |
|
| 534 |
|
| 535 |
|
| 536 |
type 'a tableKey = |
| 537 |
| ConstKey of 'a |
| 538 |
| VarKey of Id.t |
| 539 |
| RelKey of Int.t |
| 540 |
|
| 541 |
type inv_rel_key = int |
| 542 |
|
| 543 |
|
| 544 |
|
| 545 |
val eq_table_key : ('a -> 'a -> bool) -> 'a tableKey -> 'a tableKey -> bool |
| 546 |
val hash_table_key : ('a -> int) -> 'a tableKey -> int |
| 547 |
val eq_constant_key : Constant.t -> Constant.t -> bool |
| 548 |
|
| 549 |
|
| 550 |
|
| 551 |
type module_path = ModPath.t = |
| 552 |
| MPfile of DirPath.t |
| 553 |
| MPbound of MBId.t |
| 554 |
| MPdot of ModPath.t * Id.t |
| 555 |
[@@ocaml.deprecated "(8.8) Alias type"] |
| 556 |
|
| 557 |
module Projection : sig |
| 558 |
module Repr : sig |
| 559 |
type t |
| 560 |
|
| 561 |
val make : inductive -> proj_npars:int -> proj_arg:int -> Id.t -> t |
| 562 |
|
| 563 |
include QNameS with type t := t |
| 564 |
|
| 565 |
val constant : t -> Constant.t |
| 566 |
|
| 567 |
|
| 568 |
val inductive : t -> inductive |
| 569 |
val mind : t -> MutInd.t |
| 570 |
val npars : t -> int |
| 571 |
val arg : t -> int |
| 572 |
val label : t -> Id.t |
| 573 |
|
| 574 |
val map : (MutInd.t -> MutInd.t) -> t -> t |
| 575 |
val map_npars : (int -> int) -> t -> t |
| 576 |
|
| 577 |
val to_string : t -> string |
| 578 |
|
| 579 |
|
| 580 |
val print : t -> Pp.t |
| 581 |
|
| 582 |
|
| 583 |
end |
| 584 |
type t |
| 585 |
|
| 586 |
val make : Repr.t -> bool -> t |
| 587 |
val repr : t -> Repr.t |
| 588 |
|
| 589 |
include QNameS with type t := t |
| 590 |
|
| 591 |
val constant : t -> Constant.t |
| 592 |
val mind : t -> MutInd.t |
| 593 |
val inductive : t -> inductive |
| 594 |
val npars : t -> int |
| 595 |
val arg : t -> int |
| 596 |
val label : t -> Id.t |
| 597 |
val unfolded : t -> bool |
| 598 |
val unfold : t -> t |
| 599 |
|
| 600 |
val hcons : t Hashcons.f |
| 601 |
|
| 602 |
|
| 603 |
val map : (MutInd.t -> MutInd.t) -> t -> t |
| 604 |
val map_npars : (int -> int) -> t -> t |
| 605 |
|
| 606 |
val to_string : t -> string |
| 607 |
|
| 608 |
|
| 609 |
val print : t -> Pp.t |
| 610 |
|
| 611 |
|
| 612 |
val debug_to_string : t -> string |
| 613 |
|
| 614 |
|
| 615 |
val debug_print : t -> Pp.t |
| 616 |
|
| 617 |
|
| 618 |
end |
| 619 |
|
| 620 |
module PRset : CSig.USetS with type elt = Projection.Repr.t |
| 621 |
module PRmap : Map.UExtS with type key = Projection.Repr.t and module Set := PRset |
| 622 |
|
| 623 |
|
| 624 |
module PRpred : Predicate.S with type elt = Projection.Repr.t |
| 625 |
|
| 626 |
|
| 627 |
|
| 628 |
module GlobRef : sig |
| 629 |
|
| 630 |
type t = |
| 631 |
| VarRef of variable |
| 632 |
| ConstRef of Constant.t |
| 633 |
| IndRef of inductive |
| 634 |
| ConstructRef of constructor |
| 635 |
|
| 636 |
val is_bound : t -> bool |
| 637 |
|
| 638 |
include QNameS with type t := t |
| 639 |
|
| 640 |
module Set_env : CSig.USetS with type elt = t |
| 641 |
module Map_env : Map.UExtS |
| 642 |
with type key = t and module Set := Set_env |
| 643 |
|
| 644 |
module Set : CSig.USetS with type elt = t |
| 645 |
[@@ocaml.deprecated "(9.2) This will switch to user ordering at some point in \ |
| 646 |
the future. In the meantime either use the _env variant or the Q-variant from \ |
| 647 |
Environ, depending on the desired semantics."] |
| 648 |
|
| 649 |
module Map : Map.UExtS |
| 650 |
with type key = t and module Set := Set [@@ocaml.warning "-3"] |
| 651 |
|
| 652 |
val print : t -> Pp.t |
| 653 |
|
| 654 |
|
| 655 |
end |
| 656 |
|
| 657 |
|
| 658 |
|
| 659 |
type lident = Id.t CAst.t |
| 660 |
type lname = Name.t CAst.t |
| 661 |
type lstring = string CAst.t |
| 662 |
|
| 663 |
val lident_eq : lident -> lident -> bool |
| 664 |
|
| 665 |
|
| 666 |
module Label : sig |
| 667 |
type t = Id.t |
| 668 |
|
| 669 |
|
| 670 |
val equal : t -> t -> bool |
| 671 |
|
| 672 |
|
| 673 |
val compare : t -> t -> int |
| 674 |
|
| 675 |
|
| 676 |
val hash : t -> int |
| 677 |
|
| 678 |
|
| 679 |
val make : string -> t |
| 680 |
|
| 681 |
|
| 682 |
val of_id : Id.t -> t |
| 683 |
|
| 684 |
|
| 685 |
val to_id : t -> Id.t |
| 686 |
|
| 687 |
|
| 688 |
val to_string : t -> string |
| 689 |
|
| 690 |
|
| 691 |
val print : t -> Pp.t |
| 692 |
|
| 693 |
|
| 694 |
module Set : Set.ExtS with type elt = t |
| 695 |
module Map : Map.ExtS with type key = t and module Set := Set |
| 696 |
|
| 697 |
val hcons : t Hashcons.f |
| 698 |
|
| 699 |
end [@@deprecated "(9.2) Use Id"] |