Debian Codegraph @

tests/test_API_notations.v

raw
1 From elpi Require Import elpi.
2
3 Elpi Command notations.
4
5 (***** Syndef *******************************)
6
7 Elpi Query lp:{{
8 coq.notation.add-abbreviation "abbr" 2
9 {{ fun x _ => x = x }} tt A,
10 coq.say A
11 }}.
12
13 About abbr.
14 Check abbr 4 3.
15
16 Elpi Query lp:{{
17 coq.notation.add-abbreviation "abbr2" 1
18 {{ fun x _ => x = x }} tt _
19 }}.
20
21 About abbr2.
22 Check abbr2 2 3.
23
24 Elpi Query lp:{{
25 coq.notation.abbreviation {coq.locate-abbreviation "abbr2"} [{{ fun x => x }}] T,
26 coq.say T.
27 }}.
28
29 Elpi Query lp:{{
30 coq.notation.abbreviation-body {coq.locate-abbreviation "abbr2"} 1
31 (fun _ _ x\ fun _ _ _\ app[_,_,x,x]).
32 }}.
33