Debian Codegraph @

theories/Corelib/Init/Prelude.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 Require Export Notations.
12 Require Export Equality.
13 Require Export Logic.
14 Require Export Datatypes.
15 Require Export Specif.
16 Require Corelib.Init.Byte.
17 Require Corelib.Init.Decimal.
18 Require Corelib.Init.Hexadecimal.
19 Require Corelib.Init.Number.
20 Require Corelib.Init.Nat.
21 Require Export Peano.
22 Require Export Corelib.Init.Wf.
23 Require Export Corelib.Init.Ltac.
24 Require Export Corelib.Init.Tactics.
25 Require Export Corelib.Init.Tauto.
26 Require Export Corelib.Init.Sumbool.
27 (* Some initially available plugins. See also:
28 - ltac_plugin (in Ltac)
29 - tauto_plugin (in Tauto).
30 *)
31 Declare ML Module "rocq-runtime.plugins.cc_core".
32 Declare ML Module "rocq-runtime.plugins.cc".
33 Declare ML Module "rocq-runtime.plugins.firstorder_core".
34 Declare ML Module "rocq-runtime.plugins.firstorder".
35
36 Global Set Firstorder Solver auto with core.
37
38 (* Parsing / printing of hexadecimal numbers *)
39 Arguments Nat.of_hex_uint d%_hex_uint_scope.
40 Arguments Nat.of_hex_int d%_hex_int_scope.
41 Number Notation Number.uint Number.uint_of_uint Number.uint_of_uint
42 : hex_uint_scope.
43 Number Notation Number.int Number.int_of_int Number.int_of_int
44 : hex_int_scope.
45
46 (* Parsing / printing of decimal numbers *)
47 Arguments Nat.of_uint d%_dec_uint_scope.
48 Arguments Nat.of_int d%_dec_int_scope.
49 Number Notation Number.uint Number.uint_of_uint Number.uint_of_uint
50 : dec_uint_scope.
51 Number Notation Number.int Number.int_of_int Number.int_of_int
52 : dec_int_scope.
53
54 (* Parsing / printing of [nat] numbers *)
55 Number Notation nat Nat.of_num_uint Nat.to_num_hex_uint (abstract after 5000) : hex_nat_scope.
56 Number Notation nat Nat.of_num_uint Nat.to_num_uint (abstract after 5000) : nat_scope.
57
58 (* Printing/Parsing of bytes *)
59 Export Byte.ByteSyntaxNotations.
60
61 (* Default substrings not considered by queries like Search *)
62 Add Search Blacklist "_subproof" "_subterm" "Private_".
63
64 (* Dummy coercion used by the elaborator to leave a trace in its
65 result. When [x] is (reversible) coerced to [x'], the result
66 [reverse_coercion x' x], convertible to [x'] will still be displayed [x]
67 thanks to the reverse_coercion coercion. *)
68 #[universes(polymorphic=yes)] Definition ReverseCoercionSource (T : Type) := T.
69 #[universes(polymorphic=yes)] Definition ReverseCoercionTarget (T : Type) := T.
70 #[warning="-uniform-inheritance", reversible=no, universes(polymorphic=yes)]
71 Coercion reverse_coercion {T' T} (x' : T') (x : ReverseCoercionSource T)
72 : ReverseCoercionTarget T' := x'.
73 Register reverse_coercion as core.coercion.reverse_coercion.