You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expands to: Constant elpi.apps.derive.examples.readme.peano.eqb_OK
28
27
*)
29
28
```
30
29
31
-
See also [examples/usage.v](examples/usage.v)
30
+
See also [examples/usage.v](examples/usage.v) and [tests/test_readme.v](tests/test_readme.v).
32
31
33
32
:warning: The line `From elpi.apps Require Import derive.std.` sets globally
34
33
`Uniform Inductive Parameters`.
35
34
See the [documentation of that option in the Coq reference manual](https://coq.inria.fr/refman/language/core/inductive.html#coq:flag.Uniform-Inductive-Parameters).
36
35
36
+
## Usage and attributes
37
+
38
+
Using `derive Inductive ty := ...` produces the inductive `ty`, together with
39
+
derivations, all in the current scope. The `#[module=<string>]` attriute can
40
+
be used to specify that the inductive and the derivations should be wrapped
41
+
in a module of the given name (the name of the inductive is used if no name
42
+
is specified).
43
+
44
+
When a wrapper module is generated, an alias (i.e., a notation) is generated
45
+
for the inductive to be accessible with its name, outside of the module scope.
46
+
This behaviour can be disabled by using the `#[no_alias]` boolean attribute.
47
+
48
+
The `#[prefix=<string>]` attribute can be used to specify a prefix for all the
49
+
derived definitions/lemmas.
50
+
37
51
## Documentation
38
52
39
53
Elpi's `derive` app is a little framework to register derivations.
0 commit comments