Debian Codegraph @

theories/Ltac2/FSet.v

raw
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 From Ltac2 Require Import Init.
12
13 Module Import Tags.
14 Ltac2 Type 'a tag.
15
16 Ltac2 @ external ident_tag : ident tag := "rocq-runtime.plugins.ltac2" "fmap_ident_tag".
17 Ltac2 @ external int_tag : int tag := "rocq-runtime.plugins.ltac2" "fmap_int_tag".
18 Ltac2 @ external inductive_tag : inductive tag := "rocq-runtime.plugins.ltac2" "fmap_inductive_tag".
19 Ltac2 @ external constructor_tag : constructor tag := "rocq-runtime.plugins.ltac2" "fmap_constructor_tag".
20 Ltac2 @ external constant_tag : constant tag := "rocq-runtime.plugins.ltac2" "fmap_constant_tag".
21
22 (* NB: strings are copied when keys are added and read to prevent mutation *)
23 Ltac2 @ external string_tag : string tag := "rocq-runtime.plugins.ltac2" "fmap_string_tag".
24 End Tags.
25
26 Ltac2 Type 'a t.
27
28 Ltac2 @ external empty : 'a tag -> 'a t := "rocq-runtime.plugins.ltac2" "fset_empty".
29
30 Ltac2 @ external is_empty : 'a t -> bool := "rocq-runtime.plugins.ltac2" "fset_is_empty".
31
32 Ltac2 @ external mem : 'a -> 'a t -> bool := "rocq-runtime.plugins.ltac2" "fset_mem".
33
34 Ltac2 @ external add : 'a -> 'a t -> 'a t := "rocq-runtime.plugins.ltac2" "fset_add".
35
36 Ltac2 @ external remove : 'a -> 'a t -> 'a t := "rocq-runtime.plugins.ltac2" "fset_remove".
37
38 Ltac2 @ external union : 'a t -> 'a t -> 'a t := "rocq-runtime.plugins.ltac2" "fset_union".
39
40 Ltac2 @ external inter : 'a t -> 'a t -> 'a t := "rocq-runtime.plugins.ltac2" "fset_inter".
41
42 Ltac2 @ external diff : 'a t -> 'a t -> 'a t := "rocq-runtime.plugins.ltac2" "fset_diff".
43
44 Ltac2 @ external equal : 'a t -> 'a t -> bool := "rocq-runtime.plugins.ltac2" "fset_equal".
45
46 Ltac2 @ external subset : 'a t -> 'a t -> bool := "rocq-runtime.plugins.ltac2" "fset_subset".
47
48 Ltac2 @ external cardinal : 'a t -> int := "rocq-runtime.plugins.ltac2" "fset_cardinal".
49
50 Ltac2 @ external elements : 'a t -> 'a list := "rocq-runtime.plugins.ltac2" "fset_elements".