Debian Codegraph @

doc/tools/docgram/fullGrammar

raw
1 (* Coq grammar generated from .mlg files. Do not edit by hand. Not compiled into Coq *)
2 DOC_GRAMMAR
3
4 Constr.ident: [
5 | Prim.ident
6 ]
7
8 Prim.name: [
9 | "_"
10 ]
11
12 global: [
13 | Prim.reference
14 ]
15
16 constr_pattern: [
17 | constr
18 ]
19
20 cpattern: [
21 | lconstr
22 ]
23
24 sort: [
25 | "Set"
26 | "Prop"
27 | "SProp"
28 | "Type"
29 | "Type" "@{" "_" "}"
30 | "Type" "@{" test_old_sort_qvar reference "|" universe "}"
31 | "Type" "@{" test_sort_qvar reference ";" universe "}"
32 | "Type" "@{" universe "}"
33 ]
34
35 sort_quality_or_set: [
36 | "Prop"
37 | "SProp"
38 | "Set"
39 | "Type"
40 ]
41
42 sort_quality_var: [
43 | "Prop"
44 | "SProp"
45 | "Type"
46 | reference
47 ]
48
49 universe_increment: [
50 | "+" natural
51 |
52 ]
53
54 universe_name: [
55 | global
56 | "Set"
57 | "Prop"
58 ]
59
60 universe_expr: [
61 | universe_name universe_increment
62 | natural
63 ]
64
65 universe: [
66 | "max" "(" LIST1 universe_expr SEP "," ")"
67 | "_"
68 | universe_expr
69 ]
70
71 lconstr: [
72 | term200
73 ]
74
75 constr: [
76 | term8
77 | "@" global univ_annot
78 ]
79
80 term200: [
81 | term100
82 ]
83
84 term100: [
85 | term99 "<:" term200
86 | term99 "<<:" term200
87 | term99 ":>" term200
88 | term99 ":" term200
89 | term99
90 ]
91
92 term99: [
93 | term90
94 ]
95
96 term90: [
97 | term10
98 ]
99
100 term10: [
101 | term10 LIST1 arg
102 | "@" global univ_annot LIST0 term9
103 | "@" pattern_ident LIST1 identref
104 | binder_constr
105 | term9
106 ]
107
108 term9: [
109 | ".." term0 ".."
110 | term8
111 ]
112
113 term8: [
114 | term1
115 ]
116
117 term1: [
118 | term1 ".(" global univ_annot LIST0 arg ")"
119 | term1 ".(" "@" global univ_annot LIST0 ( term9 ) ")"
120 | term1 "%" IDENT
121 | term1 "%_" IDENT
122 | term0
123 ]
124
125 term0: [
126 | atomic_constr
127 | term_match
128 | reference univ_annot
129 | NUMBER
130 | string
131 | "(" term200 ")"
132 | "{|" record_declaration bar_cbrace
133 | "`{" term200 "}"
134 | test_array_opening "[" "|" array_elems "|" lconstr type_cstr test_array_closing "|" "]" univ_annot
135 | "`(" term200 ")"
136 | "ltac" ":" "(" Pltac.ltac_expr ")"
137 ]
138
139 array_elems: [
140 | LIST0 lconstr SEP ";"
141 ]
142
143 record_declaration: [
144 | fields_def
145 ]
146
147 fields_def: [
148 | field_def ";" fields_def
149 | field_def
150 |
151 ]
152
153 field_def: [
154 | global binders ":=" lconstr
155 ]
156
157 binder_constr: [
158 | "forall" open_binders "," term200
159 | "fun" open_binders "=>" term200
160 | "let" name binders let_type_cstr ":=" term200 "in" term200
161 | "let" "fix" fix_decl "in" term200
162 | "let" "cofix" cofix_body "in" term200
163 | "let" [ "(" LIST0 name SEP "," ")" | "()" ] as_return_type ":=" term200 "in" term200
164 | "let" "'" pattern200 OPT [ "in" pattern200 ] ":=" term200 OPT case_type "in" term200
165 | "if" term200 as_return_type "then" term200 "else" term200
166 | "fix" fix_decls
167 | "cofix" cofix_decls
168 ]
169
170 arg: [
171 | test_lpar_id_coloneq "(" identref ":=" lconstr ")"
172 | test_lpar_nat_coloneq "(" natural ":=" lconstr ")"
173 | term9
174 ]
175
176 atomic_constr: [
177 | sort
178 | "_"
179 | "?" "[" identref "]"
180 | "?" "[" pattern_ident "]"
181 | pattern_ident evar_instance
182 ]
183
184 inst: [
185 | identref ":=" lconstr
186 ]
187
188 evar_instance: [
189 | "@{" LIST1 inst SEP ";" "}"
190 |
191 ]
192
193 univ_annot: [
194 | "@{" LIST0 univ_level_or_quality OPT [ [ "|" | ";" ] LIST0 univ_level_or_quality ] "}"
195 |
196 ]
197
198 univ_level_or_quality: [
199 | NUMBER "0"
200 | "Set"
201 | "SProp"
202 | "Prop"
203 | "Type"
204 | "_"
205 | global
206 ]
207
208 fix_decls: [
209 | fix_decl
210 | fix_decl "with" LIST1 fix_decl SEP "with" "for" identref
211 ]
212
213 cofix_decls: [
214 | cofix_body
215 | cofix_body "with" LIST1 cofix_body SEP "with" "for" identref
216 ]
217
218 fix_decl: [
219 | identref binders_fixannot type_cstr ":=" term200
220 ]
221
222 cofix_body: [
223 | identref binders type_cstr ":=" term200
224 ]
225
226 term_match: [
227 | "match" LIST1 case_item SEP "," OPT case_type "with" branches "end"
228 ]
229
230 case_item: [
231 | term100 OPT [ "as" name ] OPT [ "in" pattern200 ]
232 ]
233
234 case_type: [
235 | "return" term100
236 ]
237
238 as_return_type: [
239 | OPT [ OPT [ "as" name ] case_type ]
240 ]
241
242 branches: [
243 | OPT "|" LIST0 eqn SEP "|"
244 ]
245
246 mult_pattern: [
247 | LIST1 pattern200 SEP ","
248 ]
249
250 eqn: [
251 | LIST1 mult_pattern SEP "|" "=>" lconstr
252 ]
253
254 record_pattern: [
255 | global ":=" pattern200
256 ]
257
258 record_patterns: [
259 | record_pattern ";" record_patterns
260 | record_pattern
261 |
262 ]
263
264 pattern200: [
265 | pattern100
266 ]
267
268 pattern100: [
269 | pattern99 ":" term200
270 | pattern99
271 ]
272
273 pattern99: [
274 | pattern90
275 ]
276
277 pattern90: [
278 | pattern10
279 ]
280
281 pattern10: [
282 | pattern10 "as" name
283 | pattern10 LIST1 pattern1
284 | "@" Prim.reference LIST0 pattern1
285 | pattern1
286 ]
287
288 pattern1: [
289 | pattern1 "%" IDENT
290 | pattern1 "%_" IDENT
291 | pattern0
292 ]
293
294 pattern0: [
295 | Prim.reference
296 | "{|" record_patterns bar_cbrace
297 | "_"
298 | "(" pattern200 ")"
299 | "(" pattern200 "|" LIST1 pattern200 SEP "|" ")"
300 | NUMBER
301 | string
302 ]
303
304 fixannot: [
305 | "{" "struct" identref "}"
306 | "{" "wf" constr identref "}"
307 | "{" "measure" constr OPT identref OPT constr "}"
308 ]
309
310 binders_fixannot: [
311 | ensure_fixannot fixannot
312 | binder binders_fixannot
313 |
314 ]
315
316 open_binders: [
317 | name LIST0 name ":" lconstr
318 | name LIST0 name binders
319 | name ".." name
320 | closed_binder binders
321 ]
322
323 binders: [
324 | LIST0 binder
325 | Procq.Constr.binders
326 ]
327
328 binder: [
329 | name
330 | closed_binder
331 ]
332
333 closed_binder: [
334 | "(" name LIST1 name ":" lconstr ")"
335 | "(" name ":" lconstr ")"
336 | "(" name ":=" lconstr ")"
337 | "(" name ":" lconstr ":=" lconstr ")"
338 | "(" name ":" lconstr "|" lconstr ")"
339 | "{" name "}"
340 | "{" name LIST1 name ":" lconstr "}"
341 | "{" name ":" lconstr "}"
342 | "{" name LIST1 name "}"
343 | "[" name "]"
344 | "[" name LIST1 name ":" lconstr "]"
345 | "[" name ":" lconstr "]"
346 | "[" name LIST1 name "]"
347 | "`(" LIST1 typeclass_constraint SEP "," ")"
348 | "`{" LIST1 typeclass_constraint SEP "," "}"
349 | "`[" LIST1 typeclass_constraint SEP "," "]"
350 | "'" pattern0
351 ]
352
353 one_open_binder: [
354 | name
355 | name ":" lconstr
356 | one_closed_binder
357 ]
358
359 one_closed_binder: [
360 | "(" name ":" lconstr ")"
361 | "{" name "}"
362 | "{" name ":" lconstr "}"
363 | "[" name "]"
364 | "[" name ":" lconstr "]"
365 | "'" pattern0
366 ]
367
368 typeclass_constraint: [
369 | "!" term200
370 | "{" name "}" ":" [ "!" | ] term200
371 | test_name_colon name ":" [ "!" | ] term200
372 | term200
373 ]
374
375 type_cstr: [
376 | ":" lconstr
377 |
378 ]
379
380 let_type_cstr: [
381 | OPT [ ":" lconstr ]
382 ]
383
384 preident: [
385 | IDENT
386 ]
387
388 ident: [
389 | IDENT
390 ]
391
392 pattern_ident: [
393 | LEFTQMARK ident
394 ]
395
396 identref: [
397 | ident
398 ]
399
400 hyp: [
401 | identref
402 ]
403
404 field: [
405 | FIELD
406 ]
407
408 fields: [
409 | field fields
410 | field
411 ]
412
413 fullyqualid: [
414 | ident fields
415 | ident
416 ]
417
418 name: [
419 | "_"
420 | ident
421 ]
422
423 reference: [
424 | ident fields
425 | ident
426 ]
427
428 qualid: [
429 | reference
430 ]
431
432 by_notation: [
433 | ne_string OPT [ "%" IDENT ]
434 ]
435
436 smart_global: [
437 | reference
438 | by_notation
439 ]
440
441 ne_string: [
442 | STRING
443 ]
444
445 ne_lstring: [
446 | ne_string
447 ]
448
449 dirpath: [
450 | ident LIST0 field
451 ]
452
453 string: [
454 | STRING
455 ]
456
457 lstring: [
458 | string
459 ]
460
461 integer: [
462 | bigint
463 ]
464
465 natural: [
466 | bignat
467 ]
468
469 bigint: [
470 | bignat
471 | test_minus_nat "-" bignat
472 ]
473
474 bignat: [
475 | NUMBER
476 ]
477
478 bar_cbrace: [
479 | test_pipe_closedcurly "|" "}"
480 ]
481
482 strategy_level: [
483 | "expand"
484 | "opaque"
485 | integer
486 | "transparent"
487 ]
488
489 vernac_toplevel: [
490 | "Drop" "."
491 | "Quit" "."
492 | "BackTo" natural "."
493 | test_show_goal "Show" "Goal" natural "at" natural "."
494 | "Show" "Proof" "Diffs" OPT "removed" "."
495 | "Show" "."
496 | test_show_natural "Show" natural "."
497 | "Show" "Diffs" qualid "."
498 | Pvernac.Vernac_.main_entry
499 ]
500
501 opt_hintbases: [
502 |
503 | ":" LIST1 IDENT
504 ]
505
506 command: [
507 | "Goal" lconstr
508 | "Proof"
509 | "Proof" "using" G_vernac.section_subset_expr
510 | "Proof" "with" generic_tactic OPT [ "using" G_vernac.section_subset_expr ]
511 | "Proof" "using" G_vernac.section_subset_expr "with" generic_tactic
512 | "Proof" "Mode" string
513 | "Proof" lconstr
514 | "Abort"
515 | "Abort" "All"
516 | "Admitted"
517 | "Qed"
518 | "Save" identref
519 | "Defined"
520 | "Defined" identref
521 | "Restart"
522 | "Undo"
523 | "Undo" natural
524 | "Undo" "To" natural
525 | "Focus"
526 | "Focus" natural
527 | "Unfocus"
528 | "Unfocused"
529 | "Show"
530 | "Show" natural
531 | "Show" qualid
532 | "Show" "Existentials"
533 | "Show" "Universes"
534 | "Show" "Conjectures"
535 | "Show" "Proof"
536 | "Show" "Intro"
537 | "Show" "Intros"
538 | "Show" "Match" reference
539 | "Guarded"
540 | "Validate" "Proof"
541 | "Create" "HintDb" IDENT; [ "discriminated" | ]
542 | "Remove" "Hints" LIST1 global opt_hintbases
543 | "Hint" hint opt_hintbases
544 | "Optimize" "Proof"
545 | "Optimize" "Heap"
546 | "Comments" LIST0 comment
547 | "Attributes" attribute_list
548 | "Declare" "Instance" ident_decl binders ":" term200 hint_info
549 | "Declare" "Scope" IDENT
550 | "Pwd"
551 | "Cd"
552 | "Cd" ne_string
553 | "Load" [ "Verbose" | ] [ ne_string | IDENT ]
554 | "Declare" "ML" "Module" LIST1 ne_string
555 | "Locate" locatable
556 | "Type" lconstr
557 | "Print" printable
558 | "Print" smart_global OPT univ_name_list
559 | "Print" "Module" "Type" global
560 | "Print" "Module" global
561 | "Print" "Namespace" dirpath
562 | "Inspect" natural
563 | "Set" setting_name option_setting
564 | "Unset" setting_name
565 | "Print" "Table" setting_name
566 | "Add" IDENT IDENT LIST1 table_value
567 | "Add" IDENT LIST1 table_value
568 | "Test" setting_name "for" LIST1 table_value
569 | "Test" setting_name
570 | "Remove" IDENT IDENT LIST1 table_value
571 | "Remove" IDENT LIST1 table_value
572 | "Reset" "Initial"
573 | "Reset" identref
574 | "Back"
575 | "Back" natural
576 | "Debug" "On"
577 | "Debug" "Off"
578 | "Declare" "Reduction" IDENT; ":=" red_expr
579 | "Declare" "Custom" "Entry" ident
580 | "Obligation" natural "of" identref withtac
581 | "Obligation" natural withtac
582 | "Next" "Obligation" "of" identref withtac
583 | "Next" "Obligation" withtac
584 | "Final" "Obligation" "of" identref withtac
585 | "Final" "Obligation" withtac
586 | "Solve" "Obligations" "of" identref withtac
587 | "Solve" "Obligations" withtac
588 | "Solve" "All" "Obligations" withtac
589 | "Admit" "Obligations" "of" identref
590 | "Admit" "Obligations"
591 | "Obligation" "Tactic" ":=" generic_tactic
592 | "Show" "Obligation" "Tactic"
593 | "Obligations" "of" identref
594 | "Obligations"
595 | "Preterm" "of" identref
596 | "Preterm"
597 | "Derive" open_binders "SuchThat" constr "As" identref (* derive plugin *)
598 | "Derive" open_binders "in" constr "as" identref (* derive plugin *)
599 | "Extraction" global (* extraction plugin *)
600 | "Recursive" "Extraction" LIST1 global (* extraction plugin *)
601 | "Extraction" string LIST1 global (* extraction plugin *)
602 | "Extraction" "TestCompile" LIST1 global (* extraction plugin *)
603 | "Separate" "Extraction" LIST1 global (* extraction plugin *)
604 | "Extraction" "Library" identref (* extraction plugin *)
605 | "Recursive" "Extraction" "Library" identref (* extraction plugin *)
606 | "Extraction" "Language" language (* extraction plugin *)
607 | "Extraction" "Inline" LIST1 global (* extraction plugin *)
608 | "Extraction" "NoInline" LIST1 global (* extraction plugin *)
609 | "Print" "Extraction" "Inline" (* extraction plugin *)
610 | "Reset" "Extraction" "Inline" (* extraction plugin *)
611 | "Extraction" "Implicit" global "[" LIST0 int_or_id "]" (* extraction plugin *)
612 | "Extraction" "Blacklist" LIST1 preident (* extraction plugin *)
613 | "Print" "Extraction" "Blacklist" (* extraction plugin *)
614 | "Reset" "Extraction" "Blacklist" (* extraction plugin *)
615 | "Extract" "Callback" OPT string global (* extraction plugin *)
616 | "Print" "Extraction" "Callback" (* extraction plugin *)
617 | "Reset" "Extraction" "Callback" (* extraction plugin *)
618 | "Print" "Extraction" "Foreign" (* extraction plugin *)
619 | "Extract" "Constant" global LIST0 string "=>" mlname (* extraction plugin *)
620 | "Extract" "Foreign" "Constant" global "=>" string (* extraction plugin *)
621 | "Extract" "Inlined" "Constant" global "=>" mlname (* extraction plugin *)
622 | "Extract" "Inductive" global "=>" mlname "[" LIST0 mlname "]" OPT string (* extraction plugin *)
623 | "Show" "Extraction" (* extraction plugin *)
624 | "Set" "Firstorder" "Solver" generic_tactic
625 | "Print" "Firstorder" "Solver"
626 | "Function" LIST1 function_fix_definition SEP "with" (* funind plugin *)
627 | "Functional" "Scheme" LIST1 fun_scheme_arg SEP "with" (* funind plugin *)
628 | "Functional" "Case" fun_scheme_arg (* funind plugin *)
629 | "Generate" "graph" "for" reference (* funind plugin *)
630 | "Hint" "Rewrite" orient LIST1 constr ":" LIST1 preident
631 | "Hint" "Rewrite" orient LIST1 constr "using" generic_tactic ":" LIST1 preident
632 | "Hint" "Rewrite" orient LIST1 constr
633 | "Hint" "Rewrite" orient LIST1 constr "using" generic_tactic
634 | "Create" "Rewrite" "HintDb" ident
635 | "Derive" "Inversion_clear" identref "with" constr "Sort" sort_quality_or_set
636 | "Derive" "Inversion_clear" identref "with" constr
637 | "Derive" "Inversion" identref "with" constr "Sort" sort_quality_or_set
638 | "Derive" "Inversion" identref "with" constr
639 | "Derive" "Dependent" "Inversion" identref "with" constr "Sort" sort_quality_or_set
640 | "Derive" "Dependent" "Inversion_clear" identref "with" constr "Sort" sort_quality_or_set
641 | "Declare" "Left" "Step" constr
642 | "Declare" "Right" "Step" constr
643 | "Unshelve"
644 | "Declare" "Equivalent" "Keys" constr constr
645 | "Print" "Equivalent" "Keys"
646 | "infoH" tactic
647 | "Hint" "Cut" "[" hints_path_entry "]" opthints
648 | "Typeclasses" "Transparent" LIST1 reference
649 | "Typeclasses" "Opaque" LIST1 reference
650 | "Typeclasses" "eauto" ":=" debug eauto_search_strategy OPT natural
651 | "Tactic" "Notation" OPT ltac_tactic_level LIST1 ltac_production_item ":=" tactic
652 | "Print" "Ltac" reference
653 | "Locate" "Ltac" reference
654 | "Ltac" LIST1 ltac_tacdef_body SEP "with"
655 | "Print" "Ltac" "Signatures"
656 | "Add" "Relation" constr constr "reflexivity" "proved" "by" constr "symmetry" "proved" "by" constr "as" identref
657 | "Add" "Relation" constr constr "reflexivity" "proved" "by" constr "as" identref
658 | "Add" "Relation" constr constr "as" identref
659 | "Add" "Relation" constr constr "symmetry" "proved" "by" constr "as" identref
660 | "Add" "Relation" constr constr "symmetry" "proved" "by" constr "transitivity" "proved" "by" constr "as" identref
661 | "Add" "Relation" constr constr "reflexivity" "proved" "by" constr "transitivity" "proved" "by" constr "as" identref
662 | "Add" "Relation" constr constr "reflexivity" "proved" "by" constr "symmetry" "proved" "by" constr "transitivity" "proved" "by" constr "as" identref
663 | "Add" "Relation" constr constr "transitivity" "proved" "by" constr "as" identref
664 | "Add" "Parametric" "Relation" binders ":" constr constr "reflexivity" "proved" "by" constr "symmetry" "proved" "by" constr "as" identref
665 | "Add" "Parametric" "Relation" binders ":" constr constr "reflexivity" "proved" "by" constr "as" identref
666 | "Add" "Parametric" "Relation" binders ":" constr constr "as" identref
667 | "Add" "Parametric" "Relation" binders ":" constr constr "symmetry" "proved" "by" constr "as" identref
668 | "Add" "Parametric" "Relation" binders ":" constr constr "symmetry" "proved" "by" constr "transitivity" "proved" "by" constr "as" identref
669 | "Add" "Parametric" "Relation" binders ":" constr constr "reflexivity" "proved" "by" constr "transitivity" "proved" "by" constr "as" identref
670 | "Add" "Parametric" "Relation" binders ":" constr constr "reflexivity" "proved" "by" constr "symmetry" "proved" "by" constr "transitivity" "proved" "by" constr "as" identref
671 | "Add" "Parametric" "Relation" binders ":" constr constr "transitivity" "proved" "by" constr "as" identref
672 | "Add" "Setoid" constr constr constr "as" identref
673 | "Add" "Parametric" "Setoid" binders ":" constr constr constr "as" identref
674 | "Add" "Morphism" constr ":" identref
675 | "Declare" "Morphism" constr ":" identref
676 | "Add" "Morphism" constr "with" "signature" lconstr "as" identref
677 | "Add" "Parametric" "Morphism" binders ":" constr "with" "signature" lconstr "as" identref
678 | "Print" "Rewrite" "HintDb" preident
679 | "Reset" "Ltac" "Profile"
680 | "Show" "Ltac" "Profile"
681 | "Show" "Ltac" "Profile" "CutOff" integer
682 | "Show" "Ltac" "Profile" string
683 | "Show" "Lia" "Profile" (* micromega plugin *)
684 | "Add" "Zify" "InjTyp" reference (* micromega plugin *)
685 | "Add" "Zify" "BinOp" reference (* micromega plugin *)
686 | "Add" "Zify" "UnOp" reference (* micromega plugin *)
687 | "Add" "Zify" "CstOp" reference (* micromega plugin *)
688 | "Add" "Zify" "BinRel" reference (* micromega plugin *)
689 | "Add" "Zify" "PropOp" reference (* micromega plugin *)
690 | "Add" "Zify" "PropBinOp" reference (* micromega plugin *)
691 | "Add" "Zify" "PropUOp" reference (* micromega plugin *)
692 | "Add" "Zify" "BinOpSpec" reference (* micromega plugin *)
693 | "Add" "Zify" "UnOpSpec" reference (* micromega plugin *)
694 | "Add" "Zify" "Saturate" reference (* micromega plugin *)
695 | "Show" "Zify" "InjTyp" (* micromega plugin *)
696 | "Show" "Zify" "BinOp" (* micromega plugin *)
697 | "Show" "Zify" "UnOp" (* micromega plugin *)
698 | "Show" "Zify" "CstOp" (* micromega plugin *)
699 | "Show" "Zify" "BinRel" (* micromega plugin *)
700 | "Show" "Zify" "UnOpSpec" (* micromega plugin *)
701 | "Show" "Zify" "BinOpSpec" (* micromega plugin *)
702 | "Add" "Ring" identref ":" constr OPT ring_mods (* ring plugin *)
703 | "Print" "Rings" (* ring plugin *)
704 | "Add" "Field" identref ":" constr OPT field_mods (* ring plugin *)
705 | "Print" "Fields" (* ring plugin *)
706 | "Number" "Notation" reference reference reference OPT number_options ":" preident
707 | "String" "Notation" reference reference reference OPT string_option ":" preident
708 | "Ltac2" ltac2_entry (* ltac2 plugin *)
709 | "Ltac2" "Import" "Type" reference "as" ident (* ltac2 plugin *)
710 | "Ltac2" "Custom" "Entry" identref (* ltac2 plugin *)
711 | "Ltac2" "Notation" ltac2def_syn (* ltac2 plugin *)
712 | "Ltac2" "Abbreviation" ltac2abbrev_syn (* ltac2 plugin *)
713 | "Ltac2" "Eval" ltac2_expr6 (* ltac2 plugin *)
714 | "Print" test_ltac2_ident "Ltac2" reference (* ltac2 plugin *)
715 | "Print" "Ltac2" "Type" reference (* ltac2 plugin *)
716 | "Locate" "Ltac2" reference (* ltac2 plugin *)
717 | "Print" "Ltac2" "Signatures" (* ltac2 plugin *)
718 | "Ltac2" "Check" ltac2_expr6 (* ltac2 plugin *)
719 | "Ltac2" "Globalize" ltac2_expr6 (* ltac2 plugin *)
720 ]
721
722 reference_or_constr: [
723 | global
724 | constr
725 ]
726
727 hint: [
728 | "Resolve" LIST1 reference_or_constr hint_info
729 | "Resolve" "->" LIST1 global OPT natural
730 | "Resolve" "<-" LIST1 global OPT natural
731 | "Immediate" LIST1 reference_or_constr
732 | "Variables" "Transparent"
733 | "Variables" "Opaque"
734 | "Constants" "Transparent"
735 | "Constants" "Opaque"
736 | "Projections" "Transparent"
737 | "Projections" "Opaque"
738 | "Transparent" LIST1 global
739 | "Opaque" LIST1 global
740 | "Mode" global mode
741 | "Unfold" LIST1 global
742 | "Constructors" LIST1 global
743 | "Extern" natural OPT Constr.constr_pattern "=>" generic_tactic
744 ]
745
746 mode: [
747 | LIST1 [ "+" | "!" | "-" ]
748 ]
749
750 int_or_var: [
751 | integer
752 | identref
753 ]
754
755 nat_or_var: [
756 | natural
757 | identref
758 ]
759
760 occs_nums: [
761 | LIST1 nat_or_var
762 | "-" LIST1 nat_or_var
763 ]
764
765 occs: [
766 | "at" occs_nums
767 |
768 ]
769
770 pattern_occ: [
771 | constr occs
772 ]
773
774 ref_or_pattern_occ: [
775 | smart_global occs
776 | constr occs
777 ]
778
779 unfold_occ: [
780 | smart_global occs
781 ]
782
783 red_flag: [
784 | "beta"
785 | "iota"
786 | "match"
787 | "fix"
788 | "cofix"
789 | "zeta"
790 | "delta" delta_flag
791 | "head"
792 ]
793
794 delta_flag: [
795 | "-" "[" LIST1 smart_global "]"
796 | "[" LIST1 smart_global "]"
797 |
798 ]
799
800 strategy_flag: [
801 | LIST1 red_flag
802 | OPT "head" delta_flag
803 ]
804
805 red_expr: [
806 | "red"
807 | "hnf"
808 | "simpl" OPT "head" delta_flag OPT ref_or_pattern_occ
809 | "cbv" strategy_flag
810 | "cbn" strategy_flag
811 | "lazy" strategy_flag
812 | "compute" delta_flag
813 | "vm_compute" OPT ref_or_pattern_occ
814 | "native_compute" OPT ref_or_pattern_occ
815 | "unfold" LIST1 unfold_occ SEP ","
816 | "fold" LIST1 constr
817 | "pattern" LIST1 pattern_occ SEP ","
818 | IDENT
819 ]
820
821 vernac_control: [
822 | LIST0 control_flag decorated_vernac
823 ]
824
825 control_flag: [
826 | "Time"
827 | "Instructions"
828 | "Profile" OPT STRING
829 | "Redirect" ne_string
830 | "Timeout" natural
831 | "Fail"
832 | "Succeed"
833 ]
834
835 decorated_vernac: [
836 | quoted_attributes LIST0 legacy_attr vernac_aux
837 ]
838
839 quoted_attributes: [
840 | LIST0 [ "#[" attribute_list "]" ]
841 ]
842
843 attribute_list: [
844 | LIST1 attribute SEP ","
845 ]
846
847 attribute: [
848 | ident attr_value
849 | "using" attr_value
850 ]
851
852 attr_value: [
853 | "=" string
854 | "=" qualid
855 | "(" attribute_list ")"
856 |
857 ]
858
859 legacy_attr: [
860 | "Local"
861 | "Global"
862 | "Polymorphic"
863 | "Monomorphic"
864 | "Cumulative"
865 | "NonCumulative"
866 | "Private"
867 | "Program"
868 ]
869
870 vernac_aux: [
871 | gallina "."
872 | gallina_ext "."
873 | command "."
874 | syntax "."
875 | command_entry
876 ]
877
878 noedit_mode: [
879 | query_command
880 ]
881
882 subprf: [
883 | BULLET
884 | "}"
885 ]
886
887 subprf_with_selector: [
888 | "{"
889 | query_command
890 ]
891
892 gallina: [
893 | thm_token ident_decl binders ":" lconstr LIST0 [ "with" ident_decl binders ":" lconstr ]
894 | assumption_token inline assum_list
895 | assumptions_token inline assum_list
896 | def_token ident_decl def_body
897 | "Symbol" assum_list
898 | "Symbols" assum_list
899 | "Let" ident_decl def_body
900 | finite_token inductive_or_record_definition
901 | inductive_token LIST1 inductive_or_record_definition SEP "with"
902 | "Fixpoint" LIST1 fix_definition SEP "with"
903 | "Let" "Fixpoint" LIST1 fix_definition SEP "with"
904 | "CoFixpoint" LIST1 cofix_definition SEP "with"
905 | "Let" "CoFixpoint" LIST1 cofix_definition SEP "with"
906 | "Scheme" "All" "for" smart_global OPT [ "over" LIST1 ident SEP "," ]
907 | "Scheme" LIST1 scheme SEP "with"
908 | "Scheme" "Equality" "for" smart_global
909 | "Scheme" "Boolean" "Equality" "for" smart_global
910 | "Scheme" "Rewriting" "for" smart_global
911 | "Combined" "Scheme" identref "from" LIST1 identref SEP ","
912 | "Register" global "as" qualid
913 | "Register" "Scheme" global "as" qualid "for" global
914 | "Register" "Inline" global
915 | "Primitive" ident_decl OPT [ ":" lconstr ] ":=" register_token
916 | "Universe" LIST1 identref
917 | "Universes" LIST1 identref
918 | "Sort" LIST1 identref
919 | "Sorts" LIST1 identref
920 | "Constraint" LIST1 sort_constraint SEP ","
921 | "Rewrite" "Rule" identref ":=" OPT "|" LIST1 rewrite_rule SEP "|"
922 | "Rewrite" "Rules" identref ":=" OPT "|" LIST1 rewrite_rule SEP "|"
923 ]
924
925 register_token: [
926 | test_hash_ident "#" IDENT
927 ]
928
929 thm_token: [
930 | "Theorem"
931 | "Lemma"
932 | "Fact"
933 | "Remark"
934 | "Corollary"
935 | "Proposition"
936 | "Property"
937 ]
938
939 def_token: [
940 | "Definition"
941 | "Example"
942 | "SubClass"
943 ]
944
945 assumption_token: [
946 | "Hypothesis"
947 | "Variable"
948 | "Axiom"
949 | "Parameter"
950 | "Conjecture"
951 ]
952
953 assumptions_token: [
954 | "Hypotheses"
955 | "Variables"
956 | "Axioms"
957 | "Parameters"
958 | "Conjectures"
959 ]
960
961 inline: [
962 | "Inline" "(" natural ")"
963 | "Inline"
964 |
965 ]
966
967 sort_constraint: [
968 | test_univ_cst universe_name [ "<" | "=" | "<=" ] universe_name
969 | sort_quality_var "->" sort_quality_var
970 ]
971
972 univ_decl_constraints: [
973 | "|" LIST0 sort_constraint SEP "," [ "+" | ] "}"
974 | [ "}" | bar_cbrace ]
975 ]
976
977 univ_decl: [
978 | "@{" test_doublepipe_univ_decl LIST0 identref "|" LIST0 identref [ "+" | ] univ_decl_constraints
979 | "@{" LIST0 identref ";" LIST0 identref [ "+" | ] univ_decl_constraints
980 | "@{" LIST0 identref [ "+" | ] univ_decl_constraints
981 ]
982
983 variance: [
984 | "+"
985 | "="
986 | "*"
987 ]
988
989 variance_identref: [
990 | identref
991 | test_variance_ident variance identref
992 ]
993
994 cumul_univ_decl: [
995 | "@{" test_doublepipe_cumul_univ_decl LIST0 identref "|" LIST0 variance_identref [ "+" | ] univ_decl_constraints
996 | "@{" test_semicolon_cumul_univ_decl LIST0 identref ";" LIST0 variance_identref [ "+" | ] univ_decl_constraints
997 | "@{" LIST0 variance_identref [ "+" | ] univ_decl_constraints
998 ]
999
1000 ident_decl: [
1001 | identref OPT univ_decl
1002 ]
1003
1004 cumul_ident_decl: [
1005 | identref OPT cumul_univ_decl
1006 ]
1007
1008 inductive_token: [
1009 | "Inductive"
1010 | "CoInductive"
1011 ]
1012
1013 finite_token: [
1014 | "Variant"
1015 | "Record"
1016 | "Structure"
1017 | "Class"
1018 ]
1019
1020 def_body: [
1021 | binders ":=" reduce lconstr
1022 | binders ":" lconstr ":=" reduce lconstr
1023 | binders ":" lconstr
1024 ]
1025
1026 reduce: [
1027 | "Eval" red_expr "in"
1028 |
1029 ]
1030
1031 notation_declaration: [
1032 | lstring ":=" constr syntax_modifiers OPT [ ":" IDENT ]
1033 ]
1034
1035 decl_sep: [
1036 | "and"
1037 ]
1038
1039 decl_notations: [
1040 | "where" LIST1 notation_declaration SEP decl_sep
1041 |
1042 ]
1043
1044 opt_constructors_or_fields: [
1045 | ":=" constructors_or_record
1046 | ":="
1047 |
1048 ]
1049
1050 inductive_or_record_definition: [
1051 | opt_coercion cumul_ident_decl binders OPT [ "|" binders ] OPT [ ":" lconstr ] opt_constructors_or_fields decl_notations
1052 ]
1053
1054 constructors_or_record: [
1055 | "|" LIST1 constructor SEP "|"
1056 | quoted_attributes identref constructor_type "|" LIST1 constructor SEP "|"
1057 | quoted_attributes identref constructor_type
1058 | quoted_attributes identref "{" record_fields "}" default_inhabitant_ident
1059 | "{" record_fields "}" default_inhabitant_ident
1060 ]
1061
1062 default_inhabitant_ident: [
1063 | "as" identref
1064 |
1065 ]
1066
1067 opt_coercion: [
1068 | ">"
1069 |
1070 ]
1071
1072 fix_definition: [
1073 | ident_decl binders_fixannot type_cstr OPT [ ":=" lconstr ] decl_notations
1074 ]
1075
1076 cofix_definition: [
1077 | ident_decl binders type_cstr OPT [ ":=" lconstr ] decl_notations
1078 ]
1079
1080 rw_pattern: [
1081 | lconstr
1082 ]
1083
1084 rewrite_rule: [
1085 | OPT [ univ_decl "|-" ] rw_pattern "=>" lconstr
1086 ]
1087
1088 scheme: [
1089 | scheme_kind
1090 | identref ":=" scheme_kind
1091 ]
1092
1093 scheme_kind: [
1094 | scheme_type "for" smart_global "Sort" sort_quality_or_set
1095 ]
1096
1097 scheme_type: [
1098 | "Induction"
1099 | "Minimality"
1100 | "Elimination"
1101 | "Case"
1102 ]
1103
1104 record_field: [
1105 | quoted_attributes record_binder OPT [ "|" natural ] decl_notations
1106 ]
1107
1108 record_fields: [
1109 | record_field ";" record_fields
1110 | record_field
1111 |
1112 ]
1113
1114 field_body: [
1115 | binders of_type_inst lconstr
1116 | binders of_type_inst lconstr ":=" lconstr
1117 | binders ":=" lconstr
1118 ]
1119
1120 record_binder: [
1121 | name
1122 | name field_body
1123 ]
1124
1125 assum_list: [
1126 | LIST1 assum_coe
1127 | assumpt
1128 ]
1129
1130 assum_coe: [
1131 | "(" assumpt ")"
1132 ]
1133
1134 assumpt: [
1135 | LIST1 ident_decl of_type lconstr
1136 ]
1137
1138 constructor_type: [
1139 | binders [ of_type_inst lconstr | ]
1140 ]
1141
1142 constructor: [
1143 | quoted_attributes identref constructor_type
1144 ]
1145
1146 of_type: [
1147 | ":>"
1148 | ":" ">"
1149 | ":"
1150 ]
1151
1152 of_type_inst: [
1153 | ":>"
1154 | ":" ">"
1155 | "::"
1156 | "::>"
1157 | ":"
1158 ]
1159
1160 gallina_ext: [
1161 | "Module" export_token identref LIST0 module_binder of_module_type is_module_expr
1162 | "Module" "Type" identref LIST0 module_binder check_module_types is_module_type
1163 | "Declare" "Module" export_token identref LIST0 module_binder ":" module_type_inl
1164 | "Section" identref
1165 | "End" identref
1166 | "Collection" identref ":=" section_subset_expr
1167 | "From" global "Extra" "Dependency" ne_string OPT [ "as" IDENT ]
1168 | "Require" export_token LIST1 filtered_import
1169 | "From" global "Require" export_token LIST1 filtered_import
1170 | "Import" OPT import_categories LIST1 filtered_import
1171 | "Export" OPT import_categories LIST1 filtered_import
1172 | "Include" module_type_inl LIST0 ext_module_type
1173 | "Include" "Type" module_type_inl LIST0 ext_module_type
1174 | "Transparent" OPT "!" LIST1 smart_global
1175 | "Opaque" OPT "!" LIST1 smart_global
1176 | "Strategy" LIST1 [ strategy_level "[" LIST1 smart_global "]" ]
1177 | "Canonical" OPT "Structure" global OPT [ OPT univ_decl def_body ]
1178 | "Canonical" OPT "Structure" by_notation
1179 | "Coercion" global OPT [ OPT univ_decl def_body ]
1180 | "Identity" "Coercion" identref ":" coercion_class ">->" coercion_class
1181 | "Coercion" global ":" coercion_class ">->" coercion_class
1182 | "Coercion" by_notation ":" coercion_class ">->" coercion_class
1183 | "Context" LIST1 binder
1184 | "Instance" instance_name ":" term200 hint_info [ ":=" "{" record_declaration "}" | ":=" lconstr | ]
1185 | "Existing" "Instance" global hint_info
1186 | "Existing" "Instances" LIST1 global OPT [ "|" natural ]
1187 | "Existing" "Class" global
1188 | "Arguments" smart_global LIST0 arg_specs OPT [ "," LIST1 [ LIST0 implicits_alt ] SEP "," ] OPT [ ":" LIST1 args_modifier SEP "," ]
1189 | "Implicit" "Type" reserv_list
1190 | "Implicit" "Types" reserv_list
1191 | "Generalizable" [ "All" "Variables" | "No" "Variables" | [ "Variable" | "Variables" ] LIST1 identref ]
1192 | "Export" "Set" setting_name option_setting
1193 | "Export" "Unset" setting_name
1194 ]
1195
1196 import_categories: [
1197 | OPT "-" "(" LIST1 qualid SEP "," ")"
1198 ]
1199
1200 filtered_import: [
1201 | global
1202 | global "(" LIST1 one_import_filter_name SEP "," ")"
1203 ]
1204
1205 one_import_filter_name: [
1206 | global OPT [ "(" ".." ")" ]
1207 ]
1208
1209 export_token: [
1210 | "Import" OPT import_categories
1211 | "Export" OPT import_categories
1212 |
1213 ]
1214
1215 ext_module_type: [
1216 | "<+" module_type_inl
1217 ]
1218
1219 ext_module_expr: [
1220 | "<+" module_expr_inl
1221 ]
1222
1223 check_module_type: [
1224 | "<:" module_type_inl
1225 ]
1226
1227 check_module_types: [
1228 | LIST0 check_module_type
1229 ]
1230
1231 of_module_type: [
1232 | ":" module_type_inl
1233 | check_module_types
1234 ]
1235
1236 is_module_type: [
1237 | ":=" module_type_inl LIST0 ext_module_type
1238 |
1239 ]
1240
1241 is_module_expr: [
1242 | ":=" module_expr_inl LIST0 ext_module_expr
1243 |
1244 ]
1245
1246 functor_app_annot: [
1247 | "[" "inline" "at" "level" natural "]"
1248 | "[" "no" "inline" "]"
1249 |
1250 ]
1251
1252 module_expr_inl: [
1253 | "!" module_expr
1254 | module_expr functor_app_annot
1255 ]
1256
1257 module_type_inl: [
1258 | "!" module_type
1259 | module_type functor_app_annot
1260 ]
1261
1262 module_binder: [
1263 | "(" export_token LIST1 identref ":" module_type_inl ")"
1264 ]
1265
1266 module_expr: [
1267 | module_expr_atom
1268 | module_expr module_expr_atom
1269 ]
1270
1271 module_expr_atom: [
1272 | qualid
1273 | "(" module_expr_atom ")"
1274 ]
1275
1276 with_declaration: [
1277 | "Definition" fullyqualid OPT univ_decl ":=" Constr.lconstr
1278 | "Module" fullyqualid ":=" qualid
1279 ]
1280
1281 module_type: [
1282 | qualid
1283 | "(" module_type ")"
1284 | module_type module_expr_atom
1285 | module_type "with" with_declaration
1286 ]
1287
1288 section_subset_expr: [
1289 | test_only_starredidentrefs LIST0 starredidentref
1290 | ssexpr35
1291 ]
1292
1293 starredidentref: [
1294 | identref
1295 | identref "*"
1296 | "Type"
1297 | "Type" "*"
1298 ]
1299
1300 ssexpr35: [
1301 | "-" ssexpr50
1302 | ssexpr50
1303 ]
1304
1305 ssexpr50: [
1306 | ssexpr0 "-" ssexpr0
1307 | ssexpr0 "+" ssexpr0
1308 | ssexpr0
1309 ]
1310
1311 ssexpr0: [
1312 | starredidentref
1313 | "()"
1314 | "(" test_only_starredidentrefs LIST0 starredidentref ")"
1315 | "(" test_only_starredidentrefs LIST0 starredidentref ")" "*"
1316 | "(" ssexpr35 ")"
1317 | "(" ssexpr35 ")" "*"
1318 ]
1319
1320 args_modifier: [
1321 | "simpl" "nomatch"
1322 | "simpl" "never"
1323 | "clear" "simpl"
1324 | "default" "implicits"
1325 | "clear" "implicits"
1326 | "clear" "scopes"
1327 | "clear" "bidirectionality" "hint"
1328 | "rename"
1329 | "assert"
1330 | "extra" "scopes"
1331 | "clear" "scopes" "and" "implicits"
1332 | "clear" "implicits" "and" "scopes"
1333 ]
1334
1335 scope_delimiter: [
1336 | "%" IDENT
1337 | "%_" IDENT
1338 ]
1339
1340 argument_spec: [
1341 | OPT "!" name LIST0 scope_delimiter
1342 ]
1343
1344 arg_specs: [
1345 | argument_spec
1346 | "/"
1347 | "&"
1348 | "(" LIST1 argument_spec ")" LIST0 scope_delimiter
1349 | "[" LIST1 argument_spec "]" LIST0 scope_delimiter
1350 | "{" LIST1 argument_spec "}" LIST0 scope_delimiter
1351 ]
1352
1353 implicits_alt: [
1354 | name
1355 | "[" LIST1 name "]"
1356 | "{" LIST1 name "}"
1357 ]
1358
1359 instance_name: [
1360 | ident_decl binders
1361 |
1362 ]
1363
1364 hint_info: [
1365 | "|" OPT natural OPT constr_pattern
1366 |
1367 ]
1368
1369 reserv_list: [
1370 | LIST1 reserv_tuple
1371 | simple_reserv
1372 ]
1373
1374 reserv_tuple: [
1375 | "(" simple_reserv ")"
1376 ]
1377
1378 simple_reserv: [
1379 | LIST1 identref ":" lconstr
1380 ]
1381
1382 range_selector: [
1383 | natural "-" natural
1384 | natural
1385 | test_bracket_ident "[" qualid "]"
1386 ]
1387
1388 goal_selector: [
1389 | LIST1 range_selector SEP ","
1390 ]
1391
1392 toplevel_selector: [
1393 | goal_selector ":"
1394 | "!" ":"
1395 | "all" ":"
1396 ]
1397
1398 query_command: [
1399 | "Eval" red_expr "in" lconstr "."
1400 | "Compute" lconstr "."
1401 | "Check" lconstr "."
1402 | "About" smart_global OPT univ_name_list "."
1403 | "SearchPattern" constr_pattern in_or_out_modules "."
1404 | "SearchRewrite" constr_pattern in_or_out_modules "."
1405 | "Search" search_query search_queries "."
1406 ]
1407
1408 printable: [
1409 | "Term" smart_global OPT univ_name_list
1410 | "All"
1411 | "Section" global
1412 | "Grammar" LIST0 IDENT
1413 | "Custom" "Grammar" qualid
1414 | "Keywords"
1415 | "LoadPath" OPT dirpath
1416 | "Libraries"
1417 | "Notation" string
1418 | "Notation" string "in" "custom" qualid
1419 | "ML" "Path"
1420 | "ML" "Modules"
1421 | "Debug" "GC"
1422 | "Graph"
1423 | "Classes"
1424 | "Typeclasses"
1425 | "Instances" smart_global
1426 | "Coercions"
1427 | "Coercion" "Paths" coercion_class coercion_class
1428 | "Canonical" "Projections" LIST0 smart_global
1429 | "Typing" "Flags"
1430 | "Tables"
1431 | "Options"
1432 | "Hint"
1433 | "Hint" smart_global
1434 | "Hint" "*"
1435 | "HintDb" IDENT
1436 | "Scopes"
1437 | "Scope" IDENT
1438 | "Visibility" OPT IDENT
1439 | "Implicit" smart_global
1440 | [ "Sorted" | ] "Universes" OPT printunivs_subgraph OPT [ [ "With" | "Without" ] "Constraint" "Sources" ] OPT ne_string
1441 | "Sorts"
1442 | "Assumptions" LIST1 smart_global
1443 | "Opaque" "Dependencies" LIST1 smart_global
1444 | "Transparent" "Dependencies" LIST1 smart_global
1445 | "All" "Dependencies" LIST1 smart_global
1446 | "Strategy" smart_global
1447 | "Strategies"
1448 | "Registered"
1449 | "Registered" "Schemes"
1450 ]
1451
1452 debug_univ_name: [
1453 | reference
1454 | STRING
1455 ]
1456
1457 printunivs_subgraph: [
1458 | "Subgraph" "(" LIST0 debug_univ_name ")"
1459 ]
1460
1461 coercion_class: [
1462 | "Funclass"
1463 | "Sortclass"
1464 | smart_global
1465 ]
1466
1467 locatable: [
1468 | smart_global
1469 | "Term" smart_global
1470 | "File" ne_string
1471 | "Library" global
1472 | "Module" global
1473 ]
1474
1475 option_setting: [
1476 |
1477 | integer
1478 | STRING
1479 ]
1480
1481 table_value: [
1482 | global
1483 | STRING
1484 ]
1485
1486 setting_name: [
1487 | LIST1 IDENT
1488 ]
1489
1490 ne_in_or_out_modules: [
1491 | "inside" LIST1 global
1492 | "in" LIST1 global
1493 | "outside" LIST1 global
1494 ]
1495
1496 in_or_out_modules: [
1497 | ne_in_or_out_modules
1498 |
1499 ]
1500
1501 comment: [
1502 | constr
1503 | STRING
1504 | natural
1505 ]
1506
1507 positive_search_mark: [
1508 | "-"
1509 |
1510 ]
1511
1512 search_query: [
1513 | positive_search_mark search_item
1514 | positive_search_mark "[" LIST1 ( LIST1 search_query ) SEP "|" "]"
1515 ]
1516
1517 search_item: [
1518 | test_id_colon search_where ":" ne_string OPT scope_delimiter
1519 | "is" ":" logical_kind
1520 | ne_string OPT scope_delimiter
1521 | test_id_colon search_where ":" constr_pattern
1522 | constr_pattern
1523 ]
1524
1525 logical_kind: [
1526 | thm_token
1527 | assumption_token
1528 | "Context"
1529 | extended_def_token
1530 | "Primitive"
1531 | "Symbol"
1532 ]
1533
1534 extended_def_token: [
1535 | def_token
1536 | "Coercion"
1537 | "Fixpoint"
1538 | "CoFixpoint"
1539 | "Instance"
1540 | "Scheme"
1541 | "Canonical"
1542 | "Field"
1543 | "Method"
1544 ]
1545
1546 search_where: [
1547 | "head"
1548 | "hyp"
1549 | "concl"
1550 | "headhyp"
1551 | "headconcl"
1552 ]
1553
1554 search_queries: [
1555 | ne_in_or_out_modules
1556 | search_query search_queries
1557 |
1558 ]
1559
1560 univ_name_list: [
1561 | "@{" LIST0 name "}"
1562 ]
1563
1564 syntax: [
1565 | "Open" "Scope" IDENT
1566 | "Close" "Scope" IDENT
1567 | "Delimit" "Scope" IDENT; "with" IDENT
1568 | "Undelimit" "Scope" IDENT
1569 | "Bind" "Scope" IDENT; "with" LIST1 coercion_class
1570 | "Infix" notation_declaration
1571 | located_notation identref LIST0 ident ":=" constr syntax_modifiers
1572 | "Abbreviation" identref LIST0 ident ":=" constr syntax_modifiers
1573 | located_notation notation_declaration
1574 | "Reserved" "Infix" ne_lstring syntax_modifiers
1575 | "Reserved" "Notation" ne_lstring syntax_modifiers
1576 | enable_enable_disable "Notation" enable_notation_rule enable_notation_interpretation enable_notation_flags opt_scope
1577 ]
1578
1579 located_notation: [
1580 | "Notation"
1581 ]
1582
1583 enable_enable_disable: [
1584 | "Enable"
1585 | "Disable"
1586 ]
1587
1588 enable_notation_rule: [
1589 | ne_string
1590 | global LIST0 ident
1591 |
1592 ]
1593
1594 enable_notation_interpretation: [
1595 | ":=" constr
1596 |
1597 ]
1598
1599 enable_notation_flags: [
1600 | "(" LIST1 enable_notation_flag SEP "," ")"
1601 |
1602 ]
1603
1604 enable_notation_flag: [
1605 | "all"
1606 | "only" "parsing"
1607 | "only" "printing"
1608 | "in" "custom" qualid
1609 | "in" "constr"
1610 ]
1611
1612 opt_scope: [
1613 | ":" IDENT
1614 | ":" "no" "scope"
1615 |
1616 ]
1617
1618 level: [
1619 | "level" natural
1620 | "next" "level"
1621 ]
1622
1623 syntax_modifier: [
1624 | "at" "level" natural
1625 | "in" "custom" qualid
1626 | "in" "custom" qualid "at" "level" natural
1627 | "left" "associativity"
1628 | "right" "associativity"
1629 | "no" "associativity"
1630 | "only" "printing"
1631 | "only" "parsing"
1632 | "format" lstring
1633 | IDENT; "," LIST1 IDENT SEP "," [ "at" level | "in" "scope" IDENT ]
1634 | IDENT; "at" level OPT binder_interp
1635 | IDENT; "in" "scope" IDENT
1636 | IDENT binder_interp
1637 | IDENT explicit_subentry
1638 ]
1639
1640 syntax_modifiers: [
1641 | "(" LIST1 syntax_modifier SEP "," ")"
1642 |
1643 ]
1644
1645 explicit_subentry: [
1646 | "ident"
1647 | "name"
1648 | "global"
1649 | "bigint"
1650 | "binder"
1651 | "constr"
1652 | "constr" at_level_opt OPT binder_interp
1653 | "pattern"
1654 | "pattern" "at" "level" natural
1655 | "strict" "pattern"
1656 | "strict" "pattern" "at" "level" natural
1657 | "closed" "binder"
1658 | "custom" qualid at_level_opt OPT binder_interp
1659 ]
1660
1661 at_level_opt: [
1662 | "at" level
1663 |
1664 ]
1665
1666 binder_interp: [
1667 | "as" "ident"
1668 | "as" "name"
1669 | "as" "pattern"
1670 | "as" "strict" "pattern"
1671 ]
1672
1673 withtac: [
1674 |
1675 | "with" generic_tactic
1676 ]
1677
1678 simple_tactic: [
1679 | "btauto"
1680 | "congruence" OPT natural
1681 | "congruence" OPT natural "with" LIST1 constr
1682 | "simple" "congruence" OPT natural
1683 | "simple" "congruence" OPT natural "with" LIST1 constr
1684 | "f_equal"
1685 | "firstorder" OPT tactic firstorder_using
1686 | "firstorder" OPT tactic "with" LIST1 preident
1687 | "firstorder" OPT tactic firstorder_using "with" LIST1 preident
1688 | "functional" "inversion" quantified_hypothesis OPT reference (* funind plugin *)
1689 | "functional" "induction" lconstr fun_ind_using with_names (* funind plugin *)
1690 | "soft" "functional" "induction" LIST1 constr fun_ind_using with_names (* funind plugin *)
1691 | "reflexivity"
1692 | "exact" uconstr
1693 | "assumption"
1694 | "etransitivity"
1695 | "cut" constr
1696 | "exact_no_check" constr
1697 | "vm_cast_no_check" constr
1698 | "native_cast_no_check" constr
1699 | "exfalso"
1700 | "lapply" constr
1701 | "transitivity" constr
1702 | "left"
1703 | "eleft"
1704 | "left" "with" bindings
1705 | "eleft" "with" bindings
1706 | "right"
1707 | "eright"
1708 | "right" "with" bindings
1709 | "eright" "with" bindings
1710 | "constructor"
1711 | "constructor" nat_or_var
1712 | "constructor" nat_or_var "with" bindings
1713 | "econstructor"
1714 | "econstructor" nat_or_var
1715 | "econstructor" nat_or_var "with" bindings
1716 | "specialize" constr_with_bindings
1717 | "specialize" constr_with_bindings "as" simple_intropattern
1718 | "symmetry"
1719 | "symmetry" "in" in_clause
1720 | "split"
1721 | "esplit"
1722 | "split" "with" bindings
1723 | "esplit" "with" bindings
1724 | "exists"
1725 | "exists" LIST1 bindings SEP ","
1726 | "eexists"
1727 | "eexists" LIST1 bindings SEP ","
1728 | "intros" "until" quantified_hypothesis
1729 | "intro"
1730 | "intro" ident
1731 | "intro" ident "at" "top"
1732 | "intro" ident "at" "bottom"
1733 | "intro" ident "after" hyp
1734 | "intro" ident "before" hyp
1735 | "intro" "at" "top"
1736 | "intro" "at" "bottom"
1737 | "intro" "after" hyp
1738 | "intro" "before" hyp
1739 | "move" hyp "at" "top"
1740 | "move" hyp "at" "bottom"
1741 | "move" hyp "after" hyp
1742 | "move" hyp "before" hyp
1743 | "rename" LIST1 rename SEP ","
1744 | "revert" LIST1 hyp
1745 | "simple" "induction" quantified_hypothesis
1746 | "simple" "destruct" quantified_hypothesis
1747 | "admit"
1748 | "fix" ident natural
1749 | "cofix" ident
1750 | "clear" LIST0 hyp
1751 | "clear" "-" LIST1 hyp
1752 | "clearbody" LIST1 hyp
1753 | "generalize" "dependent" constr
1754 | "assert_succeeds" tactic3
1755 | "replace" uconstr "with" constr clause by_arg_tac
1756 | "replace" "->" uconstr clause
1757 | "replace" "->" uconstr "with" constr clause by_arg_tac
1758 | "replace" "<-" uconstr clause
1759 | "replace" "<-" uconstr "with" constr clause by_arg_tac
1760 | "replace" uconstr clause
1761 | "simplify_eq"
1762 | "simplify_eq" destruction_arg
1763 | "esimplify_eq"
1764 | "esimplify_eq" destruction_arg
1765 | "discriminate"
1766 | "discriminate" destruction_arg
1767 | "ediscriminate"
1768 | "ediscriminate" destruction_arg
1769 | "injection"
1770 | "injection" destruction_arg
1771 | "einjection"
1772 | "einjection" destruction_arg
1773 | "injection" "as" LIST0 simple_intropattern
1774 | "injection" destruction_arg "as" LIST0 simple_intropattern
1775 | "einjection" "as" LIST0 simple_intropattern
1776 | "einjection" destruction_arg "as" LIST0 simple_intropattern
1777 | "simple" "injection"
1778 | "simple" "injection" destruction_arg
1779 | "dependent" "rewrite" orient constr
1780 | "dependent" "rewrite" orient constr "in" hyp
1781 | "decompose" "sum" constr
1782 | "decompose" "record" constr
1783 | "absurd" constr
1784 | "contradiction" OPT constr_with_bindings
1785 | "autorewrite" "with" LIST1 preident clause
1786 | "autorewrite" "with" LIST1 preident clause "using" tactic
1787 | "autorewrite" "*" "with" LIST1 preident clause
1788 | "autorewrite" "*" "with" LIST1 preident clause "using" tactic
1789 | "rewrite" "*" orient uconstr "in" hyp "at" occurrences by_arg_tac
1790 | "rewrite" "*" orient uconstr "at" occurrences "in" hyp by_arg_tac
1791 | "rewrite" "*" orient uconstr "in" hyp by_arg_tac
1792 | "rewrite" "*" orient uconstr "at" occurrences by_arg_tac
1793 | "rewrite" "*" orient uconstr by_arg_tac
1794 | "refine" uconstr
1795 | "simple" "refine" uconstr
1796 | "notypeclasses" "refine" uconstr
1797 | "simple" "notypeclasses" "refine" uconstr
1798 | "solve_constraints"
1799 | "subst" LIST1 hyp
1800 | "subst"
1801 | "simple" "subst"
1802 | "evar" test_lpar_id_colon "(" ident ":" lconstr ")"
1803 | "evar" constr
1804 | "instantiate" "(" ident ":=" lglob ")"
1805 | "instantiate" "(" natural ":=" lglob ")" hloc
1806 | "stepl" constr "by" tactic
1807 | "stepl" constr
1808 | "stepr" constr "by" tactic
1809 | "stepr" constr
1810 | "generalize_eqs" hyp
1811 | "dependent" "generalize_eqs" hyp
1812 | "generalize_eqs_vars" hyp
1813 | "dependent" "generalize_eqs_vars" hyp
1814 | "specialize_eqs" hyp
1815 | "transparent_abstract" tactic3
1816 | "transparent_abstract" tactic3 "using" ident
1817 | "constr_eq" constr constr
1818 | "constr_eq_strict" constr constr
1819 | "constr_eq_nounivs" constr constr
1820 | "is_evar" constr
1821 | "has_evar" constr
1822 | "is_var" constr
1823 | "is_fix" constr
1824 | "is_cofix" constr
1825 | "is_ind" constr
1826 | "is_constructor" constr
1827 | "is_proj" constr
1828 | "is_const" constr
1829 | "shelve"
1830 | "shelve_unifiable"
1831 | "unshelve" tactic1
1832 | "give_up"
1833 | "cycle" int_or_var
1834 | "swap" int_or_var int_or_var
1835 | "revgoals"
1836 | "guard" test
1837 | "decompose" "[" LIST1 constr "]" constr
1838 | "optimize_heap"
1839 | "with_strategy" strategy_level_or_var "[" LIST1 smart_global "]" tactic3
1840 | "eassumption"
1841 | "eexact" constr
1842 | "trivial" auto_using hintbases
1843 | "info_trivial" auto_using hintbases
1844 | "debug" "trivial" auto_using hintbases
1845 | "auto" OPT nat_or_var auto_using hintbases
1846 | "info_auto" OPT nat_or_var auto_using hintbases
1847 | "debug" "auto" OPT nat_or_var auto_using hintbases
1848 | "eauto" OPT nat_or_var auto_using hintbases
1849 | "debug" "eauto" OPT nat_or_var auto_using hintbases
1850 | "info_eauto" OPT nat_or_var auto_using hintbases
1851 | "autounfold" hintbases clause_dft_concl
1852 | "autounfold_one" hintbases "in" hyp
1853 | "autounfold_one" hintbases
1854 | "unify" constr constr
1855 | "unify" constr constr "with" preident
1856 | "convert" constr constr
1857 | "typeclasses" "eauto" "dfs" OPT nat_or_var "with" LIST1 preident
1858 | "typeclasses" "eauto" "bfs" OPT nat_or_var "with" LIST1 preident
1859 | "typeclasses" "eauto" "best_effort" OPT nat_or_var "with" LIST1 preident
1860 | "typeclasses" "eauto" OPT nat_or_var "with" LIST1 preident
1861 | "typeclasses" "eauto" "bfs" OPT nat_or_var
1862 | "typeclasses" "eauto" "dfs" OPT nat_or_var
1863 | "typeclasses" "eauto" "best_effort" OPT nat_or_var
1864 | "typeclasses" "eauto" OPT nat_or_var
1865 | "not_evar" constr
1866 | "is_ground" constr
1867 | "autoapply" constr "with" preident
1868 | "decide" "equality"
1869 | "compare" constr constr
1870 | "rewrite_strat" rewstrategy "in" hyp
1871 | "rewrite_strat" rewstrategy
1872 | "rewrite_db" preident "in" hyp
1873 | "rewrite_db" preident
1874 | "substitute" orient glob_constr_with_bindings
1875 | "setoid_rewrite" orient glob_constr_with_bindings
1876 | "setoid_rewrite" orient glob_constr_with_bindings "in" hyp
1877 | "setoid_rewrite" orient glob_constr_with_bindings "at" occurrences
1878 | "setoid_rewrite" orient glob_constr_with_bindings "at" occurrences "in" hyp
1879 | "setoid_rewrite" orient glob_constr_with_bindings "in" hyp "at" occurrences
1880 | "setoid_symmetry"
1881 | "setoid_symmetry" "in" hyp
1882 | "setoid_reflexivity"
1883 | "setoid_transitivity" constr
1884 | "setoid_etransitivity"
1885 | "intros" ne_intropatterns
1886 | "intros"
1887 | "eintros" ne_intropatterns
1888 | "eintros"
1889 | "apply" LIST1 constr_with_bindings_arg SEP "," in_hyp_as
1890 | "eapply" LIST1 constr_with_bindings_arg SEP "," in_hyp_as
1891 | "simple" "apply" LIST1 constr_with_bindings_arg SEP "," in_hyp_as
1892 | "simple" "eapply" LIST1 constr_with_bindings_arg SEP "," in_hyp_as
1893 | "elim" constr_with_bindings_arg OPT eliminator
1894 | "eelim" constr_with_bindings_arg OPT eliminator
1895 | "case" induction_clause_list
1896 | "ecase" induction_clause_list
1897 | "fix" ident natural "with" LIST1 fixdecl
1898 | "cofix" ident "with" LIST1 cofixdecl
1899 | "pose" bindings_with_parameters
1900 | "pose" constr as_name
1901 | "epose" bindings_with_parameters
1902 | "epose" constr as_name
1903 | "set" bindings_with_parameters clause_dft_concl
1904 | "set" constr as_name clause_dft_concl
1905 | "eset" bindings_with_parameters clause_dft_concl
1906 | "eset" constr as_name clause_dft_concl
1907 | "remember" constr as_name eqn_ipat clause_dft_all
1908 | "eremember" constr as_name eqn_ipat clause_dft_all
1909 | "assert" test_lpar_id_coloneq "(" identref ":=" lconstr ")"
1910 | "eassert" test_lpar_id_coloneq "(" identref ":=" lconstr ")"
1911 | "assert" test_lpar_id_colon "(" identref ":" lconstr ")" by_tactic
1912 | "eassert" test_lpar_id_colon "(" identref ":" lconstr ")" by_tactic
1913 | "enough" test_lpar_id_colon "(" identref ":" lconstr ")" by_tactic
1914 | "eenough" test_lpar_id_colon "(" identref ":" lconstr ")" by_tactic
1915 | "assert" constr as_ipat by_tactic
1916 | "eassert" constr as_ipat by_tactic
1917 | "pose" "proof" test_lpar_id_coloneq "(" identref ":=" lconstr ")"
1918 | "epose" "proof" test_lpar_id_coloneq "(" identref ":=" lconstr ")"
1919 | "pose" "proof" lconstr as_ipat
1920 | "epose" "proof" lconstr as_ipat
1921 | "enough" constr as_ipat by_tactic
1922 | "eenough" constr as_ipat by_tactic
1923 | "generalize" constr
1924 | "generalize" constr LIST1 constr
1925 | "generalize" constr lookup_at_as_comma occs as_name LIST0 [ "," pattern_occ as_name ]
1926 | "induction" induction_clause_list
1927 | "einduction" induction_clause_list
1928 | "destruct" induction_clause_list
1929 | "edestruct" induction_clause_list
1930 | "rewrite" LIST1 oriented_rewriter SEP "," clause_dft_concl by_tactic
1931 | "erewrite" LIST1 oriented_rewriter SEP "," clause_dft_concl by_tactic
1932 | "dependent" [ "simple" "inversion" | "inversion" | "inversion_clear" ] quantified_hypothesis as_or_and_ipat OPT [ "with" constr ]
1933 | "simple" "inversion" quantified_hypothesis as_or_and_ipat in_hyp_list
1934 | "inversion" quantified_hypothesis as_or_and_ipat in_hyp_list
1935 | "inversion_clear" quantified_hypothesis as_or_and_ipat in_hyp_list
1936 | "inversion" quantified_hypothesis "using" constr in_hyp_list
1937 | "red" clause_dft_concl
1938 | "hnf" clause_dft_concl
1939 | "simpl" OPT "head" delta_flag OPT ref_or_pattern_occ clause_dft_concl
1940 | "cbv" strategy_flag clause_dft_concl
1941 | "cbn" strategy_flag clause_dft_concl
1942 | "lazy" strategy_flag clause_dft_concl
1943 | "compute" delta_flag clause_dft_concl
1944 | "vm_compute" OPT ref_or_pattern_occ clause_dft_concl
1945 | "native_compute" OPT ref_or_pattern_occ clause_dft_concl
1946 | "unfold" LIST1 unfold_occ SEP "," clause_dft_concl
1947 | "fold" LIST1 constr clause_dft_concl
1948 | "pattern" LIST1 pattern_occ SEP "," clause_dft_concl
1949 | "change" conversion clause_dft_concl
1950 | "change_no_check" conversion clause_dft_concl
1951 | "start" "ltac" "profiling"
1952 | "stop" "ltac" "profiling"
1953 | "reset" "ltac" "profile"
1954 | "show" "ltac" "profile"
1955 | "show" "ltac" "profile" "cutoff" integer
1956 | "show" "ltac" "profile" string
1957 | "restart_timer" OPT string
1958 | "finish_timing" OPT string
1959 | "finish_timing" "(" string ")" OPT string
1960 | "xlra_Q" tactic (* micromega plugin *)
1961 | "wlra_Q" ident constr (* micromega plugin *)
1962 | "xlra_R" tactic (* micromega plugin *)
1963 | "xlia" tactic (* micromega plugin *)
1964 | "wlia" ident constr (* micromega plugin *)
1965 | "xnra_Q" tactic (* micromega plugin *)
1966 | "wnra_Q" ident constr (* micromega plugin *)
1967 | "xnra_R" tactic (* micromega plugin *)
1968 | "xnia" tactic (* micromega plugin *)
1969 | "wnia" ident constr (* micromega plugin *)
1970 | "xsos_Z" tactic (* micromega plugin *)
1971 | "wsos_Z" ident constr (* micromega plugin *)
1972 | "xsos_Q" tactic (* micromega plugin *)
1973 | "wsos_Q" ident constr (* micromega plugin *)
1974 | "xsos_R" tactic (* micromega plugin *)
1975 | "xpsatz_Z" nat_or_var tactic (* micromega plugin *)
1976 | "wpsatz_Z" nat_or_var ident constr (* micromega plugin *)
1977 | "xpsatz_Q" nat_or_var tactic (* micromega plugin *)
1978 | "wpsatz_Q" nat_or_var ident constr (* micromega plugin *)
1979 | "xpsatz_R" nat_or_var tactic (* micromega plugin *)
1980 | "zify_iter_specs" (* micromega plugin *)
1981 | "zify_op" (* micromega plugin *)
1982 | "zify_saturate" (* micromega plugin *)
1983 | "zify_iter_let" tactic (* micromega plugin *)
1984 | "zify_elim_let" (* micromega plugin *)
1985 | "nsatz_compute" constr (* nsatz plugin *)
1986 | "protect_fv" string "in" ident (* ring plugin *)
1987 | "protect_fv" string (* ring plugin *)
1988 | "ring_lookup" tactic0 "[" LIST0 constr "]" LIST1 constr (* ring plugin *)
1989 | "field_lookup" tactic "[" LIST0 constr "]" LIST1 constr (* ring plugin *)
1990 | "rtauto"
1991 ]
1992
1993 mlname: [
1994 | preident (* extraction plugin *)
1995 | string (* extraction plugin *)
1996 ]
1997
1998 int_or_id: [
1999 | preident (* extraction plugin *)
2000 | integer (* extraction plugin *)
2001 ]
2002
2003 language: [
2004 | "OCaml" (* extraction plugin *)
2005 | "Haskell" (* extraction plugin *)
2006 | "Scheme" (* extraction plugin *)
2007 | "JSON" (* extraction plugin *)
2008 ]
2009
2010 firstorder_using: [
2011 | "using" LIST1 reference SEP ","
2012 |
2013 ]
2014
2015 fun_ind_using: [
2016 | "using" constr_with_bindings (* funind plugin *)
2017 | (* funind plugin *)
2018 ]
2019
2020 with_names: [
2021 | "as" simple_intropattern (* funind plugin *)
2022 | (* funind plugin *)
2023 ]
2024
2025 function_fix_definition: [
2026 | Vernac.fix_definition (* funind plugin *)
2027 ]
2028
2029 fun_scheme_arg: [
2030 | identref ":=" "Induction" "for" reference "Sort" sort_quality_or_set (* funind plugin *)
2031 ]
2032
2033 orient: [
2034 | "->"
2035 | "<-"
2036 |
2037 ]
2038
2039 EXTRAARGS_natural: [
2040 | _natural
2041 ]
2042
2043 occurrences: [
2044 | LIST1 integer
2045 | hyp
2046 ]
2047
2048 glob: [
2049 | constr
2050 ]
2051
2052 EXTRAARGS_lconstr: [
2053 | l_constr
2054 ]
2055
2056 lglob: [
2057 | EXTRAARGS_lconstr
2058 ]
2059
2060 hloc: [
2061 |
2062 | "in" "|-" "*"
2063 | "in" ident
2064 | "in" "(" "type" "of" ident ")"
2065 | "in" "(" "value" "of" ident ")"
2066 ]
2067
2068 rename: [
2069 | ident "into" ident
2070 ]
2071
2072 by_arg_tac: [
2073 | "by" tactic3
2074 |
2075 ]
2076
2077 in_clause: [
2078 | in_clause'
2079 | "*" occs
2080 | "*" "|-" concl_occ
2081 | "|-" concl_occ
2082 | LIST1 hypident_occ SEP "," "|-" concl_occ
2083 | LIST1 hypident_occ SEP ","
2084 ]
2085
2086 test_lpar_id_colon: [
2087 | local_test_lpar_id_colon
2088 ]
2089
2090 EXTRAARGS_strategy_level: [
2091 | strategy_level0
2092 ]
2093
2094 strategy_level_or_var: [
2095 | EXTRAARGS_strategy_level
2096 | identref
2097 ]
2098
2099 comparison: [
2100 | "="
2101 | "<"
2102 | "<="
2103 | ">"
2104 | ">="
2105 ]
2106
2107 test: [
2108 | int_or_var comparison int_or_var
2109 ]
2110
2111 hintbases: [
2112 | "with" "*"
2113 | "with" LIST1 preident
2114 |
2115 ]
2116
2117 auto_using: [
2118 | "using" LIST1 uconstr SEP ","
2119 |
2120 ]
2121
2122 hints_path_entry: [
2123 | hints_path1
2124 ]
2125
2126 hints_path1: [
2127 | hints_path1 "*"
2128 | hints_path1 "|" hints_path0
2129 | hints_path1 hints_path0
2130 | hints_path0
2131 ]
2132
2133 hints_path0: [
2134 | "(" hints_path1 ")"
2135 | "emp"
2136 | "eps"
2137 | LIST1 global
2138 | "_"
2139 ]
2140
2141 opthints: [
2142 | ":" LIST1 preident
2143 |
2144 ]
2145
2146 debug: [
2147 | "debug"
2148 |
2149 ]
2150
2151 eauto_search_strategy_name: [
2152 | "bfs"
2153 | "dfs"
2154 ]
2155
2156 eauto_search_strategy: [
2157 | "(" eauto_search_strategy_name ")"
2158 |
2159 ]
2160
2161 tactic_then_last: [
2162 | "|" LIST0 ( OPT ltac_expr5 ) SEP "|"
2163 |
2164 ]
2165
2166 for_each_goal: [
2167 | ltac_expr5 "|" for_each_goal
2168 | ltac_expr5 ".." tactic_then_last
2169 | ".." tactic_then_last
2170 | ltac_expr5
2171 | "|" for_each_goal
2172 |
2173 ]
2174
2175 tactic_then_locality: [
2176 | "[" OPT ">"
2177 ]
2178
2179 ltac_expr5: [
2180 | ltac_expr4
2181 ]
2182
2183 ltac_expr4: [
2184 | ltac_expr4 ";" ltac_expr3
2185 | ltac_expr4 ";" tactic_then_locality for_each_goal "]"
2186 | ltac_expr3
2187 ]
2188
2189 ltac_expr3: [
2190 | "try" ltac_expr3
2191 | "do" nat_or_var ltac_expr3
2192 | "timeout" nat_or_var ltac_expr3
2193 | "time" OPT string ltac_expr3
2194 | "repeat" ltac_expr3
2195 | "progress" ltac_expr3
2196 | "once" ltac_expr3
2197 | "exactly_once" ltac_expr3
2198 | "abstract" ltac_expr2
2199 | "abstract" ltac_expr2 "using" ident
2200 | "only" goal_selector ":" ltac_expr3
2201 | ltac_expr2
2202 ]
2203
2204 ltac_expr2: [
2205 | ltac_expr1l "+" ltac_expr2
2206 | "tryif" ltac_expr5 "then" ltac_expr5 "else" ltac_expr2
2207 | ltac_expr1l "||" ltac_expr2
2208 | ltac_expr1l
2209 ]
2210
2211 ltac_expr1l: [
2212 | ltac_expr1
2213 ]
2214
2215 ltac_expr1: [
2216 | "fun" LIST1 input_fun "=>" ltac_expr5
2217 | "let" [ "rec" | ] LIST1 let_clause SEP "with" "in" ltac_expr5
2218 | match_key "goal" "with" match_context_list "end"
2219 | match_key "reverse" "goal" "with" match_context_list "end"
2220 | match_key ltac_expr5 "with" match_list "end"
2221 | "first" "[" LIST0 ltac_expr5 SEP "|" "]"
2222 | "solve" "[" LIST0 ltac_expr5 SEP "|" "]"
2223 | "idtac" LIST0 message_token
2224 | failkw [ nat_or_var | ] LIST0 message_token
2225 | simple_tactic
2226 | tactic_value
2227 | reference LIST0 tactic_arg
2228 | ltac_expr0
2229 ]
2230
2231 ltac_expr0: [
2232 | "(" ltac_expr5 ")"
2233 | "[" ">" for_each_goal "]"
2234 | tactic_atom
2235 ]
2236
2237 failkw: [
2238 | "fail"
2239 | "gfail"
2240 ]
2241
2242 tactic_arg: [
2243 | tactic_value
2244 | Constr.constr
2245 | "()"
2246 ]
2247
2248 tactic_value: [
2249 | constr_eval
2250 | "fresh" LIST0 fresh_id
2251 | "type_term" uconstr
2252 | "numgoals"
2253 ]
2254
2255 fresh_id: [
2256 | STRING
2257 | qualid
2258 ]
2259
2260 constr_eval: [
2261 | "eval" red_expr "in" Constr.constr
2262 | "context" identref "[" Constr.lconstr "]"
2263 | "type" "of" Constr.constr
2264 ]
2265
2266 tactic_atom: [
2267 | integer
2268 | reference
2269 | "()"
2270 ]
2271
2272 match_key: [
2273 | "match"
2274 | "lazymatch"
2275 | "multimatch"
2276 ]
2277
2278 input_fun: [
2279 | "_"
2280 | ident
2281 ]
2282
2283 let_clause: [
2284 | identref ":=" ltac_expr5
2285 | "_" ":=" ltac_expr5
2286 | identref LIST1 input_fun ":=" ltac_expr5
2287 ]
2288
2289 match_pattern: [
2290 | "context" OPT Constr.ident "[" Constr.cpattern "]"
2291 | Constr.cpattern
2292 ]
2293
2294 match_hyp: [
2295 | name ":" match_pattern
2296 | name ":=" "[" match_pattern "]" ":" match_pattern
2297 | name ":=" match_pattern
2298 ]
2299
2300 match_context_rule: [
2301 | LIST0 match_hyp SEP "," "|-" match_pattern "=>" ltac_expr5
2302 | "[" LIST0 match_hyp SEP "," "|-" match_pattern "]" "=>" ltac_expr5
2303 | "_" "=>" ltac_expr5
2304 ]
2305
2306 match_context_list: [
2307 | LIST1 match_context_rule SEP "|"
2308 | "|" LIST1 match_context_rule SEP "|"
2309 ]
2310
2311 match_rule: [
2312 | match_pattern "=>" ltac_expr5
2313 | "_" "=>" ltac_expr5
2314 ]
2315
2316 match_list: [
2317 | LIST1 match_rule SEP "|"
2318 | "|" LIST1 match_rule SEP "|"
2319 ]
2320
2321 message_token: [
2322 | identref
2323 | STRING
2324 | natural
2325 ]
2326
2327 ltac_def_kind: [
2328 | ":="
2329 | "::="
2330 ]
2331
2332 tacdef_body: [
2333 | Constr.global LIST1 input_fun ltac_def_kind ltac_expr5
2334 | Constr.global ltac_def_kind ltac_expr5
2335 ]
2336
2337 tactic: [
2338 | ltac_expr5
2339 ]
2340
2341 tactic_mode: [
2342 | subprf
2343 | OPT toplevel_selector subprf_with_selector
2344 | OPT ltac_selector OPT ltac_info tactic ltac_use_default
2345 | "par" ":" OPT ltac_info tactic "."
2346 ]
2347
2348 ltac_selector: [
2349 | toplevel_selector
2350 ]
2351
2352 ltac_info: [
2353 | "Info" natural
2354 ]
2355
2356 ltac_use_default: [
2357 | "."
2358 | "..."
2359 ]
2360
2361 ltac_tactic_level: [
2362 | "(" "at" "level" natural ")"
2363 ]
2364
2365 ltac_production_sep: [
2366 | "," string
2367 ]
2368
2369 ltac_production_item: [
2370 | string
2371 | ident "(" ident OPT ltac_production_sep ")"
2372 | ident
2373 ]
2374
2375 ltac_tacdef_body: [
2376 | tacdef_body
2377 ]
2378
2379 glob_constr_with_bindings: [
2380 | constr_with_bindings
2381 ]
2382
2383 rewstrategy: [
2384 | "fix" identref ":=" rewstrategy1
2385 | ne_rewstrategy1_list_sep_semicolon
2386 ]
2387
2388 ne_rewstrategy1_list_sep_semicolon: [
2389 | ne_rewstrategy1_list_sep_semicolon ";" rewstrategy1
2390 | rewstrategy1
2391 ]
2392
2393 rewstrategy1: [
2394 | "<-" constr
2395 | "subterms" rewstrategy1
2396 | "subterm" rewstrategy1
2397 | "innermost" rewstrategy1
2398 | "outermost" rewstrategy1
2399 | "bottomup" rewstrategy1
2400 | "topdown" rewstrategy1
2401 | "progress" rewstrategy1
2402 | "try" rewstrategy1
2403 | "any" rewstrategy1
2404 | "repeat" rewstrategy1
2405 | "choice" LIST1 rewstrategy0
2406 | "old_hints" preident
2407 | "hints" preident
2408 | "terms" LIST0 constr
2409 | "eval" red_expr
2410 | "fold" constr
2411 | rewstrategy0
2412 ]
2413
2414 rewstrategy0: [
2415 | constr
2416 | "id"
2417 | "fail"
2418 | "refl"
2419 | "(" rewstrategy ")"
2420 ]
2421
2422 id_or_meta: [
2423 | identref
2424 ]
2425
2426 open_constr: [
2427 | constr
2428 ]
2429
2430 uconstr: [
2431 | constr
2432 ]
2433
2434 destruction_arg: [
2435 | natural
2436 | test_lpar_id_rpar constr_with_bindings
2437 | constr_with_bindings_arg
2438 ]
2439
2440 constr_with_bindings_arg: [
2441 | constr_with_bindings
2442 ]
2443
2444 quantified_hypothesis: [
2445 | ident
2446 | natural
2447 ]
2448
2449 conversion: [
2450 | constr
2451 | constr "with" constr
2452 | constr "at" occs_nums "with" constr
2453 ]
2454
2455 intropatterns: [
2456 | LIST0 intropattern
2457 ]
2458
2459 ne_intropatterns: [
2460 | LIST1 intropattern
2461 ]
2462
2463 or_and_intropattern: [
2464 | "[" LIST1 intropatterns SEP "|" "]"
2465 | "()"
2466 | "(" simple_intropattern ")"
2467 | "(" simple_intropattern "," LIST1 simple_intropattern SEP "," ")"
2468 | "(" simple_intropattern "&" LIST1 simple_intropattern SEP "&" ")"
2469 ]
2470
2471 equality_intropattern: [
2472 | "->"
2473 | "<-"
2474 | test_leftsquarebracket_equal "[" "=" intropatterns "]"
2475 ]
2476
2477 naming_intropattern: [
2478 | pattern_ident
2479 | "?"
2480 | ident
2481 ]
2482
2483 intropattern: [
2484 | simple_intropattern
2485 | "*"
2486 | "**"
2487 ]
2488
2489 simple_intropattern: [
2490 | simple_intropattern_closed LIST0 [ "%" term0 ]
2491 ]
2492
2493 simple_intropattern_closed: [
2494 | equality_intropattern
2495 | or_and_intropattern
2496 | "_"
2497 | naming_intropattern
2498 ]
2499
2500 simple_binding: [
2501 | "(" identref ":=" lconstr ")"
2502 | "(" natural ":=" lconstr ")"
2503 ]
2504
2505 bindings: [
2506 | test_lpar_idnum_coloneq LIST1 simple_binding
2507 | LIST1 constr
2508 ]
2509
2510 constr_with_bindings: [
2511 | constr with_bindings
2512 ]
2513
2514 with_bindings: [
2515 | "with" bindings
2516 |
2517 ]
2518
2519 hypident: [
2520 | id_or_meta
2521 | "(" "type" "of" id_or_meta ")"
2522 | "(" "value" "of" id_or_meta ")"
2523 ]
2524
2525 hypident_occ: [
2526 | hypident occs
2527 ]
2528
2529 clause_dft_concl: [
2530 | "in" in_clause
2531 | occs
2532 |
2533 ]
2534
2535 clause_dft_all: [
2536 | "in" in_clause
2537 |
2538 ]
2539
2540 opt_clause: [
2541 | "in" in_clause
2542 | "at" occs_nums
2543 |
2544 ]
2545
2546 concl_occ: [
2547 | "*" occs
2548 |
2549 ]
2550
2551 in_hyp_list: [
2552 | "in" LIST1 id_or_meta
2553 |
2554 ]
2555
2556 in_hyp_as: [
2557 | "in" LIST1 [ id_or_meta as_ipat ] SEP ","
2558 |
2559 ]
2560
2561 orient_rw: [
2562 | "->"
2563 | "<-"
2564 |
2565 ]
2566
2567 simple_binder: [
2568 | name
2569 | "(" LIST1 name ":" lconstr ")"
2570 ]
2571
2572 fixdecl: [
2573 | "(" ident LIST0 simple_binder struct_annot ":" lconstr ")"
2574 ]
2575
2576 struct_annot: [
2577 | "{" "struct" name "}"
2578 |
2579 ]
2580
2581 cofixdecl: [
2582 | "(" ident LIST0 simple_binder ":" lconstr ")"
2583 ]
2584
2585 bindings_with_parameters: [
2586 | check_for_coloneq "(" ident LIST0 simple_binder ":=" lconstr ")"
2587 ]
2588
2589 eliminator: [
2590 | "using" constr_with_bindings
2591 ]
2592
2593 as_ipat: [
2594 | "as" simple_intropattern
2595 |
2596 ]
2597
2598 or_and_intropattern_loc: [
2599 | or_and_intropattern
2600 | identref
2601 ]
2602
2603 as_or_and_ipat: [
2604 | "as" equality_intropattern
2605 | "as" or_and_intropattern_loc
2606 |
2607 ]
2608
2609 eqn_ipat: [
2610 | "eqn" ":" naming_intropattern
2611 |
2612 ]
2613
2614 as_name: [
2615 | "as" ident
2616 |
2617 ]
2618
2619 by_tactic: [
2620 | "by" ltac_expr3
2621 |
2622 ]
2623
2624 rewriter: [
2625 | "!" constr_with_bindings_arg
2626 | [ "?" | LEFTQMARK ] constr_with_bindings_arg
2627 | natural "!" constr_with_bindings_arg
2628 | natural [ "?" | LEFTQMARK ] constr_with_bindings_arg
2629 | natural constr_with_bindings_arg
2630 | constr_with_bindings_arg
2631 ]
2632
2633 oriented_rewriter: [
2634 | orient_rw rewriter
2635 ]
2636
2637 induction_clause: [
2638 | destruction_arg as_or_and_ipat eqn_ipat opt_clause
2639 ]
2640
2641 induction_clause_list: [
2642 | LIST1 induction_clause SEP "," OPT eliminator opt_clause
2643 ]
2644
2645 ring_mod: [
2646 | "decidable" constr (* ring plugin *)
2647 | "abstract" (* ring plugin *)
2648 | "morphism" constr (* ring plugin *)
2649 | "constants" "[" tactic "]" (* ring plugin *)
2650 | "closed" "[" LIST1 global "]" (* ring plugin *)
2651 | "preprocess" "[" tactic "]" (* ring plugin *)
2652 | "postprocess" "[" tactic "]" (* ring plugin *)
2653 | "setoid" constr constr (* ring plugin *)
2654 | "sign" constr (* ring plugin *)
2655 | "power" constr "[" LIST1 global "]" (* ring plugin *)
2656 | "power_tac" constr "[" tactic "]" (* ring plugin *)
2657 | "div" constr (* ring plugin *)
2658 ]
2659
2660 ring_mods: [
2661 | "(" LIST1 ring_mod SEP "," ")" (* ring plugin *)
2662 ]
2663
2664 field_mod: [
2665 | ring_mod (* ring plugin *)
2666 | "completeness" constr (* ring plugin *)
2667 ]
2668
2669 field_mods: [
2670 | "(" LIST1 field_mod SEP "," ")" (* ring plugin *)
2671 ]
2672
2673 number_string_mapping: [
2674 | reference "=>" reference
2675 | "[" reference "]" "=>" reference
2676 ]
2677
2678 number_string_via: [
2679 | "via" reference "mapping" "[" LIST1 number_string_mapping SEP "," "]"
2680 ]
2681
2682 number_modifier: [
2683 | "warning" "after" bignat
2684 | "abstract" "after" bignat
2685 | number_string_via
2686 ]
2687
2688 number_options: [
2689 | "(" LIST1 number_modifier SEP "," ")"
2690 ]
2691
2692 string_option: [
2693 | "(" number_string_via ")"
2694 ]
2695
2696 tac2pat3: [
2697 | tac2pat3 "|" LIST1 tac2pat2 SEP "|" (* ltac2 plugin *)
2698 | tac2pat3 "as" identref (* ltac2 plugin *)
2699 | tac2pat2 (* ltac2 plugin *)
2700 ]
2701
2702 tac2pat2: [
2703 | tac2pat1 "::" tac2pat2 (* ltac2 plugin *)
2704 | tac2pat1 (* ltac2 plugin *)
2705 ]
2706
2707 tac2pat1: [
2708 | Prim.qualid LIST1 tac2pat0 (* ltac2 plugin *)
2709 | Prim.qualid (* ltac2 plugin *)
2710 | tac2pat0 (* ltac2 plugin *)
2711 ]
2712
2713 tac2pat0: [
2714 | "_" (* ltac2 plugin *)
2715 | "()" (* ltac2 plugin *)
2716 | Prim.integer (* ltac2 plugin *)
2717 | Prim.string (* ltac2 plugin *)
2718 | Prim.qualid (* ltac2 plugin *)
2719 | "(" atomic_tac2pat ")" (* ltac2 plugin *)
2720 | "{" tac2rec_fieldpats "}" (* ltac2 plugin *)
2721 | "[" LIST0 tac2pat3 SEP ";" "]" (* ltac2 plugin *)
2722 ]
2723
2724 atomic_tac2pat: [
2725 | (* ltac2 plugin *)
2726 | tac2pat3 ":" ltac2_type5 (* ltac2 plugin *)
2727 | tac2pat3 "," LIST0 tac2pat3 SEP "," (* ltac2 plugin *)
2728 | tac2pat3 (* ltac2 plugin *)
2729 ]
2730
2731 ltac2_expr6: [
2732 | ltac2_expr5 ";" ltac2_expr6 (* ltac2 plugin *)
2733 | ltac2_expr5 (* ltac2 plugin *)
2734 ]
2735
2736 ltac2_expr5: [
2737 | "fun" LIST1 G_LTAC2_input_fun type_cast "=>" ltac2_expr6 (* ltac2 plugin *)
2738 | "let" rec_flag LIST1 G_LTAC2_let_clause SEP "with" "in" ltac2_expr6 (* ltac2 plugin *)
2739 | "match" ltac2_expr5 "with" G_LTAC2_branches "end" (* ltac2 plugin *)
2740 | "if" ltac2_expr5 "then" ltac2_expr5 "else" ltac2_expr5 (* ltac2 plugin *)
2741 | ltac2_expr4 (* ltac2 plugin *)
2742 ]
2743
2744 ltac2_expr4: [
2745 | ltac2_expr3 (* ltac2 plugin *)
2746 ]
2747
2748 ltac2_expr3: [
2749 | ltac2_expr2 "," LIST1 ltac2_expr2 SEP "," (* ltac2 plugin *)
2750 | ltac2_expr2 (* ltac2 plugin *)
2751 ]
2752
2753 ltac2_expr2: [
2754 | ltac2_expr1 "::" ltac2_expr2 (* ltac2 plugin *)
2755 | ltac2_expr1 (* ltac2 plugin *)
2756 ]
2757
2758 ltac2_expr1: [
2759 | ltac2_expr1 LIST1 ltac2_expr0 (* ltac2 plugin *)
2760 | ltac2_expr1 ".(" Prim.qualid ")" (* ltac2 plugin *)
2761 | ltac2_expr1 ".(" Prim.qualid ")" ":=" ltac2_expr5 (* ltac2 plugin *)
2762 | ltac2_expr0 (* ltac2 plugin *)
2763 ]
2764
2765 ltac2_expr0: [
2766 | "(" ltac2_expr6 ")" (* ltac2 plugin *)
2767 | "(" ltac2_expr6 ":" ltac2_type5 ")" (* ltac2 plugin *)
2768 | "()" (* ltac2 plugin *)
2769 | "(" ")" (* ltac2 plugin *)
2770 | array_literal (* ltac2 plugin *)
2771 | list_literal (* ltac2 plugin *)
2772 | "{" test_qualid_with_or_lpar_or_rbrac ltac2_expr0 "with" tac2rec_fieldexprs "}" (* ltac2 plugin *)
2773 | "{" tac2rec_fieldexprs "}" (* ltac2 plugin *)
2774 | ltac2_atom (* ltac2 plugin *)
2775 ]
2776
2777 array_literal: [
2778 | test_array_opening "[" "|" LIST0 ltac2_expr5 SEP ";" test_array_closing "|" "]" (* ltac2 plugin *)
2779 ]
2780
2781 list_literal: [
2782 | "[" LIST0 ltac2_expr5 SEP ";" "]" (* ltac2 plugin *)
2783 ]
2784
2785 G_LTAC2_branches: [
2786 | (* ltac2 plugin *)
2787 | "|" LIST1 branch SEP "|" (* ltac2 plugin *)
2788 | LIST1 branch SEP "|" (* ltac2 plugin *)
2789 ]
2790
2791 branch: [
2792 | atomic_tac2pat "=>" ltac2_expr6 (* ltac2 plugin *)
2793 ]
2794
2795 rec_flag: [
2796 | "rec" (* ltac2 plugin *)
2797 | (* ltac2 plugin *)
2798 ]
2799
2800 mut_flag: [
2801 | "mutable" (* ltac2 plugin *)
2802 | (* ltac2 plugin *)
2803 ]
2804
2805 ltac2_typevar: [
2806 | "'" Prim.ident (* ltac2 plugin *)
2807 ]
2808
2809 ltac2_atom: [
2810 | Prim.integer (* ltac2 plugin *)
2811 | Prim.string (* ltac2 plugin *)
2812 | Prim.qualid (* ltac2 plugin *)
2813 | "@" Prim.ident (* ltac2 plugin *)
2814 | "&" identref (* ltac2 plugin *)
2815 | "'" Constr.constr (* ltac2 plugin *)
2816 | "constr" ":" "(" Constr.lconstr ")" (* ltac2 plugin *)
2817 | "open_constr" ":" "(" Constr.lconstr ")" (* ltac2 plugin *)
2818 | "preterm" ":" "(" Constr.lconstr ")" (* ltac2 plugin *)
2819 | "ident" ":" "(" identref ")" (* ltac2 plugin *)
2820 | "pat" ":" "(" Constr.cpattern ")" (* ltac2 plugin *)
2821 | "reference" ":" "(" globref ")" (* ltac2 plugin *)
2822 | "ltac1" ":" "(" ltac1_expr_in_env ")" (* ltac2_ltac1 plugin *)
2823 | "ltac1val" ":" "(" ltac1_expr_in_env ")" (* ltac2_ltac1 plugin *)
2824 ]
2825
2826 tac2expr_in_env: [
2827 | test_ltac1_env LIST0 identref "|-" ltac2_expr6 (* ltac2 plugin *)
2828 | ltac2_expr6 (* ltac2 plugin *)
2829 ]
2830
2831 type_cast: [
2832 | (* ltac2 plugin *)
2833 | ":" ltac2_type5 (* ltac2 plugin *)
2834 ]
2835
2836 G_LTAC2_let_clause: [
2837 | let_binder type_cast ":=" ltac2_expr6 (* ltac2 plugin *)
2838 ]
2839
2840 let_binder: [
2841 | LIST1 G_LTAC2_input_fun (* ltac2 plugin *)
2842 ]
2843
2844 ltac2_type5: [
2845 | ltac2_type2 "->" ltac2_type5 (* ltac2 plugin *)
2846 | ltac2_type2 (* ltac2 plugin *)
2847 ]
2848
2849 ltac2_type2: [
2850 | ltac2_type1 "*" LIST1 ltac2_type1 SEP "*" (* ltac2 plugin *)
2851 | ltac2_type1 (* ltac2 plugin *)
2852 ]
2853
2854 ltac2_type1: [
2855 | ltac2_type1 Prim.qualid (* ltac2 plugin *)
2856 | ltac2_type0 (* ltac2 plugin *)
2857 ]
2858
2859 ltac2_type0: [
2860 | "(" LIST1 ltac2_type5 SEP "," ")" OPT Prim.qualid (* ltac2 plugin *)
2861 | ltac2_typevar (* ltac2 plugin *)
2862 | "_" (* ltac2 plugin *)
2863 | Prim.qualid (* ltac2 plugin *)
2864 ]
2865
2866 G_LTAC2_binder: [
2867 | "_" (* ltac2 plugin *)
2868 | Prim.ident (* ltac2 plugin *)
2869 ]
2870
2871 G_LTAC2_input_fun: [
2872 | tac2pat0 (* ltac2 plugin *)
2873 ]
2874
2875 tac2def_body: [
2876 | G_LTAC2_binder LIST0 G_LTAC2_input_fun type_cast ":=" ltac2_expr6 (* ltac2 plugin *)
2877 ]
2878
2879 tac2def_val: [
2880 | mut_flag rec_flag LIST1 tac2def_body SEP "with" (* ltac2 plugin *)
2881 ]
2882
2883 tac2def_mut: [
2884 | "Set" Prim.qualid OPT [ "as" identref ] ":=" ltac2_expr6 (* ltac2 plugin *)
2885 ]
2886
2887 tac2typ_knd: [
2888 | ltac2_type5 (* ltac2 plugin *)
2889 | "[" ".." "]" (* ltac2 plugin *)
2890 | "[" tac2alg_constructors "]" (* ltac2 plugin *)
2891 | "{" tac2rec_fields "}" (* ltac2 plugin *)
2892 ]
2893
2894 tac2alg_constructors: [
2895 | "|" LIST1 tac2alg_constructor SEP "|" (* ltac2 plugin *)
2896 | LIST0 tac2alg_constructor SEP "|" (* ltac2 plugin *)
2897 ]
2898
2899 tac2alg_constructor: [
2900 | quoted_attributes Prim.identref (* ltac2 plugin *)
2901 | quoted_attributes Prim.identref "(" LIST0 ltac2_type5 SEP "," ")" (* ltac2 plugin *)
2902 ]
2903
2904 tac2rec_fields: [
2905 | tac2rec_field ";" tac2rec_fields (* ltac2 plugin *)
2906 | tac2rec_field ";" (* ltac2 plugin *)
2907 | tac2rec_field (* ltac2 plugin *)
2908 | (* ltac2 plugin *)
2909 ]
2910
2911 tac2rec_field: [
2912 | mut_flag Prim.ident ":" ltac2_type5 (* ltac2 plugin *)
2913 ]
2914
2915 tac2rec_fieldexprs: [
2916 | tac2rec_fieldexpr ";" tac2rec_fieldexprs (* ltac2 plugin *)
2917 | tac2rec_fieldexpr ";" (* ltac2 plugin *)
2918 | tac2rec_fieldexpr (* ltac2 plugin *)
2919 | (* ltac2 plugin *)
2920 ]
2921
2922 tac2rec_fieldexpr: [
2923 | Prim.qualid OPT [ ":=" ltac2_expr1 ] (* ltac2 plugin *)
2924 ]
2925
2926 tac2rec_fieldpats: [
2927 | tac2rec_fieldpat ";" tac2rec_fieldpats (* ltac2 plugin *)
2928 | tac2rec_fieldpat ";" (* ltac2 plugin *)
2929 | tac2rec_fieldpat (* ltac2 plugin *)
2930 | (* ltac2 plugin *)
2931 ]
2932
2933 tac2rec_fieldpat: [
2934 | Prim.qualid OPT [ ":=" tac2pat3 ] (* ltac2 plugin *)
2935 ]
2936
2937 tac2typ_prm: [
2938 | (* ltac2 plugin *)
2939 | ltac2_typevar (* ltac2 plugin *)
2940 | "(" LIST1 ltac2_typevar SEP "," ")" (* ltac2 plugin *)
2941 ]
2942
2943 tac2typ_def: [
2944 | tac2typ_prm Prim.qualid tac2type_body (* ltac2 plugin *)
2945 ]
2946
2947 tac2type_body: [
2948 | (* ltac2 plugin *)
2949 | ":=" tac2typ_knd (* ltac2 plugin *)
2950 | "::=" tac2typ_knd (* ltac2 plugin *)
2951 ]
2952
2953 tac2def_typ: [
2954 | "Type" rec_flag LIST1 tac2typ_def SEP "with" (* ltac2 plugin *)
2955 ]
2956
2957 tac2def_ext: [
2958 | "@" "external" identref ":" ltac2_type5 ":=" Prim.string Prim.string (* ltac2 plugin *)
2959 ]
2960
2961 syn_node: [
2962 | "_" (* ltac2 plugin *)
2963 | qualid (* ltac2 plugin *)
2964 ]
2965
2966 ltac2_syntax_class: [
2967 | Prim.string (* ltac2 plugin *)
2968 | Prim.integer (* ltac2 plugin *)
2969 | syn_node (* ltac2 plugin *)
2970 | syn_node "(" LIST1 ltac2_syntax_class SEP "," ")" (* ltac2 plugin *)
2971 ]
2972
2973 syn_level: [
2974 | (* ltac2 plugin *)
2975 | ":" Prim.natural (* ltac2 plugin *)
2976 | ":" qualid OPT [ "(" Prim.natural ")" ] (* ltac2 plugin *)
2977 ]
2978
2979 tac2def_syn: [
2980 | LIST1 ltac2_syntax_class syn_level ":=" ltac2_expr6 (* ltac2 plugin *)
2981 ]
2982
2983 tac2abbrev_syn: [
2984 | Prim.identref ":=" ltac2_expr6 (* ltac2 plugin *)
2985 ]
2986
2987 globref: [
2988 | "&" Prim.ident (* ltac2 plugin *)
2989 | Prim.qualid (* ltac2 plugin *)
2990 ]
2991
2992 anti: [
2993 | "$" Prim.ident (* ltac2 plugin *)
2994 ]
2995
2996 ident_or_anti: [
2997 | identref (* ltac2 plugin *)
2998 | "$" Prim.ident (* ltac2 plugin *)
2999 ]
3000
3001 lnatural: [
3002 | Prim.natural (* ltac2 plugin *)
3003 ]
3004
3005 q_ident: [
3006 | ident_or_anti (* ltac2 plugin *)
3007 ]
3008
3009 qhyp: [
3010 | anti (* ltac2 plugin *)
3011 | lnatural (* ltac2 plugin *)
3012 | identref (* ltac2 plugin *)
3013 ]
3014
3015 G_LTAC2_simple_binding: [
3016 | "(" qhyp ":=" Constr.lconstr ")" (* ltac2 plugin *)
3017 ]
3018
3019 G_LTAC2_bindings: [
3020 | test_lpar_idnum_coloneq LIST1 G_LTAC2_simple_binding (* ltac2 plugin *)
3021 | LIST1 Constr.constr (* ltac2 plugin *)
3022 ]
3023
3024 q_bindings: [
3025 | G_LTAC2_bindings (* ltac2 plugin *)
3026 ]
3027
3028 q_with_bindings: [
3029 | G_LTAC2_with_bindings (* ltac2 plugin *)
3030 ]
3031
3032 G_LTAC2_intropatterns: [
3033 | LIST0 nonsimple_intropattern (* ltac2 plugin *)
3034 ]
3035
3036 G_LTAC2_or_and_intropattern: [
3037 | "[" LIST1 G_LTAC2_intropatterns SEP "|" "]" (* ltac2 plugin *)
3038 | "()" (* ltac2 plugin *)
3039 | "(" G_LTAC2_simple_intropattern ")" (* ltac2 plugin *)
3040 | "(" G_LTAC2_simple_intropattern "," LIST1 G_LTAC2_simple_intropattern SEP "," ")" (* ltac2 plugin *)
3041 | "(" G_LTAC2_simple_intropattern "&" LIST1 G_LTAC2_simple_intropattern SEP "&" ")" (* ltac2 plugin *)
3042 ]
3043
3044 G_LTAC2_equality_intropattern: [
3045 | "->" (* ltac2 plugin *)
3046 | "<-" (* ltac2 plugin *)
3047 | test_leftsquarebracket_equal "[" "=" G_LTAC2_intropatterns "]" (* ltac2 plugin *)
3048 ]
3049
3050 G_LTAC2_naming_intropattern: [
3051 | LEFTQMARK identref (* ltac2 plugin *)
3052 | "?$" identref (* ltac2 plugin *)
3053 | "?" (* ltac2 plugin *)
3054 | ident_or_anti (* ltac2 plugin *)
3055 ]
3056
3057 nonsimple_intropattern: [
3058 | G_LTAC2_simple_intropattern (* ltac2 plugin *)
3059 | "*" (* ltac2 plugin *)
3060 | "**" (* ltac2 plugin *)
3061 ]
3062
3063 G_LTAC2_simple_intropattern: [
3064 | G_LTAC2_simple_intropattern_closed LIST0 [ "%" Constr.term0 ] (* ltac2 plugin *)
3065 ]
3066
3067 G_LTAC2_simple_intropattern_closed: [
3068 | G_LTAC2_equality_intropattern (* ltac2 plugin *)
3069 | G_LTAC2_or_and_intropattern (* ltac2 plugin *)
3070 | "_" (* ltac2 plugin *)
3071 | G_LTAC2_naming_intropattern (* ltac2 plugin *)
3072 ]
3073
3074 q_intropatterns: [
3075 | G_LTAC2_intropatterns (* ltac2 plugin *)
3076 ]
3077
3078 q_intropattern: [
3079 | G_LTAC2_simple_intropattern (* ltac2 plugin *)
3080 ]
3081
3082 nat_or_anti: [
3083 | lnatural (* ltac2 plugin *)
3084 | "$" Prim.ident (* ltac2 plugin *)
3085 ]
3086
3087 G_LTAC2_eqn_ipat: [
3088 | "eqn" ":" G_LTAC2_naming_intropattern (* ltac2 plugin *)
3089 | (* ltac2 plugin *)
3090 ]
3091
3092 G_LTAC2_with_bindings: [
3093 | "with" G_LTAC2_bindings (* ltac2 plugin *)
3094 | (* ltac2 plugin *)
3095 ]
3096
3097 G_LTAC2_constr_with_bindings: [
3098 | Constr.constr G_LTAC2_with_bindings (* ltac2 plugin *)
3099 ]
3100
3101 G_LTAC2_destruction_arg: [
3102 | lnatural (* ltac2 plugin *)
3103 | identref (* ltac2 plugin *)
3104 | G_LTAC2_constr_with_bindings (* ltac2 plugin *)
3105 ]
3106
3107 q_destruction_arg: [
3108 | G_LTAC2_destruction_arg (* ltac2 plugin *)
3109 ]
3110
3111 G_LTAC2_as_or_and_ipat: [
3112 | "as" G_LTAC2_or_and_intropattern (* ltac2 plugin *)
3113 | (* ltac2 plugin *)
3114 ]
3115
3116 G_LTAC2_occs_nums: [
3117 | LIST1 nat_or_anti (* ltac2 plugin *)
3118 | "-" nat_or_anti LIST0 nat_or_anti (* ltac2 plugin *)
3119 ]
3120
3121 G_LTAC2_occs: [
3122 | "at" G_LTAC2_occs_nums (* ltac2 plugin *)
3123 | (* ltac2 plugin *)
3124 ]
3125
3126 G_LTAC2_hypident: [
3127 | ident_or_anti (* ltac2 plugin *)
3128 | "(" "type" "of" ident_or_anti ")" (* ltac2 plugin *)
3129 | "(" "value" "of" ident_or_anti ")" (* ltac2 plugin *)
3130 ]
3131
3132 G_LTAC2_hypident_occ: [
3133 | G_LTAC2_hypident G_LTAC2_occs (* ltac2 plugin *)
3134 ]
3135
3136 G_LTAC2_in_clause: [
3137 | "*" G_LTAC2_occs (* ltac2 plugin *)
3138 | "*" "|-" G_LTAC2_concl_occ (* ltac2 plugin *)
3139 | LIST0 G_LTAC2_hypident_occ SEP "," "|-" G_LTAC2_concl_occ (* ltac2 plugin *)
3140 | LIST0 G_LTAC2_hypident_occ SEP "," (* ltac2 plugin *)
3141 ]
3142
3143 clause: [
3144 | "in" G_LTAC2_in_clause (* ltac2 plugin *)
3145 | "at" G_LTAC2_occs_nums (* ltac2 plugin *)
3146 ]
3147
3148 q_clause: [
3149 | clause (* ltac2 plugin *)
3150 ]
3151
3152 G_LTAC2_concl_occ: [
3153 | "*" G_LTAC2_occs (* ltac2 plugin *)
3154 | (* ltac2 plugin *)
3155 ]
3156
3157 G_LTAC2_induction_clause: [
3158 | G_LTAC2_destruction_arg G_LTAC2_as_or_and_ipat G_LTAC2_eqn_ipat OPT clause (* ltac2 plugin *)
3159 ]
3160
3161 q_induction_clause: [
3162 | G_LTAC2_induction_clause (* ltac2 plugin *)
3163 ]
3164
3165 G_LTAC2_conversion: [
3166 | Constr.constr (* ltac2 plugin *)
3167 | Constr.constr "with" Constr.constr (* ltac2 plugin *)
3168 ]
3169
3170 q_conversion: [
3171 | G_LTAC2_conversion (* ltac2 plugin *)
3172 ]
3173
3174 q_orient: [
3175 | "->" (* ltac2 plugin *)
3176 | "<-" (* ltac2 plugin *)
3177 | (* ltac2 plugin *)
3178 ]
3179
3180 G_LTAC2_rewriter: [
3181 | "!" G_LTAC2_constr_with_bindings (* ltac2 plugin *)
3182 | [ "?" | LEFTQMARK ] G_LTAC2_constr_with_bindings (* ltac2 plugin *)
3183 | lnatural "!" G_LTAC2_constr_with_bindings (* ltac2 plugin *)
3184 | lnatural [ "?" | LEFTQMARK ] G_LTAC2_constr_with_bindings (* ltac2 plugin *)
3185 | lnatural G_LTAC2_constr_with_bindings (* ltac2 plugin *)
3186 | G_LTAC2_constr_with_bindings (* ltac2 plugin *)
3187 ]
3188
3189 G_LTAC2_oriented_rewriter: [
3190 | q_orient G_LTAC2_rewriter (* ltac2 plugin *)
3191 ]
3192
3193 q_rewriting: [
3194 | G_LTAC2_oriented_rewriter (* ltac2 plugin *)
3195 ]
3196
3197 G_LTAC2_tactic_then_last: [
3198 | "|" LIST0 ( OPT ltac2_expr6 ) SEP "|" (* ltac2 plugin *)
3199 | (* ltac2 plugin *)
3200 ]
3201
3202 G_LTAC2_for_each_goal: [
3203 | ltac2_expr6 "|" G_LTAC2_for_each_goal (* ltac2 plugin *)
3204 | ltac2_expr6 ".." G_LTAC2_tactic_then_last (* ltac2 plugin *)
3205 | ".." G_LTAC2_tactic_then_last (* ltac2 plugin *)
3206 | ltac2_expr6 (* ltac2 plugin *)
3207 | "|" G_LTAC2_for_each_goal (* ltac2 plugin *)
3208 | (* ltac2 plugin *)
3209 ]
3210
3211 q_dispatch: [
3212 | G_LTAC2_for_each_goal (* ltac2 plugin *)
3213 ]
3214
3215 q_occurrences: [
3216 | G_LTAC2_occs (* ltac2 plugin *)
3217 ]
3218
3219 ltac2_red_flag: [
3220 | "beta" (* ltac2 plugin *)
3221 | "iota" (* ltac2 plugin *)
3222 | "match" (* ltac2 plugin *)
3223 | "fix" (* ltac2 plugin *)
3224 | "cofix" (* ltac2 plugin *)
3225 | "zeta" (* ltac2 plugin *)
3226 | "delta" G_LTAC2_delta_flag (* ltac2 plugin *)
3227 | "head" (* ltac2 plugin *)
3228 ]
3229
3230 refglobal: [
3231 | "&" Prim.ident (* ltac2 plugin *)
3232 | Prim.qualid (* ltac2 plugin *)
3233 | "$" Prim.ident (* ltac2 plugin *)
3234 ]
3235
3236 q_reference: [
3237 | refglobal (* ltac2 plugin *)
3238 ]
3239
3240 refglobals: [
3241 | LIST1 refglobal (* ltac2 plugin *)
3242 ]
3243
3244 G_LTAC2_delta_flag: [
3245 | "-" "[" refglobals "]" (* ltac2 plugin *)
3246 | "[" refglobals "]" (* ltac2 plugin *)
3247 | (* ltac2 plugin *)
3248 ]
3249
3250 G_LTAC2_strategy_flag: [
3251 | LIST1 ltac2_red_flag (* ltac2 plugin *)
3252 | G_LTAC2_delta_flag (* ltac2 plugin *)
3253 ]
3254
3255 q_strategy_flag: [
3256 | G_LTAC2_strategy_flag (* ltac2 plugin *)
3257 ]
3258
3259 hintdb: [
3260 | "*" (* ltac2 plugin *)
3261 | LIST1 ident_or_anti (* ltac2 plugin *)
3262 ]
3263
3264 q_hintdb: [
3265 | hintdb (* ltac2 plugin *)
3266 ]
3267
3268 G_LTAC2_match_pattern: [
3269 | "context" OPT Prim.ident "[" Constr.cpattern "]" (* ltac2 plugin *)
3270 | Constr.cpattern (* ltac2 plugin *)
3271 ]
3272
3273 G_LTAC2_match_rule: [
3274 | G_LTAC2_match_pattern "=>" ltac2_expr6 (* ltac2 plugin *)
3275 ]
3276
3277 G_LTAC2_match_list: [
3278 | LIST1 G_LTAC2_match_rule SEP "|" (* ltac2 plugin *)
3279 | "|" LIST1 G_LTAC2_match_rule SEP "|" (* ltac2 plugin *)
3280 ]
3281
3282 q_constr_matching: [
3283 | G_LTAC2_match_list (* ltac2 plugin *)
3284 ]
3285
3286 gmatch_hyp_pattern: [
3287 | Prim.name ":" G_LTAC2_match_pattern (* ltac2 plugin *)
3288 | Prim.name ":=" "[" G_LTAC2_match_pattern "]" ":" G_LTAC2_match_pattern (* ltac2 plugin *)
3289 | Prim.name ":=" G_LTAC2_match_pattern (* ltac2 plugin *)
3290 ]
3291
3292 gmatch_pattern: [
3293 | "[" LIST0 gmatch_hyp_pattern SEP "," "|-" G_LTAC2_match_pattern "]" (* ltac2 plugin *)
3294 ]
3295
3296 gmatch_rule: [
3297 | gmatch_pattern "=>" ltac2_expr6 (* ltac2 plugin *)
3298 ]
3299
3300 goal_match_list: [
3301 | OPT "|" LIST1 gmatch_rule SEP "|" (* ltac2 plugin *)
3302 ]
3303
3304 q_goal_matching: [
3305 | goal_match_list (* ltac2 plugin *)
3306 ]
3307
3308 move_location: [
3309 | "at" "top" (* ltac2 plugin *)
3310 | "at" "bottom" (* ltac2 plugin *)
3311 | "after" ident_or_anti (* ltac2 plugin *)
3312 | "before" ident_or_anti (* ltac2 plugin *)
3313 ]
3314
3315 q_move_location: [
3316 | move_location (* ltac2 plugin *)
3317 ]
3318
3319 G_LTAC2_as_name: [
3320 | (* ltac2 plugin *)
3321 | "as" ident_or_anti (* ltac2 plugin *)
3322 ]
3323
3324 pose: [
3325 | test_lpar_id_coloneq "(" ident_or_anti ":=" Constr.lconstr ")" (* ltac2 plugin *)
3326 | Constr.constr G_LTAC2_as_name (* ltac2 plugin *)
3327 ]
3328
3329 q_pose: [
3330 | pose (* ltac2 plugin *)
3331 ]
3332
3333 G_LTAC2_as_ipat: [
3334 | "as" G_LTAC2_simple_intropattern (* ltac2 plugin *)
3335 | (* ltac2 plugin *)
3336 ]
3337
3338 G_LTAC2_by_tactic: [
3339 | "by" ltac2_expr5 (* ltac2 plugin *)
3340 | (* ltac2 plugin *)
3341 ]
3342
3343 assertion: [
3344 | test_lpar_id_coloneq "(" ident_or_anti ":=" Constr.lconstr ")" (* ltac2 plugin *)
3345 | test_lpar_id_colon "(" ident_or_anti ":" Constr.lconstr ")" G_LTAC2_by_tactic (* ltac2 plugin *)
3346 | Constr.constr G_LTAC2_as_ipat G_LTAC2_by_tactic (* ltac2 plugin *)
3347 ]
3348
3349 q_assert: [
3350 | assertion (* ltac2 plugin *)
3351 ]
3352
3353 ltac2_entry: [
3354 | tac2def_val (* ltac2 plugin *)
3355 | tac2def_typ (* ltac2 plugin *)
3356 | tac2def_ext (* ltac2 plugin *)
3357 | tac2def_mut (* ltac2 plugin *)
3358 ]
3359
3360 ltac2def_syn: [
3361 | tac2def_syn (* ltac2 plugin *)
3362 ]
3363
3364 ltac2abbrev_syn: [
3365 | tac2abbrev_syn (* ltac2 plugin *)
3366 ]
3367
3368 ltac2_expr: [
3369 | _ltac2_expr (* ltac2 plugin *)
3370 ]
3371
3372 ltac2_selector: [
3373 | toplevel_selector (* ltac2 plugin *)
3374 ]
3375
3376 ltac2_use_default: [
3377 | "." (* ltac2 plugin *)
3378 | "..." (* ltac2 plugin *)
3379 ]
3380
3381 tac2mode: [
3382 | OPT ltac2_selector ltac2_expr6 ltac2_use_default (* ltac2 plugin *)
3383 | "par" ":" ltac2_expr6 "." (* ltac2 plugin *)
3384 | subprf (* ltac2 plugin *)
3385 | OPT toplevel_selector subprf_with_selector (* ltac2 plugin *)
3386 ]
3387
3388 test_ltac2_ident: [
3389 | test_ltac2_ident_aux (* ltac2 plugin *)
3390 ]
3391
3392 ltac1_expr_in_env: [
3393 | test_ltac1_env LIST0 identref "|-" ltac_expr5 (* ltac2_ltac1 plugin *)
3394 | ltac_expr5 (* ltac2_ltac1 plugin *)
3395 ]
3396