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