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 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026 8027 8028 8029 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049 8050 8051 8052 8053 8054 8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268 8269 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367 8368 8369 8370 8371 8372 8373 8374 8375 8376 8377 8378 8379 8380 8381 8382 8383 8384 8385 8386 8387 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403 8404 8405 8406 8407 8408 8409 8410 8411 8412 8413 8414 8415 8416 8417 8418 8419 8420 8421 8422 8423 8424 8425 8426 8427 8428 8429 8430 8431 8432 8433 8434 8435 8436 8437 8438 8439 8440 8441 8442 8443 8444 8445 8446 8447 8448 8449 8450 8451 8452 8453 8454 8455 8456 8457 8458 8459 8460 8461 8462 8463 8464 8465 8466 8467 8468 8469 8470 8471 8472 8473 8474 8475 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 8498 8499 8500 8501 8502 8503 8504 8505 8506 8507 8508 8509 8510 8511 8512 8513 8514 8515 8516 8517 8518 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529 8530 8531 8532 8533 8534 8535 8536 8537 8538 8539 8540 8541 8542 8543 8544 8545 8546 8547 8548 8549 8550 8551 8552 8553 8554 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578 8579 8580 8581 8582 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691 8692 8693 8694 8695 8696 8697 8698 8699 8700 8701 8702 8703 8704 8705 8706 8707 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730 8731 8732 8733 8734 8735 8736 8737 8738 8739 8740 8741 8742 8743 8744 8745 8746 8747 8748 8749 8750 8751 8752 8753 8754 8755 8756 8757 8758 8759 8760 8761 8762 8763 8764 8765 8766 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809 8810 8811 8812 8813 8814 8815 8816 8817 8818 8819 8820 8821 8822 8823 8824 8825 8826 8827 8828 8829 8830 8831 8832 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848 8849 8850 8851 8852 8853 8854 8855 8856 8857 8858 8859 8860 8861 8862 8863 8864 8865 8866 8867 8868 8869 8870 8871 8872 8873 8874 8875 8876 8877 8878 8879 8880 8881 8882 8883 8884 8885 8886 8887 8888 8889 8890 8891 8892 8893 8894 8895 8896 8897 8898 8899 8900 8901 8902 8903 8904 8905 8906 8907 8908 8909 8910 8911 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927 8928 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026 9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048 9049 9050 9051 9052 9053 9054 9055 9056 9057 9058 9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084 9085 9086 9087 9088 9089 9090 9091 9092 9093 9094 9095 9096 9097 9098 9099 9100 9101 9102 9103 9104 9105 9106 9107 9108 9109 9110 9111 9112 9113 9114 9115 9116 9117 9118 9119 9120 9121 9122 9123 9124 9125 9126 9127 9128 9129 9130 9131 9132 9133 9134 9135 9136 9137 9138 9139 9140 9141 9142 9143 9144 9145 9146 9147 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163 9164 9165 9166 9167 9168 9169 9170 9171 9172 9173 9174 9175 9176 9177 9178 9179 9180 9181 9182 9183 9184 9185 9186 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202 9203 9204 9205 9206 9207 9208 9209 9210 9211 9212 9213 9214 9215 9216 9217 9218 9219 9220 9221 9222 9223 9224 9225 9226 9227 9228 9229 9230 9231 9232 9233 9234 9235 9236 9237 9238 9239 9240 9241 9242 9243 9244 9245 9246 9247 9248 9249 9250 9251 9252 9253 9254 9255 9256 9257 9258 9259 9260 9261 9262 9263 9264 9265 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281 9282 9283 9284 9285 9286 9287 9288 9289 9290 9291 9292 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320 9321 9322 9323 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334 9335 9336 9337 9338 9339 9340 9341 9342 9343 9344 9345 9346 9347 9348 9349 9350 9351 9352 9353 9354 9355 9356 9357 9358 9359 9360 9361 9362 9363 9364 9365 9366 9367 9368 9369 9370 9371 9372 9373 9374 9375 9376 9377 9378 9379 9380 9381 9382 9383 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399 9400 9401 9402 9403 9404 9405 9406 9407 9408 9409 9410 9411 9412 9413 9414 9415 9416 9417 9418 9419 9420 9421 9422 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448 9449 9450 9451 9452 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498 9499 9500 9501 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517 9518 9519 9520 9521 9522 9523 9524 9525 9526 9527 9528 9529 9530 9531 9532 9533 9534 9535 9536 9537 9538 9539 9540 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556 9557 9558 9559 9560 9561 9562 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 9820 9821 9822 9823 9824 9825 9826 9827 9828 9829 9830 9831 9832 9833 9834 9835 9836 9837 9838 9839 9840 9841 9842 9843 9844 9845 9846 9847 9848 9849 9850 9851 9852 9853 9854 9855 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885 9886 9887 9888 9889 9890 9891 9892 9893 9894 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 9927 9928 9929 9930 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946 9947 9948 9949 9950 9951 9952 9953 9954 9955 9956 9957 9958 9959 9960 9961 9962 9963 9964 9965 9966 9967 9968 9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467 10468 10469 10470 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 10564 10565 10566 10567 10568 10569 10570 10571 10572 10573 10574 10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594 10595 10596 10597 10598 10599 10600 10601 10602 10603 10604 10605 10606 10607 10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 10651 10652 10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 10820 10821 10822 10823 10824 10825 10826 10827 10828 10829 10830 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 10960 10961 10962 10963 10964 10965 10966 10967 10968 10969 10970 10971 10972 10973 10974 10975 10976 10977 10978 10979 10980 10981 10982 10983 10984 10985 10986 10987 10988 10989 10990 10991 10992 10993 10994 10995 10996 10997 10998 10999 11000 11001 11002 11003 11004 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 11250 11251 11252 11253 11254 11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330 11331 11332 11333 11334 11335 11336 11337 11338 11339 11340 11341 11342 11343 11344 11345 11346 11347 11348 11349 11350 11351 11352 11353 11354 11355 11356 11357 11358 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 11372 11373 11374 11375 11376 11377 11378 11379 11380 11381 11382 11383 11384 11385 11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 11450 11451 11452 11453 11454 11455 11456 11457 11458 11459 11460 11461 11462 11463 11464 11465 11466 11467 11468 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486 11487 11488 11489 11490 11491 11492 11493 11494 11495 11496 11497 11498 11499 11500 11501 11502 11503 11504 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 11604 11605 11606 11607 11608 11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 11634 11635 11636 11637 11638 11639 11640 11641 11642 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660 11661 11662 11663 11664 11665 11666 11667 11668 11669 11670 11671 11672 11673 11674 11675 11676 11677 11678 11679 11680 11681 11682 11683 11684 11685 11686 11687 11688 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710 11711 11712 11713 11714 11715 11716 11717 11718 11719 11720 11721 11722 11723 11724 11725 11726 11727 11728 11729 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 11765 11766 11767 11768 11769 11770 11771 11772 11773 11774 11775 11776 11777 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 11931 11932 11933 11934 11935 11936 11937 11938 11939 11940 11941 11942 11943 11944 11945 11946 11947 11948 11949 11950 11951 11952 11953 11954 11955 11956 11957 11958 11959 11960 11961 11962 11963 11964 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976 11977 11978 11979 11980 11981 11982 11983 11984 11985 11986 11987 11988 11989 11990 11991 11992 11993 11994 11995 11996 11997 11998 11999 12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 12069 12070 12071 12072 12073 12074 12075 12076 12077 12078 12079 12080 12081 12082 12083 12084 12085 12086 12087 12088 12089 12090 12091 12092 12093 12094 12095 12096 12097 12098 12099 12100 12101 12102 12103 12104 12105 12106 12107 12108 12109 12110 12111 12112 12113 12114 12115 12116 12117 12118 12119 12120 12121 12122 12123 12124 12125 12126 12127 12128 12129 12130 12131 12132 12133 12134 12135 12136 12137 12138 12139 12140 12141 12142 12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 12208 12209 12210 12211 12212 12213 12214 12215 12216 12217 12218 12219 12220 12221 12222 12223 12224 12225 12226 12227 12228 12229 12230 12231 12232 12233 12234 12235 12236 12237 12238 12239 12240 12241 12242 12243 12244 12245 12246 12247 12248 12249 12250 12251 12252 12253 12254 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 12281 12282 12283 12284 12285 12286 12287 12288 12289 12290 12291 12292 12293 12294 12295 12296 12297 12298 12299 12300 12301 12302 12303 12304 12305 12306 12307 12308 12309 12310 12311 12312 12313 12314 12315 12316 12317 12318 12319 12320 12321 12322 12323 12324 12325 12326 12327 12328 12329 12330 12331 12332 12333 12334 12335 12336 12337 12338 12339 12340 12341 12342 12343 12344 12345 12346 12347 12348 12349 12350 12351 12352 12353 12354 12355 12356 12357 12358 12359 12360 12361 12362 12363 12364 12365 12366 12367 12368 12369 12370 12371 12372 12373 12374 12375 12376 12377 12378 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388 12389 12390 12391 12392 12393 12394 12395 12396 12397 12398 12399 12400 12401 12402 12403 12404 12405 12406 12407 12408 12409 12410 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 12476 12477 12478 12479 12480 12481 12482 12483 12484 12485 12486 12487 12488 12489 12490 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500 12501 12502 12503 12504 12505 12506 12507 12508 12509 12510 12511 12512 12513 12514 12515 12516 12517 12518 12519 12520 12521 12522 12523 12524 12525 12526 12527 12528 12529 12530 12531 12532 12533 12534 12535 12536 12537 12538 12539 12540 12541 12542 12543 12544 12545 12546 12547 12548 12549 12550 12551 12552 12553 12554 12555 12556 12557 12558 12559 12560 12561 12562 12563 12564 12565 12566 12567 12568 12569 12570 12571 12572 12573 12574 12575 12576 12577 12578 12579 12580 12581 12582 12583 12584 12585 12586 12587 12588 12589 12590 12591 12592 12593 12594 12595 12596 12597 12598 12599 12600 12601 12602 12603 12604 12605 12606 12607 12608 12609 12610 12611 12612 12613 12614 12615 12616 12617 12618 12619 12620 12621 12622 12623 12624 12625 12626 12627 12628 12629 12630 12631 12632 12633 12634 12635 12636 12637 12638 12639 12640 12641 12642 12643 12644 12645 12646 12647 12648 12649 12650 12651 12652 12653 12654 12655 12656 12657 12658 12659 12660 12661 12662 12663 12664 12665 12666 12667 12668 12669 12670 12671 12672 12673 12674 12675 12676 12677 12678 12679 12680 12681 12682 12683 12684 12685 12686 12687 12688 12689 12690 12691 12692 12693 12694 12695 12696 12697 12698 12699 12700 12701 12702 12703 12704 12705 12706 12707 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770 12771 12772 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 12871 12872 12873 12874 12875 12876 12877 12878 12879 12880 12881 12882 12883 12884 12885 12886 12887 12888 12889 12890 12891 12892 12893 12894 12895 12896 12897 12898 12899 12900 12901 12902 12903 12904 12905 12906 12907 12908 12909 12910 12911 12912 12913 12914 12915 12916 12917 12918 12919 12920 12921 12922 12923 12924 12925 12926 12927 12928 12929 12930 12931 12932 12933 12934 12935 12936 12937 12938 12939 12940 12941 12942 12943 12944 12945 12946 12947 12948 12949 12950 12951 12952 12953 12954 12955 12956 12957 12958 12959 12960 12961 12962 12963 12964 12965 12966 12967 12968 12969 12970 12971 12972 12973 12974 12975 12976 12977 12978 12979 12980 12981 12982 12983 12984 12985 12986 12987 12988 12989 12990 12991 12992 12993 12994 12995 12996 12997 12998 12999 13000 13001 13002 13003 13004 13005 13006 13007 13008 13009 13010 13011 13012 13013 13014 13015 13016 13017 13018 13019 13020 13021 13022 13023 13024 13025 13026 13027 13028 13029 13030 13031 13032 13033 13034 13035 13036 13037 13038 13039 13040 13041 13042 13043 13044 13045 13046 13047 13048 13049 13050 13051 13052 13053 13054 13055 13056 13057 13058 13059 13060 13061 13062 13063 13064 13065 13066 13067 13068 13069 13070 13071 13072 13073 13074 13075 13076 13077 13078 13079 13080 13081 13082 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094 13095 13096 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 13134 13135 13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 13147 13148 13149 13150 13151 13152 13153 13154 13155 13156 13157 13158 13159 13160 13161 13162 13163 13164 13165 13166 13167 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 13200 13201 13202 13203 13204 13205 13206 13207 13208 13209 13210 13211 13212 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 13308 13309 13310 13311 13312 13313 13314 13315 13316 13317 13318 13319 13320 13321 13322 13323 13324 13325 13326 13327 13328 13329 13330 13331 13332 13333 13334 13335 13336 13337 13338 13339 13340 13341 13342 13343 13344 13345 13346 13347 13348 13349 13350 13351 13352 13353 13354 13355 13356 13357 13358 13359 13360 13361 13362 13363 13364 13365 13366 13367 13368 13369 13370 13371 13372 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 13469 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 13483 13484 13485 13486 13487 13488 13489 13490 13491 13492 13493 13494 13495 13496 13497 13498 13499 13500 13501 13502 13503 13504 13505 13506 13507 13508 13509 13510 13511 13512 13513 13514 13515 13516 13517 13518 13519 13520 13521 13522 13523 13524 13525 13526 13527 13528 13529 13530 13531 13532 13533 13534 13535 13536 13537 13538 13539 13540 13541 13542 13543 13544 13545 13546 13547 13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 13623 13624 13625 13626 13627 13628 13629 13630 13631 13632 13633 13634 13635 13636 13637 13638 13639 13640 13641 13642 13643 13644 13645 13646 13647 13648 13649 13650 13651 13652 13653 13654 13655 13656 13657 13658 13659 13660 13661 13662 13663 13664 13665 13666 13667 13668 13669 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697 13698 13699 13700 13701 13702 13703 13704 13705 13706 13707 13708 13709 13710 13711 13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 13812 13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 13876 13877 13878 13879 13880 13881 13882 13883 13884 13885 13886 13887 13888 13889 13890 13891 13892 13893 13894 13895 13896 13897 13898 13899 13900 13901 13902 13903 13904 13905 13906 13907 13908 13909 13910 13911 13912 13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 13980 13981 13982 13983 13984 13985 13986 13987 13988 13989 13990 13991 13992 13993 13994 13995 13996 13997 13998 13999 14000 14001 14002 14003 14004 14005 14006 14007 14008 14009 14010 14011 14012 14013 14014 14015 14016 14017 14018 14019 14020 14021 14022 14023 14024 14025 14026 14027 14028 14029 14030 14031 14032 14033 14034 14035 14036 14037 14038 14039 14040 14041 14042 14043 14044 14045 14046 14047 14048 14049 14050 14051 14052 14053 14054 14055 14056 14057 14058 14059 14060 14061 14062 14063 14064 14065 14066 14067 14068 14069 14070 14071 14072 14073 14074 14075 14076 14077 14078 14079 14080 14081 14082 14083 14084 14085 14086 14087 14088 14089 14090 14091 14092 14093 14094 14095 14096 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 14109 14110 14111 14112 14113 14114 14115 14116 14117 14118 14119 14120 14121 14122 14123 14124 14125 14126 14127 14128 14129 14130 14131 14132 14133 14134 14135 14136 14137 14138 14139 14140 14141 14142 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 14159 14160 14161 14162 14163 14164 14165 14166 14167 14168 14169 14170 14171 14172 14173 14174 14175 14176 14177 14178 14179 14180 14181 14182 14183 14184 14185 14186 14187 14188 14189 14190 14191 14192 14193 14194 14195 14196 14197 14198 14199 14200 14201 14202 14203 14204 14205 14206 14207 14208 14209 14210 14211 14212 14213 14214 14215 14216 14217 14218 14219 14220 14221 14222 14223 14224 14225 14226 14227 14228 14229 14230 14231 14232 14233 14234 14235 14236 14237 14238 14239 14240 14241 14242 14243 14244 14245 14246 14247 14248 14249 14250 14251 14252 14253 14254 14255 14256 14257 14258 14259 14260 14261 14262 14263 14264
|
.. _changes:
--------------
Recent changes
--------------
.. ifconfig:: not is_a_released_version
.. include:: ../unreleased.rst
Version 8.20
------------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.20 adds a new rewrite rule mechanism along with a few
new features, a host of improvements to the virtual machine, the
notation system, Ltac2 and the standard library.
We highlight some of the most impactful changes here:
- :ref:`rewrite_rules`
- :ref:`primitive strings <pstring_library>`
- A lot of work went into reducing the size of the bytecode segment,
which in turn means that .vo files might now be considerably
smaller.
- A new version of the
`docker-keeper <https://gitlab.com/erikmd/docker-keeper>`_ compiler to
build and maintain Docker images of Coq.
Notable breaking changes:
- Syntactic global references passed through the `using` clauses of
:tacn:`auto`-like tactics are now handled as plain references
rather than interpreted terms. In particular, their typeclass
arguments will not be inferred. In general, the previous behaviour
can be emulated by replacing `auto using foo` with `pose proof
foo; auto`.
- Argument order for the Ltac2 combinators `List.fold_left2` and
`List.fold_right2` changed to be the same as in OCaml.
- :cmd:`Import`\ing a module containing a mutable Ltac2 definition
does not undo its mutations. Replace `Ltac2 mutable foo :=
some_expr.` with `Ltac2 mutable foo := some_expr. Ltac2 Set foo :=
some_expr.` to recover the previous behaviour.
- Some :ref:`renaming <820_renaming_stdlib>` in the standard
library. Deprecations are provided for a smooth transition.
See the `Changes in 8.20.0`_ section below for the detailed list of changes,
including potentially breaking changes marked with **Changed**.
Coq's `reference manual for 8.20 <https://coq.github.io/doc/v8.20/refman>`_,
`documentation of the 8.20 standard library <https://coq.github.io/doc/v8.20/stdlib>`_
and `developer documentation of the 8.20 ML API <https://coq.github.io/doc/v8.20/api>`_
are also available.
Théo Zimmermann with help from Ali Caglayan and Jason Gross maintained
`coqbot <https://github.com/coq/bot>`_ used to run Coq's CI and other
pull request management tasks.
Jason Gross maintained the `bug minimizer <https://github.com/JasonGross/coq-tools>`_
and its `automatic use through coqbot <https://github.com/coq/coq/wiki/Coqbot-minimize-feature>`_.
Erik Martin-Dorel maintained the
`Coq Docker images <https://hub.docker.com/r/coqorg/coq>`_
and the `docker-keeper <https://gitlab.com/erikmd/docker-keeper>`_ compiler
used to build and keep those images up to date (note that the tool is not Coq specific).
Cyril Cohen, Vincent Laporte, Pierre Roux and Théo Zimmermann
maintained the `Nix toolbox <https://github.com/coq-community/coq-nix-toolbox>`_
used by many Coq projects for continuous integration.
Ali Caglayan, Emilio Jesús Gallego Arias, Rudi Grinberg and
Rodolphe Lepigre maintained the
`Dune build system for OCaml and Coq <https://github.com/ocaml/dune/>`_
used to build Coq itself and many Coq projects.
The opam repository for Coq packages has been maintained by
Guillaume Claret, Guillaume Melquiond, Karl Palmskog and Enrico Tassi with
contributions from many users. A list of packages is `available on the Coq website <https://coq.inria.fr/coq-package-index>`_.
Coq 8.20 was made possible thanks to the following reviewers:
Frédéric Besson, Lasse Blaauwbroek, Ali Caglayan, Cyril Cohen, Andrej
Dudenhefner, Andres Erbsen, Jim Fehrle, Emilio Jesús Gallego Arias,
Gaëtan Gilbert, Jason Gross, Hugo Herbelin, Ralf Jung, Jan-Oliver
Kaiser, Chantal Keller, Olivier Laurent, Rodolphe Lepigre, Yishuai Li,
Ralph Matthes, Guillaume Melquiond, Pierre-Marie Pédrot, Karl
Palmskog, Clément Pit-Claudel, Pierre Rousselin, Pierre Roux, Michael
Soegtrop, soukouki, Matthieu Sozeau, Nicolas Tabareau, Enrico Tassi,
Niels van der Weide, Nickolai Zeldovich and Théo Zimmermann. See the
`Coq Team face book <https://coq.inria.fr/coq-team.html>`_ page for
more details on Coq's development team.
The 59 contributors to the 8.20 version are:
Timur Aminev, Frédéric Besson, Lasse Blaauwbroek, Björn Brandenburg,
Ali Caglayan, Nikolaos Chatzikonstantinou, Sylvain Chiron, chluebi,
Cyril Cohen, Anton Danilkin, Louise Dubois de Prisque, Andrej
Dudenhefner, Maxime Dénès, Andres Erbsen, Jim Fehrle, Davide Fissore,
Andreas Florath, Yannick Forster, Mario Frank, Gaëtan Gilbert, Georges
Gonthier, Jason Gross, Stefan Haan, Hugo Herbelin, Lennart Jablonka,
Emilio Jesús Gallego Arias, Ralf Jung, Jan-Oliver Kaiser, Evgenii
Kosogorov, Rodolphe Lepigre, Yann Leray, David M. Cooke, Erik
Martin-Dorel, Guillaume Melquiond, Guillaume Munch-Maccagnoni, Karl
Palmskog, Julien Puydt, Pierre-Marie Pédrot, Ramkumar Ramachandra,
Pierre Rousselin, Pierre Roux, Kazuhiko Sakaguchi, Bernhard Schommer,
Remy Seassau, Matthieu Sozeau, Enrico Tassi, Romain Tetley, Laurent
Théry, Alexey Trilis, Oliver Turner, Quentin Vermande, Li-yao Xia and
Théo Zimmermann,
The Coq community at large helped improve this new version via
the GitHub issue and pull request system, the coq-club@inria.fr mailing list,
the `Discourse forum <https://coq.discourse.group/>`_ and the
`Coq Zulip chat <https://coq.zulipchat.com>`_.
Version 8.20's development spanned 7 months from the release of Coq 8.19.0
(9 months since the branch for 8.19.0).
Pierre Roux and Guillaume Melquiond are the release managers of Coq 8.20.
This release is the result of 470 merged PRs, closing 113 issues.
| Toulouse, September 2024
| Pierre Roux and Guillaume Melquiond for the Coq development team
Changes in 8.20.0
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
- **Changed:**
The guard checker now recognizes uniform parameters of a
fixpoint and treats their instances as constant over the recursive call
(`#17986 <https://github.com/coq/coq/pull/17986>`_,
grants `#16040 <https://github.com/coq/coq/issues/16040>`_,
by Hugo Herbelin).
- **Added:**
A mechanism to add user-defined rewrite rules to Coq's reduction mechanisms;
see chapter :ref:`rewrite_rules`
(`#18038 <https://github.com/coq/coq/pull/18038>`_,
by Yann Leray).
- **Added:** Support for primitive strings in terms
(`#18973 <https://github.com/coq/coq/pull/18973>`_,
by Rodolphe Lepigre).
Specification language, type inference
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
warnings `future-coercion-class-constructor`
and `future-coercion-class-field` about ``:>`` in :cmd:`Class` as
errors by default. This offers a last opportunity to replace ``:>``
with ``::`` (available since Coq 8.18) to declare typeclass instances
before making ``:>`` consistently declare coercions in all records in
next version.
To adapt huge codebases, you can try
`this script <https://gist.github.com/JasonGross/59fc3c03664f2280849abf50b531be42>`_
or the one below. But beware that both are incomplete.
.. code-block:: sh
#!/bin/awk -f
BEGIN {
startclass = 0;
inclass = 0;
indefclass = 0; # definitionalclasses (single field, without { ... })
}
{
if ($0 ~ "[ ]*Class") {
startclass = 1;
}
if (startclass == 1 && $0 ~ ":=") {
inclass = 1;
indefclass = 1;
}
if (startclass == 1 && $0 ~ ":=.*{") {
indefclass = 0;
}
if (inclass == 1) startclass = 0;
if (inclass == 1 && $0 ~ ":>") {
if ($0 ~ "{ .*:>") { # first field on a single line
sub("{ ", "{ #[global] ");
} else if ($0 ~ ":=.*:>") { # definitional classes on a single line
sub(":= ", ":= #[global] ");
} else if ($0 ~ "^ ") {
sub(" ", " #[global] ");
} else {
$0 = "#[global] " $0;
}
sub(":>", "::")
}
print $0;
if ($0 ~ ".*}[.]" || indefclass == 1 && $0 ~ "[.]$") inclass = 0;
}
(`#18590 <https://github.com/coq/coq/pull/18590>`_,
by Pierre Roux).
- **Changed:**
Mutually-proved theorems with statements in different coinductive
types now supported
(`#18743 <https://github.com/coq/coq/pull/18743>`_,
by Hugo Herbelin).
- **Added:**
:cmd:`CoFixpoint` supports attributes `bypass_guard`, `clearbody`,
`deprecated` and `warn`
(`#18754 <https://github.com/coq/coq/pull/18754>`_,
by Hugo Herbelin).
- **Added:**
`Program Fixpoint` with `measure` or `wf` (see
:ref:`program_fixpoint`) now supports the `where` clause for
notations, the `local` and `clearbody` attributes, as well as
non-atomic conclusions
(`#18834 <https://github.com/coq/coq/pull/18834>`_,
by Hugo Herbelin, fixes in particular
`#13812 <https://github.com/coq/coq/issues/13812>`_ and
`#14841 <https://github.com/coq/coq/issues/14841>`_).
- **Fixed:**
Anomaly on the absence of remaining obligations of some name now
an error
(`#18873 <https://github.com/coq/coq/pull/18873>`_,
fixes `#3889 <https://github.com/coq/coq/issues/3889>`_,
by Hugo Herbelin).
- **Fixed:**
Universe polymorphic `Program`'s obligations are now generalized
only over the universe variables that effectively occur in the
obligation
(`#18915 <https://github.com/coq/coq/pull/18915>`_,
fixes `#11766 <https://github.com/coq/coq/issues/11766>`_
and `#11988 <https://github.com/coq/coq/issues/11988>`_,
by Hugo Herbelin).
- **Fixed:**
Anomaly `assertion failed` in pattern-matching compilation, with
:flag:`Program Mode` or with let-ins in the arity of an inductive type
(`#18921 <https://github.com/coq/coq/pull/18921>`_,
fixes `#5777 <https://github.com/coq/coq/issues/5777>`_
and `#11030 <https://github.com/coq/coq/issues/11030>`_
and `#11586 <https://github.com/coq/coq/issues/11586>`_,
by Hugo Herbelin).
- **Fixed:**
Support for `Program`-style pattern-matching on more than one
argument in an inductive family
(`#18929 <https://github.com/coq/coq/pull/18929>`_,
fixes `#1956 <https://github.com/coq/coq/issues/1956>`_
and `#5777 <https://github.com/coq/coq/issues/5777>`_,
by Hugo Herbelin).
- **Fixed:**
anomaly with obligations in the binders of a `measure`- or
`wf`-based `Program Fixpoint`
(`#18958 <https://github.com/coq/coq/pull/18958>`_,
fixes `#18920 <https://github.com/coq/coq/issues/18920>`_,
by Hugo Herbelin).
- **Fixed:**
Incorrect registration of universe names attached to a primitive
polymorphic constant
(`#19100 <https://github.com/coq/coq/pull/19100>`_,
fixes `#19099 <https://github.com/coq/coq/issues/19099>`_,
by Hugo Herbelin).
Notations
^^^^^^^^^
- **Changed:**
an :g:`only printing` interpretation of a notation with a specific
format does no longer change the printing rule of other
interpretations of the notation; to globally change the default
printing rule of all interpretations of a notation, use
:g:`Reserved Notation` instead
(`#16329 <https://github.com/coq/coq/pull/16329>`_,
fixes `#16262 <https://github.com/coq/coq/issues/16262>`_,
by Hugo Herbelin).
- **Changed:**
levels of :cmd:`Reserved Notation` now default to levels of
previous notations with longest common prefix, if any. This helps to
:ref:`factorize notations <NotationFactorization>` with common
prefixes
(`#19149 <https://github.com/coq/coq/pull/19149>`_,
by Pierre Roux).
- **Added:**
:warn:`closed-notation-not-level-0` and :warn:`postfix-notation-not-level-1`
warnings about closed and postfix notations at unusual levels
(`#18588 <https://github.com/coq/coq/pull/18588>`_,
by Pierre Roux).
- **Added:**
:warn:`notation-incompatible-prefix` warning when two notation
definitions have incompatible prefixes
(`#19049 <https://github.com/coq/coq/pull/19049>`_,
by Pierre Roux).
- **Fixed:**
Notations for applied constants equipped with multiple signatures of
implicit arguments were not correctly inserting as many maximal
implicit arguments as they should have
(`#18445 <https://github.com/coq/coq/pull/18445>`_,
by Hugo Herbelin).
- **Fixed:**
Add support for printing notations applied to extra arguments in
custom entries, thus eliminating an anomaly
(`#18447 <https://github.com/coq/coq/pull/18447>`_,
fixes `#18342 <https://github.com/coq/coq/issues/18342>`_,
by Hugo Herbelin).
Tactics
^^^^^^^
- **Changed:**
When using :g:`Z.to_euclidean_division_equations`, :tacn:`nia` can now relate
:g:`Z.div`/:g:`Z.modulo` to :g:`Z.quot`/:g:`Z.rem` a bit better, by virtue of being
noticing when there are two equations of the form ``x = y * q₁ + _`` and
``x = y * q₂ + _`` (or minor variations thereof), suggesting that ``q₁ = q₂``.
Users can replace :g:`Z.to_euclidean_division_equations` with
:g:`let flags := Z.euclidean_division_equations_flags.default_with Z.euclidean_division_equations_flags.find_duplicate_quotients false in Z.to_euclidean_division_equations_with flags`
or, using :g:`Import Z.euclidean_division_equations_flags.`, with
:g:`Z.to_euclidean_division_equations_with ltac:(default_with find_duplicate_quotients false)`
(`#17934 <https://github.com/coq/coq/pull/17934>`_,
by Jason Gross).
- **Changed:**
The opacity/transparency of primitive projections is now attached to the
projections themselves, not the compatibility constants, and compatibility
constants are always considered transparent
(`#18327 <https://github.com/coq/coq/pull/18327>`_,
fixes `#18281 <https://github.com/coq/coq/issues/18281>`_,
by Jan-Oliver Kaiser and Rodolphe Lepigre).
- **Changed:**
Tactic :g:`intro z` on an existential variable goal forces the resolution
of the existential variable into a goal :g:`forall z:?T, ?P`, which
becomes :g:`?P` in context :g:`z:?T` after introduction. The
existential variable :n:`?P` itself is now defined in a context
where the variable of type `?T` is also named :g:`z`, as specified
by :tacn:`intro` instead of :g:`x` as it was conventionally the case
before
(`#18395 <https://github.com/coq/coq/pull/18395>`_,
by Hugo Herbelin).
- **Changed:**
syntactic global references passed through the `using` clauses of :tacn:`auto`-like
tactics are now handled as plain references rather than interpreted terms. In
particular, their typeclass arguments will not be inferred. In general, the previous
behaviour can be emulated by replacing `auto using foo` with `pose proof foo; auto`
(`#18909 <https://github.com/coq/coq/pull/18909>`_,
by Pierre-Marie Pédrot).
- **Changed:**
Use Coqlib's :cmd:`Register` mechanism for the generalized rewriting tactic
and make the (C)RelationClasses/(C)Morphisms independent of the `rewrite`
tactic to ease maintainance.
(`#19115 <https://github.com/coq/coq/pull/19115>`_,
by Matthieu Sozeau).
- **Removed:**
the `clear` modifier which was deprecated since 8.17
(`#18887 <https://github.com/coq/coq/pull/18887>`_,
by Pierre-Marie Pédrot).
- **Removed:**
the `cutrewrite` tactic, which was deprecated since
Coq 8.5
(`#19027 <https://github.com/coq/coq/pull/19027>`_,
by Pierre-Marie Pédrot).
- **Deprecated:**
non-reference hints in `using` clauses of :tacn:`auto`-like tactics
(`#19006 <https://github.com/coq/coq/pull/19006>`_,
by Pierre-Marie Pédrot).
- **Deprecated:**
the :tacn:`gintuition` tactic, which used to be undocumented
until Coq 8.16
(`#19129 <https://github.com/coq/coq/pull/19129>`_,
by Pierre-Marie Pédrot).
- **Deprecated:**
:tacn:`destauto`,
see `#11537 <https://github.com/coq/coq/issues/11537#issuecomment-2154260216>`_
(`#19179 <https://github.com/coq/coq/pull/99999>`_,
by Jim Fehrle).
- **Added:**
When using :g:`Z.to_euclidean_division_equations`, you can now pose
equations of the form ``x = y * q`` using :g:`Z.divide`
(`#17927 <https://github.com/coq/coq/pull/17927>`_,
by Evgenii Kosogorov).
- **Added:** support for :g:`Nat.double` and :g:`Nat.div2` to :g:`zify` and
:g:`lia`
(`#18729 <https://github.com/coq/coq/pull/18729>`_,
by Andres Erbsen).
- **Added:**
the :tacn:`replace` tactic now accepts `->` and `<-`
to specify the direction of the replacement
when used with a `with` clause
(`#19060 <https://github.com/coq/coq/pull/19060>`_,
fixes `#13480 <https://github.com/coq/coq/issues/13480>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
The name of a cofixpoint globally defined with a name is now
systematically reused by :tacn:`simpl` after reduction, even when
the named cofixpoint is mutually defined or defined in a section
(`#18576 <https://github.com/coq/coq/pull/18576>`_,
fixes `#4056 <https://github.com/coq/coq/issues/4056>`_,
by Hugo Herbelin).
- **Fixed:**
The reduction of primitive projections of cofixpoints by
:tacn:`simpl` is now implemented
(`#18577 <https://github.com/coq/coq/pull/18577>`_,
fixes `#7982 <https://github.com/coq/coq/issues/7982>`_,
by Hugo Herbelin).
- **Fixed:**
Support for refolding reduced global mutual fixpoints/cofixpoints
with parameters in :tacn:`cbn`
(`#18601 <https://github.com/coq/coq/pull/18601>`_,
fixes part of `#4056 <https://github.com/coq/coq/issues/4056>`_,
by Hugo Herbelin).
- **Fixed:**
:tacn:`cbn` was leaving behind unnamable constants when refolding
mutual fixpoints/cofixpoints from aliased modules
(`#18616 <https://github.com/coq/coq/pull/18616>`_,
fixes `#17897 <https://github.com/coq/coq/issues/17897>`_,
by Hugo Herbelin).
- **Fixed:**
:tacn:`cbv` of primitive projections applied to a tuple now ignores `beta`
like it does for :tacn:`cbn`, :tacn:`lazy` and :tacn:`simpl`
(`#18618 <https://github.com/coq/coq/pull/18618>`_,
fixes `#9086 <https://github.com/coq/coq/issues/9086>`_,
by Hugo Herbelin).
Ltac language
^^^^^^^^^^^^^
- **Added:**
In :tacn:`rewrite_strat`, :n:`@rewstrategy` now supports the fixpoint operator :n:`fix @ident := @rewstrategy1`
(`#18094 <https://github.com/coq/coq/pull/18094>`_,
fixes `#13702 <https://github.com/coq/coq/issues/13702>`_,
by Jason Gross and Gaëtan Gilbert).
- **Fixed:**
:tacn:`rewrite_strat` now works inside module functors
(`#18094 <https://github.com/coq/coq/pull/18094>`_,
fixes `#18463 <https://github.com/coq/coq/issues/18463>`_,
by Jason Gross).
Ltac2 language
^^^^^^^^^^^^^^
- **Changed:**
recursive `let` and non mutable projections of syntactic values are considered syntactic values
(`#18411 <https://github.com/coq/coq/pull/18411>`_,
by Gaëtan Gilbert).
- **Changed:**
Ltac2 are typechecked at declaration time by default.
This should produce better errors when a notation argument does not have the expected type
(e.g. wrong branch type in `match! goal`).
In the previous behaviour of typechecking, only the expansion result can be
recovered using :flag:`Ltac2 Typed Notations`. We believe there are no real
use cases for this, please report if you have any
(`#18432 <https://github.com/coq/coq/pull/18432>`_,
fixes `#17477 <https://github.com/coq/coq/issues/17477>`_,
by Gaëtan Gilbert).
- **Changed:**
argument order for the Ltac2 combinators `List.fold_left2` and `List.fold_right2`
changed to be the same as in OCaml
(`#18706 <https://github.com/coq/coq/pull/18706>`_,
by Gaëtan Gilbert).
- **Changed:**
:cmd:`Import`\ing a module containing a mutable Ltac2 definition
does not undo its mutations. Replace `Ltac2 mutable foo := some_expr.`
with `Ltac2 mutable foo := some_expr. Ltac2 Set foo := some_expr.`
to recover the previous behaviour
(`#18713 <https://github.com/coq/coq/pull/18713>`_,
by Gaëtan Gilbert).
- **Changed:**
the `using` clause argument of :tacn:`auto`-like tactics in Ltac2 now
take a global `reference` rather than arbitrary `constr`
(`#18940 <https://github.com/coq/coq/pull/18940>`_,
by Pierre-Marie Pédrot).
- **Deprecated:**
`Ltac2.Constr.Pretype.Flags.open_constr_flags` whose name is misleading
as it runs typeclass inference unlike `open_constr:()`
(`#18765 <https://github.com/coq/coq/pull/18765>`_,
by Gaëtan Gilbert).
- **Added:**
`fst` and `snd` in `Ltac2.Init`
(`#18370 <https://github.com/coq/coq/pull/18370>`_,
by Gaëtan Gilbert).
- **Added:**
`Ltac2.Ltac1.of_preterm` and `to_preterm`
(`#18551 <https://github.com/coq/coq/pull/18551>`_,
by Gaëtan Gilbert).
- **Added:**
`of_intro_pattern` and `to_intro_pattern` in `Ltac2.Ltac1`
(`#18558 <https://github.com/coq/coq/pull/18558>`_,
by Gaëtan Gilbert).
- **Added:**
basic APIs in `Ltac2.Ltac1` to produce slightly more informative errors when failing to convert a Ltac1 value to some Ltac2 type
(`#18558 <https://github.com/coq/coq/pull/18558>`_,
by Gaëtan Gilbert).
- **Added:**
APIs `Ltac2.Control.unshelve` and `Ltac2.Notations.unshelve`
(`#18604 <https://github.com/coq/coq/pull/18604>`_,
by Gaëtan Gilbert).
- **Added:**
warning on unused Ltac2 variables (except when starting with `_`)
(`#18641 <https://github.com/coq/coq/pull/18641>`_,
by Gaëtan Gilbert).
- **Added:**
`Ltac2.Control.numgoals`
(`#18690 <https://github.com/coq/coq/pull/18690>`_,
by Gaëtan Gilbert).
- **Added:**
`intropattern` and `intropatterns` notation scopes support views (`foo%bar`)
(`#18757 <https://github.com/coq/coq/pull/18757>`_,
by Gaëtan Gilbert).
- **Added:**
open recursion combinators in `Ltac2.Constr.Unsafe`
(`#18764 <https://github.com/coq/coq/pull/18764>`_,
by Gaëtan Gilbert).
- **Added:**
APIs in `Ltac2.Constr.Pretype.Flags` to customize pretyping flags.
(`#18765 <https://github.com/coq/coq/pull/18765>`_,
by Gaëtan Gilbert).
- **Added:**
:attr:`abstract` attribute for :cmd:`Ltac2 Type` to turn types abstract at the end of the current module
(`#18766 <https://github.com/coq/coq/pull/18766>`_,
fixes `#18656 <https://github.com/coq/coq/issues/18656>`_,
by Gaëtan Gilbert).
- **Added:**
APIs in `Ltac2.Message` to interact with the boxing system of the pretty printer
(`#18988 <https://github.com/coq/coq/pull/18988>`_,
by Gaëtan Gilbert).
- **Added:**
:flag:`Automatic Proposition Inductives`, :flag:`Dependent Proposition Eliminators` and
:warn:`warning when automatically lowering an inductive declared with Type to Prop
<automatic-prop-lowering>`
(`#18989 <https://github.com/coq/coq/pull/18989>`_,
by Gaëtan Gilbert).
- **Added:**
`String.sub`
(`#19204 <https://github.com/coq/coq/pull/19204>`_,
by Rodolphe Lepigre).
- **Fixed:**
`Ltac2.Control.new_goal` removes the new goal from the shelf and future goals
(`#19141 <https://github.com/coq/coq/pull/19141>`_,
fixes `#19138 <https://github.com/coq/coq/issues/19138>`_,
by Gaëtan Gilbert).
SSReflect
^^^^^^^^^
- **Changed:**
ssreflect no longer relies on the recovery mechanism
of the parsing engine, this can slightly change
the parsing priorities in rare occurences, for instance
when combining :tacn:`unshelve` and ``=>``
(`#18224 <https://github.com/coq/coq/pull/18224>`_,
by Pierre Roux).
- **Changed:**
notations ``_.1`` and ``_.2`` are now defined in the prelude
at level 1 rather than in ``ssrfun`` at level 2
(`#18224 <https://github.com/coq/coq/pull/18224>`_,
by Pierre Roux).
- **Changed:**
The :tacn:`have` tactic generates a proof term containing an opaque
constant, as it did up to PR `#15121 <https://github.com/coq/coq/pull/15121>`_
included in Coq 8.16.0. See the variant `have @H` to generate a (transparent)
let-in instead (:ref:`generating_let_ssr`).
(`#18449 <https://github.com/coq/coq/pull/18449>`_,
fixes `#18017 <https://github.com/coq/coq/issues/18017>`_,
by Enrico Tassi).
- **Deprecated:**
The ``fun_scope`` notation scope declared in `ssrfun.v` is deprecated. Use
``function_scope`` instead
(`#18374 <https://github.com/coq/coq/pull/18374>`_,
by Kazuhiko Sakaguchi).
- **Fixed:**
handling of primitive projections in ssrewrite
(`#19213 <https://github.com/coq/coq/pull/19213>`_,
fixes `#19229 <https://github.com/coq/coq/issues/19229>`_,
by Pierre Roux, Kazuhiko Sakaguchi, Enrico Tassi and Quentin Vermande).
Commands and options
^^^^^^^^^^^^^^^^^^^^
- **Changed:**
the default reversibility status of most coercions.
The refman states that
By default coercions are not reversible
except for Record fields specified using ``:>``.
The previous code was making way too many coercion reversible by default.
The new behavior should be closer from the spec in the doc
(`#18705 <https://github.com/coq/coq/pull/18705>`_,
by Pierre Roux).
- **Changed:**
focus commands such as `1:{` and goal selection for query commands such as `1: Check`
do not need `Classic` (Ltac1) proof mode to function. In particular they function in Ltac2 mode
(`#18707 <https://github.com/coq/coq/pull/18707>`_,
fixes `#18351 <https://github.com/coq/coq/issues/18351>`_,
by Gaëtan Gilbert).
- **Changed:**
inductives declared with `: Type` or no annotation and automatically put in `Prop`
are not declared template polymorphic
(`#18867 <https://github.com/coq/coq/pull/18867>`_,
by Gaëtan Gilbert).
- **Changed:**
Clarify the warning about use of :cmd:`Let`, :cmd:`Variable`,
:cmd:`Hypothesis` and :cmd:`Context` outside sections and make it an
error by default
(`#18880 <https://github.com/coq/coq/pull/18880>`_,
by Pierre Roux).
- **Changed:**
The "fragile-hint-constr" warning is now an error by default,
as the corresponding feature will be removed in a later version
(`#18895 <https://github.com/coq/coq/pull/18895>`_,
by Pierre-Marie Pédrot).
- **Changed:**
:cmd:`Scheme` automatically registers the resulting schemes in the :cmd:`Register Scheme` database
(`#19016 <https://github.com/coq/coq/pull/19016>`_,
fixes `#3132 <https://github.com/coq/coq/issues/3132>`_,
by Gaëtan Gilbert).
- **Changed:**
:cmd:`Typeclasses Transparent` and :cmd:`Typeclasses Opaque` default locality outside section is now :attr:`export`
(`#19069 <https://github.com/coq/coq/pull/19069>`_,
by Gaëtan Gilbert).
- **Deprecated:**
The :cmd:`Cd` command. Instead use the command line option
`-output-directory` (see :ref:`command-line-options`) or, for
extraction, :opt:`Extraction Output Directory`
(`#17403 <https://github.com/coq/coq/pull/17403>`_,
by Ali Caglayan and Hugo Herbelin).
- **Added:**
:attr:`warn` attribute generalizing the deprecation
machinery to other forms of comments
(`#18248 <https://github.com/coq/coq/pull/18248>`_,
by Hugo Herbelin and Pierre Roux).
- **Added:**
:cmd:`Register Scheme` to add entries to the scheme database used by some tactics
(`#18299 <https://github.com/coq/coq/pull/18299>`_,
by Gaëtan Gilbert).
- **Added:**
:cmd:`Print` :n:`@reference` now shows the implicit arguments of a
:n:`@reference` directly on the type of :n:`@reference`, using
`{...}` and `[...]` markers for respectively maximally-inserted and
non-maximally-inserted implicit arguments, as :cmd:`About` does
(`#18444 <https://github.com/coq/coq/pull/18444>`_,
by Hugo Herbelin).
- **Added:**
:n:`@import_categories` supports category `options` controlling :ref:`flags-options-tables`
(`#18536 <https://github.com/coq/coq/pull/18536>`_,
by Gaëtan Gilbert).
- **Added:**
When a name is a projection, :cmd:`About` and :cmd:`Print` now indicate it
(`#18725 <https://github.com/coq/coq/pull/18725>`_,
by Hugo Herbelin).
- **Added:**
:cmd:`Hint Projections` command that sets the transparency flag for projections
for the specified hint databases
(`#18785 <https://github.com/coq/coq/pull/18785>`_,
by Jan-Oliver Kaiser and Rodolphe Lepigre).
- **Added:**
:cmd:`Search` now admits the `is:Fixpoint` and `is:CoFixpoint` logical
kinds to search for constants defined with the `Fixpoint` and `CoFixpoint`
keywords
(`#18983 <https://github.com/coq/coq/pull/18983>`_,
by Pierre Rousselin).
- **Added:**
The :cmd:`Include` command can now include module types with a `with` clause (:n:`@with_declaration`)
to instantiate some parameters
(`#19144 <https://github.com/coq/coq/pull/19144>`_,
by Pierre Rousselin).
- **Fixed:**
Fixes missing implicit arguments coming after a :g:`->` in the main type
printed by :cmd:`Print` and :cmd:`About`
(`#18442 <https://github.com/coq/coq/pull/18442>`_,
fixes `#15020 <https://github.com/coq/coq/issues/15020>`_,
by Hugo Herbelin).
- **Fixed:**
:flag:`Cumulativity Weak Constraints` can unify universes to `Set` when :flag:`Universe Minimization ToSet` is enabled
(`#18458 <https://github.com/coq/coq/pull/18458>`_,
by Gaëtan Gilbert).
- **Fixed:**
:cmd:`Search` with modifier `is:Scheme` restricted the search to inductive types
which have schemes instead of the schemes themselves.
For instance `Search nat is:Scheme` with just the prelude loaded would return `le`
i.e. the only inductive type whose type mentions `nat`
(`#18537 <https://github.com/coq/coq/pull/18537>`_,
fixes `#18298 <https://github.com/coq/coq/issues/18298>`_,
by Gaëtan Gilbert).
- **Fixed:**
:cmd:`Search` now searches also in included module types
(`#18662 <https://github.com/coq/coq/pull/18662>`_,
fixes `#18657 <https://github.com/coq/coq/issues/18657>`_,
by Hugo Herbelin).
- **Fixed:**
:cmd:`Eval` and :cmd:`Definition` with `:= Eval` work without needing to load the Ltac plugin
(`#18852 <https://github.com/coq/coq/pull/18852>`_,
fixes `#12948 <https://github.com/coq/coq/issues/12948>`_,
by Gaëtan Gilbert).
- **Fixed:**
:cmd:`Scheme` declares non-recursive schemes for :n:`@scheme_type` `Case` and `Elimination`
(`#19017 <https://github.com/coq/coq/pull/19017>`_,
fixes `#10816 <https://github.com/coq/coq/issues/10816>`_,
by Gaëtan Gilbert).
- **Fixed:**
:flag:`Cumulativity Weak Constraints` had its meaning flipped since 8.12
(`#19201 <https://github.com/coq/coq/pull/19201>`_,
by Gaëtan Gilbert).
Command-line tools
^^^^^^^^^^^^^^^^^^
- **Changed:**
signal `SIGINT` interrupts the process with " "user interrupt" error
instead of aborting. This is intended to produce better messages when interrupting Coq
(`#18716 <https://github.com/coq/coq/pull/18716>`_,
by Gaëtan Gilbert).
- **Added:**
Command line option :n:`-output-directory dir` to set the default output directory
for extraction, :cmd:`Redirect` and :cmd:`Print Universes`
(`#17392 <https://github.com/coq/coq/pull/17392>`_,
fixes `#8649 <https://github.com/coq/coq/issues/8649>`_,
by Hugo Herbelin).
- **Fixed:**
coqdoc links to section variables introduced with :cmd:`Context`
(`#18527 <https://github.com/coq/coq/pull/18527>`_,
fixes `#18516 <https://github.com/coq/coq/issues/18516>`_,
by Pierre Roux).
CoqIDE
^^^^^^
- **Changed:**
Find/replace UI was improved: margins, icons for found/not found
(`#18523 <https://github.com/coq/coq/pull/18523>`_,
fixes `#11024 <https://github.com/coq/coq/issues/11024>`_,
by Sylvain Chiron).
- **Changed:**
The default key binding modifier for the Navigation menu
was changed to Alt on non-macOS systems. The previous default,
Ctrl, hid some conventional cursor movement bindings such as Ctrl-Left,
Ctrl-Right, Ctrl-Home and Ctrl-End. The new default generally
has no effect if you've previously installed Coq on your
system. See :ref:`Shortcuts<shortcuts>` to change the default.
The Edit/Undo key binding was changed from Ctrl-U to Ctrl-Z to
be more consistent with common conventions. `View/Previous Tab`
and `View/Next Tab` were changed from `Alt-Left/Right` to
`Ctrl-PgUp/PgDn` (`Cmd-PgUp/PgDn` on macOS). To change key
bindings on your system (e.g. back to Ctrl-U), see :ref:`key_bindings`
(`#18717 <https://github.com/coq/coq/pull/18717>`_,
by Sylvain Chiron).
- **Changed:**
Changing modifiers for the View menu only applies
to toggleable items; View/Show Proof was changed to Shift-F2
(`#18717 <https://github.com/coq/coq/pull/18717>`_,
by Sylvain Chiron).
- **Added:**
Edit/Select All and Navigation/Fully Check menu items
(`#18717 <https://github.com/coq/coq/pull/18717>`_,
fixes `#16141 <https://github.com/coq/coq/issues/16141>`_,
by Sylvain Chiron).
- **Fixed:**
Opening a file with drag and drop now works correctly (fixed regression)
(`#18524 <https://github.com/coq/coq/pull/18524>`_,
fixes `#3977 <https://github.com/coq/coq/issues/3977>`_,
by Sylvain Chiron).
- **Fixed:**
Incorrect highlight locations and line numbers for errors and warnings,
especially in the presence of unicode characters. This updates the XML protocol
(`#19040 <https://github.com/coq/coq/pull/19040>`_,
fixes `#18682 <https://github.com/coq/coq/issues/18682>`_,
by Hugo Herbelin).
- **Fixed:**
Show tooltips for syntax errors
(`#19153 <https://github.com/coq/coq/pull/19153>`_,
fixes `#19152 <https://github.com/coq/coq/issues/19152>`_,
by Jim Fehrle).
.. _820_renaming_stdlib:
Standard library
^^^^^^^^^^^^^^^^
- **Changed:** names of "push" lemmas for :g:`List.length` to follow the same
convention as push lemmas for other operations. For example, :g:`app_length`
became :g:`length_app`. The standard library was migrated using the following
script:
.. code-block:: sh
find theories -name '*.v' | xargs sed -i -E '
s/\<app_length\>/length_app/g;
s/\<rev_length\>/length_rev/g;
s/\<map_length\>/length_map/g;
s/\<fold_left_length\>/fold_left_S_O/g;
s/\<split_length_l\>/length_fst_split/g;
s/\<split_length_r\>/length_snd_split/g;
s/\<combine_length\>/length_combine/g;
s/\<prod_length\>/length_prod/g;
s/\<firstn_length\>/length_firstn/g;
s/\<skipn_length\>/length_skipn/g;
s/\<seq_length\>/length_seq/g;
s/\<concat_length\>/length_concat/g;
s/\<flat_map_length\>/length_flat_map/g;
s/\<list_power_length\>/length_list_power/g;
'
(`#18564 <https://github.com/coq/coq/pull/18564>`_,
by Andres Erbsen).
- **Changed:**
``Coq.CRelationClasses.arrow``, ``Coq.CRelationClasses.iffT`` and
``Coq.CRelationClasses.flip`` are now :cmd:`Typeclasses Opaque`
(`#18910 <https://github.com/coq/coq/pull/18910>`_,
by Pierre-Marie Pédrot).
- **Removed:**
The library files ``Coq.NArith.Ndigits``, ``Coq.NArith.Ndist``, and ``Coq.Strings.ByteVector``
which were deprecated since 8.19
(`#18936 <https://github.com/coq/coq/pull/18936>`_,
by Andres Erbsen).
- **Deprecated:**
The library files
* ``Coq.Numbers.Integer.Binary.ZBinary``
* ``Coq.Numbers.Integer.NatPairs.ZNatPairs``
* ``Coq.Numbers.Natural.Binary.NBinary``
have been deprecated.
Users should require ``Coq.Arith.PeanoNat`` or ``Coq.Arith.NArith.BinNat``
if they want implementations of natural numbers and
``Coq.Arith.ZArith.BinInt`` if they want an implementation of integers
(`#18500 <https://github.com/coq/coq/pull/18500>`_,
by Pierre Rousselin).
- **Deprecated:**
The library file ``Coq.Numbers.NatInt.NZProperties`` is deprecated.
Users can require ``Coq.Numbers.NatInt.NZMulOrder`` instead and replace the
module ``NZProperties.NZProp`` with ``NZMulOrder.NZMulOrderProp``
(`#18501 <https://github.com/coq/coq/pull/18501>`_,
by Pierre Rousselin).
- **Deprecated:**
The library file ``Coq.Arith.Bool_nat`` has been deprecated
(`#18538 <https://github.com/coq/coq/pull/18538>`_,
by Pierre Rousselin).
- **Deprecated:**
The library file ``Coq.Numbers.NatInt.NZDomain`` is deprecated
(`#18539 <https://github.com/coq/coq/pull/18539>`_,
by Pierre Rousselin).
- **Deprecated:**
The library files ``Coq.Numbers.Integers.Abstract.ZDivEucl``
and ``Coq.ZArith.Zeuclid`` are deprecated
(`#18544 <https://github.com/coq/coq/pull/18544>`_,
by Pierre Rousselin).
- **Deprecated:**
The library files ``Coq.Numbers.Natural.Abstract.NIso``
and ``Coq.Numbers.Natural.Abstract.NDefOps`` are deprecated
(`#18668 <https://github.com/coq/coq/pull/18668>`_,
by Pierre Rousselin).
- **Deprecated:** ``Bool.Bvector``. Users are encouraged to consider ``list bool`` instead. Please open an issue if you would like to keep using ``Bvector``.
(`#18947 <https://github.com/coq/coq/pull/18947>`_,
by Andres Erbsen).
- **Added:**
A warning on :g:`Vector.t` to make its new users aware that using
this dependently typed representation of fixed-length lists is more
technically difficult, compared to bundling lists with a proof of their
length. This is not a deprecation and there is no intent to remove it
from the standard library. Use option `-w -stdlib-vector`
to silence the warning
(`#18032 <https://github.com/coq/coq/pull/18032>`_,
by Pierre Roux, reviewed by Andres Erbsen, Jim Fehrle, Emilio Jesús Gallego Arias, Gaëtan Gilbert, Hugo Herbelin, Olivier Laurent, Yishuai Li, Pierre-Marie Pédrot and Michael Soegtrop).
- **Added:**
lemmas :g:`NoDup_app`, :g:`NoDup_iff_ForallOrdPairs`, :g:`NoDup_map_NoDup_ForallPairs` and :g:`NoDup_concat`
(`#18172 <https://github.com/coq/coq/pull/18172>`_,
by Stefan Haani and Andrej Dudenhefner).
- **Added:** lemmas
:g:`In_iff_nth_error`
:g:`nth_error_app`,
:g:`nth_error_cons_0`,
:g:`nth_error_cons_succ`,
:g:`nth_error_rev`,
:g:`nth_error_firstn`,
:g:`nth_error_skipn`,
:g:`hd_error_skipn`,
:g:`nth_error_seq`
(`#18563 <https://github.com/coq/coq/pull/18563>`_,
by Andres Erbsen)
- **Added:** to :g:`N` and :g:`Nat` lemmas
:g:`strong_induction_le`,
:g:`binary_induction`,
:g:`strong_induction_le`,
:g:`even_even`,
:g:`odd_even`,
:g:`odd_odd`,
:g:`even_odd`,
:g:`b2n_le_1`,
:g:`testbit_odd_succ'`,
:g:`testbit_even_succ'`,
:g:`testbit_div2`,
:g:`div2_0`,
:g:`div2_1`,
:g:`div2_le_mono`,
:g:`div2_even`,
:g:`div2_odd'`,
:g:`le_div2_diag_l`,
:g:`div2_le_upper_bound`,
:g:`div2_le_lower_bound`,
:g:`lt_div2_diag_l`,
:g:`le_div2`,
:g:`lt_div2`,
:g:`div2_decr`,
:g:`land_even_l`,
:g:`land_even_r`,
:g:`land_odd_l`,
:g:`land_odd_r`,
:g:`land_even_even`,
:g:`land_odd_even`,
:g:`land_even_odd`,
:g:`land_odd_odd`,
:g:`land_le_l`,
:g:`land_le_r`,
:g:`ldiff_even_l`,
:g:`ldiff_odd_l`,
:g:`ldiff_even_r`,
:g:`ldiff_odd_r`,
:g:`ldiff_even_even`,
:g:`ldiff_odd_even`,
:g:`ldiff_even_odd`,
:g:`ldiff_odd_odd`,
:g:`ldiff_le_l`,
:g:`shiftl_lower_bound`,
:g:`shiftr_upper_bound`,
:g:`ones_0`,
:g:`ones_succ`,
:g:`pow_lower_bound`
(`#18628 <https://github.com/coq/coq/pull/18628>`_,
by Pierre Rousselin).
- **Fixed:**
:g:`Z.euclidean_division_equations_cleanup` has been reordered so that
:tacn:`zify` (and :tacn:`lia`, :tacn:`nia`, etc) are no longer as slow when the
context contains many assumptions of the form :g:`0 <= ... < ...`
(`#18818 <https://github.com/coq/coq/pull/18818>`_,
fixes `#18770 <https://github.com/coq/coq/issues/18770>`_,
by Jason Gross).
Infrastructure and dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
Bump minimal Dune version required to build Coq to 3.6.1
(`#18359 <https://github.com/coq/coq/pull/18359>`_,
by Emilio Jesus Gallego Arias).
- **Removed:**
Support for ``.vio`` files and for ``.vio2vo`` transformation has
been removed, compilation to ``.vos`` is the supported method for
quick compilation now
(`#18424 <https://github.com/coq/coq/pull/18424>`_,
fixes `#4007 <https://github.com/coq/coq/issues/4007>`_
and `#4013 <https://github.com/coq/coq/issues/4013>`_
and `#4123 <https://github.com/coq/coq/issues/4123>`_
and `#5308 <https://github.com/coq/coq/issues/5308>`_
and `#5223 <https://github.com/coq/coq/issues/5223>`_
and `#6720 <https://github.com/coq/coq/issues/6720>`_
and `#8402 <https://github.com/coq/coq/issues/8402>`_
and `#9637 <https://github.com/coq/coq/issues/9637>`_
and `#11471 <https://github.com/coq/coq/issues/11471>`_
and `#18380 <https://github.com/coq/coq/issues/18380>`_,
by Emilio Jesus Gallego Arias).
- **Added:**
The `coq-doc` opam / Dune package will now build and install Coq's
documentation (`#17808 <https://github.com/coq/coq/pull/17808>`_, by
Emilio Jesus Gallego Arias).
- **Added:**
Coq is now compatible with `memprof-limits` interruption
methods. This means that Coq will be recompiled when the library is
installed / removed from an OPAM switch.
(`#18906 <https://github.com/coq/coq/pull/18906>`_,
fixes `#17760 <https://github.com/coq/coq/issues/17760>`_,
by Emilio Jesus Gallego Arias).
- **Added:**
ability to exit from `Drop.` in Coq toplevel by a simple `Ctrl + D`,
without leaving the OCaml toplevel on the stack.
Also add a custom OCaml toplevel directory `#go` which does the same
action as `go ()`, but with a more native syntax
(`#18771 <https://github.com/coq/coq/pull/18771>`_,
by Anton Danilkin).
Extraction
^^^^^^^^^^
- **Added:**
Extension for OCaml extraction:
Commands to extract foreign function calls to C (external)
and ML function exposition (Callback.register) for calling
being able to call them by C functions
(`#18270 <https://github.com/coq/coq/pull/18270>`_,
fixes `#18212 <https://github.com/coq/coq/issues/18212>`_,
by Mario Frank).
- **Fixed:**
Wrongly self-referencing extraction of primitive projections to OCaml in functors
(`#17321 <https://github.com/coq/coq/pull/17321>`_,
fixes `#16288 <https://github.com/coq/coq/issues/16288>`_,
by Hugo Herbelin). Note that OCaml wrappers assuming that the
applicative syntax of projections is provided may have
to use the dot notation instead.
Version 8.19
------------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.19 extends the kernel universe polymorphism to
polymorphism over sorts (e.g. `Prop`, `SProp`) along with a few new
features, a host of improvements to the notation system, the Ltac2
standard library, and the removal of some standard library files after
a long deprecation period.
We highlight some of the most impactful changes here:
- :ref:`sort-polymorphism` makes it possible to share common constructs
over `Type` `Prop` and `SProp`.
- The notation :g:`term%_scope` to set a scope only temporarily
(in addition to :g:`term%scope` for opening a
scope applying to all subterms).
- :tacn:`lazy`, :tacn:`simpl`, :tacn:`cbn` and :tacn:`cbv` and the associated :cmd:`Eval`
and :tacn:`eval` reductions learned to do head reduction when given flag `head`.
- :ref:`New Ltac2 APIs <819Ltac2>`, improved Ltac2 `exact` and
dynamic building of Ltac2 term patterns.
- New performance evaluation facilities: :cmd:`Instructions` to
count CPU instructions used by a command (Linux only) and
:ref:`profiling` system to produce trace files.
- New command :cmd:`Attributes` to assign attributes such as
:attr:`deprecated` to a library file.
Notable breaking changes:
- :tacn:`replace` with `by tac` does not automatically attempt to solve
the generated equality subgoal using the hypotheses.
Use `by first [assumption | symmetry;assumption | tac]`
if you need the previous behaviour.
- :ref:`Removed old deprecated files <819Stdlib>` from the standard library.
See the `Changes in 8.19.0`_ section below for the detailed list of changes,
including potentially breaking changes marked with **Changed**.
Coq's `reference manual for 8.19 <https://coq.github.io/doc/v8.19/refman>`_,
`documentation of the 8.19 standard library <https://coq.github.io/doc/v8.19/stdlib>`_
and `developer documentation of the 8.19 ML API <https://coq.github.io/doc/v8.19/api>`_
are also available.
Maxime Dénès and Thierry Martinez with support from Erik Martin-Dorel
and Théo Zimmermann moved the CI away from `gitlab.com <http://gitlab.com>`_
to use Inria supported runner machines through
`gitlab.inria.fr <https://gitlab.inria.fr>`_.
Théo Zimmermann with help from Ali Caglayan and Jason Gross maintained
`coqbot <https://github.com/coq/bot>`_ used to run Coq's CI and other
pull request management tasks.
Jason Gross maintained the `bug minimizer <https://github.com/JasonGross/coq-tools>`_
and its `automatic use through coqbot <https://github.com/coq/coq/wiki/Coqbot-minimize-feature>`_.
Jaime Arias and Erik Martin-Dorel maintained the
`Coq Docker images <https://hub.docker.com/r/coqorg/coq>`_
and Cyril Cohen, Vincent Laporte, Pierre Roux and Théo Zimmermann
maintained the `Nix toolbox <https://github.com/coq-community/coq-nix-toolbox>`_
used by many Coq projects for continuous integration.
Ali Caglayan, Emilio Jesús Gallego Arias, Rudi Grinberg and
Rodolphe Lepigre maintained the
`Dune build system for OCaml and Coq <https://github.com/ocaml/dune/>`_
used to build Coq itself and many Coq projects.
The opam repository for Coq packages has been maintained by
Guillaume Claret, Guillaume Melquiond, Karl Palmskog and Enrico Tassi with
contributions from many users. A list of packages is `available on the Coq website <https://coq.inria.fr/coq-package-index>`_.
Our current maintainers are Yves Bertot, Frédéric Besson, Ana Borges,
Ali Caglayan, Tej Chajed, Cyril Cohen, Pierre Corbineau, Pierre
Courtieu, Andres Erbsen, Jim Fehrle, Julien Forest, Emilio Jesús
Gallego Arias, Gaëtan Gilbert, Georges Gonthier, Benjamin Grégoire,
Jason Gross, Hugo Herbelin, Vincent Laporte, Olivier Laurent, Assia
Mahboubi, Kenji Maillard, Guillaume Melquiond, Pierre-Marie Pédrot,
Clément Pit-Claudel, Pierre Roux, Kazuhiko Sakaguchi, Vincent Semeria,
Michael Soegtrop, Arnaud Spiwack, Matthieu Sozeau, Enrico Tassi,
Laurent Théry, Anton Trunov, Li-yao Xia and Théo Zimmermann. See the
`Coq Team face book <https://coq.inria.fr/coq-team.html>`_ page for
more details.
The 40 contributors to the 8.19 version are:
quarkcool, Khalid Abdullah, Tanaka Akira, Isaac van Bakel,
Frédéric Besson, Lasse Blaauwbroek, Ana Borges, Ali Caglayan, Nikolaos
Chatzikonstantinou, Maxime Dénès, Andrej Dudenhefner, Andres Erbsen,
Jim Fehrle, Gaëtan Gilbert, Jason Gross, Stefan Haan, Hugo Herbelin,
Emilio Jesús Gallego Arias, Pierre Jouvelot, Ralf Jung, Jan-Oliver
Kaiser, Robbert Krebbers, Jean-Christophe Léchenet, Rodolphe Lepigre,
Yann Leray, Yishuai Li, Guillaume Melquiond, Guillaume
Munch-Maccagnoni, Sotaro Okada, Karl Palmskog, Pierre-Marie Pédrot, Jim Portegies,
Pierre Rousselin, Pierre Roux, Michael Soegtrop, David Swasey, Enrico
Tassi, Shengyi Wang and Théo Zimmermann.
The Coq community at large helped improve this new version via
the GitHub issue and pull request system, the coq-club@inria.fr mailing list,
the `Discourse forum <https://coq.discourse.group/>`_ and the
`Coq Zulip chat <https://coq.zulipchat.com>`_.
Version 8.19's development spanned 4 months from the release of Coq 8.18.0
(6 months since the branch for 8.18.0).
Gaëtan Gilbert and Matthieu Sozeau are the release managers of Coq 8.19.
This release is the result of 285 merged PRs, closing 70 issues.
| Nantes, January 2024
| Gaëtan Gilbert for the Coq development team
Changes in 8.19.0
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
- **Added:**
:ref:`sort-polymorphism` makes it possible to share common constructs
over `Type` `Prop` and `SProp`
(`#17836 <https://github.com/coq/coq/pull/17836>`_,
`#18331 <https://github.com/coq/coq/pull/18331>`_,
by Gaëtan Gilbert).
- **Fixed:**
Primitives being incorrectly considered convertible to anything by module subtyping
(`#18507 <https://github.com/coq/coq/pull/18507>`_,
fixes `#18503 <https://github.com/coq/coq/issues/18503>`_,
by Gaëtan Gilbert).
Specification language, type inference
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
:token:`term_forall_or_fun`, :token:`term_let`, :token:`term_fix`,
:token:`term_cofix` and :token:`term_if` from :token:`term` at level 200
to :token:`term10` at level 10. This is a first step towards getting rid
of the recovery mechanism of camlp5/coqpp. The impact will mostly be
limited to rare cases of additional parentheses around the above
(`#18014 <https://github.com/coq/coq/pull/18014>`_,
by Hugo Herbelin).
- **Changed:**
Declarations of the form :g:`(id := body)` in :cmd:`Context` outside a
section in a :cmd:`Module Type` do not any more try to declare a class
instance. Assumptions whose type is a class and declared using
:cmd:`Context` outside a section in a :cmd:`Module Type` are now
declared as global, instead of local
(`#18254 <https://github.com/coq/coq/pull/18254>`_,
by Hugo Herbelin).
- **Fixed:**
Anomaly in the presence of duplicate variables within a disjunctive pattern
(`#17857 <https://github.com/coq/coq/pull/17857>`_ and `#18005 <https://github.com/coq/coq/pull/18005>`_,
fixes `#17854 <https://github.com/coq/coq/issues/17854>`_ and `#18004 <https://github.com/coq/coq/issues/18004>`_,
by Hugo Herbelin).
- **Fixed:**
Printing of constructors and of :g:`in` clause of :g:`match` now respects the
:flag:`Printing Implicit` and :flag:`Printing All` flags
(`#18176 <https://github.com/coq/coq/pull/18176>`_,
fixes `#18163 <https://github.com/coq/coq/issues/18163>`_,
by Hugo Herbelin).
- **Fixed:**
Wrong shift of argument names when using :cmd:`Arguments` in nested sections
(`#18393 <https://github.com/coq/coq/pull/18393>`_,
fixes `#12755 <https://github.com/coq/coq/issues/12755>`_
and `#18392 <https://github.com/coq/coq/issues/18392>`_,
by Hugo Herbelin).
Notations
^^^^^^^^^
- **Changed:**
More informative message when a notation cannot be intepreted as a reference
(`#18104 <https://github.com/coq/coq/pull/18104>`_,
addresses `#18096 <https://github.com/coq/coq/issues/18096>`_,
by Hugo Herbelin).
- **Changed:**
In casts like :g:`term : t` where :g:`t` is bound to some
scope :g:`t_scope`, via :cmd:`Bind Scope`, the :g:`term` is now
interpreted in scope :g:`t_scope`. In particular when :g:`t`
is :g:`Type` the :g:`term` is interpreted in :g:`type_scope`
and when :g:`t` is a product the :g:`term` is interpreted
in :g:`fun_scope`
(`#6134 <https://github.com/coq/coq/pull/6134>`_,
fixes `#14959 <https://github.com/coq/coq/issues/14959>`_,
by Hugo Herbelin, reviewed by Maxime Dénès, Jim Fehrle, Emilio Gallego, Gaëtan Gilbert, Jason Gross, Pierre-Marie Pédrot, Pierre Roux, Bas Spitters and Théo Zimmermann).
- **Added:**
the notation :g:`term%_scope` to set a scope only temporarily
(in addition to :g:`term%scope` for opening a
scope applying to all subterms)
(`#14928 <https://github.com/coq/coq/pull/14928>`_,
fixes `#11486 <https://github.com/coq/coq/issues/11486>`_
and `#12157 <https://github.com/coq/coq/issues/12157>`_
and `#14305 <https://github.com/coq/coq/issues/14305>`_,
by Hugo Herbelin, reviewed by Pierre Roux).
- **Removed**
the ability to declare scopes whose name starts with `_`
(would be ambiguous with the new :g:`%_scope` notation)
(`#14928 <https://github.com/coq/coq/pull/14928>`_,
by Pierre Roux, reviewed by Hugo Herbelin).
- **Deprecated**
the notation :n:`term%scope` in :cmd:`Arguments` command.
In a few version, we'll make it an error and in next version give it
the same semantics as in terms (i.e., deep scope opening for all
subterms rather than just temporary opening)
(`#14928 <https://github.com/coq/coq/pull/14928>`_,
fixes `#11486 <https://github.com/coq/coq/issues/11486>`_
and `#12157 <https://github.com/coq/coq/issues/12157>`_
and `#14305 <https://github.com/coq/coq/issues/14305>`_,
by Hugo Herbelin, reviewed by Pierre Roux).
- **Added:**
Quoted strings can be used as tokens in notations; double quotes can be
used in symbols in :g:`only printing` notations; see :ref:`Basic notations <BasicNotations>`
for details (`#17123 <https://github.com/coq/coq/pull/17123>`_, by Hugo
Herbelin).
- **Added:**
Parsing support for notations with recursive binders involving not only
variables bound by :n:`fun` or :n:`forall` but also by :n:`let` or
:n:`match`
(`#17856 <https://github.com/coq/coq/pull/17856>`_,
fixes `#17845 <https://github.com/coq/coq/issues/17845>`_,
by Hugo Herbelin).
- **Added:**
Declaring more than once the level of a notation variable is now an error
(`#17988 <https://github.com/coq/coq/pull/17988>`_,
fixes `#17985 <https://github.com/coq/coq/issues/17985>`_,
by Hugo Herbelin).
- **Fixed:**
Various bugs and limitations to using custom binders in non-recursive and recursive notations
(`#17115 <https://github.com/coq/coq/pull/17115>`_,
fixes parts of `#17094 <https://github.com/coq/coq/issues/17094>`_,
by Hugo Herbelin).
- **Fixed:**
An invalid case of eta-expansion in notation pretty-printer
(`#17841 <https://github.com/coq/coq/pull/17841>`_,
fixes `#15221 <https://github.com/coq/coq/issues/15221>`_,
by Hugo Herbelin).
- **Fixed:**
:flag:`Printing Parentheses` now works also when an explicit level is
set for the right-hand side of a right-open notation
(`#17844 <https://github.com/coq/coq/pull/17844>`_,
fixes `#15322 <https://github.com/coq/coq/issues/15322>`_,
by Hugo Herbelin).
- **Fixed:**
anomaly when a notation variable denoting a binder occurs nested
more than once in a recursive pattern (`#17861
<https://github.com/coq/coq/pull/17861>`_, fixes `#17860
<https://github.com/coq/coq/issues/17860>`_, by Hugo Herbelin).
- **Fixed:**
Anomaly when trying to disable a non-existent custom notation
(`#17891 <https://github.com/coq/coq/pull/17891>`_,
fixes `#17782 <https://github.com/coq/coq/issues/17782>`_,
by Hugo Herbelin).
- **Fixed:**
appropriate error instead of anomaly in the presence of notations
with constructors applied to too many arguments in pattern-matching
(`#17892 <https://github.com/coq/coq/pull/17892>`_,
fixes `#17071 <https://github.com/coq/coq/issues/17071>`_,
by Hugo Herbelin).
- **Fixed:**
support constructors with parameters in number or string notations for patterns
(`#17902 <https://github.com/coq/coq/pull/17902>`_,
fixes `#11237 <https://github.com/coq/coq/issues/11237>`_,
by Hugo Herbelin).
- **Fixed:**
Chains of entry coercions possibly printed in the wrong order depending
on the order in which they were declared
(`#18230 <https://github.com/coq/coq/pull/18230>`_,
fixes `#18223 <https://github.com/coq/coq/issues/18223>`_,
by Hugo Herbelin).
Tactics
^^^^^^^
- **Changed:**
`open_constr` in Ltac1 and Ltac2 does not perform evar normalization.
Normalization may be recovered using `let c := open_constr:(...) in constr:(c)`
if necessary for performance
(`#17704 <https://github.com/coq/coq/pull/17704>`_,
by Gaëtan Gilbert).
- **Changed:**
:tacn:`abstract` now supports existential variables
(`#17745 <https://github.com/coq/coq/pull/17745>`_,
by Gaëtan Gilbert).
- **Changed:**
instances declared with :flag:`Typeclasses Unique Instances` do not allow backtracking even when the goal contains evars
(`#17789 <https://github.com/coq/coq/pull/17789>`_,
fixes `#6714 <https://github.com/coq/coq/issues/6714>`_,
by Jan-Oliver Kaiser).
- **Changed:**
In :tacn:`rewrite_strat`, the syntax for the :g:`choice` strategy has
changed slightly. You may need to add parentheses around its arguments
(one such case found in our continuous integration tests)
(`#17832 <https://github.com/coq/coq/pull/17832>`_,
by Hugo Herbelin, Jim Fehrle and Jason Gross).
- **Changed:**
:tacn:`replace` with `by tac` does not automatically attempt to solve
the generated equality subgoal using the hypotheses.
Use `by first [assumption | symmetry;assumption | tac]`
if you need the previous behaviour
(`#17964 <https://github.com/coq/coq/pull/17964>`_,
fixes `#17959 <https://github.com/coq/coq/issues/17959>`_,
by Gaëtan Gilbert).
- **Changed:**
``Z.euclidean_division_equations_cleanup`` now breaks up hypotheses of the
form `0 <= _ < _` for better cleanup in ``zify``
(`#17984 <https://github.com/coq/coq/pull/17984>`_,
by Jason Gross).
- **Changed:**
:tacn:`simpl` now refolds applied constants unfolding to reducible
fixpoints into the original constant even when this constant
would become partially applied
(`#17991 <https://github.com/coq/coq/pull/17991>`_,
by Hugo Herbelin).
- **Added:**
Ltac2 tactic `Std.resolve_tc` to resolve typeclass evars appearing in a given term
(`#13071 <https://github.com/coq/coq/pull/13071>`_,
by Gaëtan Gilbert and Maxime Dénès).
- **Added:**
:tacn:`lazy`, :tacn:`simpl`, :tacn:`cbn` and :tacn:`cbv` and the associated :cmd:`Eval`
and :tacn:`eval` reductions learned to do head reduction when given flag `head`
(eg `Eval lazy head in (fun x => Some ((fun y => y) x)) 0` produces `Some ((fun y => y) 0)`)
(`#17503 <https://github.com/coq/coq/pull/17503>`_,
by Gaëtan Gilbert; :tacn:`cbv` case added in `#18190 <https://github.com/coq/coq/pull/18190>`_,
by Hugo Herbelin).
- **Fixed:**
ensure that opaque primitive projections are correctly handled by "Evarconv"
unification
(`#17788 <https://github.com/coq/coq/pull/17788>`_,
fixes `#17774 <https://github.com/coq/coq/issues/17774>`_,
by Rodolphe Lepigre).
- **Fixed:**
Useless duplications with :cmd:`Hint Cut` and :cmd:`Hint Mode`
(`#17887 <https://github.com/coq/coq/pull/17887>`_,
fixes `#17417 <https://github.com/coq/coq/issues/17417>`_,
by Hugo Herbelin).
- **Fixed:**
`zify` / `Z.euclidean_division_equations_cleanup` now no longer instantiates
dependent hypotheses. This will by necessity make
`Z.to_euclidean_division_equations` a bit weaker, but the previous behavior
was overly sensitive to hypothesis ordering. See `#17935
<https://github.com/coq/coq/pull/17935>`_ for a recipe to recapture the power
of the previous behavior in a more robust albeit slower way (`#17935
<https://github.com/coq/coq/pull/17935>`_, fixes `#17936
<https://github.com/coq/coq/issues/17936>`_, by Jason Gross).
- **Fixed:**
:tacn:`simpl` now working on reducible named mutual fixpoints with parameters
(`#17993 <https://github.com/coq/coq/pull/17993>`_,
fixes `#12521 <https://github.com/coq/coq/issues/12521>`_
and part of `#3488 <https://github.com/coq/coq/issues/3488>`_,
by Hugo Herbelin).
- **Fixed:**
support for reasoning up to polymorphic universe variables in
:tacn:`congruence` and :tacn:`f_equal`
(`#18106 <https://github.com/coq/coq/pull/18106>`_,
fixes `#5481 <https://github.com/coq/coq/issues/5481>`_
and `#9979 <https://github.com/coq/coq/issues/9979>`_,
by Hugo Herbelin).
- **Fixed:**
Only run zify saturation on existing hypotheses of the goal
(`#18152 <https://github.com/coq/coq/pull/18152>`_,
fixes `#18151 <https://github.com/coq/coq/issues/18151>`_,
by Frédéric Besson and Rodolphe Lepigre).
- **Fixed:**
A stack overflow due to a non-tail recursive function in `lia`
(`#18159 <https://github.com/coq/coq/pull/18159>`_,
fixes `#18158 <https://github.com/coq/coq/issues/18158>`_,
by Jan-Oliver Kaiser and Rodolphe Lepigre).
- **Fixed:**
Apply substitution in Case stack node for cbv reify
(`#18195 <https://github.com/coq/coq/pull/18195>`_,
fixes `#18194 <https://github.com/coq/coq/issues/18194>`_,
by Yann Leray).
- **Fixed:**
Anomaly of :tacn:`simpl` on partially applied named mutual fixpoints
(`#18243 <https://github.com/coq/coq/pull/18243>`_,
fixes `#18239 <https://github.com/coq/coq/issues/18239>`_,
by Hugo Herbelin).
- **Changed:**
:tacn:`simpl` tries to reduce named mutual fixpoints also when they return functions
(`#18243 <https://github.com/coq/coq/pull/18243>`_,
by Hugo Herbelin).
Ltac language
^^^^^^^^^^^^^
- **Fixed:**
Fix broken "r <num>" and "r <string>" commands in the coqtop
Ltac debugger, which also affected the Proof General Ltac debugger
(`#18068 <https://github.com/coq/coq/pull/18068>`_,
fixes `#18067 <https://github.com/coq/coq/issues/18067>`_,
by Jim Fehrle).
.. _819Ltac2:
Ltac2 language
^^^^^^^^^^^^^^
- **Changed:**
`Array.empty`, `Message.Format.stop` and `Pattern.empty_context` are not thunked
(`#17534 <https://github.com/coq/coq/pull/17534>`_,
by Gaëtan Gilbert).
- **Changed:**
Ltac2 `exact` and `eexact` elaborate their argument using the type of the goal as expected type,
instead of elaborating with no expected type then unifying the resulting type with the goal
(`#18157 <https://github.com/coq/coq/pull/18157>`_,
fixes `#12827 <https://github.com/coq/coq/issues/12827>`_,
by Gaëtan Gilbert).
- **Changed:**
argument order for the Ltac2 combinators `List.fold_left` `List.fold_right`
and `Array.fold_right` changed to be the same as in OCaml
(`#18197 <https://github.com/coq/coq/pull/18197>`_,
fixes `#16485 <https://github.com/coq/coq/issues/16485>`_,
by Gaëtan Gilbert).
- **Changed:**
`Ltac2.Std.red_flags` added field `rStrength` to support head-only reduction
(`#18273 <https://github.com/coq/coq/pull/18273>`_,
fixes `#18209 <https://github.com/coq/coq/issues/18209>`_,
by Gaëtan Gilbert).
- **Added:**
Ltac2 supports pattern quotations when building `pattern` values.
This allows building dynamic patterns, eg `Ltac2 eq_pattern a b := pattern:($pattern:a = $pattern:b)`
(`#17667 <https://github.com/coq/coq/pull/17667>`_,
by Gaëtan Gilbert).
- **Added:**
new standard library modules `Ltac2.Unification` and `Ltac2.TransparentState`
providing access to "Evarconv" unification, including the configuration of the
transparency state
(`#17777 <https://github.com/coq/coq/pull/17777>`_,
by Rodolphe Lepigre).
- **Added:**
``Ltac2.Constr.is_float``, ``Ltac2.Constr.is_uint63``, ``Ltac2.Constr.is_array``
(`#17894 <https://github.com/coq/coq/pull/17894>`_,
by Jason Gross).
- **Added:**
new Ltac2 standard library modules `Ltac2.Ref`, `Ltac2.Lazy` and `Ltac2.RedFlags`
- **Added:**
new Ltac2 standard library functions to `Ltac2.Control`, `Ltac2.Array`, and
`Ltac2.List`
(`#18095 <https://github.com/coq/coq/pull/18095>`_,
fixes `#10112 <https://github.com/coq/coq/issues/10112>`_,
by Rodolphe Lepigre).
- **Added:**
Support for the ``setoid_rewrite`` tactic
(`#18102 <https://github.com/coq/coq/pull/18102>`_,
by quarkcool).
- **Added:**
:cmd:`Ltac2 Globalize` and :cmd:`Ltac2 Check` useful to investigate the expansion of Ltac2 notations
(`#18139 <https://github.com/coq/coq/pull/18139>`_,
by Gaëtan Gilbert).
- **Added:**
A new flag :flag:`Ltac2 In Ltac1 Profiling` (unset by default) to control
whether Ltac2 stack frames are included in Ltac profiles
(`#18293 <https://github.com/coq/coq/pull/18293>`_,
by Rodolphe Lepigre).
- **Added:**
`Ltac2.Message.Format.ikfprintf` useful to implement conditional printing
efficiently (i.e. without building an unused message when not printing)
(`#18311 <https://github.com/coq/coq/pull/18311>`_,
fixes `#18292 <https://github.com/coq/coq/issues/18292>`_,
by Gaëtan Gilbert).
- **Fixed:**
Ltac2 mutable references are not considered values anymore
(`#18082 <https://github.com/coq/coq/pull/18082>`_,
by Gaëtan Gilbert).
Commands and options
^^^^^^^^^^^^^^^^^^^^
- **Changed:**
:cmd:`Let` with :cmd:`Qed` produces an opaque side definition
instead of being treated as a transparent `let` after the section is closed.
The previous behaviour can be recovered using :attr:`clearbody` and :cmd:`Defined`
(`#17576 <https://github.com/coq/coq/pull/17576>`_,
by Gaëtan Gilbert).
- **Changed:**
automatic lowering of record types to `Prop` now matches the behavior for inductives:
no lowering when universe polymorphism is on, more lowering with recursive records
(`#17795 <https://github.com/coq/coq/pull/17795>`_,
fixes `#17801 <https://github.com/coq/coq/issues/17801>`_
and `#17796 <https://github.com/coq/coq/issues/17796>`_
and `#17801 <https://github.com/coq/coq/issues/17801>`_
and `#17805 <https://github.com/coq/coq/issues/17805>`_,
by Gaëtan Gilbert).
- **Added:**
:opt:`Extraction Output Directory` option for specifying the
directory in which extracted files are written
(`#16126 <https://github.com/coq/coq/pull/16126>`_,
fixes `#9148 <https://github.com/coq/coq/issues/9148>`_,
by Ali Caglayan).
- **Added:**
`-profile` command line argument and `PROFILE` variable in `coq_makefile` to control a new :ref:`profiling` system
(`#17702 <https://github.com/coq/coq/pull/17702>`_,
by Gaëtan Gilbert).
- **Added:**
new command modifier :cmd:`Instructions` that executes the given command and
displays the number of CPU instructions it took to execute it. This command
is currently only supported on Linux systems, but it does not fail on other
systems, where it simply shows an error message instead of the count.
(`#17744 <https://github.com/coq/coq/pull/17744>`_,
by Rodolphe Lepigre).
- **Added:**
support for instruction counts to the `-profile` option.
(`#17744 <https://github.com/coq/coq/pull/17744>`_,
by Rodolphe Lepigre).
- **Added:**
New command :cmd:`Attributes` to assign attributes such as
:attr:`deprecated` to a library file
(`#18193 <https://github.com/coq/coq/pull/18193>`_,
fixes `#8032 <https://github.com/coq/coq/issues/8032>`_,
by Hugo Herbelin).
- **Fixed:**
Anomaly with :cmd:`Search` in the context of a goal
(`#17987 <https://github.com/coq/coq/pull/17987>`_,
fixes `#17963 <https://github.com/coq/coq/issues/17963>`_,
by Hugo Herbelin).
- **Fixed:**
The printer for :cmd:`Guarded` was possibly raising an anomaly
in the presence of existential variables
(`#18008 <https://github.com/coq/coq/pull/18008>`_,
fixes `#18006 <https://github.com/coq/coq/issues/18006>`_,
by Hugo Herbelin).
Command-line tools
^^^^^^^^^^^^^^^^^^
- **Changed:**
Add a `coqdep` option `-w` to adjust warnings and allow turning then into
errors like the corresponding `coqc` option
(`#17946 <https://github.com/coq/coq/pull/17946>`_,
fixes `#10156 <https://github.com/coq/coq/issues/10156>`_,
by David Swasey and Rodolphe Lepigre).
- **Fixed:**
properly delayed variable expansion when `coq_makefile` uses
the combined rule for `.vo` and `.glob` targets,
i.e. on GNU Make 4.4 and later.
(`#18077 <https://github.com/coq/coq/pull/18077>`_,
fixes `#18076 <https://github.com/coq/coq/issues/18076>`_,
by Gaëtan Gilbert).
- **Fixed:**
Spurious `coqdep` warnings due to missing path normalization for plugins
(`#18165 <https://github.com/coq/coq/pull/18165>`_,
by Rodolphe Lepigre).
- **Fixed:**
Regression in option :g:`--external` of `coqdoc`, whose two arguments
were inadvertently swapped
(`#18448 <https://github.com/coq/coq/pull/18448>`_,
fixes `#18434 <https://github.com/coq/coq/issues/18434>`_,
by Hugo Herbelin).
.. _819Stdlib:
Standard library
^^^^^^^^^^^^^^^^
- **Changed:**
reimplemented `Ncring_tac` reification (used by :tacn:`nsatz`, `cring`, but not :tacn:`ring`)
in Ltac instead of typeclasses
(`#18325 <https://github.com/coq/coq/pull/18325>`_,
by Gaëtan Gilbert).
- **Removed:** :g:`Numbers.Cyclic.ZModulo` from the standard library. This
file was deprecated in 8.17 and has no known use cases. It is retained in
the test suite to ensure consistency of :g:`CyclicAxioms`
(`#17258 <https://github.com/coq/coq/pull/17258>`_,
by Andres Erbsen).
- **Removed:** :g:`ZArith.Zdigits` in favor of :g:`Z.testbit`
(`#18025 <https://github.com/coq/coq/pull/18025>`_,
by Andres Erbsen).
- **Removed:**
long deprecated files in `Arith`: `Div2.v`, `Even.v`, `Gt.v`,
`Le.v`, `Lt.v`, `Max.v`, `Minus.v`, `Min.v`, `Mult.v`, `Plus.v`,
`Arith_prebase.v`
(`#18164 <https://github.com/coq/coq/pull/18164>`_,
by Pierre Rousselin).
- **Deprecated:** :g:`NArith.Ndigits` and :g:`NArith.Ndist` due to disuse.
For most uses of `Ndigits`, `N.testbit` and similar functions seem more
desirable. If you would like to continue using these files, please consider
volunteering to maintain them, within stdlib or otherwise
(`#17732 <https://github.com/coq/coq/pull/17732>`_,
by Andres Erbsen).
- **Deprecated:** :g:`Strings.ByteVector` in favor of :g:`Init.Byte`
(`#18022 <https://github.com/coq/coq/pull/18022>`_,
by Andres Erbsen).
- **Deprecated:** :g:`Numbers.NaryFunctions` due to disuse. If you are
interested in continuting to use this module, please consider volunteering to
maintain it, in stdlib or otherwise
(`#18026 <https://github.com/coq/coq/pull/18026>`_,
by Andres Erbsen).
- **Added:**
Lemma `cardinal_Add_In` says that inserting an existing key with a new
value doesn't change the size of a map, lemma `Add_transpose_neqkey` says
that unequal keys can be inserted into a map in any order
(`#12096 <https://github.com/coq/coq/pull/12096>`_,
by Isaac van Bakel and Jean-Christophe Léchenet).
- **Added:**
lemmas :g:`app_eq_cons`, :g:`app_inj_pivot` and :g:`rev_inj`
(`#17787 <https://github.com/coq/coq/pull/17787>`_,
by Stefan Haan, with help of Olivier Laurent).
- **Added:**
``unfold_nth_error``, ``nth_error_nil``, ``nth_error_cons``, ``nth_error_O``,
``nth_error_S`` to ``Coq.Lists.List``
(`#17998 <https://github.com/coq/coq/pull/17998>`_,
by Jason Gross).
- **Added:**
``Reflexive``, ``Symmetric``, ``Transitive``, ``Antisymmetric``,
``Asymmetric`` instances for ``Rle``, ``Rge``, ``Rlt``, ``Rgt``
(`#18059 <https://github.com/coq/coq/pull/18059>`_,
by Jason Gross).
Extraction
^^^^^^^^^^
- **Fixed:**
In the error message about extraction of sort-polymorphic
singleton inductive types, do not specifically refer to OCaml as
other languages are also concerned
(`#17889 <https://github.com/coq/coq/pull/17889>`_,
fixes `#17817 <https://github.com/coq/coq/issues/17817>`_,
by Hugo Herbelin).
Changes in 8.19.1
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
- **Fixed:**
incorrect abstraction of sort variables for opaque constants
leading to an inconsistency
(`#18596 <https://github.com/coq/coq/pull/18596>`_
and `#18630 <https://github.com/coq/coq/pull/18630>`_,
fixes `#18594 <https://github.com/coq/coq/issues/18594>`_,
by Gaëtan Gilbert).
- **Fixed:**
memory corruption with :tacn:`vm_compute` (rare but more likely with OCaml 5.1)
(`#18599 <https://github.com/coq/coq/pull/18599>`_,
by Guillaume Melquiond).
Notations
^^^^^^^^^
- **Changed:**
:warn:`Found no matching notation to enable or disable` is a warning instead of an error
(`#18670 <https://github.com/coq/coq/pull/18670>`_,
by Pierre Roux).
Tactics
^^^^^^^
- **Fixed:**
undeclared universe with multiple uses of :tacn:`abstract`
(`#18640 <https://github.com/coq/coq/pull/18640>`_,
fixes `#18636 <https://github.com/coq/coq/issues/18636>`_,
by Gaëtan Gilbert).
Ltac2 language
^^^^^^^^^^^^^^
- **Fixed:**
incorrect printing of constructor values with multiple arguments,
and over-parenthesizing of constructor printing
(`#18560 <https://github.com/coq/coq/pull/18560>`_,
fixes `#18556 <https://github.com/coq/coq/issues/18556>`_,
by Gaëtan Gilbert).
- **Fixed:**
incorrect declared type for `Ltac2.FMap.fold`
(`#18649 <https://github.com/coq/coq/pull/18649>`_,
fixes `#18635 <https://github.com/coq/coq/issues/18635>`_,
by Gaëtan Gilbert).
Infrastructure and dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Fixed:**
missing `conf-` dependencies of the opam packages:
`coq-core` depends on `conf-linux-libc-dev` when compiled on linux,
and `coq` depends on `conf-python-3` and `conf-time` to run the test suite
(`#18565 <https://github.com/coq/coq/pull/18565>`_,
by Gaëtan Gilbert).
- **Fixed:**
avoid comitting symlinks to git which caused build failures on some Windows setups
(`#18550 <https://github.com/coq/coq/pull/18550>`_,
fixes `#18548 <https://github.com/coq/coq/issues/18548>`_,
by Gaëtan Gilbert).
Changes in 8.19.2
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Specification language, type inference
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Fixed:**
Regression from Coq 8.18 in the presence of a defined field in
a primitive :n:`Record`
(`#19088 <https://github.com/coq/coq/pull/19088>`_,
fixes `#19082 <https://github.com/coq/coq/issues/19082>`_,
by Hugo Herbelin).
Notations
^^^^^^^^^
- **Fixed:**
Printer sometimes failing to use a prefix or infix custom notation
whose right-hand side refers to a different custom entry
(`#18089 <https://github.com/coq/coq/pull/18089>`_,
fixes `#18914 <https://github.com/coq/coq/issues/18914>`_,
by Hugo Herbelin).
Tactics
^^^^^^^
- **Fixed:**
:tacn:`abstract` failing in the presence of admitted goals in the surrounding proof
(`#18945 <https://github.com/coq/coq/pull/18944>`_,
fixes `#18942 <https://github.com/coq/coq/issues/18942>`_,
by Gaëtan Gilbert).
Ltac2 language
^^^^^^^^^^^^^^
- **Fixed:**
anomalies when using Ltac2 in VsCoq due to incorrect state handling of Ltac2 notations
(`#19096 <https://github.com/coq/coq/pull/19096>`_,
fixes `coq-community/vscoq#772 <https://github.com/coq-community/vscoq/issues/772>`_,
by Gaëtan Gilbert)
Commands and options
^^^^^^^^^^^^^^^^^^^^
- **Fixed:**
anomaly when using :cmd:`Include` on a module containing a record
declared with :flag:`Primitive Projections`
(`#18772 <https://github.com/coq/coq/pull/18772>`_,
fixes `#18769 <https://github.com/coq/coq/issues/18769>`_,
by Jan-Oliver Kaiser)
- **Fixed:**
anomaly from :cmd:`Fixpoint` with no arguments
(`#18741 <https://github.com/coq/coq/pull/18741>`_,
by Hugo Herbelin)
CoqIDE
^^^^^^
- **Fixed:**
Position error/warning tooltips correctly when multibyte UTF-8 characters are present
(`#19137 <https://github.com/coq/coq/pull/19137>`_,
fixes `#19136 <https://github.com/coq/coq/issues/19136>`_,
by Jim Fehrle).
Infrastructure and dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Fixed:**
compatibility with OCaml versions where `effect` is a keyword
(`#18863 <https://github.com/coq/coq/pull/18863>`_,
by Remy Seassau)
- **Added:**
Coq is now compatible with `memprof-limits` interruption
methods. This means that Coq will be recompiled when the library is
installed / removed from an OPAM switch.
(`#18906 <https://github.com/coq/coq/pull/18906>`_,
fixes `#17760 <https://github.com/coq/coq/issues/17760>`_,
by Emilio Jesus Gallego Arias).
Version 8.18
------------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.18 integrates two soundness fixes to the Coq kernel along
with a host of improvements. We highlight a few impactful changes:
- the default :ref:`locality <818HintLocality>` of `Hint` and :cmd:`Instance`
commands was switched to :attr:`export`.
- the universe unification algorithm can now delay the commitment to a
sort (the algorithm used to pick `Type`). Thanks to this feature many `Prop`
and `SProp` annotations can be now omitted.
- Ltac2 supports array literals, maps and sets of primitive datatypes such
as names (of constants, inductive types, etc) and fine-grained
control over profiling.
- The warning system offers new categories, enabling finer (de)activation of specific warnings.
This should be particularly useful to handle deprecations.
- Many new lemmas useful for teaching analysis with Coq are now part of
the standard library about real numbers.
- The `#[deprecated]` attribute can now be applied to definitions.
The 41 contributors to the 8.18 version are:
Reynald Affeldt, Tanaka Akira, Matthieu Baty, Yves Bertot,
Lasse Blaauwbroek, Ana Borges, Kate Deplaix, Ali Caglayan, Cyril Cohen, Maxime Dénès,
Andrej Dudenhefner, Andres Erbsen, Jim Fehrle, Yannick Forster,
Paolo G. Giarrusso, Gaëtan Gilbert, Jason Gross, Samuel Gruetter,
Stefan Haan, Hugo Herbelin, Yoshihiro Imai, Emilio Jesús Gallego Arias,
Olivier Laurent, Meven Lennon-Bertrand, Rodolphe Lepigre, Yishuai Li,
Guillaume Melquiond, Karl Palmskog, Pierre-Marie Pédrot, Stefan Radziuk,
Ramkumar Ramachandra, Pierre Rousselin, Pierre Roux, Julin Shaji,
Kazuhiko Sakaguchi, Weng Shiwei, Michael Soegtrop, Matthieu Sozeau,
Enrico Tassi, Hao Yang, Théo Zimmermann.
We are very grateful to the Coq community for their help in creating 8.18
in the 6 months since the release of
Coq 8.17.0. Maxime Dénès and Enrico Tassi were the release managers.
| Sophia-Antipolis, September 2023,
| Enrico Tassi for the Coq development team
Changes in 8.18.0
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
- **Changed:**
the `bad-relevance` warning is now an error by default
(`#17172 <https://github.com/coq/coq/pull/17172>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
the kernel now checks that case elimination of private inductive types (cf :attr:`private(matching)`) is not used outside their defining module.
Previously this was only checked in elaboration and the check could be avoided through some tactics, breaking consistency in the presence of axioms which rely on the elimination restriction to be consistent
(`#17452 <https://github.com/coq/coq/pull/17452>`_,
fixes `#9608 <https://github.com/coq/coq/issues/9608>`_,
by Gaëtan Gilbert).
- **Fixed:**
a bug enabling :tacn:`native_compute` to yield arbitrary floating-point values
(`#17872 <https://github.com/coq/coq/pull/17872>`_,
fixes `#17871 <https://github.com/coq/coq/issues/17871>`_,
by Guillaume Melquiond and Pierre Roux, bug found by Jason Gross).
Specification language, type inference
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
enhance the universe unification algorithm, which is now
able to delay the definition of a sort. This allows omitting
some explicit `Prop` and `SProp` annotations when writing terms.
Some minor backwards compatibility issues can arise in rare cases,
which can be solved with more explicit sort annotations
(`#16903 <https://github.com/coq/coq/pull/16903>`_,
by Pierre-Marie Pédrot).
- **Changed:**
match compilation for primitive record avoids producing an encoding overhead for matches that are equivalent to a primitive projection
(`#17008 <https://github.com/coq/coq/pull/17008>`_,
by Gaëtan Gilbert).
- **Added:**
volatile casts :n:`@term :> @type` which do not leave a trace in the elaborated term.
They are used by :flag:`Printing Match All Subterms` to display otherwise hidden subterms of match constructs
(`#16992 <https://github.com/coq/coq/pull/16992>`_,
fixes `#16918 <https://github.com/coq/coq/issues/16918>`_,
by Gaëtan Gilbert).
- **Added:**
when printing uninterpreted terms (for instance through :cmd:`Print Ltac` on `Ltac foo := exact some_term`),
extensions to the term language (for instance :ref:`tactics-in-terms`) are now printed correctly instead of as holes (`_`)
(`#17221 <https://github.com/coq/coq/pull/17221>`_,
by Gaëtan Gilbert).
- **Added:**
Support for the :attr:`local`, :attr:`global` and :attr:`export`
locality attributes for the single "field" of :ref:`definitional
typeclasses <singleton-class>` when using the ``:>`` and ``::``
syntaxes for coercion and substructures
(`#17754 <https://github.com/coq/coq/pull/17754>`_,
fixes `#17451 <https://github.com/coq/coq/issues/17451>`_,
by Pierre Roux).
- **Added:**
a hook in the coercion mechanism to enable programming coercions in
external metalanguages such as Ltac, Ltac2, Elpi or OCaml plugins
(`#17794 <https://github.com/coq/coq/pull/17794>`_,
by Pierre Roux).
- **Fixed:**
canonical instance matching `match` terms
(`#17206 <https://github.com/coq/coq/pull/17206>`_,
fixes `#17079 <https://github.com/coq/coq/issues/17079>`_,
by Gaëtan Gilbert).
- **Fixed:**
universe constraint inference in module subtyping can trigger constant unfoldings
(`#17305 <https://github.com/coq/coq/pull/17305>`_,
fixes `#17303 <https://github.com/coq/coq/issues/17303>`_,
by Gaëtan Gilbert).
Notations
^^^^^^^^^
- **Removed:**
The `\'[=\'` keyword. `\'[=\'`
tokens in notation definitions should be replaced with the pair of
tokens `\'[\' \'=\'`. If compatibility with Coq < 8.18
is needed, replace `[=` in uses of the notation with
an added space (`[ =`)
(`#16788 <https://github.com/coq/coq/pull/16788>`_,
fixes `#16785 <https://github.com/coq/coq/issues/16785>`_,
by Pierre Roux).
- **Added:**
Support for :flag:`Printing Parentheses` in custom notations
(`#17117 <https://github.com/coq/coq/pull/17117>`_, by Hugo
Herbelin).
- **Added:**
Improve printing of reverse coercions. When a term :g:`x`
is elaborated to :g:`x'` through a reverse coercion,
return the term :g:`reverse_coercion x' x` that is convertible
to :g:`x'` but displayed :g:`x` thanks to the coercion
:g:`reverse_coercion`
(`#17484 <https://github.com/coq/coq/pull/17484>`_,
by Pierre Roux).
- **Fixed:**
Add support to parse a recursive pattern as a sequence of terms in a
recursive notation even when this recursive pattern is used in
position of binders; it was formerly raising an anomaly (`#16937
<https://github.com/coq/coq/pull/16937>`_, fixes `#12467
<https://github.com/coq/coq/issues/12467>`_, by Hugo Herbelin).
- **Fixed:**
Improved ability to print notations involving anonymous binders
(`#17050 <https://github.com/coq/coq/pull/17050>`_,
by Hugo Herbelin).
- **Fixed:**
anomaly with notations abbreviating a local variable or record field name
(`#17217 <https://github.com/coq/coq/pull/17217>`_,
fixes `#14975 <https://github.com/coq/coq/issues/14975>`_,
by Hugo Herbelin).
- **Fixed:**
Ensure in all cases that a parsing rule is declared when the :n:`only parsing` flag is given
(`#17318 <https://github.com/coq/coq/pull/17317>`_,
fixes `#17316 <https://github.com/coq/coq/issues/17316>`_,
by Hugo Herbelin).
- **Fixed:**
In :cmd:`Number Notation`, "abstract after N" was applied when number >= N.
Now it is applied when number > N
(`#17478 <https://github.com/coq/coq/pull/17478>`_,
by Jim Fehrle).
Tactics
^^^^^^^
- **Changed:**
in the fringe case where the ``with`` clause of a call to :tacn:`specialize`
depends on a variable bound in the type, the tactic will now fail instead of
silently producing a shelved evar
(`#17322 <https://github.com/coq/coq/pull/17322>`_,
by Pierre-Marie Pédrot).
- **Changed:**
extensions to the term syntax through generic arguments (typically `ltac:()`, `ltac2:()` or ltac2's `$`)
produce errors when used in term patterns (for instance patterns used to filter hints) instead of being treated as holes (`_`)
(`#17352 <https://github.com/coq/coq/pull/17352>`_,
by Gaëtan Gilbert).
- **Changed:**
the :tacn:`case` tactic and its variants always generate a
pattern-matching node, regardless of their argument. In
particular, they are now guaranteed to generate as many goals
as there are constructors in the inductive type. Previously,
they used to reduce to the corresponding branch when the argument
βι-normalized to a constructor, resulting in a single goal
(`#17541 <https://github.com/coq/coq/pull/17541>`_,
by Pierre-Marie Pédrot).
- **Changed:**
:tacn:`injection` continues working using sigma types when `Eqdep_dec` has not been required even if an equality scheme was found, instead of failing
(`#17670 <https://github.com/coq/coq/pull/17670>`_,
by Gaëtan Gilbert).
- **Changed:**
the unification heuristics for implicit arguments of the :tacn:`case` tactic.
We unconditionally recommend using :tacn:`destruct` instead, and even more so
in case of incompatibility
(`#17564 <https://github.com/coq/coq/pull/17564>`_,
by Pierre-Marie Pédrot).
- **Removed:**
the no-argument form of the :tacn:`instantiate` tactic, deprecated since 8.16
(`#16910 <https://github.com/coq/coq/pull/16910>`_,
by Pierre-Marie Pédrot).
- **Removed:**
undocumented tactics `hresolve_core` and `hget_evar`
(`#17035 <https://github.com/coq/coq/pull/17035>`_,
by Gaëtan Gilbert).
- **Deprecated:**
the `elimtype` and `casetype` tactics
(`#16904 <https://github.com/coq/coq/pull/16904>`_,
by Pierre-Marie Pédrot).
- **Deprecated:**
`revert dependent`, which is a misleadingly named alias of :tacn:`generalize dependent`
(`#17669 <https://github.com/coq/coq/pull/17669>`_,
by Gaëtan Gilbert).
- **Fixed:**
The :tacn:`simpl` tactic now respects the :n:`simpl never` flag even
when the subject function is referred to through another definition
(`#13448 <https://github.com/coq/coq/pull/13448>`_,
fixes `#13428 <https://github.com/coq/coq/issues/13428>`_,
by Yves Bertot).
- **Fixed:**
unification is less sensitive to whether a subterm is
an indirection through a defined existential variable or a direct term node.
This results in less constant unfoldings in rare cases
(`#16960 <https://github.com/coq/coq/pull/16960>`_,
by Gaëtan Gilbert).
- **Fixed:**
untypable proof states generated by setoid_rewrite, which may cause some backwards-incompatibilities
(`#17304 <https://github.com/coq/coq/pull/17304>`_,
fixes `#17295 <https://github.com/coq/coq/issues/17295>`_,
by Lasse Blaauwbroek).
- **Fixed:**
intropatterns destructing a term whose type is a product
cannot silently create shelved evars anymore. Instead, it
fails with an unsolvable variable. This can be fixed in a
backwards compatible way by using the e-variant of the parent
tactic
(`#17564 <https://github.com/coq/coq/pull/17564>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
the :tacn:`field_simplify` tactic, so that it no longer
introduces side-conditions when working on a hypothesis
(`#17591 <https://github.com/coq/coq/pull/17591>`_,
by Guillaume Melquiond).
- **Fixed:**
the :tacn:`tauto` tactic and its variants now try to match types
up to universe unification. This makes them compatible with
universe-polymorphic code
(`#8905 <https://github.com/coq/coq/pull/8905>`_,
fixes `#4721 <https://github.com/coq/coq/issues/4721>`_
and `#5351 <https://github.com/coq/coq/issues/5351>`_,
by Pierre-Marie Pédrot).
Ltac2 language
^^^^^^^^^^^^^^
- **Added:**
Support for parsing Ltac2 array literals ``[| ... |]``
(`#16859 <https://github.com/coq/coq/pull/16859>`_,
fixes `#13976 <https://github.com/coq/coq/issues/13976>`_,
by Samuel Gruetter).
- **Added:**
Finite set and map APIs for identifier, string, int, constant, inductive and constructor keys
(`#17347 <https://github.com/coq/coq/pull/17347>`_,
c.f. `#16409 <https://github.com/coq/coq/issues/16409>`_,
by Gaëtan Gilbert).
- **Added:**
Ltac2 preterm antiquotation `$preterm:`
(`#17359 <https://github.com/coq/coq/pull/17359>`_,
fixes `#13977 <https://github.com/coq/coq/issues/13977>`_,
by Gaëtan Gilbert).
- **Added:**
:flag:`Ltac Profiling` also profiles Ltac2 tactics.
Ltac2 also provides tactics `start_profiling` `stop_profiling` and `show_profile` for finer grained control
(`#17371 <https://github.com/coq/coq/pull/17371>`_,
fixes `#10111 <https://github.com/coq/coq/issues/10111>`_,
by Gaëtan Gilbert).
- **Added:**
primitives to build and compare values in `Ltac2.Init.cast`
(`#17468 <https://github.com/coq/coq/pull/17468>`_,
by Gaëtan Gilbert).
- **Added:**
It is possible to define 0-argument externals
(`#17475 <https://github.com/coq/coq/pull/17475>`_,
by Gaëtan Gilbert).
- **Added:**
Ltac2 quotations :ref:`ltac2val:(ltac2 tactic) <ltac2in1>` in Ltac1 which produce Ltac1 values
(as opposed to `ltac2:()` quotations which are only useful for their side effects)
(`#17575 <https://github.com/coq/coq/pull/17575>`_,
by Gaëtan Gilbert).
- **Fixed:**
nested notations involving :ref:`term-antiquotations`
(`#17232 <https://github.com/coq/coq/pull/17232>`_,
fixes `#15864 <https://github.com/coq/coq/issues/15864>`_,
by Gaëtan Gilbert).
- **Fixed:**
Parsing level of :g:`by` clause of Ltac2's :g:`assert`
(`#17508 <https://github.com/coq/coq/pull/17508>`_,
fixes `#17491 <https://github.com/coq/coq/issues/17491>`_,
by Samuel Gruetter).
- **Fixed:**
`multi_match!`, `multi_match! goal` and the underlying
`Ltac2.Pattern.multi_match0` and `Ltac2.Pattern.multi_goal_match0`
now preserve exceptions from backtracking after a branch succeeded
instead of replacing them with `Match_failure`
(e.g. `multi_match! constr:(tt) with tt => () end; Control.zero Not_found`
now fails with `Not_found` instead of `Match_failure`)
(`#17597 <https://github.com/coq/coq/pull/17597>`_,
fixes `#17594 <https://github.com/coq/coq/issues/17594>`_,
by Gaëtan Gilbert).
Commands and options
^^^^^^^^^^^^^^^^^^^^
.. _818HintLocality:
- **Changed:**
the default locality of `Hint` and :cmd:`Instance` commands was
switched to :attr:`export`
(`#16258 <https://github.com/coq/coq/pull/16258>`_,
by Pierre-Marie Pédrot).
- **Changed:** warning `non-primitive-record` is now in category
`records` instead of `record`. This was the only use of `record` but
the plural version is also used by `cannot-define-projection`
`future-coercion-class-constructor` and
`future-coercion-class-field`. (`#16989
<https://github.com/coq/coq/pull/16989>`_, by Gaëtan Gilbert).
- **Changed:**
:cmd:`Eval` prints information about existential variables like :cmd:`Check`
(`#17274 <https://github.com/coq/coq/pull/17274>`_,
by Gaëtan Gilbert).
- **Changed:**
The names of deprecation warnings now depend on the version
in which they were introduced, using their "since" field.
This enables deprecation warnings to be selectively enabled,
disabled, or treated as an error, according to the version number
provided in the :attr:`deprecated` attribute
(`#17489 <https://github.com/coq/coq/pull/17489>`_,
fixes `#16287 <https://github.com/coq/coq/issues/16287>`_,
by Pierre Roux, reviewed by Ali Caglayan, Théo Zimmermann and Gaëtan Gilbert).
- **Changed:**
warnings can now have multiple categories allowing for finer user control on which warning to enable, disable or treat as an error
(`#17585 <https://github.com/coq/coq/pull/17585>`_,
by Gaëtan Gilbert).
- **Changed:**
:attr:`Template polymorphic <universes(template)>` inductive types are
not implicitly added to the :table:`Keep Equalities` table anymore when
defined. This may change the behavior of equality-related tactics on
such types
(`#17718 <https://github.com/coq/coq/pull/17718>`_,
by Pierre-Marie Pédrot).
- **Changed:**
:opt:`Warnings` and :attr:`warnings` now emit a warning when trying
to enable an unknown warning (there is still no warning when
disabling an unknown warning as this behavior is useful for
compatibility, or when enabling an unknown warning through the
command line `-w` as the warning may be in a yet to be loaded
plugin) (`#17747 <https://github.com/coq/coq/pull/17747>`_, by
Gaëtan Gilbert).
- **Removed:**
the flag `Apply With Renaming` which was deprecated
since 8.15
(`#16909 <https://github.com/coq/coq/pull/16909>`_,
by Pierre-Marie Pédrot).
- **Removed:**
the `Typeclasses Filtered Unification` flag, deprecated
since 8.16
(`#16911 <https://github.com/coq/coq/pull/16911>`_,
by Pierre-Marie Pédrot).
- **Removed:**
:attr:`program` attribute is not accepted anymore with commands
:cmd:`Add Relation`, :cmd:`Add Parametric Relation`, :cmd:`Add
Setoid`, :cmd:`Add Parametric Setoid`, :cmd:`Add Morphism`,
:cmd:`Add Parametric Morphism`, :cmd:`Declare Morphism`. Previously,
it was accepted but ignored
(`#17042 <https://github.com/coq/coq/pull/17042>`_,
by Théo Zimmermann).
- **Removed:**
the `Elaboration StrictProp Cumulativity` and
`Cumulative SProp` flags. These flags became
counterproductive after the introduction of sort variables
in unification
(`#17114 <https://github.com/coq/coq/pull/17114>`_,
fixes `#17108 <https://github.com/coq/coq/issues/17108>`_,
by Pierre-Marie Pédrot).
- **Removed:**
The ``Add LoadPath``, ``Add Rec LoadPath``, ``Add ML Path``, and
``Remove LoadPath`` commands have been removed following deprecation. Users
are encouraged to use the existing mechanisms in ``coq_makefile`` or
``dune`` to configure workspaces of Coq theories
(`#17394 <https://github.com/coq/coq/pull/17394>`_,
by Emilio Jesus Gallego Arias).
- **Deprecated:**
`Export` modifier for :cmd:`Set`. Use attribute :attr:`export` instead
(`#17333 <https://github.com/coq/coq/pull/17333>`_,
by Gaëtan Gilbert).
- **Deprecated:**
the :attr:`nonuniform` attribute,
now subsumed by :attr:`warnings` with "-uniform-inheritance"
(`#17716 <https://github.com/coq/coq/pull/17716>`_,
by Pierre Roux).
- **Deprecated:**
Using :cmd:`Qed` with :cmd:`Let`. End the proof with :cmd:`Defined` and use :attr:`clearbody`
instead to get the same behavior
(`#17544 <https://github.com/coq/coq/pull/17544>`_,
by Gaëtan Gilbert).
- **Added:**
:cmd:`About` now prints information when a constant or inductive is syntactically equal to another through module aliasing
(`#16796 <https://github.com/coq/coq/pull/16796>`_,
by Gaëtan Gilbert).
- **Added:**
:cmd:`Final Obligation` command
(`#16817 <https://github.com/coq/coq/pull/16817>`_,
by Gaëtan Gilbert).
- **Added:**
The :attr:`deprecated` attribute is now supported for definition-like constructions
(`#16890 <https://github.com/coq/coq/pull/16890>`_,
fixes `#12266 <https://github.com/coq/coq/issues/12266>`_,
by Maxime Dénès and Gaëtan Gilbert).
- **Added:**
attributes :attr:`warnings` and alias :attr:`warning` to set warnings locally for a command
(`#16902 <https://github.com/coq/coq/pull/16902>`_,
fixes `#15893 <https://github.com/coq/coq/issues/15893>`_,
by Gaëtan Gilbert).
- **Added:**
flag :flag:`Printing Unfolded Projection As Match` (off by default) to be able to distinguish unfolded and folded primitive projections
(`#16994 <https://github.com/coq/coq/pull/16994>`_,
by Gaëtan Gilbert).
- **Added:**
option `-time-file`, like `time` but outputting to a file
(`#17430 <https://github.com/coq/coq/pull/17430>`_,
by Gaëtan Gilbert).
- **Added:**
:cmd:`Validate Proof` runs the type checker on the current proof,
complementary with :cmd:`Guarded` which runs the guard checker
(`#17467 <https://github.com/coq/coq/pull/17467>`_,
by Gaëtan Gilbert).
- **Added:**
:attr:`clearbody` for :cmd:`Let` to clear the body of a let-in in an interactive
proof without kernel enforcement. (This is the behavior that was previously
provided by using :cmd:`Qed`, which is now deprecated for `Let`\s.)
(`#17544 <https://github.com/coq/coq/pull/17544>`_,
by Gaëtan Gilbert).
- **Added:**
option `-time-file`, like `time` but outputting to a file
(`#17430 <https://github.com/coq/coq/pull/17430>`_,
by Gaëtan Gilbert).
- **Fixed:**
universe monomorphic inductives and records do not ignore :flag:`Universe Minimization ToSet`
(`#17285 <https://github.com/coq/coq/pull/17285>`_,
fixes `#13927 <https://github.com/coq/coq/issues/13927>`_,
by Gaëtan Gilbert).
Command-line tools
^^^^^^^^^^^^^^^^^^
- **Changed:**
Do not pass the ``-rectypes`` flag by default in
``coq_makefile`` when compiling OCaml code, since
it is no longer required by Coq. To re-enable passing
the flag, put ``CAMLFLAGS+=-rectypes`` in the local makefile,
e.g., ``CoqMakefile.local`` (see :ref:`coqmakefilelocal`)
(`#17038 <https://github.com/coq/coq/pull/17038>`_,
by Karl Palmskog with help from Gaëtan Gilbert).
- **Changed:**
disable inclusion of variable binders in coqdoc indexes by default,
and provide a new coqdoc option `--binder-index` for including them
(`#17045 <https://github.com/coq/coq/pull/17045>`_,
fixes `#13155 <https://github.com/coq/coq/issues/13155>`_,
by Karl Palmskog).
- **Added:**
`coqdoc` handles multiple links to the same source. For
example when declaring an inductive type `t` all occurences
of `t` itself and its elimination principles like `t_ind`
point to its declaration
(`#17118 <https://github.com/coq/coq/pull/17118>`_,
by Enrico Tassi).
- **Added:**
Command line options :n:`-require lib` (replacing
:n:`-load-vernac-object lib`) and :n:`-require-from root lib`
respectively equivalent to vernacular commands :n:`Require lib` and
:n:`From root Require lib`
(`#17364 <https://github.com/coq/coq/pull/17364>`_, by Hugo Herbelin).
- **Added:**
`coqtimelog2html` command-line tool used to render the timing files produced with `-time`
(which is passed by `coq_makefile` when environment variable `TIMING` is defined)
(`#17411 <https://github.com/coq/coq/pull/17411>`_,
by Gaëtan Gilbert).
- **Fixed:**
`coq_makefile` avoids generating a command containing all files to install in a make rule,
which could surpass the maximum single argument size in some developments
(`#17697 <https://github.com/coq/coq/pull/17697>`_,
fixes `#17721 <https://github.com/coq/coq/issues/17721>`_,
by Gaëtan Gilbert).
CoqIDE
^^^^^^
- **Changed:**
XML Protocol now sends (and expects) full Coq locations, including
line and column information. This makes some IDE operations (such as
UTF-8 decoding) more efficient. Clients of the XML protocol can just
ignore the new fields if they are not useful for them
(`#17382 <https://github.com/coq/coq/pull/17382>`_,
fixes `#17023 <https://github.com/coq/coq/issues/17023>`_,
by Emilio Jesus Gallego Arias).
Standard library
^^^^^^^^^^^^^^^^
- **Changed:**
implementation of :g:`Vector.nth` to follow OCaml and compute strict subterms
(`#16731 <https://github.com/coq/coq/pull/16731>`_,
fixes `#16738 <https://github.com/coq/coq/issues/16738>`_,
by Andrej Dudenhefner).
- **Changed:**
drop the unnecessary second assumption :g:`NoDup l'` from :g:`set_diff_nodup` in ``ListSet.v``,
with `-compat 8.17` providing the old version of :g:`set_diff_nodup` for compatibility
(`#16926 <https://github.com/coq/coq/pull/16926>`_,
by Karl Palmskog with help from Traian Florin Şerbănuţă and Andres Erbsen).
- **Changed:** Moved instances from :g:`DecidableClass` to files that prove
the relevant decidability facts: :g:`Bool`, :g:`PeanoNat`, and :g:`BinInt`
(`#17021 <https://github.com/coq/coq/pull/17021>`_,
by Andres Erbsen).
- **Changed:** `Hint Extern` `btauto.Algebra.bool` locality from :attr:`global` to :attr:`export`
(`#17281 <https://github.com/coq/coq/pull/17281>`_,
by Andres Erbsen).
- **Changed:**
:g:`xorb` to a simpler definition
(`#17427 <https://github.com/coq/coq/pull/17427>`_,
by Guillaume Melquiond).
- **Changed** lemmas in `Reals/RIneq.v`
- :g:`completeness_weak` renamed as :g:`upper_bound_thm`,
- :g:`le_epsilon` renamed as :g:`Rle_epsilon`,
- :g:`Rplus_eq_R0` renamed as :g:`Rplus_eq_0`,
- :g:`Req_EM_T` renamed as :g:`Req_dec_T`,
- :g:`Rinv_r_simpl_m` renamed as :g:`Rmult_inv_r_id_m`,
- :g:`Rinv_r_simpl_l` renamed as :g:`Rmult_inv_r_id_l`,
- :g:`Rinv_r_simpl_r` renamed as :g:`Rmult_inv_m_id_r`,
- :g:`tech_Rgt_minus` renamed as :g:`Rgt_minus_pos`,
- :g:`tech_Rplus` renamed as :g:`Rplus_le_lt_0_neq_0`,
- :g:`IZR_POS_xI` modified with `2` instead of `1 + 1`,
- :g:`IZR_POS_xO` modified with `2` instead of `1 + 1`,
- :g:`Rge_refl` modified with `>=` instead of `<=`
(`#17036 <https://github.com/coq/coq/pull/17036>`_,
by Pierre Rousselin, reviewer Laurent Théry).
- **Removed:**
:g:`Datatypes.prod_curry`, :g:`Datatypes.prod_uncurry`, :g:`Datatypes.prodT_curry`, :g:`Datatypes.prodT_uncurry`, :g:`Combinators.prod_curry_uncurry`, :g:`Combinators.prod_uncurry_curry`,
:g:`Bool.leb`, :g:`Bool.leb_implb`,
:g:`List.skipn_none`,
:g:`Zdiv.Z_div_mod_eq`, :g:`Zdiv.div_Zdiv`, :g:`Zdiv.mod_Zmod`,
:g:`FloatOps.frexp`, :g:`FloatOps.ldexp`, :g:`FloatLemmas.frexp_spec`, :g:`FloatLemmas.ldexp_spec`,
:g:`RList.Rlist`, :g:`Rlist.cons`, :g:`Rlist.nil`, :g:`RList.Rlength`,
:g:`Rtrigo_calc.cos3PI4`, :g:`Rtrigo_calc.sin3PI4`,
:g:`MSetRBT.filter_app`
after deprecation for at least two Coq versions
(`#16920 <https://github.com/coq/coq/pull/16920>`_,
by Olivier Laurent).
- **Deprecated:**
:g:`List.app_nil_end`, :g:`List.app_assoc_reverse`, :g:`List.ass_app`, :g:`List.app_ass`
(`#16920 <https://github.com/coq/coq/pull/16920>`_,
by Olivier Laurent).
- **Deprecated:**
`Coq.Lists.List.Forall2_refl` (`Coq.Lists.List.Forall2_nil` has the same type)
(`#17646 <https://github.com/coq/coq/pull/17646>`_,
by Gaëtan Gilbert).
- **Deprecated:** :g:`ZArith.Zdigits` in favor of :g:`Z.testbit`. If you are
aware of a use case of this module and would be interested in a drop-in
replacement, please comment on the PR with information about the context that
would benefit from such functinality
(`#17733 <https://github.com/coq/coq/pull/17733>`_,
by Andres Erbsen).
- **Deprecated:** Deprecation warnings are now generated for
:g:`Numbers.Cyclic.Int31.Cyclic31`, :g:`NNumbers.Cyclic.Int31.Int31`, and
:g:`NNumbers.Cyclic.Int31.Ring31`. These modules have been deprecated since
Coq 8.10. The modules under :g:`Numbers.Cyclic.Int63` remain available
(`#17734 <https://github.com/coq/coq/pull/17734>`_,
by Andres Erbsen).
- **Deprecated**
lemmas in `Reals/RIneq.v`
:g:`inser_trans_R`,
:g:`IZR_neq`,
:g:`double`,
:g:`double_var`,
:g:`Rinv_mult_simpl`,
:g:`Rle_Rinv`,
:g:`Rlt_Rminus`,
:g:`Rminus_eq_0`,
:g:`Rminus_gt_0_lt`,
:g:`Ropp_div`,
:g:`Ropp_minus_distr'`,
:g:`Rplus_sqr_eq_0_l`,
:g:`sum_inequa_Rle_lt_depr`,
:g:`S_O_plus_INR_depr`,
:g:`single_z_r_R1_depr`,
:g:`tech_single_z_r_R1_depr`,
(`#17036 <https://github.com/coq/coq/pull/17036>`_,
by Pierre Rousselin, reviewer Laurent Théry).
- **Added:**
lemmas :g:`L_inj`, :g:`R_inj`, :g:`L_R_neq`, :g:`case_L_R`, :g:`case_L_R'` to ``Fin.v``,
and :g:`nil_spec`, :g:`nth_append_L`, :g:`nth_append_R`, :g:`In_nth`, :g:`nth_replace_eq`, :g:`nth_replace_neq`,
:g:`replace_append_L`, :g:`replace_append_R`, :g:`append_const`, :g:`map_append`, :g:`map2_ext`, :g:`append_inj`,
:g:`In_cons_iff`, :g:`Forall_cons_iff`, :g:`Forall_map`, :g:`Forall_append`, :g:`Forall_nth`, :g:`Forall2_nth`, :g:`Forall2_append`,
:g:`map_shiftin`, :g:`fold_right_shiftin`, :g:`In_shiftin`, :g:`Forall_shiftin`, :g:`rev_nil`, :g:`rev_cons`, :g:`rev_shiftin`,
:g:`rev_rev`, :g:`map_rev`, :g:`fold_left_rev_right`, :g:`In_rev`, :g:`Forall_rev` to ``VectorSpec.v``
(`#16765 <https://github.com/coq/coq/pull/16765>`_,
closes `#6459 <https://github.com/coq/coq/issues/6459>`_,
by Andrej Dudenhefner).
- **Added:**
lemmas :g:`iter_swap_gen`, :g:`iter_swap`, :g:`iter_succ`, :g:`iter_succ_r`,
:g:`iter_add`, :g:`iter_ind`, :g:`iter_rect`, :g:`iter_invariant` for `Nat.iter`
(`#17013 <https://github.com/coq/coq/pull/17013>`_,
by Stefan Haan with help from Jason Gross).
- **Added:** module :g:`Zbitwise` with basic relationships between bitwise and
arithmetic operations on integers
(`#17022 <https://github.com/coq/coq/pull/17022>`_,
by Andres Erbsen).
- **Added:**
lemmas :g:`forallb_filter`, :g:`forallb_filter_id`, :g:`partition_as_filter`,
:g:`filter_length`, :g:`filter_length_le` and :g:`filter_length_forallb`
(`#17027 <https://github.com/coq/coq/pull/17027>`_,
by Stefan Haan with help from Olivier Laurent and Andres Erbsen).
- **Added:**
lemmas in `Reals/RIneq.v`:
:g:`eq_IZR_contrapositive`,
:g:`INR_0`,
:g:`INR_1`,
:g:`INR_archimed`,
:g:`INR_unbounded`,
:g:`IPR_2_xH`,
:g:`IPR_2_xI`,
:g:`IPR_2_xO`,
:g:`IPR_eq`,
:g:`IPR_ge_1`,
:g:`IPR_gt_0`,
:g:`IPR_IPR_2`,
:g:`IPR_le`,
:g:`IPR_lt`,
:g:`IPR_not_1`,
:g:`IPR_xH`,
:g:`IPR_xI`,
:g:`IPR_xO`,
:g:`le_IPR`,
:g:`lt_1_IPR`,
:g:`lt_IPR`,
:g:`minus_IPR`,
:g:`mult_IPR`,
:g:`not_1_IPR`,
:g:`not_IPR`,
:g:`plus_IPR`,
:g:`pow_IPR`,
:g:`Rdiv_0_l`,
:g:`Rdiv_0_r`,
:g:`Rdiv_1_l`,
:g:`Rdiv_1_r`,
:g:`Rdiv_def`,
:g:`Rdiv_diag_eq`,
:g:`Rdiv_diag`,
:g:`Rdiv_diag_uniq`,
:g:`Rdiv_eq_compat_l`,
:g:`Rdiv_eq_compat_r`,
:g:`Rdiv_eq_reg_l`,
:g:`Rdiv_eq_reg_r`,
:g:`Rdiv_mult_distr`,
:g:`Rdiv_mult_l_l`,
:g:`Rdiv_mult_l_r`,
:g:`Rdiv_mult_r_l`,
:g:`Rdiv_mult_r_r`,
:g:`Rdiv_neg_neg`,
:g:`Rdiv_neg_pos`,
:g:`Rdiv_opp_l`,
:g:`Rdiv_pos_cases`,
:g:`Rdiv_pos_neg`,
:g:`Rdiv_pos_pos`,
:g:`Rexists_between`,
:g:`Rge_gt_or_eq_dec`,
:g:`Rge_gt_or_eq`,
:g:`Rge_lt_dec`,
:g:`Rge_lt_dec`,
:g:`Rgt_le_dec`,
:g:`Rgt_minus_pos`,
:g:`Rgt_or_le`,
:g:`Rgt_or_not_gt`,
:g:`Rinv_0_lt_contravar`,
:g:`Rinv_eq_compat`,
:g:`Rinv_eq_reg`,
:g:`Rinv_lt_0_contravar`,
:g:`Rinv_neg`,
:g:`Rinv_pos`,
:g:`Rle_gt_dec`,
:g:`Rle_half_plus`,
:g:`Rle_lt_or_eq`,
:g:`Rle_or_gt`,
:g:`Rle_or_not_le`,
:g:`Rlt_0_2`,
:g:`Rlt_0_minus`,
:g:`Rlt_ge_dec`,
:g:`Rlt_half_plus`,
:g:`Rlt_minus_0`,
:g:`Rlt_or_ge`,
:g:`Rlt_or_not_lt`,
:g:`Rminus_def`,
:g:`Rminus_diag`,
:g:`Rminus_eq_compat_l`,
:g:`Rminus_eq_compat_r`,
:g:`Rminus_plus_distr`,
:g:`Rminus_plus_l_l`,
:g:`Rminus_plus_l_r`,
:g:`Rminus_plus_r_l`,
:g:`Rminus_plus_r_r`,
:g:`Rmult_div_assoc`,
:g:`Rmult_div_l`,
:g:`Rmult_div_r`,
:g:`Rmult_div_swap`,
:g:`Rmult_gt_reg_r`,
:g:`Rmult_inv_l`,
:g:`Rmult_inv_m_id_r`,
:g:`Rmult_inv_r`,
:g:`Rmult_inv_r_id_l`,
:g:`Rmult_inv_r_id_m`,
:g:`Rmult_inv_r_uniq`,
:g:`Rmult_neg_cases`,
:g:`Rmult_neg_neg`,
:g:`Rmult_neg_pos`,
:g:`Rmult_pos_cases`,
:g:`Rmult_pos_neg`,
:g:`Rmult_pos_pos`,
:g:`Ropp_div_distr_l`,
:g:`Ropp_eq_reg`,
:g:`Ropp_neg`,
:g:`Ropp_pos`,
:g:`Rplus_0_l_uniq`,
:g:`Rplus_eq_0`,
:g:`Rplus_ge_reg_r`,
:g:`Rplus_gt_reg_r`,
:g:`Rplus_minus_assoc`,
:g:`Rplus_minus_l`,
:g:`Rplus_minus_r`,
:g:`Rplus_minus_swap`,
:g:`Rplus_neg_lt`,
:g:`Rplus_neg_neg`,
:g:`Rplus_neg_npos`,
:g:`Rplus_nneg_ge`,
:g:`Rplus_nneg_nneg`,
:g:`Rplus_nneg_pos`,
:g:`Rplus_npos_le`,
:g:`Rplus_npos_neg`,
:g:`Rplus_npos_npos`,
:g:`Rplus_pos_gt`,
:g:`Rplus_pos_nneg`,
:g:`Rplus_pos_pos`,
:g:`Rsqr_def`
lemmas in `Reals/R_Ifp.v`:
:g:`Int_part_spec`,
:g:`Rplus_Int_part_frac_part`,
:g:`Int_part_frac_part_spec`
(`#17036 <https://github.com/coq/coq/pull/17036>`_,
by Pierre Rousselin, reviewer Laurent Théry).
- **Added:** lemmas :g:`concat_length`, :g:`flat_map_length`,
:g:`flat_map_constant_length`, :g:`list_power_length` to `Lists.List`
(`#17082 <https://github.com/coq/coq/pull/17082>`_,
by Stefan Haan with help from Olivier Laurent).
Infrastructure and dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
Sphinx 4.5.0 or above is now required to build the reference manual, so now /
can be used as a quick search shortcut and Esc as a shortcut to remove search
highlighting
(`#17772 <https://github.com/coq/coq/pull/17772>`_,
fixes `#15778 <https://github.com/coq/coq/issues/15778>`_,
by Ana Borges).
Extraction
^^^^^^^^^^
- **Fixed:**
Anomaly when extracting within a module or module type
(`#17344 <https://github.com/coq/coq/pull/17344>`_,
fixes `#10739 <https://github.com/coq/coq/issues/10739>`_,
by Hugo Herbelin).
Version 8.17
------------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.17 integrates a soundness fix to the Coq kernel along
with a few new features and a host of improvements to the Ltac2 language
and libraries. We highlight some of the most impactful changes here:
- :ref:`Fixed <817VmCompute>` a logical inconsistency due to :tacn:`vm_compute` in
presence of side-effects in the enviroment (e.g. using `Back` or `Fail`).
- It is now possible to dynamically :ref:`enable or disable <817Notations>` notations.
- Support :ref:`multiple scopes <817Scopes>` in :cmd:`Arguments` and :cmd:`Bind Scope`.
- The tactics chapter of the manual has :ref:`many improvements <817TacticsRefman>`
in presentation and wording. The documented grammar is semi-automatically checked
for consistency with the implementation.
- :ref:`Fixes <817Eauto>` to the :tacn:`auto` and :tacn:`eauto` tactics, to respect hint priorities and the documented use
of :tacn:`simple apply`. This is a potentially breaking change.
- :ref:`New Ltac2 <817Ltac2>` APIs, deep pattern-matching with ``as`` clauses and handling of literals,
support for record types and preterms.
- :ref:`Move <817ClassFieldSyntax>` from :g:`:>` to :g:`::` syntax for declaring typeclass fields as instances, fixing
a confusion with declaration of coercions.
- :ref:`Standard library <817Stdlib>` improvements.
- While Coq supports OCaml 5, users are likely to experience slowdowns ranging from +10% to +50% compared to OCaml 4.
Moreover, the :tacn:`native_compute` machinery is not available when Coq is compiled with OCaml 5.
Therefore, OCaml 5 support should still be considered experimental and not production-ready.
See the `Changes in 8.17.0`_ section below for the detailed list of changes,
including potentially breaking changes marked with **Changed**.
Coq's `reference manual for 8.17 <https://coq.github.io/doc/v8.17/refman>`_,
`documentation of the 8.17 standard library <https://coq.github.io/doc/v8.17/stdlib>`_
and `developer documentation of the 8.17 ML API <https://coq.github.io/doc/v8.17/api>`_
are also available.
Ali Caglayan, Emilio Jesús Gallego Arias, Gaëtan Gilbert
and Théo Zimmermann worked on maintaining and improving the
continuous integration system and package building infrastructure.
Erik Martin-Dorel has maintained the `Coq Docker images
<https://hub.docker.com/r/coqorg/coq>`_ that are used in many Coq
projects for continuous integration.
Maxime Dénès, Paolo G. Giarrusso, Huỳnh Trần Khanh, and Laurent Théry have
maintained the VsCoq extension for VS Code.
The opam repository for Coq packages has been maintained by
Guillaume Claret, Karl Palmskog, Matthieu Sozeau and Enrico Tassi with
contributions from many users. A list of packages is available at
https://coq.inria.fr/opam/www/.
The `Coq Platform <https://github.com/coq/platform>`_ has been maintained
by Michael Soegtrop, with help from Karl Palmskog, Pierre Roux, Enrico Tassi and
Théo Zimmermann.
Our current maintainers are Yves Bertot, Frédéric Besson, Ana Borges,
Ali Caglayan, Tej Chajed, Cyril Cohen, Pierre Corbineau, Pierre Courtieu, Maxime Dénès,
Andres Erbsen, Jim Fehrle, Julien Forest, Emilio Jesús Gallego Arias, Gaëtan Gilbert,
Georges Gonthier, Benjamin Grégoire, Jason Gross, Hugo Herbelin,
Vincent Laporte, Olivier Laurent, Assia Mahboubi, Kenji Maillard,
Guillaume Melquiond, Pierre-Marie Pédrot, Clément Pit-Claudel, Pierre Roux,
Kazuhiko Sakaguchi, Vincent Semeria, Michael Soegtrop, Arnaud Spiwack,
Matthieu Sozeau, Enrico Tassi, Laurent Théry, Anton Trunov, Li-yao Xia
and Théo Zimmermann. See the `Coq Team face book <https://coq.inria.fr/coq-team.html>`_
page for more details.
The 45 contributors to the 8.17 version are:
Reynald Affeldt, Tanaka Akira, Lasse Blaauwbroek, Stephan Boyer, Ali Caglayan, Cyril Cohen, Maxime Dénès, Andrej Dudenhefner, Andres Erbsen, František Farka, Jim Fehrle, Paolo G. Giarrusso, Gaëtan Gilbert, Jason Gross, Alban Gruin, Stefan Haan, Hugo Herbelin, Wolf Honore, Bodo Igler, Jerry James, Emilio Jesús Gallego Arias, Ralf Jung, Jan-Oliver Kaiser, Wojciech Karpiel, Chantal Keller, Thomas Klausner, Olivier Laurent, Yishuai Li, Guillaume Melquiond, Karl Palmskog, Sudha Parimala, Pierre-Marie Pédrot, Valentin Robert, Pierre Roux, Julin S, Dmitry Shachnev, Michael Soegtrop, Matthieu Sozeau, Naveen Srinivasan, Sergei Stepanenko, Karolina Surma, Enrico Tassi, Li-yao Xia
and Théo Zimmermann.
The Coq community at large helped improve this new version via
the GitHub issue and pull request system, the coq-club@inria.fr mailing list,
the `Discourse forum <https://coq.discourse.group/>`_ and the
`Coq Zulip chat <https://coq.zulipchat.com>`_.
Version 8.17's development spanned 5 months from the release of
Coq 8.16.0. Théo Zimmermann is the release manager of Coq 8.17.
This release is the result of 414 merged PRs, closing 105 issues.
| Nantes, February 2023,
| Matthieu Sozeau for the Coq development team
Changes in 8.17.0
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
.. _817VmCompute:
- **Fixed:**
inconsistency linked to :tacn:`vm_compute`. The fix removes a vulnerable cache, thus it may result in slowdowns when :tacn:`vm_compute` is used repeatedly, if you encounter such slowdowns please report your use case
(`#16958 <https://github.com/coq/coq/pull/16958>`_,
fixes `#16957 <https://github.com/coq/coq/issues/16957>`_,
by Gaëtan Gilbert).
- **Fixed:**
Unexpected anomaly when checking termination of fixpoints
containing :g:`match` expressions with inaccessible branches
(`#17116 <https://github.com/coq/coq/pull/17116>`_,
fixes `#17073 <https://github.com/coq/coq/issues/17073>`_,
by Hugo Herbelin).
Specification language, type inference
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
:warn:`Unused variable <Unused variable ‘ident’ might be a misspelled constructor. Use _ or _‘ident’ to silence this warning.>` warning
triggers even when catching a single case. This warning used to be
triggered only when the unused variable was catching at least
two cases (`#16135 <https://github.com/coq/coq/pull/16135>`_,
by Pierre Roux).
- **Fixed:**
Pattern-matching clauses were possibly lost when matching over a
constructor from a singleton inductive type in the presence of
implicit coercions (`#17138 <https://github.com/coq/coq/pull/17138>`_,
fixes `#17137 <https://github.com/coq/coq/issues/17137>`_, by Hugo
Herbelin).
- **Fixed:**
Possible anomaly when using syntax :g:`term.(proj)` with projections defined in sections
(`#17174 <https://github.com/coq/coq/pull/17174>`_,
fixes `#17173 <https://github.com/coq/coq/issues/17173>`_,
by Hugo Herbelin).
Notations
^^^^^^^^^
- **Changed:**
When multiple tokens match the beginning of a sequence of characters,
the longest matching token not cutting a subsequence of contiguous
letters in the middle is used. Previously, this was only the longest
matching token. See :ref:`lexical conventions <lexing-unseparated-keywords>`
for details and examples
(`#16322 <https://github.com/coq/coq/pull/16322>`_,
fixes `#4712 <https://github.com/coq/coq/issues/4712>`_,
by Hugo Herbelin).
.. _817Notations:
- **Added:**
:cmd:`Enable Notation` and :cmd:`Disable Notation` commands
to enable or disable previously defined notations
(`#12324 <https://github.com/coq/coq/pull/12324>`_ and `#16945 <https://github.com/coq/coq/pull/16945>`_,
by Hugo Herbelin and Pierre Roux, extending previous work by Lionel Rieg,
review by Jim Fehrle).
.. _817Scopes:
- **Added:**
Support for multiple scopes in the :cmd:`Arguments` command
(`#16472 <https://github.com/coq/coq/pull/16472>`_,
by Pierre Roux, review by Jim Fehrle, Hugo Herbelin and Enrico Tassi).
- **Added:**
Attributes :attr:`add_top` and :attr:`add_bottom` to bind
multiple scopes through the :cmd:`Bind Scope` command
(`#16472 <https://github.com/coq/coq/pull/16472>`_,
by Pierre Roux, review by Jim Fehrle, Hugo Herbelin and Enrico Tassi).
Tactics
^^^^^^^
.. _817TacticsRefman:
- **Changed:**
Documentation in the tactics chapter to give the current correct syntax,
consolidate tactic variants for each tactic into a single,
unified description for each tactic and many wording improvements.
With this change, following similar changes to other chapters
in previous releases, the correctness of documented syntax is
assured by semi-automated tooling in all chapters except SSReflect
(`#15015 <https://github.com/coq/coq/pull/15015>`_,
`#16498 <https://github.com/coq/coq/pull/16498>`_, and
`#16659 <https://github.com/coq/coq/pull/16659>`_,
by Jim Fehrle, reviewed by Théo Zimmermann, with help from many others).
.. _817Eauto:
- **Changed:**
:tacn:`eauto` respects priorities of :cmd:`Extern <Hint Extern>` hints
(`#16289 <https://github.com/coq/coq/pull/16289>`_,
fixes `#5163 <https://github.com/coq/coq/issues/5163>`_
and `#16282 <https://github.com/coq/coq/issues/16282>`_,
by Andrej Dudenhefner).
.. warning:: Code that relies on eager evaluation of :cmd:`Extern <Hint Extern>` hints
with high assigned cost by :tacn:`eauto` will change its performance
profile or potentially break.
To approximate prior behavior, set to zero the cost of :cmd:`Extern <Hint Extern>` hints,
which may solve the goal in one step.
- **Changed:**
less discrepancies between :tacn:`auto` hint evaluation and :tacn:`simple apply`, :tacn:`exact` tactics
(`#16293 <https://github.com/coq/coq/pull/16293>`_,
fixes `#16062 <https://github.com/coq/coq/issues/16062>`_
and `#16323 <https://github.com/coq/coq/issues/16323>`_,
by Andrej Dudenhefner).
.. warning:: :tacn:`auto` may solve more goals.
As a result, non-monotone use of :tacn:`auto` such as :g:`tac1; auto. tac2.` may break.
For backwards compatibility use explicit goal management.
- **Removed:** `absurd_hyp` tactic, that was marked as obsolete 15
years ago. Use :tacn:`contradict` instead (`#16670
<https://github.com/coq/coq/pull/16670>`_, by Théo Zimmermann).
- **Removed:**
the undocumented `progress_evars` tactical
(`#16843 <https://github.com/coq/coq/pull/16842>`_,
by Théo Zimmermann).
- **Deprecated:** the default ``intuition_solver`` (see
:tacn:`intuition`) now outputs warning ``intuition-auto-with-star``
if it solves a goal with ``auto with *`` that was not solved with
just :tacn:`auto`. In a future version it will be changed to just
:tacn:`auto`. Use ``intuition tac`` locally or ``Ltac
Tauto.intuition_solver ::= tac`` globally to silence the warning in
a forward-compatible way with your choice of tactic ``tac``
(``auto``, ``auto with *``, ``auto with`` your prefered databases,
or any other tactic) (`#16026
<https://github.com/coq/coq/pull/16026>`_, by Gaëtan Gilbert).
- **Deprecated:**
`>` clear modifier that could be used in some tactics like
:tacn:`apply` and :tacn:`rewrite` but was never documented.
Open an issue if you actually depend on this feature
(`#16407 <https://github.com/coq/coq/pull/16407>`_,
by Théo Zimmermann).
- **Fixed:**
:tacn:`auto` now properly updates local hypotheses after hint application
(`#16302 <https://github.com/coq/coq/pull/16302>`_,
fixes `#15814 <https://github.com/coq/coq/issues/15814>`_
and `#6332 <https://github.com/coq/coq/issues/6332>`_,
by Andrej Dudenhefner).
- **Fixed:**
Make the behavior of :tacn:`destruct ... using ... <destruct>` more powerful and more similar to :tacn:`destruct ... <destruct>`
(`#16605 <https://github.com/coq/coq/pull/16605>`_,
by Lasse Blaauwbroek).
- **Fixed:**
typeclass inference sometimes caused remaining holes to fail to be detected
(`#16743 <https://github.com/coq/coq/pull/16743>`_,
fixes `#5239 <https://github.com/coq/coq/issues/5239>`_,
by Gaëtan Gilbert).
Ltac language
^^^^^^^^^^^^^
- **Changed:**
:cmd:`Ltac` redefinitions (with ``::=``) now respect :attr:`local`
(`#16106 <https://github.com/coq/coq/pull/16106>`_,
by Gaëtan Gilbert).
- **Changed:**
In :tacn:`match goal`, ``match goal with hyp := body : typ |- _``
is syntax sugar for ``match goal with hyp := [ body ] : typ |- _``
i.e. it matches ``typ`` with the type of the hypothesis
rather than matching the body as a cast term.
This transformation used to be done with any kind of cast (e.g. VM cast ``<:``)
and is now done only for default casts ``:``
(`#16764 <https://github.com/coq/coq/pull/16764>`_,
by Gaëtan Gilbert).
.. _817Ltac2:
Ltac2 language
^^^^^^^^^^^^^^
- **Changed:**
``Ltac2.Bool`` notations are now in a module ``Ltac2.Bool.BoolNotations``
(exported by default), so that these notations can be imported separately
(`#16536 <https://github.com/coq/coq/pull/16536>`_,
by Jason Gross).
- **Changed:**
``Constr.in_context`` enforces that the ``constr`` passed to it is a type
(`#16547 <https://github.com/coq/coq/pull/16547>`_,
fixes `#16540 <https://github.com/coq/coq/issues/16540>`_,
by Gaëtan Gilbert).
- **Changed:**
goal matching functions from ``Ltac2.Pattern`` (``matches_goal``, ``lazy_goal_match0``, ``multi_goal_match0`` and ``one_goal_match0``) have changed types to support matching hypothesis bodies
(`#16655 <https://github.com/coq/coq/pull/16655>`_,
by Gaëtan Gilbert).
- **Added:**
Deep :ref:`pattern matching <ltac2_match_on_values>` for Ltac2
(`#16023 <https://github.com/coq/coq/pull/16023>`_,
by Gaëtan Gilbert).
- **Added:**
patterns for Ltac2 matches: ``as``, records and literal integers and strings
(`#16179 <https://github.com/coq/coq/pull/16179>`_,
by Gaëtan Gilbert).
- **Added:**
APIs for working with strings: `Message.to_string`, `String.concat`, `cat`, `equal`, `compare`, `is_empty`
(`#16217 <https://github.com/coq/coq/pull/16217>`_,
by Gaëtan Gilbert).
- **Added:**
``Ltac2.Constr.Unsafe.liftn``
(`#16413 <https://github.com/coq/coq/pull/16413>`_,
by Jason Gross).
- **Added:**
``Ltac2.Constr.Unsafe.closedn``,
``Ltac2.Constr.Unsafe.is_closed``,
``Ltac2.Constr.Unsafe.occur_between``,
``Ltac2.Constr.Unsafe.occurn`` (`#16414
<https://github.com/coq/coq/pull/16414>`_, by Jason Gross).
- **Added:**
`Ltac2.List.equal`
(`#16429 <https://github.com/coq/coq/pull/16429>`_,
by Jason Gross).
- **Added:**
:cmd:`Print Ltac2`, :cmd:`Print Ltac2 Signatures` and :cmd:`Locate` can now find Ltac2 definitions
(`#16466 <https://github.com/coq/coq/pull/16466>`_,
fixes `#16418 <https://github.com/coq/coq/issues/16418>`_
and `#16415 <https://github.com/coq/coq/issues/16415>`_,
by Gaëtan Gilbert).
- **Added:**
``Ltac2.Array.for_all2`` and ``Ltac2.Array.equal``
(`#16535 <https://github.com/coq/coq/pull/16535>`_,
by Jason Gross).
- **Added:**
``Ltac2.Constant.equal``, ``Ltac2.Constant.t``, ``Ltac2.Constructor.equal``,
``Ltac2.Constructor.t``, ``Ltac2.Evar.equal``, ``Ltac2.Evar.t``,
``Ltac2.Float.equal``, ``Ltac2.Float.t``, ``Ltac2.Meta.equal``,
``Ltac2.Meta.t``, ``Ltac2.Proj.equal``, ``Ltac2.Proj.t``,
``Ltac2.Uint63.equal``, ``Ltac2.Uint63.t``, ``Ltac2.Char.equal``,
``Ltac2.Char.compare``, ``Ltac2.Constr.Unsafe.Case.equal``
(`#16537 <https://github.com/coq/coq/pull/16537>`_,
by Jason Gross).
- **Added:**
``Ltac2.Option.equal``
(`#16538 <https://github.com/coq/coq/pull/16538>`_,
by Jason Gross).
- **Added:**
syntax for Ltac2 record update ``{ foo with field := bar }``
(`#16552 <https://github.com/coq/coq/pull/16552>`_,
fixes `#10117 <https://github.com/coq/coq/issues/10117>`_,
by Gaëtan Gilbert).
- **Added:**
Ltac2 record expressions support punning, i.e. ``{ foo; M.bar }`` is equivalent to ``{ foo := foo; M.bar := bar }``
(`#16556 <https://github.com/coq/coq/pull/16556>`_,
by Gaëtan Gilbert).
- **Added:**
:tacn:`match! goal` support for matching hypothesis bodies
(`#16655 <https://github.com/coq/coq/pull/16655>`_,
fixes `#12803 <https://github.com/coq/coq/issues/12803>`_,
by Gaëtan Gilbert).
- **Added:**
quotation and syntax class for :ref:`preterms <preterm>`
(`#16740 <https://github.com/coq/coq/pull/16740>`_,
by Gaëtan Gilbert).
SSReflect
^^^^^^^^^
- **Added:**
port the additions made to `ssrfun.v` and `ssrbool.v` in math-comp
`PR #872 <https://github.com/math-comp/math-comp/pull/872>`_
and `PR #874 <https://github.com/math-comp/math-comp/pull/874>`_,
namely definitions `olift` and `pred_oapp` as well as lemmas
`all_sig2_cond`, `compA`, `obindEapp`, `omapEbind`, `omapEapp`,
`omap_comp`, `oapp_comp`, `olift_comp`, `ocan_comp`, `eqbLR`,
`eqbRL`, `can_in_pcan`, `pcan_in_inj`, `in_inj_comp`, `can_in_comp`,
`pcan_in_comp` and `ocan_in_comp`
(`#16158 <https://github.com/coq/coq/pull/16158>`_,
by Pierre Roux).
Commands and options
^^^^^^^^^^^^^^^^^^^^
- **Changed:** commands which set tactic options (currently
:opt:`Firstorder Solver` and :cmd:`Obligation Tactic`, as well as any
defined by third party plugins) now support :attr:`export` locality.
Note that such commands using :attr:`global` without :attr:`export`
or using no explicit locality outside sections apply their effects
when any module containing it (recursively) is imported. This will
change in a future version. (`#15274
<https://github.com/coq/coq/pull/15274>`_, fixes `#15072
<https://github.com/coq/coq/issues/15072>`_, by Gaëtan Gilbert).
- **Changed:**
`Hint` and :cmd:`Instance` commands with no locality attribute are deprecated.
Previous versions generated a warning, but this version generates an error by
default. This includes all `Hint` commands described in :ref:`creating_hints`,
:cmd:`Hint Rewrite`, and :cmd:`Instance`. As mentioned in the error, please
add an explicit locality to the hint command. The default was
#[:attr:`global`], but we recommend using #[:attr:`export`] where possible
(`#16004 <https://github.com/coq/coq/pull/16004>`_,
fixes `#13394 <https://github.com/coq/coq/issues/13394>`_,
by Ali Caglayan).
- **Changed:**
Transparent obligations generated by :attr:`Program <program>`
do not produce an implicit :cmd:`Hint Unfold` anymore
(`#16340 <https://github.com/coq/coq/pull/16340>`_,
by Pierre-Marie Pédrot).
- **Changed:**
:cmd:`Print Typeclasses` replaces the undocumented `Print TypeClasses` command
which displays the list of typeclasses
(`#16690 <https://github.com/coq/coq/pull/16690>`_,
fixes `#16686 <https://github.com/coq/coq/issues/16686>`_,
by Ali Caglayan).
- **Changed:**
The -async-proofs-tac-j command line option now accepts
the argument 0, which makes `par` block interpreted
without spawning any new process
(`#16837 <https://github.com/coq/coq/pull/16837>`_,
by Pierre-Marie Pédrot).
- **Removed:**
the ``Program Naming`` flag, which was introduced as an
immediately deprecated option in Coq 8.16
(`#16519 <https://github.com/coq/coq/pull/16519>`_,
by Pierre-Marie Pédrot).
- **Removed:**
undocumented and broken `Solve Obligation` command
(the :cmd:`Solve Obligations` command is untouched)
(`#16842 <https://github.com/coq/coq/pull/16842>`_,
by Théo Zimmermann).
.. _817ClassFieldSyntax:
- **Deprecated**
:g:`:>` syntax, to declare fields of :ref:`typeclasses` as instances,
since it is now replaced by :g:`::` (see :n:`@of_type_inst`).
This will allow, in a future release, making :g:`:>` declare :ref:`coercions`
as it does in :ref:`record <records>` definitions
(`#16230 <https://github.com/coq/coq/pull/16230>`_,
fixes `#16224 <https://github.com/coq/coq/issues/16224>`_,
by Pierre Roux, reviewed by Ali Caglayan, Jim Fehrle, Gaëtan Gilbert
and Pierre-Marie Pédrot).
- **Added:**
An improved description of :cmd:`Proof using` and section variables
(`#16168 <https://github.com/coq/coq/pull/16168>`_,
by Jim Fehrle).
- **Added:**
:g:`::` syntax (see :n:`@of_type_inst`) to declare fields of records as :ref:`typeclass <typeclasses>` instances
(`#16230 <https://github.com/coq/coq/pull/16230>`_,
fixes `#16224 <https://github.com/coq/coq/issues/16224>`_,
by Pierre Roux, reviewed by Ali Caglayan, Jim Fehrle, Gaëtan Gilbert
and Pierre-Marie Pédrot).
- **Added:**
The :cmd:`Print Keywords` command, which prints all the currently-defined parser keywords and tokens
(`#16438 <https://github.com//pull/16438>`_,
fixes `#16375 <https://github.com/coq/coq/issues/16375>`_,
by Gaëtan Gilbert).
- **Added:**
:cmd:`Print Grammar` can print arbitrary nonterminals or the whole grammar instead of a small adhoc list of nonterminals
(`#16440 <https://github.com/coq/coq/pull/16440>`_,
by Gaëtan Gilbert).
- **Fixed:**
:flag:`Fast Name Printing` flag no longer causes
variable name capture when displaying a goal
(`#16395 <https://github.com/coq/coq/pull/16395>`_,
fixes `#14141 <https://github.com/coq/coq/issues/14141>`_,
by Wojciech Karpiel).
- **Fixed:**
:tacn:`vm_compute` ignored the ``bytecode-compiler`` command line flag
(`#16931 <https://github.com/coq/coq/pull/16931>`_,
fixes `#16929 <https://github.com/coq/coq/issues/16929>`_,
by Gaëtan Gilbert).
- **Fixed:**
The :cmd:`Proof Mode` command now gives an error if the
specified proof mode doesn't exist. The command was not
previously documented
(`#16981 <https://github.com/coq/coq/pull/16981>`_,
fixes `#16602 <https://github.com/coq/coq/issues/16602>`_,
by Jim Fehrle).
- **Fixed:**
Backtracking over grammar modifications from plugins (such as added commands)
(`#17069 <https://github.com/coq/coq/pull/17069>`_,
fixes `#12575 <https://github.com/coq/coq/issues/12575>`_,
by Gaëtan Gilbert).
- **Fixed:**
Anomaly instead of regular error on unsupported applied :g:`fix` in :cmd:`Function`
(`#17113 <https://github.com/coq/coq/pull/17113>`_,
fixes `#17110 <https://github.com/coq/coq/issues/17110>`_,
by Hugo Herbelin).
Command-line tools
^^^^^^^^^^^^^^^^^^
- **Added:**
New documentation section :ref:`configuration_basics` covering use cases such
as setting up Coq with opam, where/how to set up source code for your projects
and use of _CoqProject
(`#15888 <https://github.com/coq/coq/pull/15888>`_,
by Jim Fehrle).
- **Added:**
In _CoqProject files, expand paths that are directories
to include appropriate files in (sub)directories
(`#16308 <https://github.com/coq/coq/pull/16308>`_,
by Jim Fehrle).
- **Fixed:** issues when using ``coq_makefile`` to build targets
requiring both ``.vo`` and ``.glob`` files (typically documentation
targets), where ``make`` would run multiple ``coqc`` processes on
the same source file with racy behaviour (only fixed when using a
``make`` supporting "grouped targets" such as GNU Make 4.3) (`#16757
<https://github.com/coq/coq/pull/16757>`_, by Gaëtan Gilbert).
- **Fixed:**
Properly process legacy attributes such as ``Global``
and ``Polymorphic`` in coqdoc to avoid omissions
when using the ``-g`` (Gallina only) option
(`#17090 <https://github.com/coq/coq/pull/17090>`_,
fixes `#15933 <https://github.com/coq/coq/issues/15933>`_,
by Karl Palmskog).
.. _817Stdlib:
Standard library
^^^^^^^^^^^^^^^^
- **Changed:**
Class :g:`Saturate` in ``ZifyCLasses.v``, :g:`PRes` now also takes operands
(`#16355 <https://github.com/coq/coq/pull/16355>`_,
by František Farka on behalf of BedRock Systems, Inc.).
- **Changed:**
For uniformity of naming and ease of remembering, `R_dist` and
theorems mentioning `R_dist` in their name become available with spelling `Rdist`
(`#16874 <https://github.com/coq/coq/pull/16874>`_,
by Hugo Herbelin).
- **Removed:**
from :g:`Nat` and :g:`N` superfluous lemmas :g:`rs_rs'`, :g:`rs'_rs''`, :g:`rbase`, :g:`A'A_right`,
:g:`ls_ls'`, :g:`ls'_ls''`, :g:`rs'_rs''`, :g:`lbase`, :g:`A'A_left`, and also
redundant non-negativity assumptions in :g:`gcd_unique`, :g:`gcd_unique_alt`,
:g:`divide_gcd_iff`, and :g:`gcd_mul_diag_l`
(`#16203 <https://github.com/coq/coq/pull/16203>`_,
by Andrej Dudenhefner).
- **Deprecated:**
notation ``_ ~= _`` for ``JMeq`` in
``Coq.Program.Equality`` (`#16436
<https://github.com/coq/coq/pull/16436>`_, by Gaëtan Gilbert).
- **Deprecated:**
lemma :g:`Finite_alt` in ``FinFun.v``, which is a weaker version of
the newly added lemma :g:`Finite_dec`
(`#16489 <https://github.com/coq/coq/pull/16489>`_,
fixes `#16479 <https://github.com/coq/coq/issues/16479>`_,
by Bodo Igler, with help from Olivier Laurent).
- **Deprecated:**
:g:`Zmod`,
:g:`Zdiv_eucl_POS`,
:g:`Zmod_POS_bound`,
:g:`Zmod_pos_bound`,
and :g:`Zmod_neg_bound`
in `ZArith.Zdiv`
(`#16892 <https://github.com/coq/coq/pull/16892>`_,
by Andres Erbsen).
- **Deprecated:** :g:`Cyclic.ZModulo.ZModulo` because there have been no known
use cases for this module and because it does not implement `Z/nZ` for
arbitrary `n` as one might expect based on the name. The same construction
will remain a part of the Coq test suite to ensure consistency of
`CyclicAxioms`
(`#16914 <https://github.com/coq/coq/pull/16914>`_,
by Andres Erbsen).
- **Added:**
lemmas :g:`Permutation_incl_cons_inv_r`, :g:`Permutation_pigeonhole`, :g:`Permutation_pigeonhole_rel` to ``Permutation.v``, and :g:`Forall2_cons_iff`, :g:`Forall2_length`, :g:`Forall2_impl`, :g:`Forall2_flip`, :g:`Forall_Exists_exists_Forall2` to ``List.v``
(`#15986 <https://github.com/coq/coq/pull/15986>`_,
by Andrej Dudenhefner, with help from Dominique Larchey-Wendling and Olivier Laurent).
- **Added:**
modules :g:`Nat.Div0` and :g:`Nat.Lcm0` in :g:`PeanoNat`, and :g:`N.Div0` and :g:`N.Lcm0` in :g:`BinNat`
containing lemmas regarding :g:`div` and :g:`mod`, which take into account `n div 0 = 0` and `n mod 0 = n`.
Strictly weaker lemmas are deprecated, and will be removed in the future.
After the weaker lemmas are removed, the modules :g:`Div0` and :g:`Lcm0` will be deprecated,
and their contents included directly into :g:`Nat` and :g:`N`.
Locally, you can use :g:`Module Nat := Nat.Div0.` or :g:`Module Nat := Nat.Lcm0.` to approximate this inclusion
(`#16203 <https://github.com/coq/coq/pull/16203>`_,
fixes `#16186 <https://github.com/coq/coq/issues/16186>`_,
by Andrej Dudenhefner).
- **Added:**
lemma :g:`measure_induction` in :g:`Nat` and :g:`N` analogous to :g:`Wf_nat.induction_ltof1`,
which is compatible with the `using` clause for the :tacn:`induction` tactic
(`#16203 <https://github.com/coq/coq/pull/16203>`_,
by Andrej Dudenhefner).
- **Added:**
three lemmata related to finiteness and decidability of equality:
:g:`Listing_decidable_eq`, :g:`Finite_dec`
to ``FinFun.v`` and lemma :g:`NoDup_list_decidable` to ``ListDec.v``
(`#16489 <https://github.com/coq/coq/pull/16489>`_,
fixes `#16479 <https://github.com/coq/coq/issues/16479>`_,
by Bodo Igler, with help from Olivier Laurent and Andrej Dudenhefner).
- **Added:**
lemma :g:`not_NoDup` to ``ListDec.v`` and :g:`NoDup_app_remove_l`, :g:`NoDup_app_remove_r` to ``List.v``
(`#16588 <https://github.com/coq/coq/pull/16588>`_,
by Stefan Haan with a lot of help from Olivier Laurent and Ali Caglayan).
- **Added:**
the `skipn_skipn` lemma in `Lists/List.v`
(`#16632 <https://github.com/coq/coq/pull/16632>`_,
by Stephan Boyer).
- **Added:**
lemmas :g:`nth_error_ext`, :g:`map_repeat`, :g:`rev_repeat` to ``List.v``,
and :g:`to_list_nil_iff`, :g:`to_list_inj` to ``VectorSpec.v``
(`#16756 <https://github.com/coq/coq/pull/16756>`_,
by Stefan Haan).
- **Added:** transparent :g:`extgcd` to replace opaque :g:`euclid`,
:g:`euclid_rec`, :g:`Euclid`, and :g:`Euclid_intro` in :g:`Znumtheory`.
Deprecated compatibility wrappers are provided
(`#16915 <https://github.com/coq/coq/pull/16915>`_,
by Andres Erbsen).
Infrastructure and dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
Coq is now built entirely using the Dune build system. Packagers and
users that build Coq manually must use the new build
instructions in the documentation
(`#15560 <https://github.com/coq/coq/pull/15560>`_,
by Ali Caglayan, Emilio Jesus Gallego Arias, and Rudi Grinberg).
- **Changed:**
Coq is not compiled with OCaml's ``-rectypes`` option anymore.
This means plugins which do not exploit it can also stop passing it to OCaml
(`#16007 <https://github.com/coq/coq/pull/16007>`_,
by Gaëtan Gilbert).
- **Changed:**
Building Coq now requires Dune >= 2.9
(`#16118 <https://github.com/coq/coq/pull/16118>`_,
by Emilio Jesus Gallego Arias).
- **Changed:**
Coq Makefile targets `pretty-timed`, `make-pretty-timed`,
`make-pretty-timed-before`, `make-pretty-timed-after`, `print-pretty-timed`,
`print-pretty-timed-diff`, `print-pretty-single-time-diff` now generate more
readable timing tables when absolute paths are used in `_CoqProject` / the
arguments to `coq_makefile`, by stripping off the absolute prefix
(`#16268 <https://github.com/coq/coq/pull/16268>`_,
by Jason Gross).
- **Changed:**
Coq's configure script now defaults to `-native-compiler no`.
Previously, the default was `-native-compiler ondemand`, except on
Windows. The behavior for users installing through opam does not change,
i.e., it is `-native-compiler no` if the `coq-native` package is not
installed, and `-native-compiler yes` otherwise
(`#16997 <https://github.com/coq/coq/pull/16997>`_,
by Théo Zimmermann).
- **Removed:**
the ``-coqide`` switch to ``configure`` in Coq's build infrastructure
(it stopped controlling what got compiled in the move to dune)
(`#16512 <https://github.com/coq/coq/pull/16512>`_,
by Gaëtan Gilbert).
- **Removed:**
the ``-nomacintegration`` configure flag for CoqIDE.
Now CoqIDE will always build with the proper
platform-specific integration if available
(`#16531 <https://github.com/coq/coq/pull/16531>`_,
by Emilio Jesus Gallego Arias).
- **Added:**
Coq now supports OCaml 5; note that OCaml 5 is not compatible with
Coq's native reduction machine
(`#15494 <https://github.com/coq/coq/pull/15494>`_,
`#16925 <https://github.com/coq/coq/pull/16925>`_,
`#16947 <https://github.com/coq/coq/pull/16947>`_,
`#16959 <https://github.com/coq/coq/pull/16959>`_,
`#16988 <https://github.com/coq/coq/pull/16988>`_,
`#16991 <https://github.com/coq/coq/pull/16991>`_,
`#16996 <https://github.com/coq/coq/pull/16996>`_,
`#16997 <https://github.com/coq/coq/pull/16997>`_,
`#16999 <https://github.com/coq/coq/pull/16999>`_,
`#17010 <https://github.com/coq/coq/pull/17010>`_, and
`#17015 <https://github.com/coq/coq/pull/17015>`_
by Emilio Jesus Gallego Arias, Gaëtan Gilbert, Guillaume Melquiond,
Pierre-Marie Pédrot, and others).
- **Added:**
OCaml 4.14 is now officially supported
(`#15867 <https://github.com/coq/coq/pull/15867>`_,
by Gaëtan Gilbert).
Miscellaneous
^^^^^^^^^^^^^
- **Changed:**
Module names are now added to the loadpath in
alphabetical order for each (sub-)directory.
Previously they were added in the order of
the directory entries (as shown by "ls -U")
(`#16725 <https://github.com/coq/coq/pull/16725>`_,
by Jim Fehrle).
Changes in 8.17.1
~~~~~~~~~~~~~~~~~
A variety of bug fixes and improvements to error messages, including:
- **Fixed:**
in some cases, coqdep emitted incorrect paths for META files which prevented dune builds for plugins from working correctly
(`#17270 <https://github.com/coq/coq/pull/17270>`_,
fixes `#16571 <https://github.com/coq/coq/issues/16571>`_,
by Rodolphe Lepigre).
- **Fixed:**
Shadowing of record fields in extraction to OCaml
(`#17324 <https://github.com/coq/coq/pull/17324>`_,
fixes `#12813 <https://github.com/coq/coq/issues/12813>`_
and `#14843 <https://github.com/coq/coq/issues/14843>`_
and `#16677 <https://github.com/coq/coq/issues/16677>`_,
by Hugo Herbelin).
- **Fixed:**
an impossible to turn off debug message "backtracking and redoing byextend on ..."
(`#17495 <https://github.com/coq/coq/pull/17495>`_,
fixes `#17488 <https://github.com/coq/coq/issues/17488>`_,
by Gaëtan Gilbert).
- **Fixed:**
major memory regression affecting MathComp 2
(`#17743 <https://github.com/coq/coq/pull/17743>`_,
by Enrico Tassi and Pierre Roux).
Version 8.16
------------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.16 integrates changes to the Coq kernel and performance improvements along
with a few new features. We highlight some of the most impactful changes here:
- The guard checker (see :cmd:`Guarded`) now ensures strong :ref:`normalization <816Normalization>`
under any reduction strategy.
- Irrelevant terms (in the ``SProp`` sort) are now squashed to a dummy
value during :ref:`conversion <816SPropConversion>`, fixing a subject reduction issue and making proof
conversion faster.
- Introduction of :ref:`reversible coercions <816ReversibleCoercions>`, which
allow coercions relying on meta-level resolution such as type-classes or canonical
structures. Also :ref:`allow coercions <816UniformInh>` that do not fullfill the :term:`uniform inheritance condition`.
- :ref:`Generalized rewriting <816GeneralizeRew>` support for rewriting with ``Type``-valued relations and in
``Type`` contexts, using the ``Classes.CMorphisms`` library.
- Added the :ref:`boolean equality <816BooleanEquality>` scheme command for decidable inductive types.
- Added a :ref:`Print Notation <816PrintNotation>` command.
- Incompatibilities in :ref:`name generation <816ProgramObls>` for Program obligations,
:tacn:`eauto` treatment of :ref:`tactic failure levels <816EautoLevels>`, use of ``ident``
:ref:`in notations <816IdentNotations>`, parsing of :ref:`module expressions <816ModuleExprs>`.
- Standard library :ref:`reorganization and deprecations <816Stdlib>`.
- Improve the treatment of standard library numbers by :cmd:`Extraction`.
See the `Changes in 8.16.0`_ section below for the detailed list of changes,
including potentially breaking changes marked with **Changed**.
Coq's `reference manual for 8.16 <https://coq.github.io/doc/v8.16/refman>`_,
`documentation of the 8.16 standard library <https://coq.github.io/doc/v8.16/stdlib>`_
and `developer documentation of the 8.16 ML API <https://coq.github.io/doc/v8.16/api>`_
are also available.
Ali Caglayan, Emilio Jesús Gallego Arias, Gaëtan Gilbert
and Théo Zimmermann worked on maintaining and improving the
continuous integration system and package building infrastructure.
Erik Martin-Dorel has maintained the `Coq Docker images
<https://hub.docker.com/r/coqorg/coq>`_ that are used in many Coq
projects for continuous integration.
The opam repository for Coq packages has been maintained by
Guillaume Claret, Karl Palmskog, Matthieu Sozeau and Enrico Tassi with
contributions from many users. A list of packages is available at
https://coq.inria.fr/opam/www/.
The `Coq Platform <https://github.com/coq/platform>`_ has been maintained
by Michael Soegtrop, with help from Karl Palmskog, Enrico Tassi and
Théo Zimmermann.
Our current maintainers are Yves Bertot, Frédéric Besson, Ana Borges,
Ali Caglayan, Tej Chajed, Cyril Cohen, Pierre Corbineau, Pierre Courtieu, Maxime Dénès,
Jim Fehrle, Julien Forest, Emilio Jesús Gallego Arias, Gaëtan Gilbert,
Georges Gonthier, Benjamin Grégoire, Jason Gross, Hugo Herbelin,
Vincent Laporte, Olivier Laurent, Assia Mahboubi, Kenji Maillard,
Guillaume Melquiond, Pierre-Marie Pédrot, Clément Pit-Claudel, Pierre Roux,
Kazuhiko Sakaguchi, Vincent Semeria, Michael Soegtrop, Arnaud Spiwack,
Matthieu Sozeau, Enrico Tassi, Laurent Théry, Anton Trunov, Li-yao Xia
and Théo Zimmermann. See the `Coq Team face book <https://coq.inria.fr/coq-team.html>`_
page for more details.
The 57 contributors to the 8.16 versions are Tanaka Akira, Frédéric Besson, Martin Bodin, Ana Borges,
Ali Caglayan, Minki Cho, Cyril Cohen, Juan Conejero, "stop-cran", Adrian Dapprich, Maxime Dénès,
Stéphane Desarzens, Christian Doczkal, Andrej Dudenhefner, Andres Erbsen, Jim Fehrle,
Emilio Jesús Gallego Arias, Attila Gáspár, Paolo G. Giarrusso, Gaëtan Gilbert, Rudi Grinberg, Jason Gross, Hugo Herbelin,
Wolf Honore, Jasper Hugunin, Bart Jacobs, Pierre Jouvelot,
Ralf Jung, Grant Jurgensen, Jan-Oliver Kaiser, Wojciech Karpiel, Thomas Klausner,
Ethan Kuefner, Fabian Kunze, Olivier Laurent, Yishuai Li, Erik Martin-Dorel, Guillaume Melquiond,
Jean-Francois Monin, Pierre-Marie Pédrot, Rudy Peterson, Clément Pit-Claudel, Seth Poulsen,
Ramkumar Ramachandra, Pierre Roux, Takafumi Saikawa, Kazuhiko Sakaguchi, Gabriel Scherer,
Vincent Semeria, Kartik Singhal, Michael Soegtrop, Matthieu Sozeau, Enrico Tassi, Laurent Théry,
Anton Trunov, Li-yao Xia and Théo Zimmermann.
The Coq community at large helped improve this new version via
the GitHub issue and pull request system, the coq-club@inria.fr mailing list,
the `Discourse forum <https://coq.discourse.group/>`_ and the
`Coq Zulip chat <https://coq.zulipchat.com>`_.
Version 8.16's development spanned 6 months from the release of
Coq 8.15.0. Pierre-Marie Pédrot is the release manager of Coq 8.16.
This release is the result of 356 merged PRs, closing 99 issues.
| Nantes, June 2022,
| Matthieu Sozeau for the Coq development team
Changes in 8.16.0
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
.. _816Normalization:
- **Changed:**
Fixpoints are now expected to be guarded even in subterms erasable
by reduction, thus getting rid of an artificial obstacle
preventing to lift the assumption of weak normalization of Coq to an
assumption of strong normalization; for instance (barring
implementation bugs) termination of the type-checking algorithm of
Coq is now restored (of course, as usual, up to the assumption of
the consistency of set theory and type theory, i.e., equivalently,
up to the weak normalization of type theory, a "physical"
assumption, which has not been contradicted for decades and which
specialists commonly believe to be a truth)
(`#15434 <https://github.com/coq/coq/pull/15434>`_, incidentally
fixes the complexity issue `#5702
<https://github.com/coq/coq/issues/5702>`_, by Hugo Herbelin).
- **Changed:**
Flag :n:`Unset Guard Checking` nevertheless requires fixpoints to
have an argument marked as decreasing in a type which is inductive
(`#15668 <https://github.com/coq/coq/pull/15668>`_,
fixes `#15621 <https://github.com/coq/coq/issues/15621>`_,
by Hugo Herbelin).
- **Removed:**
:ref:`Template-polymorphism` is now forbidden for mutual inductive types
(`#15965 <https://github.com/coq/coq/pull/15965>`_,
by Gaëtan Gilbert).
- **Fixed:**
Inlining of non-logical objects (notations, hints, ...) was missing
when applying a functor returning one of its arguments as e.g. in
:n:`Module F (E:T) := E`
(`#15412 <https://github.com/coq/coq/pull/15412>`_,
fixes `#15403 <https://github.com/coq/coq/issues/15403>`_,
by Hugo Herbelin).
.. _816SPropConversion:
- **Fixed:**
We introduce a new irrelevant term in the reduction machine.
It is used to shortcut computation of terms living in a strict
proposition, and behaves as an exception. This restores subject
reduction, and also makes conversion of large terms in SProp
cheap
(`#15575 <https://github.com/coq/coq/pull/15575>`_,
fixes `#14015 <https://github.com/coq/coq/issues/14015>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
performance blowups while inferring variance information for :ref:`cumulative` inductive types
(`#15662 <https://github.com/coq/coq/pull/15662>`_,
fixes `#11741 <https://github.com/coq/coq/issues/11741>`_,
by Gaëtan Gilbert).
Specification language, type inference
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Added:**
New clause :n:`as @ident` to the :cmd:`Record` command to specify
the name of the main argument to use by default in the type of
projections
(`#14563 <https://github.com/coq/coq/pull/14563>`_,
by Hugo Herbelin).
.. _816ReversibleCoercions:
- **Added:**
:term:`Reversible coercions <reversible coercion>` are coercions which cannot be
represented by a regular coercion (a Gallina function)
but rather a meta procedure, such as type class inference
or canonical structure resolution
(`#15693 <https://github.com/coq/coq/pull/15693>`_,
by Cyril Cohen, Pierre Roux, Enrico Tassi,
reviewed by Ali Caglayan, Jim Fehrle and Gaëtan Gilbert).
.. _816UniformInh:
- **Added:**
support for coercions not fulfilling
the uniform inheritance condition,
allowing more freedom for the parameters that are now inferred
using unification, canonical structures or typeclasses
(`#15789 <https://github.com/coq/coq/pull/15789>`_,
fixes `#2828 <https://github.com/coq/coq/issues/2828>`_,
`#4593 <https://github.com/coq/coq/issues/4593>`_,
`#3115 <https://github.com/coq/coq/issues/3115>`_,
`#5222 <https://github.com/coq/coq/issues/5222>`_,
`#9696 <https://github.com/coq/coq/issues/9696>`_
and `#8540 <https://github.com/coq/coq/issues/8540>`_,
by Pierre Roux, reviewed by Ali Caglayan, Enrico Tassi, Kazuhiko Sakaguchi and Jim Fehrle).
- **Fixed:**
interpretation of `{struct}` fixpoint annotations when the principal argument comes from an implicit generalization
(`#15581 <https://github.com/coq/coq/pull/15581>`_,
fixes `#13157 <https://github.com/coq/coq/issues/13157>`_,
by Gaëtan Gilbert).
Notations
^^^^^^^^^
.. _816IdentNotations:
- **Removed:**
``_`` in ``ident`` entries in notations, which was deprecated
in favor of ``name`` in 8.13. When you see messages like
.. code::
Error: Notation "[ rel _ _ : _ | _ ]" is already defined at level 0
with arguments name, name, constr, constr while it is now required to be
at level 0 with arguments ident, ident, constr, constr.
replace ``ident`` with ``name`` in the :cmd:`Notation` command.
To ease the change, you can fix the ``deprecated-ident-entry`` warnings
in Coq 8.15 (or 8.14 or 8.13). The warning can be turned into an error with
``-arg -w -arg +deprecated-ident-entry`` in the ``_CoqProject`` file
(`#15754 <https://github.com/coq/coq/pull/15754>`_,
by Pierre Roux).
- **Added:**
When defining a recursive notation referring to another recursive
notation, expressions of the form :n:`x .. y` can be used where a
sequence of binders is expected
(`#15291 <https://github.com/coq/coq/pull/15291>`_,
grants `#7911 <https://github.com/coq/coq/issues/7911>`_,
by Hugo Herbelin).
- **Fixed:**
Coercions are disabled when typechecking parsers and printers
of :cmd:`Number Notation`
(`#15884 <https://github.com/coq/coq/pull/15884>`_,
fixes `#15843 <https://github.com/coq/coq/issues/15843>`_,
by Pierre Roux).
Tactics
^^^^^^^
- **Changed:**
The ``RewriteRelation`` type class is now used to declare relations
inferable by the :tacn:`setoid_rewrite` tactic to construct
``Proper`` instances. This can break developments that relied on
existing ``Reflexive`` instances to infer relations. The fix is
to simply add a (backwards compatible) ``RewriteRelation`` declaration
for the relation. This change allows to set stricter modes on the
relation type classes ``Reflexive``, ``Symmetric``, etc.
(`#13969 <https://github.com/coq/coq/pull/13969>`_,
fixes `#7916 <https://github.com/coq/coq/issues/7916>`_,
by Matthieu Sozeau).
- **Changed:**
The :tacn:`setoid_rewrite` tactic can now properly recognize
homogeneous relations applied to types in different universes
(`#14138 <https://github.com/coq/coq/pull/14138>`_,
fixes `#13618 <https://github.com/coq/coq/issues/13618>`_,
by Matthieu Sozeau).
.. _816EautoLevels:
- **Changed:**
The :tacn:`eauto` tactic does not propagate internal Ltac failures
with level > 0 anymore. Any failure caused by a hint now behaves as if it
were a level 0 error
(`#15215 <https://github.com/coq/coq/pull/15215>`_,
fixes `#15214 <https://github.com/coq/coq/issues/15214>`_,
by Pierre-Marie Pédrot).
- **Changed:**
:tacn:`rewrite` when used to rewrite in multiple hypotheses (eg `rewrite foo in H,H'`) requires that the term (`foo`) does not depend on the hypotheses it rewrites.
When using `rewrite in *`, this means we only rewrite in hypotheses which do not appear in the term
(`#15426 <https://github.com/coq/coq/pull/15426>`_,
fixes `#3051 <https://github.com/coq/coq/issues/3051>`_
and `#15448 <https://github.com/coq/coq/issues/15448>`_,
by Gaëtan Gilbert).
- **Changed:**
When it fails, :tacn:`assert_succeeds` fails with the argument tactic's original error instead of ``Tactic failure: <tactic closure> fails.``
(`#15728 <https://github.com/coq/coq/pull/15728>`_,
fixes `#10970 <https://github.com/coq/coq/issues/10970>`_,
by Gaëtan Gilbert).
- **Deprecated:**
the :tacn:`instantiate` tactic without arguments. Since the move to
the monadic tactic engine in 8.5, it was behaving as the identity
(`#15277 <https://github.com/coq/coq/pull/15277>`_,
by Pierre-Marie Pédrot).
.. _816GeneralizeRew:
- **Added:**
generalized rewriting now supports rewriting with (possibly polymorphic)
relations valued in ``Type``. Use ``Classes.CMorphisms`` instead of
``Classes.Morphisms`` to declare ``Proper`` instances for :tacn:`rewrite`
(or :tacn:`setoid_rewrite`) to use when rewriting with ``Type`` valued
relations
(`#14137 <https://github.com/coq/coq/pull/14137>`_,
fixes `#4632 <https://github.com/coq/coq/issues/4632>`_,
`#5384 <https://github.com/coq/coq/issues/5384>`_,
`#5521 <https://github.com/coq/coq/issues/5521>`_,
`#6278 <https://github.com/coq/coq/issues/6278>`_,
`#7675 <https://github.com/coq/coq/issues/7675>`_,
`#8739 <https://github.com/coq/coq/issues/8739>`_,
`#11011 <https://github.com/coq/coq/issues/11011>`_,
`#12240 <https://github.com/coq/coq/issues/12240>`_,
and `#15279 <https://github.com/coq/coq/issues/15279>`_,
by Matthieu Sozeau helped by Ali Caglayan).
- **Added:**
Tactics to obtain a micromega :term:`cone expression` (aka witness)
from an already reified goal.
Using those tactics, the user can develop their own micromega tactics
for their own types, using their own parsers
(`#15921 <https://github.com/coq/coq/pull/15921>`_,
by Pierre Roux, reviewed by Frédéric Besson and Jim Fehrle).
- **Fixed:**
:tacn:`typeclasses eauto` used with multiple hint databases respects priority differences for hints from separate databases
(`#15289 <https://github.com/coq/coq/pull/15289>`_,
fixes `#5304 <https://github.com/coq/coq/issues/5304>`_,
by Gaëtan Gilbert).
- **Fixed:**
:tacn:`cbn` has better support for combining `simpl nomatch`, `!` and `/` specifiers (c.f. :cmd:`Arguments`)
(`#15657 <https://github.com/coq/coq/pull/15657>`_,
fixes `#3989 <https://github.com/coq/coq/issues/3989>`_
and `#15206 <https://github.com/coq/coq/issues/15206>`_,
by Gaëtan Gilbert).
Tactic language
^^^^^^^^^^^^^^^
- **Changed:**
Ltac `match` does not fail when the term to match contains an unfolded primitive projection
(`#15559 <https://github.com/coq/coq/pull/15559>`_,
fixes `#15554 <https://github.com/coq/coq/issues/15554>`_,
by Gaëtan Gilbert).
- **Added:**
``Ltac2`` understands :token:`toplevel_selector` and obeys :opt:`Default Goal Selector`.
Note that ``par:`` is buggy when combined with :tacn:`abstract`. Unlike ``Ltac1`` even ``par: abstract tac`` is not properly treated
(`#15378 <https://github.com/coq/coq/pull/15378>`_,
by Gaëtan Gilbert).
- **Added:**
Ltac2 `Int` functions `div`, `mod`, `asr`, `lsl`, `lsr`, `land`, `lor` , `lxor` and `lnot`
(`#15637 <https://github.com/coq/coq/pull/15637>`_,
by Michael Soegtrop).
- **Fixed:**
Ltac2 `apply` and `eapply` not unifying with implicit arguments;
unification inconsistent with `exact` and `eexact`
(`#15741 <https://github.com/coq/coq/pull/15741>`_,
by Ramkumar Ramachandra).
SSReflect
^^^^^^^^^
- **Fixed:**
:tacn:`have`, :tacn:`suff` and :tacn:`wlog` support goals in `SProp`
(`#15121 <https://github.com/coq/coq/pull/15121>`_,
by Enrico Tassi).
Commands and options
^^^^^^^^^^^^^^^^^^^^
.. _816ModuleExprs:
- **Changed:**
:cmd:`Module` now only allows parentheses around module arguments. For instance, ``Module M := (F X).`` is now a parsing error
(`#15355 <https://github.com/coq/coq/pull/15355>`_,
by Gaëtan Gilbert).
- **Changed:**
:cmd:`Fail` no longer catches anomalies, which it has done since Coq version 8.11.
Now it only catches user errors
(`#15366 <https://github.com/coq/coq/pull/15366>`_,
by Hugo Herbelin).
- **Changed:**
:ref:`program_definition` in universe monomorphic mode does not accept non-extensible universe declarations
(`#15424 <https://github.com/coq/coq/pull/15424>`_,
fixes `#15410 <https://github.com/coq/coq/issues/15410>`_,
by Gaëtan Gilbert).
.. _816ProgramObls:
- **Changed:**
The algorithm for name generation of anonymous variables
for ``Program`` subproofs is now the same as the one
used in the general case. This can create incompatibilities
in scripts relying on such autogenerated names. The old
scheme can be reactivated using the deprecated flag
``Program Naming``
(`#15442 <https://github.com/coq/coq/pull/15442>`_,
by Pierre-Marie Pédrot).
- **Removed:**
`Universal Lemma Under Conjunction` flag, that was deprecated in 8.15
(`#15268 <https://github.com/coq/coq/pull/15268>`_,
by Théo Zimmermann).
- **Removed:**
:cmd:`Abort` no longer takes an :n:`@ident` as an argument (it has been ignored since 8.5)
(`#15669 <https://github.com/coq/coq/pull/15669>`_,
by Gaëtan Gilbert).
- **Removed:**
`Simplex` flag, that was deprecated in 8.14.
:tacn:`lia` and :tacn:`lra` will always use the simplex solver (that was already the default behaviour)
(`#15690 <https://github.com/coq/coq/pull/15690>`_,
by Frédéric Besson).
- **Deprecated:**
``Add LoadPath`` and ``Add Rec LoadPath``. If this command is an
important feature for you, please open an issue on `GitHub <https://github.com/coq/coq/issues>`
and explain your workflow
(`#15652 <https://github.com/coq/coq/pull/15652>`_,
by Gaëtan Gilbert).
- **Deprecated:**
the `Typeclasses Filtered Unification` flag. Due to
a buggy implementation, it is unlikely this is used in the wild
(`#15752 <https://github.com/coq/coq/pull/15752>`_,
by Pierre-Marie Pédrot).
.. _816BooleanEquality:
- **Added:**
:cmd:`Scheme Boolean Equality` command to generate the boolean
equality for an inductive type whose equality is
decidable. It is useful when Coq is able to generate the boolean
equality but isn't powerful enough to prove the decidability of
equality (unlike :cmd:`Scheme Equality`, which tries to
prove the decidability of the type)
(`#15526 <https://github.com/coq/coq/pull/15526>`_,
by Hugo Herbelin).
- **Added:**
New more extensive algorithm based on the "parametricity"
translation for canonically generating Boolean equalities associated
to a decidable inductive type
(`#15527 <https://github.com/coq/coq/pull/15527>`_,
by Hugo Herbelin).
- **Added:**
:cmd:`From … Dependency` command to
declare a dependency of a ``.v`` file on an external file.
The ``coqdep`` tool generates build dependencies accordingly
(`#15650 <https://github.com/coq/coq/pull/15650>`_,
fixes `#15600 <https://github.com/coq/coq/issues/15600>`_,
by Enrico Tassi).
.. _816PrintNotation:
- **Added:**
:cmd:`Print Notation` command that prints the level and
associativity of a given notation definition string
(`#15683 <https://github.com/coq/coq/pull/15683>`_,
fixes `#14907 <https://github.com/coq/coq/issues/14907>`_
and `#4436 <https://github.com/coq/coq/issues/4436>`_
and `#7730 <https://github.com/coq/coq/issues/7730>`_,
by Ali Caglayan and Ana Borges, with help from Emilio Jesus Gallego Arias).
- **Added:**
a warning when trying to deprecate a definition
(`#15760 <https://github.com/coq/coq/pull/15760>`_,
by Pierre Roux).
- **Added:**
A deprecation warning that the :g:`Class >` syntax, which currently
does nothing, will in the future declare :ref:`coercions <coercions>`
as it does when used in :cmd:`Record` commands
(`#15802 <https://github.com/coq/coq/pull/15802>`_,
by Pierre Roux, reviewed by Gaëtan Gilbert, Ali Caglayan,
Jason Gross, Jim Fehrle and Théo Zimmermann).
- **Added:**
the :attr:`nonuniform` boolean attribute that silences the
non-uniform-inheritance warning when user needs to declare such a
coercion on purpose
(`#15853 <https://github.com/coq/coq/pull/15853>`_,
by Pierre Roux, reviewed by Gaëtan Gilbert and Jim Fehrle).
- **Added:** All commands which can import modules (e.g. ``Module
Import M.``, ``Module F (Import X : T).``, ``Require Import M.``,
etc) now support :token:`import_categories`. :cmd:`Require Import`
and :cmd:`Require Export` also support :token:`filtered_import`
(`#15945 <https://github.com/coq/coq/pull/15945>`_, fixes `#14872
<https://github.com/coq/coq/issues/14872>`_, by Gaëtan Gilbert).
- **Fixed:**
Make `Require Import M.` equivalent to `Require M. Import M.`
(`#15347 <https://github.com/coq/coq/pull/15347>`_,
fixes `#3556 <https://github.com/coq/coq/issues/3556>`_,
by Maxime Dénès).
Command-line tools
^^^^^^^^^^^^^^^^^^
- **Added:**
coq_makefile variable `COQPLUGININSTALL` to configure the installation of ML plugins
(`#15788 <https://github.com/coq/coq/pull/15788>`_,
by Cyril Cohen and Enrico Tassi).
- **Added:**
Added :n:`-bytecode-compiler {| yes | no }` flag for ``coqchk`` enabling
:tacn:`vm_compute` during checks, which is off by default
(`#15886 <https://github.com/coq/coq/pull/15886>`_,
by Ali Caglayan).
- **Fixed:**
``coqdoc`` confused by the presence of command :cmd:`Load` in a file
(`#15511 <https://github.com/coq/coq/pull/15511>`_,
fixes `#15497 <https://github.com/coq/coq/issues/15497>`_,
by Hugo Herbelin).
CoqIDE
^^^^^^
- **Added:**
Documentation of editing failed async mode proofs,
how to configure key bindings and various previously
undocumented details
(`#16070 <https://github.com/coq/coq/pull/16070>`_,
by Jim Fehrle).
Standard library
^^^^^^^^^^^^^^^^
.. _816Stdlib:
- **Changed:**
the ``signature`` scope of ``Classes.CMorphisms`` into ``signatureT``
(`#15446 <https://github.com/coq/coq/pull/15446>`_,
by Olivier Laurent).
- **Changed:**
the locality of typeclass instances `Permutation_app'` and `Permutation_cons` from :attr:`global` to :attr:`export`
(`#15597 <https://github.com/coq/coq/pull/15597>`_,
fixes `#15596 <https://github.com/coq/coq/issues/15596>`_,
by Gaëtan Gilbert).
- **Removed:**
``Int63``, which was deprecated in favor of ``Uint63`` in 8.14
(`#15754 <https://github.com/coq/coq/pull/15754>`_,
by Pierre Roux).
- **Deprecated:**
some obsolete files from the ``Arith`` part of the standard library
(``Div2``, ``Even``, ``Gt``, ``Le``, ``Lt``, ``Max``, ``Min``, ``Minus``, ``Mult``, ``NPeano``, ``Plus``).
Import ``Arith_base`` instead of these files. References to items in the deprecated files should be replaced
with references to ``PeanoNat.Nat`` as suggested by the warning messages.
Concerning the definitions of parity properties (even and odd), it is recommended to use ``Nat.Even`` and ``Nat.Odd``.
If an inductive definition of parity is required, the mutually inductive ``Nat.Even_alt`` and ``Nat.Odd_alt`` can be used. However, induction principles for ``Nat.Odd`` and ``Nat.Even`` are available as ``Nat.Even_Odd_ind`` and ``Nat.Odd_Even_ind``.
The equivalence between the non-inductive and mutually inductive definitions of parity can be found in ``Nat.Even_alt_Even`` and ``Nat.Odd_alt_Odd``.
All ``Hint`` declarations in the ``arith`` database have been moved to ``Arith_prebase`` and
``Arith_base``. To use the results about Peano arithmetic, we recommend importing
``PeanoNat`` (or ``Arith_base`` to base it on the ``arith`` hint database) and using the ``Nat`` module.
``Arith_prebase`` has been introduced temporarily to ensure compatibility, but it will be removed at the end of the
deprecation phase, e.g. in 8.18. Its use is thus discouraged
(`#14736 <https://github.com/coq/coq/pull/14736>`_, `#15411 <https://github.com/coq/coq/pull/15411>`_,
by Olivier Laurent, with help of Karl Palmskog).
- **Deprecated:**
`identity` inductive (replaced by the equivalent `eq`).
`Init.Logic_Type` is removed (the only remaining definition `notT` is moved
to `Init.Logic`)
(`#15256 <https://github.com/coq/coq/pull/15256>`_,
by Olivier Laurent).
- **Deprecated:**
`P_Rmin`: use more general `Rmin_case` instead
(`#15388 <https://github.com/coq/coq/pull/15388>`_,
fixes `#15382 <https://github.com/coq/coq/issues/15382>`_,
by Olivier Laurent).
- **Added:**
lemma `count_occ_rev`
(`#15397 <https://github.com/coq/coq/pull/15397>`_,
by Olivier Laurent).
- **Added:**
``Nat.EvenT`` and ``Nat.OddT`` (almost the same as ``Nat.Even`` and ``Nat.Odd`` but with output in ``Type``.
Decidability of parity (with output ``Type``) is provided ``EvenT_OddT_dec`` as well as induction principles ``Nat.EvenT_OddT_rect`` and ``Nat.OddT_EvenT_rect`` (with output ``Type``)
(`#15427 <https://github.com/coq/coq/pull/15427>`_,
by Olivier Laurent).
- **Added:**
Added a proof of ``sin x < x`` for positive ``x`` and ``x < sin x`` for negative ``x``
(`#15599 <https://github.com/coq/coq/pull/15599>`_,
by stop-cran).
- **Added:**
decidability typeclass instances for Z.le, Z.lt, Z.ge and Z.gt, added lemmas Z.geb_ge and Z.gtb_gt
(`#15620 <https://github.com/coq/coq/pull/15620>`_,
by Michael Soegtrop).
- **Added:**
lemmas ``Rinv_inv``, ``Rinv_mult``, ``Rinv_opp``, ``Rinv_div``, ``Rdiv_opp_r``,
``Rsqr_div'``, ``Rsqr_inv'``, ``sqrt_inv``, ``Rabs_inv``, ``pow_inv``,
``powerRZ_inv'``, ``powerRZ_neg'``, ``powerRZ_mult``, ``cv_infty_cv_0``,
which are variants of existing lemmas, but without any hypothesis
(`#15644 <https://github.com/coq/coq/pull/15644>`_,
by Guillaume Melquiond).
- **Added:**
a Leibniz equality test for primitive floats
(`#15719 <https://github.com/coq/coq/pull/15719>`_,
by Pierre Roux, reviewed by Guillaume Melquiond).
- **Added:**
support for primitive floats in Scheme Boolean Equality
(`#15719 <https://github.com/coq/coq/pull/15719>`_,
by Pierre Roux, reviewed by Hugo Herbelin).
- **Added:**
lemma :g:`le_add_l` to ``NAddOrder.v``. Use :g:`Nat.le_add_l` as replacement for the deprecated :g:`Plus.le_plus_r`
(`#16184 <https://github.com/coq/coq/pull/16184>`_,
by Andrej Dudenhefner).
Infrastructure and dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
Bumped lablgtk3 lower bound to 3.1.2
(`#15947 <https://github.com/coq/coq/pull/15947>`_,
by Pierre-Marie Pédrot).
- **Changed:**
Load plugins using `findlib <http://projects.camlcity.org/projects/findlib.html>`_.
This requires projects built with ``coq_makefile`` to either provide a
hand written ``META`` file or use the ``-generate-meta-for-package`` option
when applicable. As a consequence :cmd:`Declare ML Module` now uses plugin
names according to ``findlib``, e.g. `coq-aac-tactics.plugin`.
``coqdep`` accepts ``-m META`` and uses the file to resolve plugin names to
actual file names
(`#15220 <https://github.com/coq/coq/pull/15220>`_,
fixes `#7698 <https://github.com/coq/coq/issues/7698>`_,
by Enrico Tassi).
- **Changed:**
Minimum supported zarith version is now 1.11
(`#15483 <https://github.com/coq/coq/pull/15483>`_
and `#16005 <https://github.com/coq/coq/pull/16005>`_
and `#16030 <https://github.com/coq/coq/pull/16030>`_,
closes `#15496 <https://github.com/coq/coq/issues/15496>`_,
by Gaëtan Gilbert and Théo Zimmermann and Jason Gross).
- **Changed:**
Bump the minimum OCaml version to 4.09.0.
As a consequence the minimum supported ocamlfind version is now
1.8.1 (`#15947 <https://github.com/coq/coq/pull/15947>`_
and `#16046 <https://github.com/coq/coq/pull/16046>`_,
fixes `#14260 <https://github.com/coq/coq/issues/14260>`_
and `#16015 <https://github.com/coq/coq/pull/16015>`_,
by Pierre-Marie Pédrot and Théo Zimmermann).
Extraction
^^^^^^^^^^
.. _816Extraction:
- **Changed:**
`ExtrOCamlInt63` no longer extracts `comparison` to `int` in OCaml;
the extraction of `Uint63.compare` and `Sint63.compare` was also adapted accordingly
(`#15294 <https://github.com/coq/coq/pull/15294>`_,
fixes `#15280 <https://github.com/coq/coq/issues/15280>`_,
by Li-yao Xia).
- **Changed:**
Extraction from :g:`nat` to OCaml :g:`int` uses Stdlib instead of Pervasives
(`#15333 <https://github.com/coq/coq/pull/15333>`_,
by Rudy Nicolo Peterson).
- **Changed:**
The empty inductive type is now extracted to OCaml empty type
available since OCaml 4.07
(`#15967 <https://github.com/coq/coq/pull/15967>`_,
by Pierre Roux).
- **Added:**
More extraction definitions for division and comparison of Z and N
(`#15098 <https://github.com/coq/coq/pull/15098>`_,
by Li-yao Xia).
- **Fixed:**
Type :n:`int` in files :n:`Number.v`, :n:`Decimal.v` and
:n:`Hexadecimal.v` have been renamed to :n:`signed_int` (together
with a compatibility alias :n:`int`) so that they can be used in
extraction without conflicting with OCaml's :n:`int` type
(`#13460 <https://github.com/coq/coq/pull/13460>`_,
fixes `#7017 <https://github.com/coq/coq/issues/7017>`_
and `#13288 <https://github.com/coq/coq/issues/13288>`_,
by Hugo Herbelin).
Changes in 8.16.1
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
- **Fixed:**
conversion of Prod values in the native compiler
(`#16651 <https://github.com/coq/coq/pull/16651>`_,
fixes `#16645 <https://github.com/coq/coq/issues/16645>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
Coq 8.16.0 missed `SProp` check for opaque names in conversion
(`#16768 <https://github.com/coq/coq/pull/16768>`_,
fixes `#16752 <https://github.com/coq/coq/issues/16752>`_,
by Hugo Herbelin).
- **Fixed:**
Pass the correct environment to compute η-expansion of cofixpoints
in VM and native compilation
(`#16845 <https://github.com/coq/coq/pull/16845>`_,
fixes `#16831 <https://github.com/coq/coq/issues/16831>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
inconsistency with conversion of primitive arrays, and associated incomplete strong normalization of primitive arrays with ``lazy``
(`#16850 <https://github.com/coq/coq/pull/16850>`_,
fixes `#16829 <https://github.com/coq/coq/issues/16829>`_,
by Gaëtan Gilbert,
reported by Maxime Buyse and Andres Erbsen).
Commands and options
^^^^^^^^^^^^^^^^^^^^
- **Fixed:**
:cmd:`Print Assumptions` treats opaque definitions with missing proofs (as found in ``.vos`` files, see :ref:`compiled-interfaces`) as axioms instead of ignoring them
(`#16434 <https://github.com/coq/coq/pull/16434>`_,
fixes `#16411 <https://github.com/coq/coq/issues/16411>`_,
by Gaëtan Gilbert).
CoqIDE
^^^^^^
- **Fixed:**
"Interrupt computations" now works correctly on Windows—except
if you start CoqIDE as a background process, e.g. with `coqide &` in `bash`,
in which case it won't work at all
(`#16142 <https://github.com/coq/coq/pull/16142>`_,
fixes `#13550 <https://github.com/coq/coq/issues/13550>`_,
by Jim Fehrle).
Version 8.15
------------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.15 integrates many bug fixes, deprecations and cleanups as well
as a few new features. We highlight some of the most impactful changes here:
- The :tacn:`apply with <apply>` tactic :ref:`no longer renames arguments <815ApplyWith>`
unless compatibility flag `Apply With Renaming` is set.
- :ref:`Improvements <815Auto>` to the :tacn:`auto` tactic family,
fixing the :cmd:`Hint Unfold` behavior, and generalizing the use
of discrimination nets.
- The :tacn:`typeclasses eauto` tactic has a new :ref:`best_effort <815BestEffort>`
option allowing it to return *partial* solutions to a proof search problem,
depending on the mode declarations associated to each constraint.
This mode is used by typeclass resolution during type inference to
provide more precise error messages.
- Many :ref:`commands and options <815Commands>` were deprecated or removed
after deprecation and more consistently support locality attributes.
- The :cmd:`Import` command is extended with :token:`import_categories`
to :ref:`select the components <815Import>` of a module to import or not, including
features such as hints, coercions, and notations.
- A :ref:`visual Ltac debugger <815LtacDebugger>` is now available in CoqIDE.
See the `Changes in 8.15.0`_ section below for the detailed list of changes,
including potentially breaking changes marked with **Changed**.
Coq's `reference manual for 8.15 <https://coq.github.io/doc/v8.15/refman>`_,
`documentation of the 8.15 standard library <https://coq.github.io/doc/v8.15/stdlib>`_
and `developer documentation of the 8.15 ML API <https://coq.github.io/doc/v8.15/api>`_
are also available.
Emilio Jesús Gallego Arias, Gaëtan Gilbert, Michael
Soegtrop and Théo Zimmermann worked on maintaining and improving the
continuous integration system and package building infrastructure.
Erik Martin-Dorel has maintained the `Coq Docker images
<https://hub.docker.com/r/coqorg/coq>`_ that are used in many Coq
projects for continuous integration.
The opam repository for Coq packages has been maintained by
Guillaume Claret, Karl Palmskog, Matthieu Sozeau and Enrico Tassi with
contributions from many users. A list of packages is available at
https://coq.inria.fr/opam/www/.
The `Coq Platform <https://github.com/coq/platform>`_ has been maintained
by Michael Soegtrop and Enrico Tassi.
Our current maintainers are Yves Bertot, Frédéric Besson, Ali Caglayan, Tej
Chajed, Cyril Cohen, Pierre Corbineau, Pierre Courtieu, Maxime Dénès,
Jim Fehrle, Julien Forest, Emilio Jesús Gallego Arias, Gaëtan Gilbert,
Georges Gonthier, Benjamin Grégoire, Jason Gross, Hugo Herbelin,
Vincent Laporte, Olivier Laurent, Assia Mahboubi, Kenji Maillard,
Guillaume Melquiond, Pierre-Marie Pédrot, Clément Pit-Claudel, Pierre Roux,
Kazuhiko Sakaguchi, Vincent Semeria, Michael Soegtrop, Arnaud Spiwack,
Matthieu Sozeau, Enrico Tassi, Laurent Théry, Anton Trunov, Li-yao Xia
and Théo Zimmermann. See the `Coq Team face book <https://coq.inria.fr/coq-team.html>`_
page for more details.
The 41 contributors to this version are
Tanaka Akira, Frédéric Besson, Juan Conejero, Ali Caglayan, Cyril Cohen, Adrian Dapprich, Maxime Dénès,
Stéphane Desarzens, Christian Doczkal, Andrej Dudenhefner, Jim Fehrle, Emilio Jesús Gallego Arias,
Attila Gáspár, Gaëtan Gilbert, Jason Gross, Hugo Herbelin, Jasper Hugunin, Bart Jacobs, Ralf Jung, Grant Jurgensen,
Jan-Oliver Kaiser, Wojciech Karpiel, Fabian Kunze, Olivier Laurent, Yishuai Li, Erik Martin-Dorel,
Guillaume Melquiond, Jean-Francois Monin, Pierre-Marie Pédrot, Rudy Peterson, Clément Pit-Claudel,
Seth Poulsen, Pierre Roux, Takafumi Saikawa, Kazuhiko Sakaguchi, Michael Soegtrop, Matthieu Sozeau,
Enrico Tassi, Laurent Théry, Anton Trunov and Théo Zimmerman.
The Coq community at large helped improve the design of this new version via
the GitHub issue and pull request system, the Coq development mailing list
coqdev@inria.fr, the coq-club@inria.fr mailing list, the `Discourse forum
<https://coq.discourse.group/>`_ and the `Coq Zulip chat <https://coq.zulipchat.com>`_.
Version 8.15's development spanned 3 months from the release of
Coq 8.14.0. Gaëtan Gilbert is the release manager of Coq 8.15.
This release is the result of 384 merged PRs, closing 143 issues.
| Nantes, January 2022,
| Matthieu Sozeau for the Coq development team
Changes in 8.15.0
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
- **Fixed:**
Name clash in a computation of the type of parameters of functorial
module types; this computation was provided for the purpose of
clients using the algebraic form of module types such as :cmd:`Print
Module Type`
(`#15385 <https://github.com/coq/coq/pull/15385>`_,
fixes `#9555 <https://github.com/coq/coq/issues/9555>`_,
by Hugo Herbelin).
Specification language, type inference
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
:cmd:`Instance` warns about the default locality immediately rather than waiting until the instance is ready to be defined.
This changes which command warns when the instance has a separate proof: the :cmd:`Instance` command itself warns instead of the proof closing command (such as :cmd:`Defined`)
(`#14705 <https://github.com/coq/coq/pull/14705>`_,
by Gaëtan Gilbert).
- **Removed:**
Arguments of section variables may no longer be renamed with :cmd:`Arguments` (this was previously applied inconsistently)
(`#14573 <https://github.com/coq/coq/pull/14573>`_,
by Gaëtan Gilbert).
- **Added:**
Non-dependent implicit arguments can be provided explicitly using
the syntax :n:`(@natural := @term)` where :token:`natural` is the index
of the implicit argument among all non-dependent arguments of the
function, starting from 1
(`#11099 <https://github.com/coq/coq/pull/11099>`_,
by Hugo Herbelin).
- **Added:**
:cmd:`Succeed`, a :n:`@control_command` that verifies that the given :n:`@sentence` succeeds without changing the proof state
(`#14750 <https://github.com/coq/coq/pull/14750>`_,
by Gaëtan Gilbert).
- **Fixed:**
The :n:`@term.(@qualid {* @arg })` syntax now takes into account the position of
the main argument :n:`@term` when computing the implicit arguments of
:n:`@qualid`
(`#14606 <https://github.com/coq/coq/pull/14606>`_,
fixes `#4167 <https://github.com/coq/coq/issues/4167>`_,
by Hugo Herbelin).
- **Fixed:**
Source and target of coercions preserved by module instantiation
(`#14668 <https://github.com/coq/coq/pull/14668>`_,
fixes `#3527 <https://github.com/coq/coq/issues/3527>`_,
by Hugo Herbelin).
- **Fixed:**
Made reference manual consistent with the implementation regarding
the role of recursively non-uniform parameters of inductive types in the nested
positivity condition
(`#14967 <https://github.com/coq/coq/pull/14967>`_,
fixes `#14938 <https://github.com/coq/coq/issues/14938>`_,
by Hugo Herbelin)
Notations
^^^^^^^^^
- **Changed:**
Terms printed in error messages may be more verbose if syntactic sugar would make it appear that the obtained and expected terms only differ in existential variables
(`#14672 <https://github.com/coq/coq/pull/14672>`_,
by Gaëtan Gilbert).
- **Removed:**
the ``Numeral Notation`` command that was renamed to :cmd:`Number Notation` in 8.13
(`#14819 <https://github.com/coq/coq/pull/14819>`_,
by Pierre Roux).
- **Removed:**
primitive float notations ``<``, ``<=`` and ``==`` that were replaced by ``<?``, ``<=?`` and ``=?`` in 8.13
(`#14819 <https://github.com/coq/coq/pull/14819>`_,
by Pierre Roux).
- **Removed:**
primitive integer notations ``\%``, ``<``, ``<=`` and ``==`` that were replaced by ``mod``, ``<?``, ``<=?`` and ``=?`` in 8.13
(`#14819 <https://github.com/coq/coq/pull/14819>`_,
by Pierre Roux).
- **Added:**
Include floats in the number notation mechanism
(`#14525 <https://github.com/coq/coq/pull/14525>`_,
by Pierre Roux).
- **Added:**
Coercion entries and :n:`ident`/:n:`global` entries in custom notations now
respect the :n:`only parsing` modifier
(`#15340 <https://github.com/coq/coq/pull/15340>`_,
fixes `#15335 <https://github.com/coq/coq/issues/15335>`_,
by Hugo Herbelin).
- **Fixed:**
:cmd:`Reserved Infix` now accept further parameters in the infix notation
(`#14379 <https://github.com/coq/coq/pull/14379>`_,
fixes `#11402 <https://github.com/coq/coq/issues/11402>`_,
by Hugo Herbelin).
- **Fixed:**
Useless self reference when printing abbreviations declared in nested modules
(`#14493 <https://github.com/coq/coq/pull/14493>`_,
fixes one part of `#12777 <https://github.com/coq/coq/issues/12777>`_
and `#14486 <https://github.com/coq/coq/issues/14486>`_,
by Hugo Herbelin).
- **Fixed:**
anomalies with notation applied in `match` patterns when the
notation have a notation variable at head
(`#14713 <https://github.com/coq/coq/pull/14713>`_,
fixes `#14708 <https://github.com/coq/coq/issues/14708>`_,
by Hugo Herbelin).
- **Fixed:**
Regression in parsing error reporting in case of empty custom entry
(`#15338 <https://github.com/coq/coq/pull/15338>`_,
fixes `#15334 <https://github.com/coq/coq/issues/15334>`_,
by Hugo Herbelin).
Tactics
^^^^^^^
.. _815ApplyWith:
- **Changed:**
``apply with`` does not rename arguments unless using compatibility flag `Apply With Renaming`
(`#13837 <https://github.com/coq/coq/pull/13837>`_,
fixes `#13759 <https://github.com/coq/coq/issues/13759>`_,
by Gaëtan Gilbert).
Porting hint: if the renaming is because of a goal variable (eg
``intros x; apply foo with (x0 := bar)`` where ``About foo.`` says
the argument is called ``x``) it is probably caused by an
interaction with implicit arguments and ``apply @foo with (x :=
bar)`` will usually be a backwards compatible fix.
.. _815Auto:
- **Changed:**
:cmd:`Hint Unfold` in discriminated databases now respects its
specification, namely that a constant may be unfolded only when
it is the head of the goal. The previous behavior was to perform
unfolding on any goal, without any limitation.
An unexpected side-effect of this was that a database that
contained ``Unfold`` hints would sometimes trigger silent
strong βι-normalization of the goal. Indeed, :tacn:`unfold`
performs such a normalization regardless of the presence of its
argument in the goal. This does introduce a bit of backwards
incompatibility, but it occurs in very specific situations
and is easily circumvented. Since by default hint bases
are not discriminated, it means that incompatibilities are
typically observed when adding unfold hints to the typeclass
database.
In order to recover the previous behavior, it is enough
to replace instances of ``Hint Unfold foo.``
with ``Hint Extern 4 => progress (unfold foo).``. A less compatible but
finer-grained change can be achieved by only adding the missing normalization
phase with ``Hint Extern 4 => progress (lazy beta iota).``
(`#14679 <https://github.com/coq/coq/pull/14679>`_,
fixes `#14874 <https://github.com/coq/coq/issues/14874>`_,
by Pierre-Marie Pédrot).
- **Changed:**
Correctly consider variables without a body to be rigid
for the pattern recognition algorithm of discriminated
hints
(`#14722 <https://github.com/coq/coq/pull/14722>`_,
by Pierre-Marie Pédrot).
- **Changed:**
Use discrimination nets for goals containing evars in all
:tacn:`auto` tactics. It essentially makes the behavior of undiscriminated
databases to be the one of discriminated databases where all constants are
considered transparent. This may be incompatible with previous behavior in
very rare cases (`#14848 <https://github.com/coq/coq/pull/14848>`_,
by Pierre-Marie Pédrot).
- **Changed:**
The ``choice`` strategy for :tacn:`rewrite_strat` is now of arbitrary arity
(`#14989 <https://github.com/coq/coq/pull/14989>`_,
fixes `#6109 <https://github.com/coq/coq/issues/6109>`_,
by Gaëtan Gilbert).
- **Changed:**
The :tacn:`exact` tactic now takes a :g:`uconstr` as argument
instead of an ad-hoc one. In very rare cases, this can change
the order of resolution of dependent evars when used over
several goals at once
(`#15171 <https://github.com/coq/coq/pull/15171>`_,
by Pierre-Marie Pédrot).
- **Changed:** :tacn:`cbn` interprets the combination of the ``!`` and
``/`` modifiers (from :cmd:`Arguments`) to mean "unfold as soon as
all arguments before the ``/`` are provided and all arguments marked
with ``!`` reduce to a constructor". This makes it unfold more often
than without the ``/`` when all arguments are provided. Previously
adding ``/`` would only prevent unfolding when insufficient
arguments are provided without adding new unfoldings.
Note that this change only takes effect in default mode (as opposed
to when ``simpl nomatch`` was used) (`#15204
<https://github.com/coq/coq/pull/15204>`_, fixes `#4555
<https://github.com/coq/coq/issues/4555>`_ and `#7674
<https://github.com/coq/coq/issues/7674>`_, by Gaëtan Gilbert).
- **Removed:**
the deprecated new auto tactic
(`#14527 <https://github.com/coq/coq/pull/14527>`_,
by Pierre-Marie Pédrot).
- **Removed:**
deprecated syntax for :tacn:`instantiate` using capitalized ``Value`` or ``Type``
(`#15193 <https://github.com/coq/coq/pull/15193>`_,
by Gaëtan Gilbert).
- **Removed:**
deprecated ``autoapply ... using`` syntax for :tacn:`autoapply`
(`#15194 <https://github.com/coq/coq/pull/15194>`_,
by Gaëtan Gilbert).
- **Deprecated:**
the `bfs eauto` tactic. Since its introduction
it has behaved exactly like the :tacn:`eauto` tactic.
Use :tacn:`typeclasses eauto` with the `bfs` flag instead
(`#15314 <https://github.com/coq/coq/pull/15314>`_,
fixes `#15300 <https://github.com/coq/coq/issues/15300>`_,
by Pierre-Marie Pédrot).
- **Added:**
The :tacn:`zify` tactic can now recognize `Pos.Nsucc_double`, `Pos.Ndouble`,
`N.succ_double`, `N.double`, `N.succ_pos`, `N.div2`, `N.pow`, `N.square`, and
`Z.to_pos`. Moreover, importing module `ZifyBool` lets it recognize `Pos.eqb`,
`Pos.leb`, `Pos.ltb`, `N.eqb`, `N.leb`, and `N.ltb`
(`#10998 <https://github.com/coq/coq/pull/10998>`_,
by Kazuhiko Sakaguchi).
.. _815BestEffort:
- **Added:**
:ref:`best_effort <TypeclassesEautoBestEffort>` option to :tacn:`typeclasses eauto`,
to return a *partial* solution to its initial proof-search problem. The goals that
can remain unsolved are determined according to the modes declared for their head
(see :cmd:`Hint Mode`). This is used by typeclass resolution during type
inference to provide more informative error messages
(`#13952 <https://github.com/coq/coq/pull/13952>`_,
fixes `#13942 <https://github.com/coq/coq/pull/13952>`_ and
`#14125 <https://github.com/coq/coq/pull/14125>`_, by Matthieu Sozeau).
- **Added:**
A new :table:`Keep Equalities` table to selectively control the
preservation of subterm equalities for the :tacn:`injection` tactic. It allows
a finer control than the boolean flag :flag:`Keep Proof Equalities` that acts
globally
(`#14439 <https://github.com/coq/coq/pull/14439>`_,
by Pierre-Marie Pédrot).
- **Added:**
:tacn:`simple congruence` tactic which works like :tacn:`congruence`
but does not unfold definitions
(`#14657 <https://github.com/coq/coq/pull/14657>`_,
fixes `#13778 <https://github.com/coq/coq/issues/13778>`_
and `#5394 <https://github.com/coq/coq/issues/5394>`_
and `#13189 <https://github.com/coq/coq/issues/13189>`_,
by Andrej Dudenhefner).
- **Added:**
Small enhancement of unification in the presence of local definitions
(`#14673 <https://github.com/coq/coq/pull/14673>`_,
fixes `#4415 <https://github.com/coq/coq/issues/4415>`_,
by Hugo Herbelin).
- **Added:**
`dfs` option in :tacn:`typeclasses eauto` to use depth-first search
(`#14693 <https://github.com/coq/coq/pull/14693>`_,
fixes `#13859 <https://github.com/coq/coq/issues/13859>`_,
by Ali Caglayan).
- **Fixed:**
More flexible hypothesis specialization in :tacn:`congruence`
(`#14650 <https://github.com/coq/coq/pull/14650>`_,
fixes `#14651 <https://github.com/coq/coq/issues/14651>`_
and `#14662 <https://github.com/coq/coq/issues/14662>`_,
by Andrej Dudenhefner).
- **Fixed:**
Added caching to congruence initialization to avoid quadratic runtime
(`#14683 <https://github.com/coq/coq/pull/14683>`_,
fixes `#5548 <https://github.com/coq/coq/issues/5548>`_,
by Andrej Dudenhefner).
- **Fixed:**
Correctly handle matching up to η-expansion in discriminated
hints
(`#14732 <https://github.com/coq/coq/pull/14731>`_,
fixes `#14731 <https://github.com/coq/coq/issues/14731>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
Old unification understands some inductive cumulativity
(`#14758 <https://github.com/coq/coq/pull/14758>`_,
fixes `#14734 <https://github.com/coq/coq/issues/14734>`_
and `#6976 <https://github.com/coq/coq/issues/6976>`_,
by Gaëtan Gilbert).
- **Fixed:**
The :tacn:`clear dependent <clear>` tactic now does not backtrack
internally, preventing an exponential blowup
(`#14984 <https://github.com/coq/coq/pull/14984>`_,
fixes `#11689 <https://github.com/coq/coq/issues/11689>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
:tacn:`setoid_rewrite` now works when the rewriting lemma has non dependent arguments and rewriting under binders
(`#14986 <https://github.com/coq/coq/pull/14986>`_,
fixes `#5369 <https://github.com/coq/coq/issues/5369>`_,
by Gaëtan Gilbert).
- **Fixed:**
Regression in 8.14.0 and 8.14.1 with action pattern :n:`%` in
:n:`as` clause of tactic :tacn:`specialize`
(`#15245 <https://github.com/coq/coq/pull/15245>`_,
fixes `#15244 <https://github.com/coq/coq/issues/15244>`_,
by Hugo Herbelin).
Tactic language
^^^^^^^^^^^^^^^
- **Fixed:**
the parsing level of the Ltac2 tactic :tacn:`now`
was set to level 6 in order to behave as it did before
8.14
(`#15250 <https://github.com/coq/coq/pull/15250>`_,
fixes `#15122 <https://github.com/coq/coq/issues/15122>`_,
by Pierre-Marie Pédrot).
SSReflect
^^^^^^^^^
- **Changed:**
rewrite generates subgoals in the expected order (side conditions first, by
default) also when rewriting with a setoid relation
(`#14314 <https://github.com/coq/coq/pull/14314>`_,
fixes `#5706 <https://github.com/coq/coq/issues/5706>`_,
by Enrico Tassi).
- **Removed:**
The ssrsearch plugin and the ssr Search command
(`#13760 <https://github.com/coq/coq/pull/13760>`_,
by Jim Fehrle).
- **Added:**
port the additions made to `ssrbool.v` in math-comp `PR #757 <https://github.com/math-comp/math-comp/pull/757>`_,
namely `reflect` combinators `negPP`, `orPP`, `andPP` and `implyPP`
(`#15059 <https://github.com/coq/coq/pull/15059>`_,
by Christian Doczkal).
- **Fixed:**
SSR patterns now work with primitive values such as ints, floats or arrays
(`#14660 <https://github.com/coq/coq/pull/14660>`_,
fixes `#12770 <https://github.com/coq/coq/issues/12770>`_,
by Juan Conejero).
- **Fixed:**
A bug where :tacn:`suff` would fail due to use of :tacn:`apply` under the hood
(`#14687 <https://github.com/coq/coq/pull/14687>`_,
fixes `#14678 <https://github.com/coq/coq/issues/14678>`_,
by Ali Caglayan helped by Enrico Tassi).
Commands and options
^^^^^^^^^^^^^^^^^^^^
.. _815Commands:
- **Changed:**
:cmd:`About` and :cmd:`Print` now display all known argument names
(`#14596 <https://github.com/coq/coq/pull/14596>`_,
grants `#13830 <https://github.com/coq/coq/issues/13830>`_,
by Hugo Herbelin).
- **Changed:**
:cmd:`Typeclasses Transparent` and :cmd:`Typeclasses Opaque` support ``#[local]``, ``#[export]`` and ``#[global]`` attributes
(`#14685 <https://github.com/coq/coq/pull/14685>`_,
fixes `#14513 <https://github.com/coq/coq/issues/14513>`_,
by Gaëtan Gilbert).
- **Changed:**
In extraction to OCaml, empty types in :n:`Type` (such as
:n:`Empty_set`) are now extracted to an abstract type (empty by
construction) rather than to the OCaml's :n:`unit` type
(`#14802 <https://github.com/coq/coq/pull/14802>`_,
fixes a remark at `#14801 <https://github.com/coq/coq/issues/14801>`_,
by Hugo Herbelin).
- **Changed:**
Closed modules now live in a separate namespace from open modules and sections
(`#15078 <https://github.com/coq/coq/pull/15078>`_,
fixes `#14529 <https://github.com/coq/coq/issues/14529>`_,
by Gaëtan Gilbert).
- **Removed:**
boolean attributes ``monomorphic``, ``noncumulative`` and ``notemplate`` that were replaced by ``polymorphic=no``, ``cumulative=no`` and ``template=no`` in 8.13
(`#14819 <https://github.com/coq/coq/pull/14819>`_,
by Pierre Roux).
- **Removed:**
command ``Grab Existential Variables`` that was deprecated in 8.13. Use :cmd:`Unshelve` that is mostly equivalent, up to the reverse order of the resulting subgoals
(`#14819 <https://github.com/coq/coq/pull/14819>`_,
by Pierre Roux).
- **Removed:**
command ``Existential`` that was deprecated in 8.13. Use :cmd:`Unshelve` and :tacn:`exact`
(`#14819 <https://github.com/coq/coq/pull/14819>`_,
by Pierre Roux).
- **Removed:**
the `-outputstate` command line argument and the corresponding
vernacular commands `Write State` and `Restore State`
(`#14940 <https://github.com/coq/coq/pull/14940>`_,
by Pierre-Marie Pédrot)
- **Deprecated:** ambiguous :cmd:`Proof using` and :cmd:`Collection` usage
(`#15056 <https://github.com/coq/coq/pull/15056>`_,
fixes `#13296 <https://github.com/coq/coq/issues/13296>`_,
by Wojciech Karpiel).
- **Deprecated:**
`Universal Lemma Under Conjunction` flag that was introduced for
compatibility with Coq versions prior to 8.4 (`#15272
<https://github.com/coq/coq/pull/15272>`_, by Théo Zimmermann).
- **Deprecated:** using :cmd:`Hint Cut`, :cmd:`Hint Mode`, :cmd:`Hint
Transparent`, :cmd:`Hint Opaque`, :cmd:`Typeclasses Transparent` or
:cmd:`Typeclasses Opaque` without an explicit locality outside
sections. (`#14697 <https://github.com/coq/coq/pull/14697>`_, by
Pierre-Marie Pédrot, and `#14685
<https://github.com/coq/coq/pull/14685>`_, by Gaëtan Gilbert)
- **Added:**
The :flag:`Mangle Names Light` flag, which changes the behavior of
:flag:`Mangle Names`. For example, the name `foo` becomes `_0` with
:flag:`Mangle Names`, but with :flag:`Mangle Names Light` set, it will
become `_foo`
(`#14695 <https://github.com/coq/coq/pull/14695>`_,
fixes `#14548 <https://github.com/coq/coq/issues/14548>`_,
by Ali Caglayan).
- **Added:** The :cmd:`Hint Cut`, :cmd:`Hint Mode`, :cmd:`Hint
Transparent`, :cmd:`Hint Opaque`, :cmd:`Typeclasses Transparent` and
:cmd:`Typeclasses Opaque` commands now accept the :attr:`local`,
:attr:`export` and :attr:`global` locality attributes inside
sections. With either attribute, the commands will trigger the
`non-local-section-hint` warning if the arguments refer to local
section variables (`#14697
<https://github.com/coq/coq/pull/14697>`_, by Pierre-Marie Pédrot,
and `#14685 <https://github.com/coq/coq/pull/14685>`_, fixes `#14513
<https://github.com/coq/coq/issues/14513>`_, by Gaëtan Gilbert).
- **Added:**
:attr:`projections(primitive)` attribute to make a record use
primitive projections
(`#14699 <https://github.com/coq/coq/pull/14699>`_,
fixes `#13150 <https://github.com/coq/coq/issues/13150>`_,
by Ali Caglayan).
.. _815Import:
- **Added:** Syntax for :token:`import_categories` providing selective
import of module components (eg ``Import(notations) M`` (`#14892
<https://github.com/coq/coq/pull/14892>`_, by Gaëtan Gilbert).
- **Added:**
:cmd:`Search` understands modifier ``in`` as an alias of ``inside``
(`#15139 <https://github.com/coq/coq/pull/15139>`_,
fixes `#14930 <https://github.com/coq/coq/issues/14930>`_,
by Gaëtan Gilbert).
This is intended to ease transition for ssreflect Search users.
- **Fixed:** interaction of Program's obligation state and modules and
sections: obligations started in a parent module or section are not
available to be solved until the submodules and subsections are
closed (`#14780 <https://github.com/coq/coq/pull/14780>`_, fixes
`#14446 <https://github.com/coq/coq/issues/14446>`_, by Gaëtan
Gilbert).
- **Fixed:**
:cmd:`Eval` and :cmd:`Compute` now beta-iota-simplify the type
of the result, like :cmd:`Check` does
(`#14901 <https://github.com/coq/coq/pull/14901>`_,
fixes `#14899 <https://github.com/coq/coq/issues/14899>`_,
by Hugo Herbelin)
Command-line tools
^^^^^^^^^^^^^^^^^^
- **Changed:**
Coqdoc options ``--coqlib`` and ``--coqlib_path`` have been renamed
to ``--coqlib_url`` and ``--coqlib`` to make them more consistent with
flags used by other Coq executables
(`#14059 <https://github.com/coq/coq/pull/14059>`_,
by Emilio Jesus Gallego Arias).
- **Changed:**
Syntax of `_CoqProject` files: `-arg` is now handled by :ref:`coq_makefile
<coq_makefile>` and not by `make`. Unquoted `#` now start line comments
(`#14558 <https://github.com/coq/coq/pull/14558>`_,
by Stéphane Desarzens, with help from Jim Fehrle and Enrico Tassi).
- **Changed:**
:cmd:`Require` now selects files whose logical name
exactly matches the required name, making it possible to unambiguously select
a given file: if several :n:`-Q` or :n:`-R` options bind the same
logical name to a different file, the option appearing last on the
command line takes precedence. Moreover, it is now an error to
require a file using a partial logical name which does not resolve
to a non-ambiguous path (`#14718
<https://github.com/coq/coq/pull/14718>`_, by Hugo Herbelin).
- **Changed:** ``coq_makefile`` now declares variable ``COQBIN`` to avoid warnings in
``make --warn`` mode (`#14787 <https://github.com/coq/coq/pull/14787>`_, by
Clément Pit-Claudel).
- **Changed:**
``coqchk`` respects the :flag:`Kernel Term Sharing` flag instead of forcing it on
(`#14957 <https://github.com/coq/coq/pull/14957>`_,
by Gaëtan Gilbert)
- **Removed:**
These options of :ref:`coq_makefile <coq_makefile>`: `-extra`, `-extra-phony`,
`-custom`, `-no-install`, `-install`, `-no-opt`, `-byte`.
Support for subdirectories is also removed
(`#14558 <https://github.com/coq/coq/pull/14558>`_,
by Stéphane Desarzens, with help from Jim Fehrle and Enrico Tassi).
- **Added:**
:ref:`coq_makefile <coq_makefile>` now takes the `-docroot` option as alternative to the
`INSTALLCOQDOCROOT` variable
(`#14558 <https://github.com/coq/coq/pull/14558>`_,
by Stéphane Desarzens, with help from Jim Fehrle and Enrico Tassi).
- **Fixed:**
Various `coqdep` issues with the `From` clause of :cmd:`Require` and
a few inconsistencies between `coqdep` and `coqc` disambiguation
of :cmd:`Require`
(`#14718 <https://github.com/coq/coq/pull/14718>`_,
fixes `#11631 <https://github.com/coq/coq/issues/11631>`_
and `#14539 <https://github.com/coq/coq/issues/14539>`_,
by Hugo Herbelin).
- **Fixed:**
``coq_makefile`` has improved logic when dealing with incorrect ``_CoqProject`` files
(`#13541 <https://github.com/coq/coq/pull/13541>`_,
fixes `#9319 <https://github.com/coq/coq/issues/9319>`_,
by Fabian Kunze).
- **Fixed:**
``coqdep`` was confusing periods occurring in comments with periods ending Coq sentences
(`#14996 <https://github.com/coq/coq/pull/14996>`_,
fixes `#7393 <https://github.com/coq/coq/issues/7393>`_,
by Hugo Herbelin).
CoqIDE
^^^^^^
- **Changed:**
CoqIDE unicode keys for brackets (e.g. `\langle`) now bind to unicode mathematical symbols rather than unicode CJK brackets
(`#14452 <https://github.com/coq/coq/pull/14452>`_,
by Bart Jacobs).
- **Changed:**
All occurrences of the name `CoqIde` to `CoqIDE`. This may cause issues with
installing and uninstalling desktop icons, causing apparent duplicates
(`#14696 <https://github.com/coq/coq/pull/14696>`_, fixes `#14310
<https://github.com/coq/coq/issues/14310>`_, by Ali Caglayan).
.. _815LtacDebugger:
- **Added:**
Initial version of a visual debugger in CoqIDE. Supports setting breakpoints
visually and jumping to the stopping point plus continue, step over,
step in and step out operations. Displays the call stack and
variable values for each stack frame. Currently only for Ltac.
See the documentation :ref:`here <coqide-debugger>`
(`#14644 <https://github.com/coq/coq/pull/14644>`_,
fixes `#13967 <https://github.com/coq/coq/issues/13967>`_,
by Jim Fehrle)
- **Fixed:**
It is now possible to deactivate the unicode completion
mechanism in CoqIDE
(`#14863 <https://github.com/coq/coq/pull/14863>`_,
by Pierre-Marie Pédrot).
Standard library
^^^^^^^^^^^^^^^^
- **Changed:**
Permutation-related Proper instances are now at default priority instead of priority ``10``
(`#14574 <https://github.com/coq/coq/pull/14574>`_,
fixes `#14571 <https://github.com/coq/coq/issues/14571>`_,
by Gaëtan Gilbert).
- **Changed:**
The new type of `epsilon_smallest` is
`(exists n : nat, P n) -> { n : nat | P n /\ forall k, P k -> n <= k }`.
Here the minimality of `n` is expressed by `forall k, P k -> n <= k`
corresponding to the intuitive meaning of minimality
"the others are greater", whereas the previous version used
the negative equivalent formulation `forall k, k < n -> ~P k`.
Scripts using `epsilon_smallest` can easily be adapted using
lemmas `le_not_lt` and `lt_not_le` from the standard library
(`#14601 <https://github.com/coq/coq/pull/14601>`_,
by Jean-Francois Monin).
- **Changed:**
``ltb`` and ``leb`` functions for ``ascii``, into comparison-based definition
(`#14234 <https://github.com/coq/coq/pull/14234>`_,
by Yishuai Li).
- **Removed:**
the file ``Numeral.v`` that was replaced by ``Number.v`` in 8.13
(`#14819 <https://github.com/coq/coq/pull/14819>`_,
by Pierre Roux).
- **Removed:**
some ``*_invol`` functions that were renamed ``*_involutive`` for consistency with the remaining of the stdlib in 8.13
(`#14819 <https://github.com/coq/coq/pull/14819>`_,
by Pierre Roux).
- **Deprecated:**
``frexp`` and ``ldexp`` in `FloatOps.v`, renamed ``Z.frexp`` and ``Z.ldexp``
(`#15085 <https://github.com/coq/coq/pull/15085>`_,
by Pierre Roux).
- **Added:**
A proof that incoherent equivalences can be adjusted to adjoint equivalences in ``Logic.Adjointification``
(`#13408 <https://github.com/coq/coq/pull/13408>`_,
by Jasper Hugunin).
- **Added:**
``ltb`` and ``leb`` functions for ``string``, and some lemmas about them;
- **Added:**
simple non dependent product ``slexprod`` in
``Relations/Relation_Operators.v`` and its proof of well-foundness
``wf_slexprod`` in ``Wellfounded/Lexicographic_Product.v``
(`#14809 <https://github.com/coq/coq/pull/14809>`_,
by Laurent Thery).
- **Added:**
The notations ``(x; y)``, ``x.1``, ``x.2`` for sigT are now exported and available after ``Import SigTNotations.``
(`#14813 <https://github.com/coq/coq/pull/14813>`_, by Laurent Théry).
- **Added:**
The function ``sigT_of_prod`` turns a pair ``A * B`` into ``{_ : A & B}``. Its inverse function is ``prod_of_sigT``. This is shown by theorems ``sigT_prod_sigT`` and ``prod_sigT_prod``
(`#14813 <https://github.com/coq/coq/pull/14813>`_, by Laurent Théry).
- **Fixed:**
``split_combine`` lemma for lists, making it usable
(`#14458 <https://github.com/coq/coq/pull/14458>`_,
by Yishuai Li).
Infrastructure and dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
Coq's continuous integration now provides a more accessible Windows
installer artifact in the "Checks" GitHub tab, both for pull
requests and the `master` branch.
This facilitates testing Coq's bleeding edge builds on Windows, and
should be more reliable than the previous setup (`#12425
<https://github.com/coq/coq/pull/12425>`_, by Emilio Jesus Gallego
Arias).
- **Changed:**
Coq's ``./configure`` script has gone through a major cleanup. In
particular, the following options have been removed:
- ``-force-caml-version``, ``-force-findlib-version``: Coq won't
compile with OCaml or findlib lower than the required versions;
- ``-vmbyteflags``, ``-custom``, ``-no-custom``: linking options for
toplevels are now controlled in ``topbin/dune``;
- ``-ocamlfind``: Coq will now use the toolchain specified in the
Dune configuration; this can be controlled using the workspaces
feature;
- ``-nodebug``: Coq will now follow the standard, which is to always
pass ``-g`` to OCaml; this can be modified using a custom Dune
workspace;
- ``-flambda-opts``: compilation options are now set in Coq's root
``dune`` file, can be updated using a custom Dune workspace;
- ``-local``, ``-bindir``, ``-coqdocdir``, ``-annotate``,
``-camldir``, ``-profiling``: these flags were deprecated in 8.14,
and are now removed.
Moreover, the ``-annot`` and ``-bin-annot`` flags only take effect
to set ``coq-makefile``'s defaults
(`#14189 <https://github.com/coq/coq/pull/14189>`_,
by Emilio Jesus Gallego Arias).
- **Changed:**
Configure will now detect the Dune version, and will correctly pass
``-etcdir`` and ``-docdir`` to the install procedure if Dune >= 2.9 is available.
Note that the ``-docdir`` configure option now refers to root path for documentation.
If you would like to install Coq documentation in ``foo/coq``, use
``-docdir foo``
(`#14844 <https://github.com/coq/coq/pull/14844>`_,
by Emilio Jesus Gallego Arias).
- **Changed:**
OCaml 4.13 is now officially supported
(`#14879 <https://github.com/coq/coq/pull/14879>`_,
by Emilio Jesus Gallego Arias)
- **Changed:**
Sphinx 3.0.2 or above is now required to build the reference manual
(`#14963 <https://github.com/coq/coq/pull/14263>`_,
by Théo Zimmermann)
Extraction
^^^^^^^^^^
- **Changed:** replaced ``Big`` module with ``Big_int_Z`` functions from ``zarith``.
OCaml code extracted with the following modules should be linked to the
`Zarith <https://github.com/ocaml/Zarith>`_ library.
+ ``ExtrOcamlNatBigInt``
+ ``ExtrOcamlZBigInt``
Removed ``ExtrOcamlBigIntConv`` module.
(`#8252 <https://github.com/coq/coq/pull/8252>`_, by Yishuai Li).
- **Fixed:**
compilation errors in ExtrOcamlString and ExtrOcamlNativeString
(`#15075 <https://github.com/coq/coq/pull/15075>`_,
fixes `#15076 <https://github.com/coq/coq/issues/15076>`_,
by Yishuai Li).
Changes in 8.15.1
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
- **Fixed:**
cases of incompletenesses in the guard condition for fixpoints in
the presence of cofixpoints or primitive projections
(`#15498 <https://github.com/coq/coq/pull/15498>`_,
fixes `#15451 <https://github.com/coq/coq/issues/15451>`_,
by Hugo Herbelin).
- **Fixed:**
inconsistency when using module subtyping with squashed inductives
(`#15839 <https://github.com/coq/coq/pull/15839>`_,
fixes `#15838 <https://github.com/coq/coq/issues/15838>`_ (reported by Pierre-Marie Pédrot),
by Gaëtan Gilbert).
Notations
^^^^^^^^^
- **Fixed:**
Check for prior declaration of a custom entry was missing for notations in only printing mode
(`#15628 <https://github.com/coq/coq/pull/15628>`_,
fixes `#15619 <https://github.com/coq/coq/issues/15619>`_,
by Hugo Herbelin).
Tactics
^^^^^^^
- **Fixed:**
:tacn:`rewrite_strat` regression in 8.15.0 related to `Transitive` instances
(`#15577 <https://github.com/coq/coq/pull/15577>`_,
fixes `#15568 <https://github.com/coq/coq/issues/15568>`_,
by Gaëtan Gilbert).
- **Fixed:**
When :tacn:`setoid_rewrite` succeeds in rewriting at some occurrence but the resulting equality is the identity, it now tries rewriting in subterms of that occurrence instead of giving up
(`#15612 <https://github.com/coq/coq/pull/15612>`_,
fixes `#8080 <https://github.com/coq/coq/issues/8080>`_,
by Gaëtan Gilbert).
- **Fixed:**
Ill-typed goals created by :tacn:`clearbody` in the presence of
transitive dependencies in the body of a hypothesis
(`#15634 <https://github.com/coq/coq/pull/15634>`_,
fixes `#15606 <https://github.com/coq/coq/issues/15606>`_,
by Hugo Herbelin).
- **Fixed:**
:tacn:`cbn` knows to refold fixpoints when :cmd:`Arguments` with ``/`` and ``!`` was used
(`#15653 <https://github.com/coq/coq/pull/15653>`_,
fixes `#15567 <https://github.com/coq/coq/issues/15567>`_,
by Gaëtan Gilbert).
Command-line tools
^^^^^^^^^^^^^^^^^^
- **Fixed:**
a bug where :n:`coqc -vok` was not creating an empty '.vok' file
(`#15745 <https://github.com/coq/coq/pull/15745>`_,
by Ramkumar Ramachandra).
CoqIDE
^^^^^^
- **Fixed:**
Line numbers shown in the Errors panel were incorrect;
they didn't match the error locations in the script panel
(`#15532 <https://github.com/coq/coq/pull/15532>`_,
fixes `#15531 <https://github.com/coq/coq/issues/15531>`_,
by Jim Fehrle).
- **Fixed:**
anomaly when using proof diffs with no focused goal
(`#15633 <https://github.com/coq/coq/pull/15633>`_,
fixes `#15578 <https://github.com/coq/coq/issues/15578>`_,
by Jim Fehrle).
- **Fixed:**
Attempted edits to the processed part of a buffer while
Coq is busy processing a request are now ignored to
ensure "processed" highlighting is accurate
(`#15714 <https://github.com/coq/coq/pull/15714>`_,
fixes `#15733 <https://github.com/coq/coq/issues/15733>`_
and `#15675 <https://github.com/coq/coq/issues/15675>`_
and `#15725 <https://github.com/coq/coq/issues/15725>`_,
by Jim Fehrle).
Miscellaneous
^^^^^^^^^^^^^
- **Fixed:**
Ensure that the names of arguments of inductive schemes are distinct
so that the new Coq 8.15 preservation of argument names in the ``with``
clause of tactics in `#13837 <https://github.com/coq/coq/pull/13837>`_
works as in Coq 8.14 for these schemes
(`#15537 <https://github.com/coq/coq/pull/15537>`_,
fixes `#15420 <https://github.com/coq/coq/issues/15420>`_,
by Hugo Herbelin).
Changes in 8.15.2
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Tactics
^^^^^^^
- **Added:**
:tacn:`intuition` and :tacn:`dintuition` use ``Tauto.intuition_solver`` (defined as ``auto with *``) instead of hardcoding ``auto with *``.
This makes it possible to change the default solver with ``Ltac Tauto.intuition_solver ::= ...``
(`#15866 <https://github.com/coq/coq/pull/15866>`_,
fixes `#7725 <https://github.com/coq/coq/issues/7725>`_,
by Gaëtan Gilbert).
- **Fixed:**
uncaught exception ``UnableToUnify`` with bidirectionality hints
(`#16066 <https://github.com/coq/coq/pull/16066>`_,
fixes `#16063 <https://github.com/coq/coq/issues/16063>`_,
by Gaëtan Gilbert).
CoqIDE
^^^^^^
- **Fixed:**
multiple CoqIDE bugs
(`#15938 <https://github.com/coq/coq/pull/15938>`_,
fixes `#15861 <https://github.com/coq/coq/issues/15861>`_,
`#15939 <https://github.com/coq/coq/pull/15939>`_,
fixes `#15882 <https://github.com/coq/coq/issues/15882>`_,
`#15964 <https://github.com/coq/coq/pull/15964>`_,
fixes `#15799 <https://github.com/coq/coq/issues/15799>`_,
`#15984 <https://github.com/coq/coq/pull/15984>`_,
partially fixes `#15873 <https://github.com/coq/coq/issues/15873>`_,
`#15996 <https://github.com/coq/coq/pull/15996>`_,
`#15912 <https://github.com/coq/coq/pull/15912>`_,
fixes `#15903 <https://github.com/coq/coq/issues/15903>`_,
all by Jim Fehrle).
Standard library
^^^^^^^^^^^^^^^^
- **Fixed:**
an incorrect implementation of SFClassify, allowing for a proof of False since
8.11.0, due to Axioms present in Float.Axioms
(`#16101 <https://github.com/coq/coq/pull/16101>`_,
fixes `#16096 <https://github.com/coq/coq/issues/16096>`_,
by Ali Caglayan).
Version 8.14
------------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.14 integrates many usability improvements, as well
as an important change in the core language. The main changes include:
- The :ref:`internal representation <814CaseRepresentation>` of `match` has changed
to a more space-efficient and cleaner structure, allowing the fix of a completeness
issue with cumulative inductive types in the type-checker.
The internal representation is now closer to the user-level view of `match`,
where the argument context of branches and the inductive binders `in` and `as`
do not carry type annotations.
- A :ref:`new <814CoqNative>` `coqnative` binary performs separate native compilation
of libraries, starting from a `.vo` file. It is supported by `coq_makefile`.
- :ref:`Improvements <814TCCanon>` to typeclasses and canonical structure
resolution, allowing more terms to be considered as classes or keys.
- More control over :ref:`notations <814Notations>` declarations and support
for primitive types in string and number notations.
- :ref:`Removal <814Tactics>` of deprecated tactics, notably `omega`, which has
been replaced by a greatly improved `lia`, along with many bug fixes.
- New :ref:`Ltac2 <814Ltac2>` APIs for interaction with Ltac1, manipulation of
inductive types and printing.
- Many :ref:`changes and additions <814Stdlib>` to the standard library in the numbers,
vectors and lists libraries. A new signed primitive integers library `Sint63`
is available in addition to the unsigned `Uint63` library.
See the `Changes in 8.14.0`_ section below for the detailed list of changes,
including potentially breaking changes marked with **Changed**.
Coq's `reference manual <https://coq.github.io/doc/v8.14/refman>`_,
`documentation of the standard library <https://coq.github.io/doc/v8.14/stdlib>`_
and `developer documentation of the ML API <https://coq.github.io/doc/v8.14/api>`_
are also available.
Emilio Jesús Gallego Arias, Gaëtan Gilbert, Michael
Soegtrop and Théo Zimmermann worked on maintaining and improving the
continuous integration system and package building infrastructure.
Erik Martin-Dorel has maintained the `Coq Docker images
<https://hub.docker.com/r/coqorg/coq>`_ that are used in many Coq
projects for continuous integration.
The opam repository for Coq packages has been maintained by
Guillaume Claret, Karl Palmskog, Matthieu Sozeau and Enrico Tassi with
contributions from many users. A list of packages is available at
https://coq.inria.fr/opam/www/.
The `Coq Platform <https://github.com/coq/platform>`_ has been maintained
by Michael Soegtrop and Enrico Tassi.
Our current maintainers are Yves Bertot, Frédéric Besson, Ali Caglayan, Tej
Chajed, Cyril Cohen, Pierre Corbineau, Pierre Courtieu, Maxime Dénès,
Jim Fehrle, Julien Forest, Emilio Jesús Gallego Arias, Gaëtan Gilbert,
Georges Gonthier, Benjamin Grégoire, Jason Gross, Hugo Herbelin,
Vincent Laporte, Olivier Laurent, Assia Mahboubi, Kenji Maillard,
Guillaume Melquiond, Pierre-Marie Pédrot, Clément Pit-Claudel, Pierre Roux,
Kazuhiko Sakaguchi, Vincent Semeria, Michael Soegtrop, Arnaud Spiwack,
Matthieu Sozeau, Enrico Tassi, Laurent Théry, Anton Trunov, Li-yao Xia
and Théo Zimmermann. See the `Coq Team face book <https://coq.inria.fr/coq-team.html>`_
page for more details.
The 54 contributors to this version are Reynald Affeldt,
Arthur Azevedo de Amorim, Yves Bertot, Frédéric Besson, Lasse Blaauwbroek, Ana Borges,
Ali Caglayan, Cyril Cohen, Pierre Courtieu, Maxime Dénès, Stéphane Desarzens, Andrej Dudenhefner,
Jim Fehrle, Yannick Forster, Simon Friis Vindum, Gaëtan Gilbert, Jason Gross, Samuel Gruetter, Stefan Haan,
Hugo Herbelin, Jasper Hugunin, Emilio Jesús Gallego Arias, Jacques-Henri Jourdan,
Ralf Jung, Jan-Oliver Kaiser, Fabian Kunze, Vincent Laporte, Olivier Laurent,
Yishuai Li, Barry M. Trager, Kenji Maillard, Erik Martin-Dorel, Guillaume Melquiond,
Isaac Oscar Gariano, Pierre-Marie Pédrot, Rudy Peterson, Clément Pit-Claudel, Pierre Roux,
Takafumi Saikawa, Kazuhiko Sakaguchi, Gabriel Scherer, Vincent Semeria, shenlebantongying,
Avi Shinnar, slrnsc, Michael Soegtrop, Matthieu Sozeau, Enrico Tassi, Hendrik Tews, Anton Trunov,
Karolin Varner, Li-yao Xia, Beta Ziliani and Théo Zimmermann.
The Coq community at large helped improve the design of this new version via
the GitHub issue and pull request system, the Coq development mailing list
coqdev@inria.fr, the coq-club@inria.fr mailing list, the `Discourse forum
<https://coq.discourse.group/>`_ and the `Coq Zulip chat <https://coq.zulipchat.com>`_.
Version 8.14's development spanned 9 months from the release of
Coq 8.13.0. Guillaume Melquiond is the release manager of Coq 8.14.
This release is the result of 522 merged PRs, closing ~150 issues.
| Nantes, September 2021,
| Matthieu Sozeau for the Coq development team
Changes in 8.14.0
~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
.. _814CaseRepresentation:
- **Changed:**
The term representation of pattern-matchings now uses a compact form that
provides a few static guarantees such as eta-expansion of branches and return
clauses and is usually more efficient. The most visible user change is that for
the time being, the :tacn:`destruct` tactic and its variants generate dummy
cuts (β redexes) in the branches of the generated proof.
This can also generate very uncommon backwards incompatibilities, such as a
change of occurrence numbering for subterms, or breakage of unification in
complex situations involving pattern-matchings whose underlying inductive type
declares let-bindings in parameters, arity or constructor types. For ML plugin
developers, an in-depth description of the new representation, as well as
porting tips, can be found in dev/doc/case-repr.md
(`#13563 <https://github.com/coq/coq/pull/13563>`_,
fixes `#3166 <https://github.com/coq/coq/issues/3166>`_,
by Pierre-Marie Pédrot).
- **Changed:**
Linking of native-code libraries used by :tacn:`native_compute` is now delayed
until an actual call to the :tacn:`native_compute` machinery is
performed. This should make Coq more responsive on some systems
(`#13853 <https://github.com/coq/coq/pull/13853>`_, fixes `#13849
<https://github.com/coq/coq/issues/13849>`_, by Guillaume Melquiond).
- **Removed:** The ability to change typing flags inside
sections to prevent exploiting a weakness in :cmd:`Print
Assumptions` (`#14395 <https://github.com/coq/coq/pull/14395>`_,
fixes `#14317 <https://github.com/coq/coq/issues/14317>`_, by Gaëtan
Gilbert).
Specification language, type inference
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. _814TCCanon:
- **Changed:**
The hints mode ``!`` matches a term iff the applicative head is not an existential variable.
It now also matches projections applied to any term or a `match` on any term
(`#14392 <https://github.com/coq/coq/pull/14392>`_,
by Matthieu Sozeau).
- **Removed:**
The little used `:>` type cast, which was only interpreted in Program-mode
(`#13911 <https://github.com/coq/coq/pull/13911>`_,
by Jim Fehrle and Théo Zimmermann).
- **Added:**
Enable canonical `fun _ => _` projections,
see :ref:`canonicalstructures` for details
(`#14041 <https://github.com/coq/coq/pull/14041>`_,
by Jan-Oliver Kaiser and Pierre Roux,
reviewed by Cyril Cohen and Enrico Tassi).
- **Added:**
:cmd:`Canonical Structure` declarations now accept dependent function types
`forall _, _` as keys
(`#14386 <https://github.com/coq/coq/pull/14386>`_,
by Jan-Oliver Kaiser and Kazuhiko Sakaguchi).
- **Added:**
Ability to declare primitive projections as class, for dependent typeclass resolutions
(`#9711 <https://github.com/coq/coq/pull/9711>`_,
fixes `#12975 <https://github.com/coq/coq/issues/12975>`_,
by Matthieu Sozeau).
- **Fixed:**
Multiple printing of same warning about unused variables catching several cases
(`#14261 <https://github.com/coq/coq/pull/14261>`_,
fixes `#14207 <https://github.com/coq/coq/issues/14207>`_,
by Hugo Herbelin).
- **Fixed:**
Constants :g:`id` and :g:`not` were unduly set opaque in some parts
of the unification algorithm
(`#14371 <https://github.com/coq/coq/pull/14371>`_,
fixes `#14374 <https://github.com/coq/coq/issues/14374>`_,
by Hugo Herbelin).
Notations
^^^^^^^^^
.. _814Notations:
- **Changed:**
Flag :flag:`Printing Notations` no longer controls
whether strings and numbers are printed raw
(`#13840 <https://github.com/coq/coq/pull/13840>`_,
by Enrico Tassi).
- **Changed:**
The error ``Argument X was previously inferred to be in scope
XXX_scope but is here used in YYY_scope.`` is now the warning
``[inconsistent-scopes,syntax]`` and can be silenced by
specifying the scope of the argument
(`#13965 <https://github.com/coq/coq/pull/13965>`_,
by Enrico Tassi).
- **Removed:**
Decimal-only number notations which were deprecated in 8.12
(`#13842 <https://github.com/coq/coq/pull/13842>`_, by Pierre Roux).
- **Added:**
:cmd:`Number Notation` and :cmd:`String Notation` now support
parsing and printing of primitive floats, primitive arrays
and type constants of primitive types
(`#13519 <https://github.com/coq/coq/pull/13519>`_,
fixes `#13484 <https://github.com/coq/coq/issues/13484>`_
and `#13517 <https://github.com/coq/coq/issues/13517>`_,
by Fabian Kunze, with help of Jason Gross)
- **Added:**
Flag :flag:`Printing Raw Literals` to control whether
strings and numbers are printed raw
(`#13840 <https://github.com/coq/coq/pull/13840>`_,
by Enrico Tassi).
- **Added:**
Let the user specify a scope for abbreviation arguments, e.g.
``Notation abbr X := t (X in scope my_scope)``
(`#13965 <https://github.com/coq/coq/pull/13965>`_,
by Enrico Tassi).
- **Added:**
Look-ahead of tokens is changed from sequential to tree-based,
allowing more automatic rule factorizations in notations
(`#14070 <https://github.com/coq/coq/pull/14070>`_,
by Hugo Herbelin).
- **Fixed:**
Non-local custom entries survive module closing and are
declared when a file is Required
(`#14183 <https://github.com/coq/coq/pull/14183>`_,
fixes `#13654 <https://github.com/coq/coq/issues/13654>`_,
by Gaëtan Gilbert).
- **Fixed:**
:g:`ident` modifier in custom entry notations gave fatal errors at printing time
(`#14257 <https://github.com/coq/coq/pull/14257>`_,
fixes `#14211 <https://github.com/coq/coq/issues/14211>`_,
by Hugo Herbelin).
- **Fixed:**
Anomaly when overriding a notation with different applicability in
:g:`match` patterns
(`#14377 <https://github.com/coq/coq/pull/14377>`_,
fixes `#13966 <https://github.com/coq/coq/issues/13966>`_,
by Hugo Herbelin).
Tactics
^^^^^^^
.. _814Tactics:
- **Changed:**
More systematic checks that occurrences of an :n:`at` clause are
valid in tactics such as :tacn:`rewrite` or :tacn:`pattern`
(`#13568 <https://github.com/coq/coq/pull/13568>`_,
fixes `#13566 <https://github.com/coq/coq/issues/13566>`_,
by Hugo Herbelin).
- **Removed:**
:tacn:`fail` and :tacn:`gfail`, which formerly accepted negative
values as a parameter, now give syntax errors for negative
values (`#13469 <https://github.com/coq/coq/pull/13469>`_,
by Jim Fehrle).
- **Removed:**
Deprecated flag ``Bracketing Last Introduction Pattern`` affecting the
behavior of trailing disjunctive introduction patterns is
definitively removed
(`#13509 <https://github.com/coq/coq/pull/13509>`_,
by Hugo Herbelin).
- **Removed:**
The `omega` tactic (deprecated in 8.12) and four `* Omega *` flags.
Use `lia` instead
(`#13741 <https://github.com/coq/coq/pull/13741>`_,
by Jim Fehrle, who addressed the final details, building on much work by
Frédéric Besson, who greatly improved :tacn:`lia`, Maxime Dénès,
Vincent Laporte and with the help of many package maintainers, among others).
- **Removed:**
convert_concl_no_check. Use :tacn:`change_no_check` instead
(`#13761 <https://github.com/coq/coq/pull/13761>`_,
by Jim Fehrle).
- **Removed:**
double induction tactic. Replace :n:`double induction @ident @ident`
with :n:`induction @ident; induction @ident` (or
:n:`induction @ident ; destruct @ident` depending on the exact needs).
Replace :n:`double induction @natural__1 @natural__2` with
:n:`induction @natural__1; induction natural__3` where :n:`natural__3` is the result
of :n:`natural__2 - natural__1`
(`#13762 <https://github.com/coq/coq/pull/13762>`_,
by Jim Fehrle).
- **Deprecated:**
In :tacn:`change` and :tacn:`change_no_check`, the
`at ... with ...` form is deprecated. Use
`with ... at ...` instead. For `at ... with ... in H |-`,
use `with ... in H at ... |-`
(`#13696 <https://github.com/coq/coq/pull/13696>`_,
by Jim Fehrle).
- **Deprecated:**
The micromega option `Simplex`, which is currently set by default
(`#13781 <https://github.com/coq/coq/pull/13781>`_, by Frédéric Besson).
- **Deprecated:**
the undocumented `new auto` tactic
(`#14528 <https://github.com/coq/coq/pull/14528>`_,
by Pierre-Marie Pédrot).
- **Added:**
:tacn:`lia` supports the boolean operator `Bool.implb` (`#13715 <https://github.com/coq/coq/pull/13715>`_, by Frédéric Besson).
- **Added:**
``zify`` (``lia``/``nia``) support for :g:`div`, :g:`mod`, :g:`pow`
for :g:`Nat` (via ``ZifyNat`` module) and :g:`N` (via ``ZifyN`` module).
The signature of :g:`Z_div_mod_eq_full` has no assumptions
(`#14037 <https://github.com/coq/coq/pull/14037>`_,
fixes `#11447 <https://github.com/coq/coq/issues/11447>`_,
by Andrej Dudenhefner, Jason Gross, and Frédéric Besson).
- **Added:**
Ltac2 now has a `unify` tactic
(`#14089 <https://github.com/coq/coq/pull/14089>`_,
fixes `#14083 <https://github.com/coq/coq/issues/14083>`_,
by Samuel Gruetter).
- **Added:**
:tacn:`inversion_sigma` can now be applied to a specified hypothesis
and additionally supports intropatterns, so it can be used much like
:tacn:`induction` and :tacn:`inversion`. Additionally,
:tacn:`inversion_sigma` now supports the types :n:`ex` (:n:`exists x
: A, P x`) and :n:`ex2` (:n:`exists2 x : A, P x & Q x`) in cases
where the first argument :n:`A` is a :n:`Prop` (`#14174
<https://github.com/coq/coq/pull/14174>`_, by Jason Gross).
- **Added:**
``zify`` (``lia``/``nia``) support for ``Sint63``
(`#14408 <https://github.com/coq/coq/pull/14408>`_,
by Ana Borges, with help from Frédéric Besson).
- **Fixed:**
Possible collision between a user-level name and an internal name when
using the :n:`%` introduction pattern
(`#13512 <https://github.com/coq/coq/pull/13512>`_,
fixes `#13413 <https://github.com/coq/coq/issues/13413>`_,
by Hugo Herbelin).
- **Fixed:**
:tacn:`simpl` and :tacn:`hnf` now reduce primitive functions
on primitive integers, floats and arrays
(`#13699 <https://github.com/coq/coq/pull/13699>`_,
fixes `#13579 <https://github.com/coq/coq/issues/13579>`_,
by Pierre Roux).
- **Fixed:**
Setoid rewriting now remembers the (invisible) binder names of non-dependent product types. SSReflect's rewrite tactic expects these names to be retained when using ``rewrite foo in H``.
This also fixes SSR ``rewrite foo in H *`` erroneously reverting ``H``
(`#13882 <https://github.com/coq/coq/pull/13882>`_,
fixes `#12011 <https://github.com/coq/coq/issues/12011>`_,
by Gaëtan Gilbert).
- **Fixed:**
Properly expand projection parameters in hint discrimination
nets. (`#14033 <https://github.com/coq/coq/pull/14033>`_,
fixes `#9000 <https://github.com/coq/coq/issues/9000>`_,
`#14009 <https://github.com/coq/coq/issues/14009>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
anomalies caused by empty strings in Ltac notations are now errors
(`#14378 <https://github.com/coq/coq/pull/14378>`_,
fixes `#14124 <https://github.com/coq/coq/issues/14124>`_,
by Hugo Herbelin).
- **Fixed:**
Print a message instead of a Diff_Failure anomaly when
old and new goals can't be matched; show the goal without
diff highlights
(`#14457 <https://github.com/coq/coq/pull/14457>`_,
fixes `#14425 <https://github.com/coq/coq/issues/14425>`_,
by Jim Fehrle).
- **Fixed:**
Anomaly of :tacn:`destruct` on terms with dependent variables unused in goal
(`#15099 <https://github.com/coq/coq/pull/15099>`_,
fixes `#11504 <https://github.com/coq/coq/issues/11504>`_
and `#14090 <https://github.com/coq/coq/issues/14090>`_,
by Lasse Blaauwbroek and Hugo Herbelin).
- **Fixed:**
Correct convertibility of multiple terms selected by patterns in
tactics such as :tacn:`set` when these terms have subterms in
`SProp`
(`#14610 <https://github.com/coq/coq/pull/14610>`_,
fixes `#14609 <https://github.com/coq/coq/issues/14609>`_,
by Hugo Herbelin).
Tactic language
^^^^^^^^^^^^^^^
.. _814Ltac2:
- **Changed:**
Renamed Ltac2 ``Bool.eq`` into ``Bool.equal`` for uniformity.
The old function is now a deprecated alias
(`#14128 <https://github.com/coq/coq/pull/14128>`_,
by Pierre-Marie Pédrot).
- **Added:**
A ``printf`` macro to Ltac2. It can be made accessible by
importing the ``Ltac2.Printf`` module. See the documentation
there for more information
(`#13236 <https://github.com/coq/coq/pull/13236>`_,
fixes `#10108 <https://github.com/coq/coq/issues/10108>`_,
by Pierre-Marie Pédrot).
- **Added:**
A function ``Ltac1.lambda`` allowing to embed Ltac2 functions
into Ltac1 runtime values
(`#13442 <https://github.com/coq/coq/pull/13442>`_,
fixes `#12871 <https://github.com/coq/coq/issues/12871>`_,
by Pierre-Marie Pédrot).
- **Added:**
Ltac2 commands defining terms now accept the :attr:`deprecated`
attribute
(`#13774 <https://github.com/coq/coq/pull/13774>`_,
fixes `#12317 <https://github.com/coq/coq/issues/12317>`_,
by Pierre-Marie Pédrot).
- **Added:**
Allow the presence of type casts for function return values, let bindings and
global definitions in Ltac2
(`#13914 <https://github.com/coq/coq/pull/13914>`_,
by Pierre-Marie Pédrot).
- **Added:**
The Ltac2 API `Ltac2.Ind` for manipulating inductive types
(`#13920 <https://github.com/coq/coq/pull/13920>`_,
fixes `#10095 <https://github.com/coq/coq/issues/10095>`_,
by Pierre-Marie Pédrot).
- **Added:**
Allow scope delimiters in Ltac2 ``open_constr:(...)`` quotation
(`#13939 <https://github.com/coq/coq/pull/13939>`_,
fixes `#12806 <https://github.com/coq/coq/issues/12806>`_,
by Pierre-Marie Pédrot).
- **Added:**
A FFI to convert between Ltac1 and Ltac2 identifiers
(`#13997 <https://github.com/coq/coq/pull/13997>`_,
fixes `#13996 <https://github.com/coq/coq/issues/13996>`_,
by Pierre-Marie Pédrot).
- **Added:**
Lazy evaluating boolean operators ``lazy_and``, ``lazy_or``, ``lazy_impl`` and infix notations ``&&`` and ``||`` to the Ltac2 `Bool.v` library l
(`#14081 <https://github.com/coq/coq/pull/14081>`_,
fixes `#13964 <https://github.com/coq/coq/issues/13964>`_,
by Michael Soegtrop).
- **Fixed:**
Ltac2 notations now correctly take into account their assigned level
(`#14094 <https://github.com/coq/coq/pull/14094>`_,
fixes `#11866 <https://github.com/coq/coq/issues/11866>`_,
by Pierre-Marie Pédrot).
SSReflect
^^^^^^^^^
- **Added:**
A test that the notations `{in _, _}` and `{pred _}` from `ssrbool.v` are displayed correctly
(`#13473 <https://github.com/coq/coq/pull/13473>`_,
by Cyril Cohen).
- **Added:**
Lemmas about interaction between :n:`{in _, _}`, :n:`{on _, _}`, and :n:`sig`
have been backported from Mathematical Components 1.12.0
(`#13490 <https://github.com/coq/coq/pull/13490>`_,
by Kazuhiko Sakaguchi).
Commands and options
^^^^^^^^^^^^^^^^^^^^
- **Changed:**
:cmd:`Hint Rewrite` now supports locality attributes (including :attr:`export`) like other :ref:`Hint <creating_hints>` commands
(`#13725 <https://github.com/coq/coq/pull/13725>`_,
fixes `#13724 <https://github.com/coq/coq/issues/13724>`_,
by Gaëtan Gilbert).
- **Changed:**
In :cmd:`Record`, alpha-rename the variable associated with the record to avoid
alpha-renaming parameters of projections
(`#13852 <https://github.com/coq/coq/pull/13852>`_,
fixes `#13727 <https://github.com/coq/coq/issues/13727>`_,
by Li-yao Xia).
- **Changed:**
Improve the :cmd:`Coercion` command to reduce the number of ambiguous paths to
report. A pair of multiple inheritance paths that can be reduced to smaller
adjoining pairs will not be reported as ambiguous paths anymore
(`#13909 <https://github.com/coq/coq/pull/13909>`_,
by Kazuhiko Sakaguchi).
- **Changed:**
The printing order of :cmd:`Print Classes` and :cmd:`Print Graph`, due to the
changes for the internal tables of coercion classes and coercion paths
(`#13912 <https://github.com/coq/coq/pull/13912>`_,
by Kazuhiko Sakaguchi).
- **Removed:**
The Hide Obligations flag, deprecated in 8.12
(`#13758 <https://github.com/coq/coq/pull/13758>`_,
by Jim Fehrle).
- **Removed:**
SearchHead command. Use the `headconcl:` clause of :cmd:`Search` instead
(`#13763 <https://github.com/coq/coq/pull/13763>`_,
by Jim Fehrle).
- **Removed:**
`Show Zify Spec`, `Add InjTyp` and 11 similar `Add *` commands.
For `Show Zify Spec`, use `Show Zify UnOpSpec` or `Show Zify BinOpSpec` instead.
For `Add *`, `Use Add Zify *` intead of `Add *`
(`#13764 <https://github.com/coq/coq/pull/13764>`_,
by Jim Fehrle).
- **Deprecated:**
Like hints, typeclass instances added outside of sections
without an explicit locality now generate a deprecation warning. See
:ref:`Hint <creating_hints>`
(`#14208 <https://github.com/coq/coq/pull/14208>`_,
fixes `#13562 <https://github.com/coq/coq/issues/13562>`_,
by Pierre-Marie Pédrot).
- **Deprecated:**
the :flag:`Regular Subst Tactic` flag
(`#14336 <https://github.com/coq/coq/pull/14336>`_,
by Pierre-Marie Pédrot).
- **Added:**
:opt:`Debug` to control debug messages, functioning similarly to the warning system
(`#13202 <https://github.com/coq/coq/pull/13202>`_,
by Maxime Dénès and Gaëtan Gilbert).
The following flags have been converted (such that ``Set Flag`` becomes ``Set Debug "flag"``):
- ``Debug Unification`` to ``unification``
- ``Debug HO Unification`` to ``ho-unification``
- ``Debug Tactic Unification`` to ``tactic-unification``
- ``Congruence Verbose`` to ``congruence``
- ``Debug Cbv`` to ``cbv``
- ``Debug RAKAM`` to ``RAKAM``
- ``Debug Ssreflect`` to ``ssreflect``
- **Added:**
The Ltac2 grammar can now be printed using the
Print Grammar ltac2 command
(`#14093 <https://github.com/coq/coq/pull/14093>`_,
fixes `#14092 <https://github.com/coq/coq/issues/14092>`_,
by Pierre-Marie Pédrot).
- **Added:**
:cmd:`Instance` now accepts the :attr:`export` locality
attribute
(`#14148 <https://github.com/coq/coq/pull/14148>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
extraction failure of a parameterized type in :g:`Prop` exported in
an module interface as an assumption in :g:`Type`
(`#14102 <https://github.com/coq/coq/pull/14102>`_,
fixes `#14100 <https://github.com/coq/coq/issues/14100>`_,
by Hugo Herbelin).
- **Fixed:**
Print Assumptions now treats delayed opaque proofs generated
by vos compilation as if they were axioms
(`#14382 <https://github.com/coq/coq/pull/14382>`_,
fixes `#13589 <https://github.com/coq/coq/issues/13589>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
Incorrect de Bruijn index handling in vernac class declaration,
preventing users from marking existing instances of existing classes
which are primitive projections
(`#14664 <https://github.com/coq/coq/pull/14664>`_,
fixes `#14652 <https://github.com/coq/coq/issues/14652>`_,
by Ali Caglayan and Hugo Herbelin).
Command-line tools
^^^^^^^^^^^^^^^^^^
- **Changed:**
`coqc` now enforces that at most a single `.v` file can be passed in
the command line. Support for multiple `.v` files in the form of
`coqc f1.v f2.v` didn't properly work in 8.13, tho it was accepted
(`#13876 <https://github.com/coq/coq/pull/13876>`_,
by Emilio Jesus Gallego Arias).
- **Changed:**
``coqdep`` now reports an error if files specified on the
command line don't exist or if it encounters unreadable files.
Unknown options now generate a warning. Previously these
conditions were ignored
(`#14024 <https://github.com/coq/coq/pull/14024>`_,
fixes `#14023 <https://github.com/coq/coq/issues/14023>`_,
by Hendrik Tews).
- **Changed:**
Makefiles produced by ``coq_makefile`` now use ``.DELETE_ON_ERROR``
(`#14238 <https://github.com/coq/coq/pull/14238>`_,
by Gaëtan Gilbert).
- **Removed:**
Previously deprecated command line options
``-sprop-cumulative`` and ``-input-state`` and its alias ``-is``
(`#13822 <https://github.com/coq/coq/pull/13822>`_,
by Gaëtan Gilbert).
- **Added:**
``coq_makefile``\-made ``Makefile``\s now support inclusion of a
``.local-late`` file at the end, allowing the user to access
more variables (`#12411 <https://github.com/coq/coq/pull/12411>`_, fixes
`#10912 <https://github.com/coq/coq/issues/10912>`_, by Jason Gross).
- **Fixed:**
Failure of extraction in the presence of inductive types with local
definitions in parameters
(`#13624 <https://github.com/coq/coq/pull/13624>`_,
fixes `#13581 <https://github.com/coq/coq/issues/13581>`_,
by Hugo Herbelin).
- **Fixed:**
File name was missing in coqdoc error position reporting
(`#14285 <https://github.com/coq/coq/pull/14285>`_,
fixes `#14283 <https://github.com/coq/coq/issues/14283>`_,
by Arthur Charguéraud and Hugo Herbelin).
Native Compilation
^^^^^^^^^^^^^^^^^^
.. _814CoqNative:
- **Changed:**
`coq_makefile` now uses the `coqnative` binary to generate
native compilation files. Project files also understand directly the
`-native-compiler` flag without having to wrap it with `-arg`
(`#14265 <https://github.com/coq/coq/pull/14265>`_,
by Pierre-Marie Pédrot).
- **Deprecated:**
the `-native-compiler` option for coqc. It is now recommended
to use the :ref:`coqnative` binary instead to generate native
compilation files ahead of time
(`#14309 <https://github.com/coq/coq/pull/14309>`_,
by Pierre-Marie Pédrot).
- **Added:**
A standalone `coqnative` binary that performs native compilation
out of `vo` files, allowing to split library compilation from
native compilation. See :ref:`coqnative`. The hybrid build
system was adapted to perform a split compilation on the stdlib
(`#13287 <https://github.com/coq/coq/pull/13287>`_,
by Pierre-Marie Pédrot).
CoqIDE
^^^^^^
.. _814CoqIDE:
- **Added:**
Ltac debugger support in CoqIDE (see :flag:`Ltac Debug`).
Debugger output and prompts appear in the Messages panel
(`#13783 <https://github.com/coq/coq/pull/13783>`_,
by Jim Fehrle and Emilio J. Gallego Arias).
- **Added:**
Shift-return in the Find dialog now searches backwards (`#13810 <https://github.com/coq/coq/pull/13810>`_,
by slrnsc).
Standard library
^^^^^^^^^^^^^^^^
.. _814Stdlib:
- **Changed:**
Minor Changes to ``Rpower``:
Generalizes ``exp_ineq1`` to hold for all non-zero numbers.
Adds ``exp_ineq1_le``, which holds for all reals (but is a ``<=`` instead of a ``<``)
(`#13582 <https://github.com/coq/coq/pull/13582>`_,
by Avi Shinnar and Barry Trager, with help from Laurent Théry).
- **Changed:**
set :g:`n mod 0 = n` uniformly for :g:`nat`, :g:`N`, :g:`Z`, :g:`int63`, :g:`sint63`, :g:`int31`
such that :g:`m = (m / n) * n + (m mod n)` holds (also for :g:`n = 0`)
.. warning:: code that relies on :g:`n mod 0 = 0` will break;
for compatibility with both :g:`n mod 0 = n` and :g:`n mod 0 = 0` you can use
:g:`n mod 0 = ltac:(match eval hnf in (1 mod 0) with |0 => exact 0 |_ => exact n end)`
(`#14086 <https://github.com/coq/coq/pull/14086>`_,
by Andrej Dudenhefner with help of Guillaume Melquiond, Jason Gross, and Kazuhiko Sakaguchi).
- **Changed:**
The standard library now contains a more complete theory of equality
on types of the form :g:`exists x : A, P x` and :g:`exists2 x : A, P
x & Q x` when we have :g:`A : Prop`. To bring this theory more in
line with the existing theory about sigma types,
:g:`eq_ex_uncurried`, :g:`eq_ex2_uncurried`, :g:`eq_ex`,
:g:`eq_ex2`, :g:`eq_ex_hprop`, :g:`eq_ex2_hprop` have been renamed
into :g:`eq_ex_intro_uncurried`, :g:`eq_ex_intro2_uncurried`,
:g:`eq_ex_intro`, :g:`eq_ex_intro2`, :g:`eq_ex_intro_hprop`,
:g:`eq_ex_intro2_hprop` respectively and the implicit status of
these lemmas has changed slightly (`#14174
<https://github.com/coq/coq/pull/14174>`_, by Jason Gross).
- **Changed**
Moved 39 lemmas and notations about the rationals `Q` from the constructive reals private file `theories/Reals/Cauchy/QExtra.v` to appropriate files in `theories/QArith`.
The now public lemmas are mostly about compatibility of multiplication and power with relational operators and simple convenience lemmas e.g. for reduction of `Q` values.
The following moved lemmas have been renamed:
`Q_factorDenom` to `Qmult_frac_l`,
`Q_reduce_fl` to `Qreduce_num_l`,
`Qle_neq` to `Qlt_leneq`,
`Qmult_lt_le_compat_nonneg` to `Qmult_le_lt_compat_pos`,
`Qpower_pos_lt` to `Qpower_0_lt`,
`Qpower_lt_1_increasing` to `Qpower_1_lt_pos`,
`Qpower_lt_1_increasing'` to `Qpower_1_lt`,
`Qpower_le_1_increasing` to `Qpower_1_le_pos`,
`Qpower_le_1_increasing'` to `Qpower_1_le`,
`Qzero_eq` to `Qreduce_zero`,
`Qpower_lt_compat` to `Qpower_lt_compat_l`,
`Qpower_le_compat` to `Qpower_le_compat_l`,
`Qpower_lt_compat_inv` to `Qpower_lt_compat_l_inv`,
`Qpower_le_compat_inv` to `Qpower_le_compat_l_inv`,
`Qpower_decomp'` to `Qpower_decomp_pos` and
`QarchimedeanExp2_Pos` to `Qarchimedean_power2_pos`.
The following lemmas have been renamed and the sides of the equality swapped:
`Qinv_swap_pos` to `Qinv_pos`,
`Qinv_swap_neg` to `Qinv_neg` and.
The following lemmas have been deleted:
`Q_factorNum_l` and `Q_factorNum`.
The lemma `Qopp_lt_compat` has been moved from `theories/QArith/Qround.v` to `theories/QArith/QArith_base.v`.
About 10 additional lemmas have been added for similar cases as the moved lemmas.
Compatibility notations are not provided because QExtra is considered internal (excluded from the library documentation)
(`#14293 <https://github.com/coq/coq/pull/14293>`_,
by Michael Soegtrop).
- **Changed:**
Importing `ZArith` no longer has the side-effect of closing `Z_scope`
(`#14343 <https://github.com/coq/coq/pull/14343>`_,
fixes `#13307 <https://github.com/coq/coq/issues/13307>`_,
by Ralf Jung).
- **Removed:**
``IF_then_else`` definition and corresponding ``IF P then Q else R`` notation
(`#13871 <https://github.com/coq/coq/pull/13871>`_,
by Yishuai Li).
- **Removed:**
from ``List.v`` deprecated/unexpected dependencies ``Setoid``, ``Le``, ``Gt``, ``Minus``, ``Lt``
(`#13986 <https://github.com/coq/coq/pull/13986>`_,
by Andrej Dudenhefner).
- **Deprecated:**
Unsigned primitive integers are now named ``uint63`` instead of ``int63``.
The ``Int63`` module is replaced by ``Uint63``. The full list of changes
is described in the PR
(`#13895 <https://github.com/coq/coq/pull/13895>`_,
by Ana Borges).
- **Added:**
``leb`` and ``ltb`` functions for ``ascii``
(`#13080 <https://github.com/coq/coq/pull/13080>`_,
by Yishuai Li).
- **Added:**
Library for signed primitive integers, Sint63. The following operations were added to the kernel: division, remainder, comparison functions, and arithmetic shift right. Everything else works the same for signed and unsigned ints
(`#13559 <https://github.com/coq/coq/pull/13559>`_,
fixes `#12109 <https://github.com/coq/coq/issues/12109>`_,
by Ana Borges, Guillaume Melquiond and Pierre Roux).
- **Added:**
Lemmas about vectors related with ``to_list``: ``length_to_list``, ``of_list_to_list_opp``, ``to_list_nil``, ``to_list_cons``, ``to_list_hd``, ``to_list_last``, ``to_list_const``, ``to_list_nth_order``, ``to_list_tl``, ``to_list_append``, ``to_list_rev_append_tail``, ``to_list_rev_append``, ``to_list_rev``, ``to_list_map``, ``to_list_fold_left``, ``to_list_fold_right``, ``to_list_Forall``, ``to_list_Exists``, ``to_list_In``, ``to_list_Forall2``
(`#13671 <https://github.com/coq/coq/pull/13671>`_,
by Olivier Laurent).
- **Added:**
Lemmas about ``count_occ``: ``count_occ_app``, ``count_occ_elt_eq``, ``count_occ_elt_neq``, ``count_occ_bound``, ``count_occ_repeat_eq``, ``count_occ_repeat_neq``, ``count_occ_unique``, ``count_occ_repeat_excl``, ``count_occ_sgt``, ``Permutation_count_occ``
(`#13804 <https://github.com/coq/coq/pull/13804>`_,
by Olivier Laurent with help of Jean-Christophe Léchenet).
- **Added:**
Lemmas to ``List``: ``Exists_map``, ``Exists_concat``, ``Exists_flat_map``, ``Forall_map``, ``Forall_concat``, ``Forall_flat_map``, ``nth_error_map``, ``nth_repeat``, ``nth_error_repeat``
(`#13955 <https://github.com/coq/coq/pull/13955>`_,
by Andrej Dudenhefner, with help from Olivier Laurent).
- **Added:**
``Cantor.v`` containing the Cantor pairing function and its inverse.
``Cantor.to_nat : nat * nat -> nat`` and ``Cantor.of_nat : nat -> nat * nat``
are the respective bijections between ``nat * nat`` and ``nat``
(`#14008 <https://github.com/coq/coq/pull/14008>`_,
by Andrej Dudenhefner).
- **Added:**
Lemmas to ``Q``: ``Qeq_from_parts``, ``Qden_cancel``, ``Qnum_cancel``, ``Qreduce_l``, ``Qreduce_r``, ``Qmult_inject_Z_l``, ``Qmult_inject_Z_r`` QArith_base
Reduction of rationals; establishing equality for Qden/Qnum separately
(`#14087 <https://github.com/coq/coq/pull/14087>`_,
by Karolin Varner).
- **Added:**
``Coq.Structures.OrdersEx.String_as_OT`` and
``Coq.Structures.OrdersEx.Ascii_as_OT`` to make strings and ascii ordered
types (using lexical order). (`#14096
<https://github.com/coq/coq/pull/14096>`_, by Jason Gross).
- **Added:**
Lemmas :g:`app_eq_app`, :g:`Forall_nil_iff`, :g:`Forall_cons_iff` to ``List.v``
(`#14153 <https://github.com/coq/coq/pull/14153>`_,
closes `#1803 <https://github.com/coq/coq/issues/1803>`_,
by Andrej Dudenhefner, with help from Olivier Laurent).
- **Added:**
``Z``, ``positive`` and ``N`` constants can now be printed in hexadecimal by
opening ``hex_Z_scope``, ``hex_positive_scope``, and ``hex_N_scope``
respectively (`#14263 <https://github.com/coq/coq/pull/14263>`_, by Jason
Gross).
- **Added:**
Absolute value function for Sint63
(`#14384 <https://github.com/coq/coq/pull/14384>`_,
by Ana Borges).
- **Added:**
Lemmas showing :g:`firstn` and :g:`skipn` commute with :g:`map`
(`#14406 <https://github.com/coq/coq/pull/14406>`_,
by Rudy Peterson).
- **Fixed:**
Haskell extraction is now compatible with GHC versions >= 9.0. Some ``#if``
statements have been added to extract ``unsafeCoerce`` to its new location in
newer versions of GHC. (`#14345 <https://github.com/coq/coq/pull/14345>`_,
fixes `#14256 <https://github.com/coq/coq/issues/14256>`_, by Jason Gross).
Infrastructure and dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. _814Dune:
- **Changed:**
Coq's configure script now requires absolute paths for the `-prefix`
option
(`#12567 <https://github.com/coq/coq/pull/12567>`_,
by Emilio Jesus Gallego Arias).
- **Changed:**
The regular Coq package has been split in two: coq-core, with
OCaml-based libraries and tools; and coq-stdlib, which contains the
Gallina-based standard library. The package Coq now depends on both
for compatiblity
(`#12567 <https://github.com/coq/coq/pull/12567>`_,
by Emilio Jesus Gallego Arias, review by Vincent Laporte, Guillaume
Melquiond, Enrico Tassi, and Théo Zimmerman).
- **Changed:**
Coq's OCaml parts and tools [``coq-core``] are now built using Dune.
The main user-facing change is that Dune >= 2.5 is now required to
build Coq. This was a large and complex change. If you are packager
you may find some minor differences if you were using a lot of custom
optimizations. Note that, in particular, the configure option
``-datadir`` is not customizable anymore, and ``-bindir`` has been
removed in favor of ``$prefix/bin``. Moreover, the install procedure
will ignore ``-docdir`` and ``-etcdir``, unless you patch the makefile
and use Dune >= 2.9.
We usually recommended using a recent Dune version, if possible.
For developers and plugin authors, see the entry in
`dev/doc/changes.md`. For packagers and users, see `dev/doc/INSTALL.make.md`
(`#13617 <https://github.com/coq/coq/pull/13617>`_,
by Emilio Jesús Gallego Arias, Rudi Grinberg, and Théo Zimmerman;
review and testing by Gaëtan Gilbert, Guillaume Melquiond, and
Enrico Tassi)
- **Changed:**
Undocumented variables ``OLDROOT`` and ``COQPREFIXINSTALL`` which
added a prefix path to ``make install`` have been removed. Now, ``make
install`` does support the more standard ``DESTDIR`` variable, akin
to what ``coq_makefile`` does
(`#14258 <https://github.com/coq/coq/pull/14258>`_,
by Emilio Jesus Gallego Arias).
- **Added:**
Support OCaml 4.12
(`#13885 <https://github.com/coq/coq/pull/13885>`_,
by Emilio Jesus Gallego Arias, review by Gaëtan Gilbert and Théo Zimmerman).
Miscellaneous
^^^^^^^^^^^^^
- **Changed:**
The representation of micromega caches was slightly
altered for efficiency purposes. As a consequence
all stale caches must be cleaned up
(`#13405 <https://github.com/coq/coq/pull/13405>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
Fix the timeout facility on Unix to allow for nested timeouts.
Previous behavior on nested timeouts was that an "inner" timeout would replace an "outer"
timeout, so that the outer timeout would no longer fire. With the new behavior, Unix and Windows
implementations should be (approximately) equivalent
(`#13586 <https://github.com/coq/coq/pull/13586>`_,
by Lasse Blaauwbroek).
Changes in 8.14.1
~~~~~~~~~~~~~~~~~
Kernel
^^^^^^
- **Fixed:**
Fix the implementation of persistent arrays used by the VM and native compute
so that it uses a uniform representation. Previously, storing primitive floats
inside primitive arrays could cause memory corruption
(`#15081 <https://github.com/coq/coq/pull/15081>`_,
closes `#15070 <https://github.com/coq/coq/issues/15070>`_,
by Pierre-Marie Pédrot).
Specification language, type inference
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Fixed:**
Missing registration of universe constraints in :cmd:`Module Type` elaboration
(`#14666 <https://github.com/coq/coq/pull/14666>`_,
fixes `#14505 <https://github.com/coq/coq/issues/14505>`_,
by Hugo Herbelin).
Tactics
^^^^^^^
- **Fixed:**
:tacn:`abstract` more robust with respect to Ltac `constr` bindings containing
existential variables
(`#14671 <https://github.com/coq/coq/pull/14671>`_,
fixes `#10796 <https://github.com/coq/coq/issues/10796>`_,
by Hugo Herbelin).
- **Fixed:**
correct support of trailing :n:`let` by tactic :tacn:`specialize`
(`#15046 <https://github.com/coq/coq/pull/15046>`_,
fixes `#15043 <https://github.com/coq/coq/issues/15043>`_,
by Hugo Herbelin).
Commands and options
^^^^^^^^^^^^^^^^^^^^
- **Fixed:**
anomaly with :flag:`Extraction Conservative Types` when extracting
pattern-matching on singleton types
(`#14669 <https://github.com/coq/coq/pull/14669>`_,
fixes `#3527 <https://github.com/coq/coq/issues/3527>`_,
by Hugo Herbelin).
- **Fixed:**
a regular error instead of an anomaly when calling :cmd:`Separate
Extraction` in a module
(`#14670 <https://github.com/coq/coq/pull/14670>`_,
fixes `#10796 <https://github.com/coq/coq/issues/10796>`_,
by Hugo Herbelin).
Version 8.13
------------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.13 integrates many usability improvements, as well
as extensions of the core language.
The main changes include:
- :ref:`Introduction <813PrimArrays>` of :ref:`primitive persistent arrays<primitive-arrays>`
in the core language, implemented using imperative persistent arrays.
- Introduction of :ref:`definitional proof irrelevance <813UIP>` for the equality type
defined in the SProp sort.
- Cumulative record and inductive type declarations can now
:ref:`specify <813VarianceDecl>` the variance of their universes.
- Various bugfixes and uniformization of behavior with respect to the use of
implicit arguments and the handling of existential variables in
declarations, unification and tactics.
- New warning for :ref:`unused variables <813UnusedVar>` in catch-all match
branches that match multiple distinct patterns.
- New :ref:`warning <813HintWarning>` for `Hint` commands outside
sections without a locality attribute, whose goal is to eventually
remove the fragile default behavior of importing hints only when
using `Require`. The recommended fix is to declare hints as `export`,
instead of the current default `global`, meaning that they are imported
through `Require Import` only, not `Require`.
See the following `rationale and guidelines <https://coq.discourse.group/t/change-of-default-locality-for-hint-commands-in-coq-8-13/1140>`_
for details.
- General support for :ref:`boolean attributes <813BooleanAttrs>`.
- Many improvements to the handling of :ref:`notations <813Notations>`,
including number notations, recursive notations and notations with bindings.
A new algorithm chooses the most precise notation available to print an expression,
which might introduce changes in printing behavior.
- Tactic :ref:`improvements <813Tactics>` in :tacn:`lia` and its :tacn:`zify` preprocessing step,
now supporting reasoning on boolean operators such as :g:`Z.leb` and supporting
primitive integers :g:`Int63`.
- Typing flags can now be specified :ref:`per-constant / inductive <813TypingFlags>`.
- Improvements to the reference manual including updated syntax
descriptions that match Coq's grammar in several chapters, and splitting parts of
the tactics chapter to independent sections.
See the `Changes in 8.13+beta1`_ section and following sections for the
detailed list of changes, including potentially breaking changes marked
with **Changed**.
Coq's documentation is available at https://coq.github.io/doc/v8.13/refman (reference
manual), and https://coq.github.io/doc/v8.13/stdlib (documentation of
the standard library). Developer documentation of the ML API is available
at https://coq.github.io/doc/v8.13/api.
Maxime Dénès, Emilio Jesús Gallego Arias, Gaëtan Gilbert, Michael
Soegtrop and Théo Zimmermann worked on maintaining and improving the
continuous integration system and package building infrastructure.
Erik Martin-Dorel has maintained the `Coq Docker images
<https://hub.docker.com/r/coqorg/coq>`_ that are used in many Coq
projects for continuous integration.
The opam repository for Coq packages has been maintained by
Guillaume Claret, Karl Palmskog, Matthieu Sozeau and Enrico Tassi with
contributions from many users. A list of packages is available at
https://coq.inria.fr/opam/www/.
Our current 32 maintainers are Yves Bertot, Frédéric Besson, Tej
Chajed, Cyril Cohen, Pierre Corbineau, Pierre Courtieu, Maxime Dénès,
Jim Fehrle, Julien Forest, Emilio Jesús Gallego Arias, Gaëtan Gilbert,
Georges Gonthier, Benjamin Grégoire, Jason Gross, Hugo Herbelin,
Vincent Laporte, Olivier Laurent, Assia Mahboubi, Kenji Maillard,
Guillaume Melquiond, Pierre-Marie Pédrot, Clément Pit-Claudel,
Kazuhiko Sakaguchi, Vincent Semeria, Michael Soegtrop, Arnaud Spiwack,
Matthieu Sozeau, Enrico Tassi, Laurent Théry, Anton Trunov, Li-yao Xia
and Théo Zimmermann.
The 51 contributors to this version are Reynald Affeldt, Tanaka Akira, Frédéric
Besson, Lasse Blaauwbroek, Clément Blaudeau, Martin Bodin, Ali Caglayan, Tej Chajed,
Cyril Cohen, Julien Coolen, Matthew Dempsky, Maxime Dénès, Andres Erbsen,
Jim Fehrle, Emilio Jesús Gallego Arias, Attila Gáspár, Paolo G. Giarrusso, Gaëtan Gilbert,
Jason Gross, Benjamin Grégoire, Hugo Herbelin, Wolf Honore, Jasper Hugunin, Ignat Insarov,
Ralf Jung, Fabian Kunze, Vincent Laporte, Olivier Laurent, Larry D. Lee Jr,
Thomas Letan, Yishuai Li, James Lottes, Jean-Christophe Léchenet,
Kenji Maillard, Erik Martin-Dorel, Yusuke Matsushita, Guillaume Melquiond,
Carl Patenaude-Poulin, Clément Pit-Claudel, Pierre-Marie Pédrot, Pierre Roux,
Kazuhiko Sakaguchi, Vincent Semeria, Michael Soegtrop, Matthieu Sozeau,
Enrico Tassi, Anton Trunov, Edward Wang, Li-yao Xia, Beta Ziliani and Théo Zimmermann.
The Coq community at large helped improve the design of this new version via
the GitHub issue and pull request system, the Coq development mailing list
coqdev@inria.fr, the coq-club@inria.fr mailing list, the `Discourse forum
<https://coq.discourse.group/>`_ and the `Coq Zulip chat <https://coq.zulipchat.com>`_.
Version 8.13's development spanned 5 months from the release of
Coq 8.12.0. Enrico Tassi and Maxime Dénès are the release managers of Coq 8.13.
This release is the result of 400 merged PRs, closing ~100 issues.
| Nantes, November 2020,
| Matthieu Sozeau for the Coq development team
|
Changes in 8.13+beta1
~~~~~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
.. _813UIP:
- **Added:**
Definitional UIP, only when :flag:`Definitional UIP` is enabled.
This models definitional uniqueness of identity proofs for the equality
type in SProp. It is deactivated by default as it can lead to
non-termination in combination with impredicativity.
Use of this flag is also printed by :cmd:`Print Assumptions`. See
documentation of the flag for details
(`#10390 <https://github.com/coq/coq/pull/10390>`_,
by Gaëtan Gilbert).
.. _813PrimArrays:
- **Added:**
Built-in support for persistent arrays, which expose a functional
interface but are implemented using an imperative data structure, for
better performance
(`#11604 <https://github.com/coq/coq/pull/11604>`_,
by Maxime Dénès and Benjamin Grégoire, with help from Gaëtan Gilbert).
Primitive arrays are irrelevant in their single
polymorphic universe (same as a polymorphic cumulative list
inductive would be) (`#13356
<https://github.com/coq/coq/pull/13356>`_, fixes `#13354
<https://github.com/coq/coq/issues/13354>`_, by Gaëtan Gilbert).
- **Fixed:**
A loss of definitional equality for declarations obtained through
:cmd:`Include` when entering the scope of a :cmd:`Module` or
:cmd:`Module Type` was causing :cmd:`Search` not to see the included
declarations
(`#12537 <https://github.com/coq/coq/pull/12537>`_, fixes `#12525
<https://github.com/coq/coq/pull/12525>`_ and `#12647
<https://github.com/coq/coq/pull/12647>`_, by Hugo Herbelin).
- **Fixed:**
Fix an incompleteness in the typechecking of `match` for
cumulative inductive types. This could result in breaking subject
reduction
(`#13501 <https://github.com/coq/coq/pull/13501>`_,
fixes `#13495 <https://github.com/coq/coq/issues/13495>`_,
by Matthieu Sozeau).
Specification language, type inference
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. _813BooleanAttrs:
- **Changed:**
:term:`Boolean attributes <boolean attribute>` are now specified using
key/value pairs, that is to say :n:`@ident__attr{? = {| yes | no } }`.
If the value is missing, the default is :n:`yes`. The old syntax is still
supported, but produces the ``deprecated-attribute-syntax`` warning.
Deprecated attributes are ``universes(monomorphic)``,
``universes(notemplate)`` and ``universes(noncumulative)``, which are
respectively replaced by :attr:`universes(polymorphic=no) <universes(polymorphic)>`,
:attr:`universes(template=no) <universes(template)>`
and :attr:`universes(cumulative=no) <universes(cumulative)>`.
Attributes :attr:`program` and :attr:`canonical` are also affected,
with the syntax :n:`@ident__attr(false)` being deprecated in favor of
:n:`@ident__attr=no`
(`#13312 <https://github.com/coq/coq/pull/13312>`_,
by Emilio Jesus Gallego Arias).
- **Changed:** Heuristics for universe minimization to :g:`Set`: also
use constraints ``Prop <= i`` (`#10331
<https://github.com/coq/coq/pull/10331>`_, by Gaëtan Gilbert with
help from Maxime Dénès and Matthieu Sozeau, fixes `#12414
<https://github.com/coq/coq/issues/12414>`_).
- **Changed:** The type given to :cmd:`Instance` is no longer automatically
generalized over unbound and :ref:`generalizable <implicit-generalization>` variables.
Use ``Instance : `{type}`` instead of :n:`Instance : @type` to get the old behavior, or
enable the compatibility flag ``Instance Generalized Output``
(`#13188 <https://github.com/coq/coq/pull/13188>`_, fixes `#6042
<https://github.com/coq/coq/issues/6042>`_, by Gaëtan Gilbert).
- **Changed:**
Tweaked the algorithm giving default names to arguments.
Should reduce the frequency that argument names get an
unexpected suffix.
Also makes :flag:`Mangle Names` not mess up argument names
(`#12756 <https://github.com/coq/coq/pull/12756>`_,
fixes `#12001 <https://github.com/coq/coq/issues/12001>`_
and `#6785 <https://github.com/coq/coq/issues/6785>`_,
by Jasper Hugunin).
- **Removed:**
Undocumented and experimental forward class hint feature ``:>>``.
Use ``:>`` (see :n:`@of_type`) instead
(`#13106 <https://github.com/coq/coq/pull/13106>`_,
by Pierre-Marie Pédrot).
.. _813VarianceDecl:
- **Added:** Commands :cmd:`Inductive`, :cmd:`Record` and synonyms now
support syntax `Inductive foo@{=i +j *k l}` to specify variance
information for their universes (in :ref:`Cumulative <cumulative>`
mode) (`#12653 <https://github.com/coq/coq/pull/12653>`_, by Gaëtan
Gilbert).
.. _813UnusedVar:
- **Added:**
Warning on unused variables in pattern-matching branches of
:n:`match` serving as catch-all branches for at least two distinct
patterns
(`#12768 <https://github.com/coq/coq/pull/12768>`_,
fixes `#12762 <https://github.com/coq/coq/issues/12762>`_,
by Hugo Herbelin).
- **Added:**
Definition and (Co)Fixpoint now support the :attr:`using` attribute.
It has the same effect as :cmd:`Proof using`, which is only available in
interactive mode
(`#13183 <https://github.com/coq/coq/pull/13183>`_,
by Enrico Tassi).
.. _813TypingFlags:
- **Added:**
Typing flags can now be specified per-constant / inductive, this
allows to fine-grain specify them from plugins or attributes. See
:ref:`controlling-typing-flags` for details on attribute syntax
(`#12586 <https://github.com/coq/coq/pull/12586>`_,
by Emilio Jesus Gallego Arias).
- **Added:**
Inference of return predicate of a :g:`match` by inversion takes
sort elimination constraints into account
(`#13290 <https://github.com/coq/coq/pull/13290>`_,
grants `#13278 <https://github.com/coq/coq/issues/13278>`_,
by Hugo Herbelin).
- **Fixed:**
Implicit arguments taken into account in defined fields of a record type declaration
(`#13166 <https://github.com/coq/coq/pull/13166>`_,
fixes `#13165 <https://github.com/coq/coq/issues/13165>`_,
by Hugo Herbelin).
- **Fixed:**
Allow use of typeclass inference for the return predicate of a :n:`match`
(was deactivated in versions 8.10 to 8.12, `#13217 <https://github.com/coq/coq/pull/13217>`_,
fixes `#13216 <https://github.com/coq/coq/issues/13216>`_,
by Hugo Herbelin).
- **Fixed:**
A case of unification raising an anomaly IllTypedInstance
(`#13376 <https://github.com/coq/coq/pull/13376>`_,
fixes `#13266 <https://github.com/coq/coq/issues/13266>`_,
by Hugo Herbelin).
- **Fixed:**
Using :n:`{wf ...}` in local fixpoints is an error, not an anomaly
(`#13383 <https://github.com/coq/coq/pull/13383>`_,
fixes `#11816 <https://github.com/coq/coq/issues/11816>`_,
by Hugo Herbelin).
- **Fixed:**
Issue when two expressions involving different projections and one is
primitive need to be unified
(`#13386 <https://github.com/coq/coq/pull/13386>`_,
fixes `#9971 <https://github.com/coq/coq/issues/9971>`_,
by Hugo Herbelin).
- **Fixed:**
A bug producing ill-typed instances of existential variables when let-ins
interleaved with assumptions
(`#13387 <https://github.com/coq/coq/pull/13387>`_,
fixes `#12348 <https://github.com/coq/coq/issues/13387>`_,
by Hugo Herbelin).
.. _813Notations:
Notations
^^^^^^^^^
- **Changed:**
In notations (except in custom entries), the misleading :n:`@syntax_modifier`
:n:`@ident ident` (which accepted either an identifier or
a :g:`_`) is deprecated and should be replaced by :n:`@ident name`. If
the intent was really to only parse identifiers, this will
eventually become possible, but only as of Coq 8.15.
In custom entries, the meaning of :n:`@ident ident` is silently changed
from parsing identifiers or :g:`_` to parsing only identifiers
without warning, but this presumably affects only rare, recent and
relatively experimental code
(`#11841 <https://github.com/coq/coq/pull/11841>`_,
fixes `#9514 <https://github.com/coq/coq/pull/9514>`_,
by Hugo Herbelin).
- **Changed:**
Improved support for notations/abbreviations with mixed terms and patterns (such as the forcing modality)
(`#12099 <https://github.com/coq/coq/pull/12099>`_,
by Hugo Herbelin).
- **Changed**
Rational and real constants are parsed differently.
The exponent is now encoded separately from the fractional part
using ``Z.pow_pos``. This way, parsing large exponents can no longer
blow up and constants are printed in a form closer to the one in which they
were parsed (i.e., ``102e-2`` is reprinted as such and not ``1.02``)
(`#12218 <https://github.com/coq/coq/pull/12218>`_,
by Pierre Roux).
- **Changed:**
Scope information is propagated in indirect applications to a
reference prefixed with :g:`@`; this covers for instance the case
:g:`r.(@p) t` where scope information from :g:`p` is now taken into
account for interpreting :g:`t` (`#12685
<https://github.com/coq/coq/pull/12685>`_, by Hugo Herbelin).
- **Changed:**
New model for ``only parsing`` and ``only printing`` notations with
support for at most one parsing-and-printing or only-parsing
notation per notation and scope, but an arbitrary number of
only-printing notations
(`#12950 <https://github.com/coq/coq/pull/12950>`_,
fixes `#4738 <https://github.com/coq/coq/issues/4738>`_
and `#9682 <https://github.com/coq/coq/issues/9682>`_
and part 2 of `#12908 <https://github.com/coq/coq/issues/12908>`_,
by Hugo Herbelin).
- **Changed:**
Redeclaring a notation also reactivates its printing rule; in
particular a second :cmd:`Import` of the same module reactivates the
printing rules declared in this module. In theory, this leads to
changes in behavior for printing. However, this is mitigated in
general by the adoption in `#12986
<https://github.com/coq/coq/pull/12986>`_ of a priority given to
notations which match a larger part of the term to print
(`#12984 <https://github.com/coq/coq/pull/12984>`_,
fixes `#7443 <https://github.com/coq/coq/issues/7443>`_
and `#10824 <https://github.com/coq/coq/issues/10824>`_,
by Hugo Herbelin).
- **Changed:**
Use of notations for printing now gives preference
to notations which match a larger part of the term to abbreviate
(`#12986 <https://github.com/coq/coq/pull/12986>`_,
by Hugo Herbelin).
- **Removed**
OCaml parser and printer for real constants have been removed.
Real constants are now handled with proven Coq code
(`#12218 <https://github.com/coq/coq/pull/12218>`_,
by Pierre Roux).
- **Deprecated**
``Numeral.v`` is deprecated, please use ``Number.v`` instead
(`#12218 <https://github.com/coq/coq/pull/12218>`_,
by Pierre Roux).
- **Deprecated:**
`Numeral Notation`, please use :cmd:`Number Notation` instead
(`#12979 <https://github.com/coq/coq/pull/12979>`_,
by Pierre Roux).
- **Added:**
:flag:`Printing Float` flag to print primitive floats as hexadecimal
instead of decimal values. This is included in the :flag:`Printing All` flag
(`#11986 <https://github.com/coq/coq/pull/11986>`_,
by Pierre Roux).
- **Added:**
:ref:`Number Notation <number-notations>` and :ref:`String Notation
<string-notations>` commands now
support parameterized inductive and non-inductive types
(`#12218 <https://github.com/coq/coq/pull/12218>`_,
fixes `#12035 <https://github.com/coq/coq/issues/12035>`_,
by Pierre Roux, review by Jason Gross and Jim Fehrle for the
reference manual).
- **Added:**
Added support for encoding notations of the form :g:`x ⪯ y ⪯ .. ⪯ z ⪯ t`.
This feature is considered experimental
(`#12765 <https://github.com/coq/coq/pull/12765>`_,
by Hugo Herbelin).
- **Added:**
The :n:`@binder` entry of :cmd:`Notation` can now be used in
notations expecting a single (non-recursive) binder
(`#13265 <https://github.com/coq/coq/pull/13265>`_,
by Hugo Herbelin, see section :ref:`notations-and-binders` of the
reference manual).
- **Fixed:**
Issues in the presence of notations recursively referring to another
applicative notations, such as missing scope propagation, or failure
to use a notation for printing
(`#12960 <https://github.com/coq/coq/pull/12960>`_,
fixes `#9403 <https://github.com/coq/coq/issues/9403>`_
and `#10803 <https://github.com/coq/coq/issues/10803>`_,
by Hugo Herbelin).
- **Fixed:**
Capture the names of global references by
binders in the presence of notations for binders
(`#12965 <https://github.com/coq/coq/pull/12965>`_,
fixes `#9569 <https://github.com/coq/coq/issues/9569>`_,
by Hugo Herbelin).
- **Fixed:**
Preventing notations for constructors to involve binders
(`#13092 <https://github.com/coq/coq/pull/13092>`_,
fixes `#13078 <https://github.com/coq/coq/issues/13078>`_,
by Hugo Herbelin).
- **Fixed:** Notations understand universe names without getting
confused by different imported modules between declaration and use
locations (`#13415 <https://github.com/coq/coq/pull/13415>`_, fixes
`#13303 <https://github.com/coq/coq/issues/13303>`_, by Gaëtan
Gilbert).
.. _813Tactics:
Tactics
^^^^^^^
- **Changed:**
In :tacn:`refine`, new existential variables unified with existing ones are no
longer considered as fresh. The behavior of :tacn:`simple refine <refine>` no
longer depends on
the orientation of evar-evar unification problems, and new existential variables
are always turned into (unshelved) goals. This can break compatibility in
some cases (`#7825 <https://github.com/coq/coq/pull/7825>`_, by Matthieu
Sozeau, with help from Maxime Dénès, review by Pierre-Marie Pédrot and
Enrico Tassi, fixes `#4095 <https://github.com/coq/coq/issues/4095>`_ and
`#4413 <https://github.com/coq/coq/issues/4413>`_).
- **Changed:**
Giving an empty list of occurrences after :n:`in` in tactics is no
longer permitted. Omitting the :n:`in` gives the same behavior
(`#13237 <https://github.com/coq/coq/pull/13236>`_,
fixes `#13235 <https://github.com/coq/coq/issues/13235>`_,
by Hugo Herbelin).
- **Removed:**
:n:`at @occs_nums` clauses in tactics such as :tacn:`unfold`
no longer allow negative values. A "-" before the
list (for set complement) is still supported. Ex: "at -1 -2"
is no longer supported but "at -1 2" is
(`#13403 <https://github.com/coq/coq/pull/13403>`_,
by Jim Fehrle).
- **Removed:**
A number of tactics that formerly accepted negative
numbers as parameters now give syntax errors for negative
values. These include {e}constructor, do, timeout,
9 {e}auto tactics and psatz*
(`#13417 <https://github.com/coq/coq/pull/13417>`_,
by Jim Fehrle).
- **Removed:**
The deprecated and undocumented `prolog` tactic was removed
(`#12399 <https://github.com/coq/coq/pull/12399>`_,
by Pierre-Marie Pédrot).
- **Removed:** `info` tactic that was deprecated in 8.5
(`#12423 <https://github.com/coq/coq/pull/12423>`_, by Jim Fehrle).
- **Deprecated:**
Undocumented :n:`eauto @nat_or_var @nat_or_var` syntax in favor of new `bfs eauto`.
Also deprecated 2-integer syntax for :tacn:`debug eauto` and :tacn:`info_eauto`
(Use `bfs eauto` with the :flag:`Info Eauto` or :flag:`Debug Eauto` flags instead.)
(`#13381 <https://github.com/coq/coq/pull/13381>`_,
by Jim Fehrle).
- **Added:**
:tacn:`lia` is extended to deal with boolean operators e.g. `andb` or `Z.leb`
(as `lia` gets more powerful, this may break proof scripts relying on `lia` failure,
`#11906 <https://github.com/coq/coq/pull/11906>`_, by Frédéric Besson).
- **Added:**
:tacn:`apply … in <apply>` supports several hypotheses
(`#12246 <https://github.com/coq/coq/pull/12246>`_,
by Hugo Herbelin; grants
`#9816 <https://github.com/coq/coq/pull/9816>`_).
- **Added:**
The :tacn:`zify` tactic can now be extended by redefining the `zify_pre_hook`
tactic. (`#12552 <https://github.com/coq/coq/pull/12552>`_,
by Kazuhiko Sakaguchi).
- **Added:**
The :tacn:`zify` tactic provides support for primitive integers (module :g:`ZifyInt63`)
(`#12648 <https://github.com/coq/coq/pull/12648>`_, by Frédéric Besson).
- **Fixed:**
Avoid exposing an internal name of the form :n:`_tmp` when applying the
:n:`_` introduction pattern which would break a dependency
(`#13337 <https://github.com/coq/coq/pull/13337>`_,
fixes `#13336 <https://github.com/coq/coq/issues/13336>`_,
by Hugo Herbelin).
- **Fixed:**
The case of tactics, such as :tacn:`eapply`, producing existential variables
under binders with an ill-formed instance
(`#13373 <https://github.com/coq/coq/pull/13373>`_,
fixes `#13363 <https://github.com/coq/coq/issues/13363>`_,
by Hugo Herbelin).
Tactic language
^^^^^^^^^^^^^^^
- **Added:**
An if-then-else syntax to Ltac2
(`#13232 <https://github.com/coq/coq/pull/13232>`_,
fixes `#10110 <https://github.com/coq/coq/issues/10110>`_,
by Pierre-Marie Pédrot).
- **Fixed:**
Printing of the quotation qualifiers when printing :g:`Ltac` functions
(`#13028 <https://github.com/coq/coq/pull/13028>`_,
fixes `#9716 <https://github.com/coq/coq/issues/9716>`_
and `#13004 <https://github.com/coq/coq/issues/13004>`_,
by Hugo Herbelin).
SSReflect
^^^^^^^^^
- **Added:**
SSReflect intro pattern ltac views ``/[dup]``, ``/[swap]`` and ``/[apply]``
(`#13317 <https://github.com/coq/coq/pull/13317>`_,
by Cyril Cohen).
- **Fixed:**
Working around a bug of interaction between + and /(ltac:(...)) cf
`#13458 <https://github.com/coq/coq/issues/13458>`_
(`#13459 <https://github.com/coq/coq/pull/13459>`_,
by Cyril Cohen).
Commands and options
^^^^^^^^^^^^^^^^^^^^
- **Changed:**
Drop prefixes from grammar non-terminal names,
e.g. "constr:global" -> "global", "Prim.name" -> "name".
Visible in the output of :cmd:`Print Grammar` and :cmd:`Print Custom Grammar`
(`#13096 <https://github.com/coq/coq/pull/13096>`_,
by Jim Fehrle).
- **Changed:**
When declaring arbitrary terms as hints, unsolved
evars are not abstracted implicitly anymore and instead
raise an error
(`#13139 <https://github.com/coq/coq/pull/13139>`_,
by Pierre-Marie Pédrot).
- **Removed:**
In the :cmd:`Extraction Language` command, remove `Ocaml` as a valid value.
Use `OCaml` instead. This was deprecated in Coq 8.8, `#6261 <https://github.com/coq/coq/pull/6261>`_
(`#13016 <https://github.com/coq/coq/pull/13016>`_, by Jim Fehrle).
.. _813HintWarning:
- **Deprecated:**
Hint locality currently defaults to :attr:`local` in a section and
:attr:`global` otherwise, but this will change in a future release.
Hints added outside of sections without an explicit
locality now generate a deprecation warning. We recommend
using :attr:`export` where possible
(`#13384 <https://github.com/coq/coq/pull/13384>`_,
by Pierre-Marie Pédrot).
- **Deprecated:**
``Grab Existential Variables`` and ``Existential`` commands
(`#12516 <https://github.com/coq/coq/pull/12516>`_,
by Maxime Dénès).
- **Added:**
The :attr:`export` locality can now be used for all Hint commands,
including :cmd:`Hint Cut`, :cmd:`Hint Mode`, :cmd:`Hint Transparent` /
:cmd:`Opaque <Hint Opaque>` and
:cmd:`Remove Hints`
(`#13388 <https://github.com/coq/coq/pull/13388>`_,
by Pierre-Marie Pédrot).
- **Added:**
Support for automatic insertion of coercions in :cmd:`Search`
patterns. Additionally, head patterns are now automatically
interpreted as types
(`#13255 <https://github.com/coq/coq/pull/13255>`_,
fixes `#13244 <https://github.com/coq/coq/issues/13244>`_,
by Hugo Herbelin).
- **Added:**
The :cmd:`Proof using` command can now be used without loading the
Ltac plugin (`-noinit` mode)
(`#13339 <https://github.com/coq/coq/pull/13339>`_,
by Théo Zimmermann).
- **Added:**
Clarify in the documentation that ``Add ML Path`` is not exported to compiled files
(`#13345 <https://github.com/coq/coq/pull/13345>`_,
fixes `#13344 <https://github.com/coq/coq/issues/13344>`_,
by Hugo Herbelin).
Tools
^^^^^
- **Changed:**
Option `-native-compiler` of the configure script now impacts the
default value of the `-native-compiler` option of coqc. The
`-native-compiler` option of the configure script supports a new `ondemand`
value, which becomes the default, thus preserving the previous default
behavior.
The stdlib is still precompiled when configuring with `-native-compiler
yes`. It is not precompiled otherwise.
This an implementation of point 2 of
`CEP #48 <https://github.com/coq/ceps/pull/48>`_
(`#13352 <https://github.com/coq/coq/pull/13352>`_,
by Pierre Roux).
- **Changed:**
Added the ability for coq_makefile to directly set the installation folders,
through the `COQLIBINSTALL` and `COQDOCINSTALL` variables.
See :ref:`coqmakefilelocal`
(`#12389 <https://github.com/coq/coq/pull/12389>`_, by Martin Bodin, review of Enrico Tassi).
- **Removed:** The option ``-I`` of coqchk was removed (it was
deprecated in Coq 8.8) (`#12613
<https://github.com/coq/coq/pull/12613>`_, by Gaëtan Gilbert).
- **Fixed:**
``coqchk`` no longer reports names from inner modules of opaque modules as
axioms (`#12862 <https://github.com/coq/coq/pull/12862>`_, fixes `#12845
<https://github.com/coq/coq/issues/12845>`_, by Jason Gross).
CoqIDE
^^^^^^
- **Added:**
Support showing diffs for :cmd:`Show Proof` in CoqIDE from the :n:`View` menu.
See :ref:`showing_proof_diffs`
(`#12874 <https://github.com/coq/coq/pull/12874>`_,
by Jim Fehrle and Enrico Tassi)
- **Added:**
Support for flag :flag:`Printing Goal Names` in View menu
(`#13145 <https://github.com/coq/coq/pull/13145>`_,
by Hugo Herbelin).
Standard library
^^^^^^^^^^^^^^^^
- **Changed:**
In the reals theory changed the epsilon in the definition of the modulus of convergence for CReal from 1/n (n in positive) to 2^z (z in Z)
so that a precision coarser than one is possible. Also added an upper bound to CReal to enable more efficient computations
(`#12186 <https://github.com/coq/coq/pull/12186>`_,
by Michael Soegtrop).
- **Changed:**
Int63 notations now match up with the rest of the standard library: :g:`a \%
m`, :g:`m == n`, :g:`m < n`, :g:`m <= n`, and :g:`m ≤ n` have been replaced
with :g:`a mod m`, :g:`m =? n`, :g:`m <? n`, :g:`m <=? n`, and :g:`m ≤? n`.
The old notations are still available as deprecated notations. Additionally,
there is now a ``Coq.Numbers.Cyclic.Int63.Int63.Int63Notations`` module that
users can import to get the ``Int63`` notations without unqualifying the
various primitives (`#12479 <https://github.com/coq/coq/pull/12479>`_, fixes
`#12454 <https://github.com/coq/coq/issues/12454>`_, by Jason Gross).
- **Changed:**
PrimFloat notations now match up with the rest of the standard library: :g:`m
== n`, :g:`m < n`, and :g:`m <= n` have been replaced with :g:`m =? n`, :g:`m
<? n`, and :g:`m <=? n`. The old notations are still available as deprecated
notations. Additionally, there is now a
``Coq.Floats.PrimFloat.PrimFloatNotations`` module that users can import to
get the ``PrimFloat`` notations without unqualifying the various primitives
(`#12556 <https://github.com/coq/coq/pull/12556>`_, fixes `#12454
<https://github.com/coq/coq/issues/12454>`_, by Jason Gross).
- **Changed:** the sort of cyclic numbers from Type to Set.
For backward compatibility, a dynamic sort was defined in the 3 packages bignums, coqprime and color.
See for example commit 6f62bda in bignums
(`#12801 <https://github.com/coq/coq/pull/12801>`_,
by Vincent Semeria).
- **Changed:**
``Require Import Coq.nsatz.NsatzTactic`` now allows using :tacn:`nsatz`
with `Z` and `Q` without having to supply instances or using ``Require Import Coq.nsatz.Nsatz``, which
transitively requires unneeded files declaring axioms used in the reals
(`#12861 <https://github.com/coq/coq/pull/12861>`_,
fixes `#12860 <https://github.com/coq/coq/issues/12860>`_,
by Jason Gross).
- **Deprecated:**
``prod_curry`` and ``prod_uncurry``, in favor of ``uncurry`` and ``curry``
(`#12716 <https://github.com/coq/coq/pull/12716>`_,
by Yishuai Li).
- **Added:**
New lemmas about ``repeat`` in ``List`` and ``Permutation``: ``repeat_app``, ``repeat_eq_app``, ``repeat_eq_cons``, ``repeat_eq_elt``, ``Forall_eq_repeat``, ``Permutation_repeat``
(`#12799 <https://github.com/coq/coq/pull/12799>`_,
by Olivier Laurent).
- **Added:**
Extend some list lemmas to both directions: `app_inj_tail_iff`, `app_inv_head_iff`, `app_inv_tail_iff`
(`#12094 <https://github.com/coq/coq/pull/12094>`_,
fixes `#12093 <https://github.com/coq/coq/issues/12093>`_,
by Edward Wang).
- **Added:**
``Decidable`` instance for negation
(`#12420 <https://github.com/coq/coq/pull/12420>`_,
by Yishuai Li).
- **Fixed:**
`Coq.Program.Wf.Fix_F_inv` and `Coq.Program.Wf.Fix_eq` are now axiom-free, and no longer assuming proof irrelevance
(`#13365 <https://github.com/coq/coq/pull/13365>`_,
by Li-yao Xia).
Infrastructure and dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
When compiled with OCaml >= 4.10.0, Coq will use the new best-fit GC
policy, which should provide some performance benefits. Coq's policy
is optimized for speed, but could increase memory consumption in
some cases. You are welcome to tune it using the ``OCAMLRUNPARAM``
variable and report back on good settings so we can improve the defaults
(`#13040 <https://github.com/coq/coq/pull/13040>`_,
fixes `#11277 <https://github.com/coq/coq/issues/11277>`_,
by Emilio Jesus Gallego Arias).
- **Changed:**
Coq now uses the `zarith <https://github.com/ocaml/Zarith>`_
library, based on GNU's gmp instead of ``num`` which is
deprecated upstream. The custom ``bigint`` module is
no longer provided
(`#11742 <https://github.com/coq/coq/pull/11742>`_,
`#13007 <https://github.com/coq/coq/pull/13007>`_,
by Emilio Jesus Gallego Arias and Vicent Laporte, with help from
Frédéric Besson).
Changes in 8.13.0
~~~~~~~~~~~~~~~~~
Commands and options
^^^^^^^^^^^^^^^^^^^^
- **Changed:**
The warning `custom-entry-overriden` has been renamed to `custom-entry-overridden` (with two d's)
(`#13556 <https://github.com/coq/coq/pull/13556>`_,
by Simon Friis Vindum).
Changes in 8.13.1
~~~~~~~~~~~~~~~~~
Kernel
^^^^^^
- **Fixed:**
Fix arities of VM opcodes for some floating-point operations
that could cause memory corruption
(`#13867 <https://github.com/coq/coq/pull/13867>`_,
by Guillaume Melquiond).
CoqIDE
^^^^^^
- **Added:**
Option ``-v`` and ``--version`` to CoqIDE
(`#13870 <https://github.com/coq/coq/pull/13870>`_,
by Guillaume Melquiond).
Changes in 8.13.2
~~~~~~~~~~~~~~~~~
Kernel
^^^^^^
- **Fixed:**
Crash when using :tacn:`vm_compute` on an irreducible ``PArray.set``
(`#14005 <https://github.com/coq/coq/pull/14005>`_,
fixes `#13998 <https://github.com/coq/coq/issues/13998>`_,
by Guillaume Melquiond).
- **Fixed:**
Never store persistent arrays as VM / native structured values.
This could be used to make vo marshalling crash, and probably
breaking some other invariants of the kernel
(`#14007 <https://github.com/coq/coq/pull/14007>`_,
fixes `#14006 <https://github.com/coq/coq/issues/14006>`_,
by Pierre-Marie Pédrot).
Tactic language
^^^^^^^^^^^^^^^^
- **Fixed:**
Ltac2 ``Array.init`` no longer incurs exponential overhead when used
recursively (`#14012 <https://github.com/coq/coq/pull/14012>`_, fixes `#14011
<https://github.com/coq/coq/issues/14011>`_, by Jason Gross).
Version 8.12
------------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.12 integrates many usability improvements,
in particular with respect to notations, scopes and implicit arguments,
along with many bug fixes and major improvements to the reference manual.
The main changes include:
- New :ref:`binder notation<812Implicit>` for non-maximal implicit arguments using :g:`[ ]`
allowing to set and see the implicit status of arguments immediately.
- New notation :g:`Inductive I A | x : s := ...` to distinguish the
:ref:`uniform<812Uniform>` from the non-uniform parameters in inductive definitions.
- More robust and expressive treatment of :ref:`implicit inductive<812ImplicitInductive>`
parameters in inductive declarations.
- Improvements in the treatment of implicit arguments and partially applied
constants in :ref:`notations<812Notations>`, parsing of hexadecimal number notation and better
handling of scopes and coercions for printing.
- A correct and efficient :ref:`coercion coherence<812Coercions>` checking algorithm, avoiding
spurious or duplicate warnings.
- An improved :cmd:`Search` :ref:`command<812Search>` which accepts complex queries. Note that
this takes precedence over the now deprecated :ref:`ssreflect search<812SSRSearch>`.
- Many additions and improvements of the :ref:`standard library<812Stdlib>`.
- Improvements to the :ref:`reference manual<812Refman>` include a more logical organization
of chapters along with updated syntax descriptions that match Coq's grammar
in most but not all chapters.
Additionally, the `omega` tactic is deprecated in this version of Coq,
and we recommend users to switch to :tacn:`lia` in new proof scripts.
See the `Changes in 8.12+beta1`_ section and following sections for the
detailed list of changes, including potentially breaking changes marked
with **Changed**.
Coq's documentation is available at https://coq.github.io/doc/v8.12/refman (reference
manual), and https://coq.github.io/doc/v8.12/stdlib (documentation of
the standard library). Developer documentation of the ML API is available
at https://coq.github.io/doc/v8.12/api.
Maxime Dénès, Emilio Jesús Gallego Arias, Gaëtan Gilbert, Michael
Soegtrop and Théo Zimmermann worked on maintaining and improving the
continuous integration system and package building infrastructure.
Erik Martin-Dorel has maintained the `Coq Docker images
<https://hub.docker.com/r/coqorg/coq>`_ that are used in many Coq
projects for continuous integration.
The opam repository for Coq packages has been maintained by
Guillaume Claret, Karl Palmskog, Matthieu Sozeau and Enrico Tassi with
contributions from many users. A list of packages is available at
https://coq.inria.fr/opam/www/.
Previously, most components of Coq had a single principal maintainer.
This was changed in 8.12 (`#11295
<https://github.com/coq/coq/pull/11295>`_) so that every component now has
a team of maintainers, who are in charge of reviewing and
merging incoming pull requests. This gave us a chance to
significantly expand the pool of maintainters and provide faster
feedback to contributors. Special thanks to all our maintainers!
Our current 31 maintainers are Yves Bertot, Frédéric Besson, Tej
Chajed, Cyril Cohen, Pierre Corbineau, Pierre Courtieu, Maxime Dénès,
Jim Fehrle, Julien Forest, Emilio Jesús Gallego Arias, Gaëtan Gilbert,
Georges Gonthier, Benjamin Grégoire, Jason Gross, Hugo Herbelin,
Vincent Laporte, Assia Mahboubi, Kenji Maillard, Guillaume Melquiond,
Pierre-Marie Pédrot, Clément Pit-Claudel, Kazuhiko Sakaguchi, Vincent
Semeria, Michael Soegtrop, Arnaud Spiwack, Matthieu Sozeau, Enrico
Tassi, Laurent Théry, Anton Trunov, Li-yao Xia, Théo Zimmermann
The 59 contributors to this version are Abhishek Anand, Yves Bertot, Frédéric
Besson, Lasse Blaauwbroek, Simon Boulier, Quentin Carbonneaux, Tej Chajed,
Arthur Charguéraud, Cyril Cohen, Pierre Courtieu, Matthew Dempsky, Maxime Dénès,
Andres Erbsen, Erika (@rrika), Nikita Eshkeev, Jim Fehrle, @formalize, Emilio
Jesús Gallego Arias, Paolo G. Giarrusso, Gaëtan Gilbert, Jason Gross, Samuel
Gruetter, Attila Gáspár, Hugo Herbelin, Jan-Oliver Kaiser, Robbert Krebbers,
Vincent Laporte, Olivier Laurent, Xavier Leroy, Thomas Letan, Yishuai Li,
Kenji Maillard, Erik Martin-Dorel, Guillaume Melquiond, Ike Mulder,
Guillaume Munch-Maccagnoni, Antonio Nikishaev, Karl Palmskog, Pierre-Marie
Pédrot, Clément Pit-Claudel, Ramkumar Ramachandra, Lars Rasmusson, Daniel
de Rauglaudre, Talia Ringer, Pierre Roux, Kazuhiko Sakaguchi, Vincent Semeria,
@scinart, Kartik Singhal, Michael Soegtrop, Matthieu Sozeau, Enrico Tassi,
Laurent Théry, Ralf Treinen, Anton Trunov, Bernhard M. Wiedemann, Li-yao Xia,
Nickolai Zeldovich and Théo Zimmermann.
Many power users helped to improve the design of this new version via
the GitHub issue and pull request system, the Coq development mailing list
coqdev@inria.fr, the coq-club@inria.fr mailing list, the `Discourse forum
<https://coq.discourse.group/>`_ and the new `Coq Zulip chat <https://coq.zulipchat.com>`_
(thanks to Cyril Cohen for organizing the move from Gitter).
Version 8.12's development spanned 6 months from the release of
Coq 8.11.0. Emilio Jesus Gallego Arias and Théo Zimmermann are
the release managers of Coq 8.12. This release is the result of
~500 PRs merged, closing ~100 issues.
| Nantes, June 2020,
| Matthieu Sozeau for the Coq development team
|
Changes in 8.12+beta1
~~~~~~~~~~~~~~~~~~~~~
.. contents::
:local:
Kernel
^^^^^^
- **Fixed:**
Specification of :n:`PrimFloat.leb` which made
:n:`(x <= y)%float` true for any non-NaN :n:`x` and :n:`y`
(`#12484 <https://github.com/coq/coq/pull/12484>`_,
fixes `#12483 <https://github.com/coq/coq/issues/12483>`_,
by Pierre Roux).
Specification language, type inference
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
The deprecation warning raised since Coq 8.10 when a trailing
implicit is declared to be non-maximally inserted (with the command
:cmd:`Arguments`) has been turned into an error
(`#11368 <https://github.com/coq/coq/pull/11368>`_,
by SimonBoulier).
- **Changed:**
Typeclass resolution, accessible through :tacn:`typeclasses eauto`,
now suspends constraints according to their modes
instead of failing. If a typeclass constraint does not match
any of the declared modes for its class, the constraint is postponed, and
the proof search continues on other goals. Proof search does a fixed point
computation to try to solve them at a later stage of resolution. It does
not fail if there remain only stuck constraints at the end of resolution.
This makes typeclasses with declared modes more robust with respect to the
order of resolution
(`#10858 <https://github.com/coq/coq/pull/10858>`_,
fixes `#9058 <https://github.com/coq/coq/issues/9058>`_, by Matthieu Sozeau).
- **Added:**
Warn when manual implicit arguments are used in unexpected positions
of a term (e.g. in `Check id (forall {x}, x)`) or when an implicit
argument name is shadowed (e.g. in `Check fun f : forall {x:nat}
{x}, nat => f`)
(`#10202 <https://github.com/coq/coq/pull/10202>`_,
by Hugo Herbelin).
- **Added:**
:cmd:`Arguments` now supports setting
implicit an anonymous argument, as e.g. in `Arguments id {A} {_}`
(`#11098 <https://github.com/coq/coq/pull/11098>`_,
by Hugo Herbelin, fixes `#4696
<https://github.com/coq/coq/pull/4696>`_, `#5173
<https://github.com/coq/coq/pull/5173>`_, `#9098
<https://github.com/coq/coq/pull/9098>`_).
.. _812Implicit:
- **Added:**
Syntax for non-maximal implicit arguments in definitions and terms using
square brackets. The syntax is ``[x : A]``, ``[x]``, ```[A]``
to be consistent with the command :cmd:`Arguments`
(`#11235 <https://github.com/coq/coq/pull/11235>`_,
by Simon Boulier).
- **Added:**
:cmd:`Implicit Types` are now taken into account for printing. To inhibit it,
unset the :flag:`Printing Use Implicit Types` flag
(`#11261 <https://github.com/coq/coq/pull/11261>`_,
by Hugo Herbelin, granting `#10366 <https://github.com/coq/coq/pull/10366>`_).
.. _812Uniform:
- **Added:**
New syntax :cmd:`Inductive` :n:`@ident {* @binder } | {* @binder } := ...`
to specify which parameters of an inductive type are uniform.
See :ref:`parametrized-inductive-types`
(`#11600 <https://github.com/coq/coq/pull/11600>`_, by Gaëtan Gilbert).
- **Added:**
Warn when using :cmd:`Fixpoint` or :cmd:`CoFixpoint` for
definitions which are not recursive
(`#12121 <https://github.com/coq/coq/pull/12121>`_,
by Hugo Herbelin).
.. _812ImplicitInductive:
- **Fixed:**
More robust and expressive treatment of implicit inductive
parameters in inductive declarations (`#11579
<https://github.com/coq/coq/pull/11579>`_, by Maxime Dénès, Gaëtan
Gilbert and Jasper Hugunin; fixes `#7253
<https://github.com/coq/coq/pull/7253>`_ and `#11585
<https://github.com/coq/coq/pull/11585>`_).
- **Fixed:**
Anomaly which could be raised when printing binders with implicit types
(`#12323 <https://github.com/coq/coq/pull/12323>`_,
by Hugo Herbelin; fixes `#12322 <https://github.com/coq/coq/pull/12322>`_).
- **Fixed:**
Case of an anomaly in trying to infer the return clause of an ill-typed :g:`match`
(`#12422 <https://github.com/coq/coq/pull/12422>`_,
fixes `#12418 <https://github.com/coq/coq/pull/12418>`_,
by Hugo Herbelin).
.. _812Notations:
Notations
^^^^^^^^^
- **Changed:** Notation scopes are now always inherited in
notations binding a partially applied constant, including for
notations binding an expression of the form :n:`@@qualid`. The latter was
not the case beforehand
(part of `#11120 <https://github.com/coq/coq/pull/11120>`_).
- **Changed:**
The printing algorithm now interleaves search for notations and removal of coercions
(`#11172 <https://github.com/coq/coq/pull/11172>`_, by Hugo Herbelin).
- **Changed:**
Nicer printing for decimal constants in R and Q.
1.5 is now printed 1.5 rather than 15e-1
(`#11848 <https://github.com/coq/coq/pull/11848>`_,
by Pierre Roux).
- **Removed:** deprecated ``compat`` modifier of :cmd:`Notation`
and :cmd:`Infix` commands. Use the :attr:`deprecated` attribute instead
(`#11113 <https://github.com/coq/coq/pull/11113>`_,
by Théo Zimmermann, with help from Jason Gross).
- **Deprecated:**
Numeral Notation on ``Decimal.uint``, ``Decimal.int`` and
``Decimal.decimal`` are replaced respectively by numeral notations
on ``Numeral.uint``, ``Numeral.int`` and ``Numeral.numeral``
(`#11948 <https://github.com/coq/coq/pull/11948>`_,
by Pierre Roux).
- **Added:**
Notations declared with the ``where`` clause in the declaration of
inductive types, coinductive types, record fields, fixpoints and
cofixpoints now support the ``only parsing`` modifier
(`#11602 <https://github.com/coq/coq/pull/11602>`_,
by Hugo Herbelin).
- **Added:**
:flag:`Printing Parentheses` flag to print parentheses even when
implied by associativity or precedence
(`#11650 <https://github.com/coq/coq/pull/11650>`_,
by Hugo Herbelin and Abhishek Anand).
- **Added:**
Numeral notations now parse hexadecimal constants such as ``0x2a``
or ``0xb.2ap-2``. Parsers added for :g:`nat`, :g:`positive`, :g:`Z`,
:g:`N`, :g:`Q`, :g:`R`, primitive integers and primitive floats
(`#11948 <https://github.com/coq/coq/pull/11948>`_,
by Pierre Roux).
- **Added:**
Abbreviations support arguments occurring both in term and binder position
(`#8808 <https://github.com/coq/coq/pull/8808>`_,
by Hugo Herbelin).
- **Fixed:**
Different interpretations in different scopes of the same notation
string can now be associated with different printing formats (`#10832
<https://github.com/coq/coq/pull/10832>`_, by Hugo Herbelin,
fixes `#6092 <https://github.com/coq/coq/issues/6092>`_
and `#7766 <https://github.com/coq/coq/issues/7766>`_).
- **Fixed:** Parsing and printing consistently handle inheritance of implicit
arguments in notations. With the exception of notations of
the form :n:`Notation @string := @@qualid` and :n:`Notation @ident := @@qualid` which
inhibit implicit arguments, all notations binding a partially
applied constant, as e.g. in :n:`Notation @string := (@qualid {+ @arg })`,
or :n:`Notation @string := (@@qualid {+ @arg })`, or
:n:`Notation @ident := (@qualid {+ @arg })`, or :n:`Notation @ident
:= (@@qualid {+ @arg })`, inherit the remaining implicit arguments
(`#11120 <https://github.com/coq/coq/pull/11120>`_, by Hugo
Herbelin, fixing `#4690 <https://github.com/coq/coq/pull/4690>`_ and
`#11091 <https://github.com/coq/coq/pull/11091>`_).
- **Fixed:**
Notations in ``only printing`` mode do not uselessly reserve parsing keywords
(`#11590 <https://github.com/coq/coq/pull/11590>`_,
by Hugo Herbelin, fixes `#9741 <https://github.com/coq/coq/pull/9741>`_).
- **Fixed:**
Numeral Notations now play better with multiple scopes for the same
inductive type. Previously, when multiple numeral notations were defined
for the same inductive, only the last one was considered for
printing. Now, among the notations that are usable for printing and either
have a scope delimiter or are open, the selection is made according
to the order of open scopes, or according to the last defined
notation if no appropriate scope is open
(`#12163 <https://github.com/coq/coq/pull/12163>`_,
fixes `#12159 <https://github.com/coq/coq/pull/12159>`_,
by Pierre Roux, review by Hugo Herbelin and Jason Gross).
Tactics
^^^^^^^
- **Changed:**
The :tacn:`rapply` tactic in :g:`Coq.Program.Tactics` now handles
arbitrary numbers of underscores and takes in a :g:`uconstr`. In
rare cases where users were relying on :tacn:`rapply` inserting
exactly 15 underscores and no more, due to the lemma having a
completely unspecified codomain (and thus allowing for any number of
underscores), the tactic will now loop instead (`#10760
<https://github.com/coq/coq/pull/10760>`_, by Jason Gross).
- **Changed:**
The :g:`auto with zarith` tactic and variations (including
:tacn:`intuition`) may now call :tacn:`lia` instead of `omega`
(when the `Omega` module is loaded); more goals may be automatically
solved, fewer section variables will be captured spuriously
(`#11018 <https://github.com/coq/coq/pull/11018>`_,
by Vincent Laporte).
- **Changed:**
The new :flag:`NativeCompute Timing` flag causes calls to
:tacn:`native_compute` (as well as kernel calls to the native
compiler) to emit separate timing information about conversion to
native code, compilation, execution, and reification. It replaces
the timing information previously emitted when the `-debug`
command-line flag was set, and allows more fine-grained timing of
the native compiler
(`#11025 <https://github.com/coq/coq/pull/11025>`_, by Jason Gross).
Additionally, the timing information now uses real time rather than
user time (fixes `#11962
<https://github.com/coq/coq/issues/11962>`_, `#11963
<https://github.com/coq/coq/pull/11963>`_, by Jason Gross)
- **Changed:**
Improve the efficiency of `PreOmega.elim_let` using an iterator implemented in OCaml
(`#11370 <https://github.com/coq/coq/pull/11370>`_, by Frédéric Besson).
- **Changed:**
Improve the efficiency of :tacn:`zify` by rewriting the remaining Ltac code in OCaml
(`#11429 <https://github.com/coq/coq/pull/11429>`_, by Frédéric Besson).
- **Changed:**
Backtrace information for tactics has been improved
(`#11755 <https://github.com/coq/coq/pull/11755>`_,
by Emilio Jesus Gallego Arias).
- **Changed:**
The default tactic used by :g:`firstorder` is
:g:`auto with core` instead of :g:`auto with *`;
see :ref:`decisionprocedures` for details;
old behavior can be reset by using the `-compat 8.12` command-line flag;
to ease the migration of legacy code, the default solver can be set to `debug auto with *`
with `Set Firstorder Solver debug auto with *`
(`#11760 <https://github.com/coq/coq/pull/11760>`_,
by Vincent Laporte).
- **Changed:**
:tacn:`autounfold` no longer fails when the :cmd:`Opaque`
command is used on constants in the hint databases
(`#11883 <https://github.com/coq/coq/pull/11883>`_,
by Attila Gáspár).
- **Changed:**
Tactics with qualified name of the form ``Coq.Init.Notations`` are
now qualified with prefix ``Coq.Init.Ltac``; users of the ``-noinit``
option should now import ``Coq.Init.Ltac`` if they want to use Ltac
(`#12023 <https://github.com/coq/coq/pull/12023>`_,
by Hugo Herbelin; minor source of incompatibilities).
- **Changed:**
Tactic :tacn:`subst` :n:`@ident` now fails over a section variable which is
indirectly dependent in the goal; the incompatibility can generally
be fixed by first clearing the hypotheses causing an indirect
dependency, as reported by the error message, or by using :tacn:`rewrite` :n:`... in *`
instead; similarly, :tacn:`subst` has no more effect on such variables
(`#12146 <https://github.com/coq/coq/pull/12146>`_,
by Hugo Herbelin; fixes `#10812 <https://github.com/coq/coq/pull/10812>`_
and `#12139 <https://github.com/coq/coq/pull/12139>`_).
- **Changed:**
The check that :tacn:`unfold` arguments were indeed unfoldable has been moved to runtime
(`#12256 <https://github.com/coq/coq/pull/12256>`_,
by Pierre-Marie Pédrot; fixes
`#5764 <https://github.com/coq/coq/issues/5764>`_,
`#5159 <https://github.com/coq/coq/issues/5159>`_,
`#4925 <https://github.com/coq/coq/issues/4925>`_
and `#11727 <https://github.com/coq/coq/issues/11727>`_).
- **Changed**
When the tactic :tacn:`functional induction` :n:`c__1 c__2 ... c__n` is used
with no parenthesis around :n:`c__1 c__2 ... c__n`, :n:`c__1 c__2 ... c__n` is now
read as one single applicative term. In particular implicit
arguments should be omitted. Rare source of incompatibility
(`#12326 <https://github.com/coq/coq/pull/12326>`_,
by Pierre Courtieu).
- **Changed:**
When using :tacn:`exists` or :tacn:`eexists` with multiple arguments,
the evaluation of arguments and applications of constructors are now interleaved.
This improves unification in some cases
(`#12366 <https://github.com/coq/coq/pull/12366>`_,
fixes `#12365 <https://github.com/coq/coq/issues/12365>`_,
by Attila Gáspár).
- **Removed:**
Undocumented ``omega with``. Using :tacn:`lia` is the recommended
replacement, although the old semantics of ``omega with *`` can also
be recovered with ``zify; omega``
(`#11288 <https://github.com/coq/coq/pull/11288>`_,
by Emilio Jesus Gallego Arias).
- **Removed:**
Deprecated syntax `_eqn` for :tacn:`destruct` and :tacn:`remember`.
Use `eqn:` syntax instead
(`#11877 <https://github.com/coq/coq/pull/11877>`_,
by Hugo Herbelin).
- **Removed:**
`at` clauses can no longer be used with :tacn:`autounfold`.
Since they had no effect, it is safe to remove them
(`#11883 <https://github.com/coq/coq/pull/11883>`_,
by Attila Gáspár).
- **Deprecated:**
The `omega` tactic is deprecated;
use :tacn:`lia` from the :ref:`Micromega <micromega>` plugin instead
(`#11976 <https://github.com/coq/coq/pull/11976>`_,
by Vincent Laporte).
- **Added:**
The :tacn:`zify` tactic is now aware of `Pos.pred_double`, `Pos.pred_N`,
`Pos.of_nat`, `Pos.add_carry`, `Pos.pow`, `Pos.square`, `Z.pow`, `Z.double`,
`Z.pred_double`, `Z.succ_double`, `Z.square`, `Z.div2`, and `Z.quot2`.
Injections for internal definitions in module `ZifyBool` (`isZero` and `isLeZero`)
are also added to help users to declare new :tacn:`zify` class instances using
Micromega tactics
(`#10998 <https://github.com/coq/coq/pull/10998>`_, by Kazuhiko Sakaguchi).
- **Added:**
:cmd:`Show Lia Profile` prints some statistics about :tacn:`lia` calls
(`#11474 <https://github.com/coq/coq/pull/11474>`_, by Frédéric Besson).
- **Added:**
Syntax :tacn:`pose proof` :n:`(@ident:=@term)` as an alternative to
:tacn:`pose proof` :n:`@term as @ident`, following the model of
:tacn:`pose` :n:`(@ident:=@term)`
(`#11522 <https://github.com/coq/coq/pull/11522>`_,
by Hugo Herbelin).
- **Added:**
New tactical :tacn:`with_strategy` which behaves like the command
:cmd:`Strategy`, with effects local to the given tactic
(`#12129 <https://github.com/coq/coq/pull/12129>`_, by Jason Gross).
- **Added:**
The :tacn:`zify` tactic is now aware of `Nat.le`, `Nat.lt` and `Nat.eq`
(`#12213 <https://github.com/coq/coq/pull/12213>`_, by Frédéric Besson;
fixes `#12210 <https://github.com/coq/coq/issues/12210>`_).
- **Fixed:**
:tacn:`zify` now handles :g:`Z.pow_pos` by default.
In Coq 8.11, this was the case only when loading module
:g:`ZifyPow` because this triggered a regression of :tacn:`lia`.
The regression is now fixed, and the module kept only for compatibility
(`#11362 <https://github.com/coq/coq/pull/11362>`_,
fixes `#11191 <https://github.com/coq/coq/issues/11191>`_,
by Frédéric Besson).
- **Fixed:**
Efficiency regression of :tacn:`lia`
(`#11474 <https://github.com/coq/coq/pull/11474>`_,
fixes `#11436 <https://github.com/coq/coq/issues/11436>`_,
by Frédéric Besson).
- **Fixed:**
The behavior of :tacn:`autounfold` no longer depends on the names of terms and modules
(`#11883 <https://github.com/coq/coq/pull/11883>`_,
fixes `#7812 <https://github.com/coq/coq/issues/7812>`_,
by Attila Gáspár).
- **Fixed:**
Wrong type error in tactic :tacn:`functional induction`
(`#12326 <https://github.com/coq/coq/pull/12326>`_,
by Pierre Courtieu,
fixes `#11761 <https://github.com/coq/coq/issues/11761>`_,
reported by Lasse Blaauwbroek).
Tactic language
^^^^^^^^^^^^^^^
- **Changed:**
The "reference" tactic generic argument now accepts arbitrary
variables of the goal context
(`#12254 <https://github.com/coq/coq/pull/12254>`_,
by Pierre-Marie Pédrot).
- **Added:**
An array library for Ltac2 (as compatible as possible with OCaml standard library)
(`#10343 <https://github.com/coq/coq/pull/10343>`_,
by Michael Soegtrop).
- **Added:**
The Ltac2 rebinding command :cmd:`Ltac2 Set` has been extended with the ability to
give a name to the old value so as to be able to reuse it inside the
new one
(`#11503 <https://github.com/coq/coq/pull/11503>`_,
by Pierre-Marie Pédrot).
- **Added:**
Ltac2 notations for :tacn:`enough` and :tacn:`eenough`
(`#11740 <https://github.com/coq/coq/pull/11740>`_,
by Michael Soegtrop).
- **Added:**
New Ltac2 function ``Fresh.Free.of_goal`` to return the list of
names of declarations of the current goal; new Ltac2 function
``Fresh.in_goal`` to return a variable fresh in the current goal
(`#11882 <https://github.com/coq/coq/pull/11882>`_,
by Hugo Herbelin).
- **Added:**
Ltac2 notations for reductions in terms: :n:`eval @red_expr in @term`
(`#11981 <https://github.com/coq/coq/pull/11981>`_,
by Michael Soegtrop).
- **Fixed:**
The :flag:`Ltac Profiling` machinery now correctly handles
backtracking into multi-success tactics. The call-counts of some
tactics are unfortunately inflated by 1, as some tactics are
implicitly implemented as :g:`tac + fail`, which has two
entry-points rather than one (fixes `#12196
<https://github.com/coq/coq/issues/12196>`_, `#12197
<https://github.com/coq/coq/pull/12197>`_, by Jason Gross).
SSReflect
^^^^^^^^^
.. _812SSRSearch:
- **Changed:** The `Search (ssreflect)` command that used to be
available when loading the `ssreflect` plugin has been moved to a
separate plugin that needs to be loaded separately: `ssrsearch`
(part of `#8855 <https://github.com/coq/coq/pull/8855>`_, fixes
`#12253 <https://github.com/coq/coq/issues/12253>`_, by Théo
Zimmermann).
- **Deprecated:** `Search (ssreflect)` (available through
`Require ssrsearch.`) in favor of the `headconcl:` clause of
:cmd:`Search` (part of `#8855
<https://github.com/coq/coq/pull/8855>`_, by Théo Zimmermann).
Flags, options and attributes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:** :term:`Legacy attributes <attribute>` can now be passed
in any order (`#11665 <https://github.com/coq/coq/pull/11665>`_, by
Théo Zimmermann).
- **Removed:** ``Typeclasses Axioms Are Instances`` flag, deprecated since 8.10.
Use :cmd:`Declare Instance` for axioms which should be instances
(`#11185 <https://github.com/coq/coq/pull/11185>`_, by Théo Zimmermann).
- **Removed:** Deprecated unsound compatibility ``Template Check``
flag that was introduced in 8.10 to help users gradually move their
template polymorphic inductive type definitions outside sections
(`#11546 <https://github.com/coq/coq/pull/11546>`_, by Pierre-Marie
Pédrot).
- **Removed:**
Deprecated ``Shrink Obligations`` flag
(`#11828 <https://github.com/coq/coq/pull/11828>`_,
by Emilio Jesus Gallego Arias).
- **Removed:**
Unqualified ``polymorphic``, ``monomorphic``, ``template``,
``notemplate`` attributes (they were deprecated since Coq 8.10).
Use :attr:`universes(polymorphic)`, ``universes(monomorphic)``,
:attr:`universes(template)` and ``universes(notemplate)`` instead
(`#11663 <https://github.com/coq/coq/pull/11663>`_, by Théo Zimmermann).
- **Deprecated:**
`Hide Obligations` flag
(`#11828 <https://github.com/coq/coq/pull/11828>`_,
by Emilio Jesus Gallego Arias).
- **Added:** Handle the :attr:`local` attribute in :cmd:`Canonical
Structure` declarations (`#11162
<https://github.com/coq/coq/pull/11162>`_, by Enrico Tassi).
- **Added:**
New attributes supported when defining an inductive type
:attr:`universes(cumulative)`, ``universes(noncumulative)`` and
:attr:`private(matching)`, which correspond to legacy attributes
``Cumulative``, ``NonCumulative``, and the previously undocumented
``Private`` (`#11665 <https://github.com/coq/coq/pull/11665>`_, by
Théo Zimmermann).
- **Added:**
The :ref:`Hint <creating_hints>` commands now accept the :attr:`export` locality as
an attribute, allowing to make import-scoped hints
(`#11812 <https://github.com/coq/coq/pull/11812>`_,
by Pierre-Marie Pédrot).
- **Added:**
`Cumulative StrictProp` to control cumulativity of |SProp|
(`#12034 <https://github.com/coq/coq/pull/12034>`_, by Gaëtan
Gilbert).
Commands
^^^^^^^^
.. _812Coercions:
- **Changed:**
The :cmd:`Coercion` command has been improved to check the coherence of the
inheritance graph. It checks whether a circular inheritance path of `C >-> C`
is convertible with the identity function or not, then report it as an
ambiguous path if it is not. The new mechanism does not report ambiguous
paths that are redundant with others. For example, checking the ambiguity of
`[f; g]` and `[f'; g]` is redundant with that of `[f]` and `[f']` thus will
not be reported
(`#11258 <https://github.com/coq/coq/pull/11258>`_,
by Kazuhiko Sakaguchi).
- **Changed:**
Several commands (:cmd:`Search`, :cmd:`About`, ...) now print the
implicit arguments in brackets when printing types (`#11795
<https://github.com/coq/coq/pull/11795>`_, by Simon Boulier).
- **Changed:** The warning when using :cmd:`Require` inside a section
moved from the ``deprecated`` category to the ``fragile`` category,
because there is no plan to remove the functionality at this time
(`#11972 <https://github.com/coq/coq/pull/11972>`_, by Gaëtan
Gilbert).
- **Changed:**
:cmd:`Redirect` now obeys the :opt:`Printing Width` and
:opt:`Printing Depth` options
(`#12358 <https://github.com/coq/coq/pull/12358>`_,
by Emilio Jesus Gallego Arias).
- **Removed:**
Recursive OCaml loadpaths are not supported anymore; the command
``Add Rec ML Path`` has been removed; ``Add ML Path`` is now the
preferred one. We have also dropped support for the non-qualified
version of the ``Add LoadPath`` command, that is to say,
the ``Add LoadPath dir`` version; now,
you must always specify a prefix now using ``Add Loadpath dir as Prefix``
(`#11618 <https://github.com/coq/coq/pull/11618>`_,
by Emilio Jesus Gallego Arias).
- **Removed:** undocumented ``Chapter`` command. Use :cmd:`Section`
instead (`#11746 <https://github.com/coq/coq/pull/11746>`_, by Théo
Zimmermann).
- **Removed:** ``SearchAbout`` command that was deprecated since 8.5.
Use :cmd:`Search` instead
(`#11944 <https://github.com/coq/coq/pull/11944>`_, by Jim Fehrle).
- **Deprecated:**
Declaration of arbitrary terms as hints. Global references are now
preferred (`#7791 <https://github.com/coq/coq/pull/7791>`_, by
Pierre-Marie Pédrot).
- **Deprecated:** `SearchHead` in favor of the new `headconcl:`
clause of :cmd:`Search` (part of `#8855
<https://github.com/coq/coq/pull/8855>`_, by Théo Zimmermann).
- **Added:**
:cmd:`Print Canonical Projections` can now take constants as
arguments and prints only the unification rules that involve or are
synthesized from the given constants (`#10747
<https://github.com/coq/coq/pull/10747>`_, by Kazuhiko Sakaguchi).
- **Added:** A section variable introduced with :cmd:`Let` can be
declared as a :cmd:`Canonical Structure` (`#11164
<https://github.com/coq/coq/pull/11164>`_, by Enrico Tassi).
- **Added:** Support for universe bindings and universe contrainsts in
:cmd:`Let` definitions (`#11534
<https://github.com/coq/coq/pull/11534>`_, by Théo Zimmermann).
.. _812Search:
- **Added:** Support for new clauses `hyp:`, `headhyp:`, `concl:`,
`headconcl:`, `head:` and `is:` in :cmd:`Search`. Support for
complex search queries combining disjunctions, conjunctions and
negations (`#8855 <https://github.com/coq/coq/pull/8855>`_, by Hugo
Herbelin, with ideas from Cyril Cohen and help from Théo
Zimmermann).
- **Fixed:**
A printing bug in the presence of elimination principles with local definitions
(`#12295 <https://github.com/coq/coq/pull/12295>`_,
by Hugo Herbelin; fixes `#12233 <https://github.com/coq/coq/pull/12233>`_).
- **Fixed:**
Anomalies with :cmd:`Show Proof`
(`#12296 <https://github.com/coq/coq/pull/12296>`_,
by Hugo Herbelin; fixes
`#12234 <https://github.com/coq/coq/pull/12234>`_).
Tools
^^^^^
- **Changed:**
Internal options and behavior of ``coqdep``. ``coqdep``
no longer works as a replacement for ``ocamldep``, thus ``.ml``
files are not supported as input. Also, several deprecated options
have been removed: ``-w``, ``-D``, ``-mldep``, ``-prefix``,
``-slash``, and ``-dumpbox``. Passing ``-boot`` to ``coqdep`` will
not load any path by default now, ``-R/-Q`` should be used instead
(`#11523 <https://github.com/coq/coq/pull/11523>`_ and
`#11589 <https://github.com/coq/coq/pull/11589>`_,
by Emilio Jesus Gallego Arias).
- **Changed:**
The order in which the require flags `-ri`, `-re`, `-rfrom`, etc.
and the option flags `-set`, `-unset` are given now matters. In
particular, it is now possible to interleave the loading of plugins
and the setting of options by choosing the right order for these
flags. The load flags `-l` and `-lv` are still processed afterward
for now (`#11851 <https://github.com/coq/coq/pull/11851>`_ and
`#12097 <https://github.com/coq/coq/pull/12097>`_,
by Lasse Blaauwbroek).
- **Changed:**
The ``cleanall`` target of a makefile generated by ``coq_makefile``
now erases ``.lia.cache`` and ``.nia.cache`` (`#12006
<https://github.com/coq/coq/pull/12006>`_, by Olivier Laurent).
- **Changed:**
The output of ``make TIMED=1`` (and therefore the timing targets
such as ``print-pretty-timed`` and ``print-pretty-timed-diff``) now
displays the full name of the output file being built, rather than
the stem of the rule (which was usually the filename without the
extension, but in general could be anything for user-defined rules
involving ``%``) (`#12126
<https://github.com/coq/coq/pull/12126>`_, by Jason Gross).
- **Changed:**
When passing ``TIMED=1`` to ``make`` with either Coq's own makefile
or a ``coq_makefile``\-made makefile, timing information is now
printed for OCaml files as well (`#12211
<https://github.com/coq/coq/pull/12211>`_, by Jason Gross).
- **Changed:**
The pretty-timed scripts and targets now print a newline at the end of their
tables, rather than creating text with no trailing newline (`#12368
<https://github.com/coq/coq/pull/12368>`_, by Jason Gross).
- **Removed:**
The `-load-ml-source` and `-load-ml-object` command-line options
have been removed; their use was very limited, you can achieve the same adding
additional object files in the linking step or using a plugin
(`#11409 <https://github.com/coq/coq/pull/11409>`_, by Emilio Jesus Gallego Arias).
- **Removed:**
The confusingly-named `-require` command-line option, which was
deprecated since 8.11. Use the equivalent `-require-import` / `-ri`
options instead
(`#12005 <https://github.com/coq/coq/pull/12005>`_,
by Théo Zimmermann).
- **Deprecated:**
``-cumulative-sprop`` command-line flag in favor of the new
`Cumulative StrictProp` flag (`#12034
<https://github.com/coq/coq/pull/12034>`_, by Gaëtan Gilbert).
- **Added:**
A new documentation environment ``details`` to make certain portion
of a Coq document foldable. See :ref:`coqdoc-hide-show`
(`#10592 <https://github.com/coq/coq/pull/10592>`_,
by Thomas Letan).
- **Added:**
The ``make-both-single-timing-files.py`` script now accepts a
``--fuzz=N`` parameter on the command line which determines how many
characters two lines may be offset in the "before" and "after"
timing logs while still being considered the same line. When
invoking this script via the ``print-pretty-single-time-diff``
target in a ``Makefile`` made by ``coq_makefile``, you can set this
argument by passing ``TIMING_FUZZ=N`` to ``make`` (`#11302
<https://github.com/coq/coq/pull/11302>`_, by Jason Gross).
- **Added:**
The ``make-one-time-file.py`` and ``make-both-time-files.py``
scripts now accept a ``--real`` parameter on the command line to
print real times rather than user times in the tables. The
``make-both-single-timing-files.py`` script accepts a ``--user``
parameter to use user times. When invoking these scripts via the
``print-pretty-timed`` or ``print-pretty-timed-diff`` or
``print-pretty-single-time-diff`` targets in a ``Makefile`` made by
``coq_makefile``, you can set this argument by passing
``TIMING_REAL=1`` (to pass ``--real``) or ``TIMING_REAL=0`` (to pass
``--user``) to ``make`` (`#11302
<https://github.com/coq/coq/pull/11302>`_, by Jason Gross).
- **Added:**
Coq's build system now supports both ``TIMING_FUZZ``,
``TIMING_SORT_BY``, and ``TIMING_REAL`` just like a ``Makefile``
made by ``coq_makefile`` (`#11302
<https://github.com/coq/coq/pull/11302>`_, by Jason Gross).
- **Added:**
The ``make-one-time-file.py`` and ``make-both-time-files.py``
scripts now include peak memory usage information in the tables (can
be turned off by the ``--no-include-mem`` command-line parameter),
and a ``--sort-by-mem`` parameter to sort the tables by memory
rather than time. When invoking these scripts via the
``print-pretty-timed`` or ``print-pretty-timed-diff`` targets in a
``Makefile`` made by ``coq_makefile``, you can set this argument by
passing ``TIMING_INCLUDE_MEM=0`` (to pass ``--no-include-mem``) and
``TIMING_SORT_BY_MEM=1`` (to pass ``--sort-by-mem``) to ``make``
(`#11606 <https://github.com/coq/coq/pull/11606>`_, by Jason Gross).
- **Added:**
Coq's build system now supports both ``TIMING_INCLUDE_MEM`` and
``TIMING_SORT_BY_MEM`` just like a ``Makefile`` made by
``coq_makefile`` (`#11606 <https://github.com/coq/coq/pull/11606>`_,
by Jason Gross).
- **Added:**
New ``coqc`` / ``coqtop`` option ``-boot`` that will not bind the
`Coq` library prefix by default
(`#11617 <https://github.com/coq/coq/pull/11617>`_,
by Emilio Jesus Gallego Arias).
- **Added:**
Definitions in coqdoc link to themselves, giving access in html to their own url
(`#12026 <https://github.com/coq/coq/pull/12026>`_,
by Hugo Herbelin; granting `#7093 <https://github.com/coq/coq/pull/7093>`_).
- **Added:**
Hyperlinks on bound variables in coqdoc
(`#12033 <https://github.com/coq/coq/pull/12033>`_,
by Hugo Herbelin; it incidentally fixes
`#7697 <https://github.com/coq/coq/pull/7697>`_).
- **Added:**
Highlighting of link targets in coqdoc
(`#12091 <https://github.com/coq/coq/pull/12091>`_,
by Hugo Herbelin).
- **Fixed:**
The various timing targets for Coq's standard library now correctly
display and label the "before" and "after" columns, rather than
mixing them up (`#11302 <https://github.com/coq/coq/pull/11302>`_
fixes `#11301 <https://github.com/coq/coq/issues/11301>`_, by Jason
Gross).
- **Fixed:**
The sorting order of the timing script ``make-both-time-files.py``
and the target ``print-pretty-timed-diff`` is now deterministic even
when the sorting order is ``absolute`` or ``diff``; previously the
relative ordering of two files with identical times was
non-deterministic (`#11606
<https://github.com/coq/coq/pull/11606>`_, by Jason Gross).
- **Fixed:**
Fields of a record tuple now link in coqdoc to their definition
(`#12027 <https://github.com/coq/coq/pull/12027>`_, fixes
`#3415 <https://github.com/coq/coq/issues/3415>`_,
by Hugo Herbelin).
- **Fixed:**
``coqdoc`` now reports the location of a mismatched opening ``[[``
instead of throwing an uninformative exception
(`#12037 <https://github.com/coq/coq/pull/12037>`_,
fixes `#9670 <https://github.com/coq/coq/issues/9670>`_,
by Xia Li-yao).
- **Fixed:**
coqchk incorrectly reporting names from opaque modules as axioms
(`#12076 <https://github.com/coq/coq/pull/12076>`_,
by Pierre Roux; fixes `#5030 <https://github.com/coq/coq/issues/5030>`_).
- **Fixed:**
coq_makefile-generated ``Makefile``\s ``pretty-timed-diff`` target
no longer raises Python exceptions in the rare corner case where the
log of times contains no files (`#12388
<https://github.com/coq/coq/pull/12388>`_, fixes `#12387
<https://github.com/coq/coq/pull/12387>`_, by Jason Gross).
CoqIDE
^^^^^^^^
- **Removed:**
"Tactic" menu from CoqIDE which had been unmaintained for a number of years
(`#11414 <https://github.com/coq/coq/pull/11414>`_,
by Pierre-Marie Pédrot).
- **Removed:**
"Revert all buffers" command from CoqIDE which had been broken for a long time
(`#11415 <https://github.com/coq/coq/pull/11415>`_,
by Pierre-Marie Pédrot).
.. _812Stdlib:
Standard library
^^^^^^^^^^^^^^^^
- **Changed:**
Notations :n:`[|@term|]` and :n:`[||@term||]` for morphisms from 63-bit
integers to :g:`Z` and :g:`zn2z int` have been removed in favor of
:n:`φ(@term)` and :n:`Φ(@term)` respectively. These notations were
breaking Ltac parsing (`#11686 <https://github.com/coq/coq/pull/11686>`_,
by Maxime Dénès).
- **Changed:**
The names of ``Sorted_sort`` and ``LocallySorted_sort`` in ``Coq.Sorting.MergeSort``
have been swapped to appropriately reflect their meanings
(`#11885 <https://github.com/coq/coq/pull/11885>`_,
by Lysxia).
- **Changed:**
Notations :g:`<=?` and :g:`<?` from ``Coq.Structures.Orders`` and
``Coq.Sorting.Mergesort.NatOrder`` are now at level 70 rather than
35, so as to be compatible with the notations defined everywhere
else in the standard library. This may require re-parenthesizing
some expressions. These notations were breaking the ability to
import modules from the standard library that were otherwise
compatible (fixes `#11890
<https://github.com/coq/coq/issues/11890>`_, `#11891
<https://github.com/coq/coq/pull/11891>`_, by Jason Gross).
- **Changed:**
The level of :g:`≡` in ``Coq.Numbers.Cyclic.Int63.Int63`` is now 70,
no associativity, in line with :g:`=`. Note that this is a minor
incompatibility with developments that declare their own :g:`≡`
notation and import ``Int63`` (fixes `#11905
<https://github.com/coq/coq/issues/11905>`_, `#11909
<https://github.com/coq/coq/pull/11909>`_, by Jason Gross).
- **Changed:**
No longer re-export ``ListNotations`` from ``Program`` (``Program.Syntax``)
(`#11992 <https://github.com/coq/coq/pull/11992>`_,
by Antonio Nikishaev).
- **Changed:**
It is now possible to import the :g:`nsatz` machinery without
transitively depending on the axioms of the real numbers nor of
classical logic by loading ``Coq.nsatz.NsatzTactic`` rather than
``Coq.nsatz.Nsatz``. Note that some constants have changed kernel
names, living in ``Coq.nsatz.NsatzTactic`` rather than
``Coq.nsatz.Nsatz``; this might cause minor incompatibilities that
can be fixed by actually running :g:`Import Nsatz` rather than
relying on absolute names (`#12073
<https://github.com/coq/coq/pull/12073>`_, by Jason Gross; fixes
`#5445 <https://github.com/coq/coq/issues/5445>`_).
- **Changed:**
new lemma ``NoDup_incl_NoDup`` in ``List.v``
to remove useless hypothesis `NoDup l'` in ``Sorting.Permutation.NoDup_Permutation_bis``
(`#12120 <https://github.com/coq/coq/pull/12119>`_,
by Olivier Laurent).
- **Changed:**
:cmd:`Fixpoints <Fixpoint>` of the standard library without a recursive call turned
into ordinary :cmd:`Definitions <Definition>`
(`#12121 <https://github.com/coq/coq/pull/12121>`_,
by Hugo Herbelin; fixes `#11903 <https://github.com/coq/coq/pull/11903>`_).
- **Deprecated:**
``Bool.leb`` in favor of ``Bool.le``. The definition of ``Bool.le``
is made local to avoid conflicts with ``Nat.le``. As a consequence,
previous calls to ``leb`` based on importing ``Bool`` should now be
qualified into ``Bool.le`` even if ``Bool`` is imported
(`#12162 <https://github.com/coq/coq/pull/12162>`_,
by Olivier Laurent).
- **Added:** Theorem :g:`bezout_comm` for natural numbers
(`#11127 <https://github.com/coq/coq/pull/11127>`_, by Daniel de Rauglaudre).
- **Added**
:g:`rew dependent` notations for the dependent version of
:g:`rew` in :g:`Coq.Init.Logic.EqNotations` to improve the display
and parsing of :g:`match` statements on :g:`Logic.eq` (`#11240
<https://github.com/coq/coq/pull/11240>`_, by Jason Gross).
- **Added:**
Lemmas about lists:
- properties of ``In``: ``in_elt``, ``in_elt_inv``
- properties of ``nth``: ``app_nth2_plus``, ``nth_middle``, ``nth_ext``
- properties of ``last``: ``last_last``, ``removelast_last``
- properties of ``remove``: ``remove_cons``, ``remove_app``, ``notin_remove``, ``in_remove``, ``in_in_remove``, ``remove_remove_comm``, ``remove_remove_eq``, ``remove_length_le``, ``remove_length_lt``
- properties of ``concat``: ``in_concat``, ``remove_concat``
- properties of ``map`` and ``flat_map``: ``map_last``, ``map_eq_cons``, ``map_eq_app``, ``flat_map_app``, ``flat_map_ext``, ``nth_nth_nth_map``
- properties of ``incl``: ``incl_nil_l``, ``incl_l_nil``, ``incl_cons_inv``, ``incl_app_app``, ``incl_app_inv``, ``remove_incl``, ``incl_map``, ``incl_filter``, ``incl_Forall_in_iff``
- properties of ``NoDup`` and ``nodup``: ``NoDup_rev``, ``NoDup_filter``, ``nodup_incl``
- properties of ``Exists`` and ``Forall``: ``Exists_nth``, ``Exists_app``, ``Exists_rev``, ``Exists_fold_right``, ``incl_Exists``, ``Forall_nth``, ``Forall_app``, ``Forall_elt``, ``Forall_rev``, ``Forall_fold_right``, ``incl_Forall``, ``map_ext_Forall``, ``Exists_or``, ``Exists_or_inv``, ``Forall_and``, ``Forall_and_inv``, ``exists_Forall``, ``Forall_image``, ``concat_nil_Forall``, ``in_flat_map_Exists``, ``notin_flat_map_Forall``
- properties of ``repeat``: ``repeat_cons``, ``repeat_to_concat``
- definitions and properties of ``list_sum`` and ``list_max``: ``list_sum_app``, ``list_max_app``, ``list_max_le``, ``list_max_lt``
- misc: ``elt_eq_unit``, ``last_length``, ``rev_eq_app``, ``removelast_firstn_len``, ``cons_seq``, ``seq_S``
(`#11249 <https://github.com/coq/coq/pull/11249>`_, `#12237 <https://github.com/coq/coq/pull/12237>`_,
by Olivier Laurent).
- **Added:**
Well-founded induction principles for `nat`: ``lt_wf_rect1``, ``lt_wf_rect``, ``gt_wf_rect``, ``lt_wf_double_rect``
(`#11335 <https://github.com/coq/coq/pull/11335>`_,
by Olivier Laurent).
- **Added:**
``remove'`` and ``count_occ'`` over lists,
alternatives to ``remove`` and ``count_occ`` based on ``filter``
(`#11350 <https://github.com/coq/coq/pull/11350>`_,
by Yishuai Li).
- **Added:**
Facts about ``N.iter`` and ``Pos.iter``:
- ``N.iter_swap_gen``, ``N.iter_swap``, ``N.iter_succ``, ``N.iter_succ_r``, ``N.iter_add``, ``N.iter_ind``, ``N.iter_invariant``
- ``Pos.iter_succ_r``, ``Pos.iter_ind``
(`#11880 <https://github.com/coq/coq/pull/11880>`_,
by Lysxia).
- **Added:**
Facts about ``Permutation``:
- structure: ``Permutation_refl'``, ``Permutation_morph_transp``
- compatibilities: ``Permutation_app_rot``, ``Permutation_app_swap_app``, ``Permutation_app_middle``, ``Permutation_middle2``, ``Permutation_elt``, ``Permutation_Forall``, ``Permutation_Exists``, ``Permutation_Forall2``, ``Permutation_flat_map``, ``Permutation_list_sum``, ``Permutation_list_max``
- inversions: ``Permutation_app_inv_m``, ``Permutation_vs_elt_inv``, ``Permutation_vs_cons_inv``, ``Permutation_vs_cons_cons_inv``, ``Permutation_map_inv``, ``Permutation_image``, ``Permutation_elt_map_inv``
- length-preserving definition by means of transpositions ``Permutation_transp`` with associated properties: ``Permutation_transp_sym``, ``Permutation_transp_equiv``, ``Permutation_transp_cons``, ``Permutation_Permutation_transp``, ``Permutation_ind_transp``
(`#11946 <https://github.com/coq/coq/pull/11946>`_,
by Olivier Laurent).
- **Added:**
Notations for sigma types: ``{ x & P & Q }``, ``{ ' pat & P }``, ``{ ' pat & P & Q }``
(`#11957 <https://github.com/coq/coq/pull/11957>`_,
by Olivier Laurent).
- **Added:**
Order relations ``lt`` and ``compare`` added in ``Bool.Bool``.
Order properties for ``bool`` added in ``Bool.BoolOrder`` as well as two modules ``Bool_as_OT`` and ``Bool_as_DT`` in ``Structures.OrdersEx``
(`#12008 <https://github.com/coq/coq/pull/12008>`_,
by Olivier Laurent).
- **Added:**
Properties of some operations on vectors:
- ``nth_order``: ``nth_order_hd``, ``nth_order_tl``, ``nth_order_ext``
- ``replace``: ``nth_order_replace_eq``, ``nth_order_replace_neq``, ``replace_id``, ``replace_replace_eq``, ``replace_replace_neq``
- ``map``: ``map_id``, ``map_map``, ``map_ext_in``, ``map_ext``
- ``Forall`` and ``Forall2``: ``Forall_impl``, ``Forall_forall``, ``Forall_nth_order``, ``Forall2_nth_order``
(`#12014 <https://github.com/coq/coq/pull/12014>`_,
by Olivier Laurent).
- **Added:**
Lemmas
:g:`orb_negb_l`,
:g:`andb_negb_l`,
:g:`implb_true_iff`,
:g:`implb_false_iff`,
:g:`implb_true_r`,
:g:`implb_false_r`,
:g:`implb_true_l`,
:g:`implb_false_l`,
:g:`implb_same`,
:g:`implb_contrapositive`,
:g:`implb_negb`,
:g:`implb_curry`,
:g:`implb_andb_distrib_r`,
:g:`implb_orb_distrib_r`,
:g:`implb_orb_distrib_l` in library :g:`Bool`
(`#12018 <https://github.com/coq/coq/pull/12018>`_,
by Hugo Herbelin).
- **Added:**
Definition and properties of cyclic permutations / circular shifts: ``CPermutation``
(`#12031 <https://github.com/coq/coq/pull/12031>`_,
by Olivier Laurent).
- **Added:**
``Structures.OrderedTypeEx.Ascii_as_OT``
(`#12044 <https://github.com/coq/coq/pull/12044>`_,
by formalize.eth (formalize@protonmail.com)).
- **Fixed:**
Rewrote ``Structures.OrderedTypeEx.String_as_OT.compare``
to avoid huge proof terms
(`#12044 <https://github.com/coq/coq/pull/12044>`_,
by formalize.eth (formalize@protonmail.com);
fixes `#12015 <https://github.com/coq/coq/issues/12015>`_).
Reals library
^^^^^^^^^^^^^
- **Changed:**
Cleanup of names in the Reals theory: replaced `tan_is_inj` with
`tan_inj` and replaced `atan_right_inv` with `tan_atan` -
compatibility notations are provided. Moved various auxiliary lemmas
from `Ratan.v` to more appropriate places
(`#9803 <https://github.com/coq/coq/pull/9803>`_,
by Laurent Théry and Michael Soegtrop).
- **Changed:**
Replace `CRzero` and `CRone` by `CR_of_Q 0` and `CR_of_Q 1` in
`ConstructiveReals`. Use implicit arguments for
`ConstructiveReals`. Move `ConstructiveReals` into new directory
`Abstract`. Remove imports of implementations inside those
`Abstract` files. Move implementation by means of Cauchy sequences
in new directory `Cauchy`. Split files `ConstructiveMinMax` and
`ConstructivePower`.
.. warning:: The constructive reals modules are marked as experimental.
(`#11725 <https://github.com/coq/coq/pull/11725>`_,
`#12287 <https://github.com/coq/coq/pull/12287>`_
and `#12288 <https://github.com/coq/coq/pull/12288>`_,
by Vincent Semeria).
- **Removed:**
Type `RList` has been removed. All uses have been replaced by `list R`.
Functions from `RList` named `In`, `Rlength`, `cons_Rlist`, `app_Rlist`
have also been removed as they are essentially the same as `In`, `length`,
`app`, and `map` from `List`, modulo the following changes:
- `RList.In x (RList.cons a l)` used to be convertible to
`(x = a) \\/ RList.In x l`,
but `List.In x (a :: l)` is convertible to
`(a = x) \\/ List.In l`.
The equality is reversed.
- `app_Rlist` and `List.map` take arguments in different order.
(`#11404 <https://github.com/coq/coq/pull/11404>`_,
by Yves Bertot).
- **Added:**
inverse trigonometric functions `asin` and `acos` with lemmas for
the derivatives, bounds and special values of these functions; an
extensive set of identities between trigonometric functions and
their inverse functions; lemmas for the injectivity of sine and
cosine; lemmas on the derivative of the inverse of decreasing
functions and on the derivative of horizontally mirrored functions;
various generic auxiliary lemmas and definitions for `Rsqr`, `sqrt`,
`posreal` and others
(`#9803 <https://github.com/coq/coq/pull/9803>`_,
by Laurent Théry and Michael Soegtrop).
Extraction
^^^^^^^^^^
- **Added:**
Support for better extraction of strings in OCaml and Haskell:
`ExtOcamlNativeString` provides bindings from the Coq `String` type to
the OCaml `string` type, and string literals can be extracted to literals,
both in OCaml and Haskell (`#10486
<https://github.com/coq/coq/pull/10486>`_, by Xavier Leroy, with help from
Maxime Dénès, review by Hugo Herbelin).
- **Fixed:**
In Haskell extraction with ``ExtrHaskellString``, equality comparisons on
strings and characters are now guaranteed to be uniquely well-typed, even in
very polymorphic contexts under ``unsafeCoerce``; this is achieved by adding
type annotations to the extracted code, and by making ``ExtrHaskellString``
export ``ExtrHaskellBasic`` (`#12263
<https://github.com/coq/coq/pull/12263>`_, by Jason Gross, fixes `#12257
<https://github.com/coq/coq/issues/12257>`_ and `#12258
<https://github.com/coq/coq/issues/12258>`_).
.. _812Refman:
Reference manual
^^^^^^^^^^^^^^^^
- **Changed:**
The reference manual has been restructured to get a more logical
organization. In the new version, there are fewer top-level
chapters, and, in the HTML format, chapters are split into smaller
pages. This is still a work in progress and further restructuring
is expected in the next versions of Coq
(`CEP#43 <https://github.com/coq/ceps/pull/43>`_, implemented in
`#11601 <https://github.com/coq/coq/pull/11601>`_,
`#11871 <https://github.com/coq/coq/pull/11871>`_,
`#11914 <https://github.com/coq/coq/pull/11914>`_,
`#12148 <https://github.com/coq/coq/pull/12148>`_,
`#12172 <https://github.com/coq/coq/pull/12172>`_,
`#12239 <https://github.com/coq/coq/pull/12239>`_
and `#12330 <https://github.com/coq/coq/pull/12330>`_,
effort inspired by Matthieu Sozeau, led by Théo Zimmermann, with
help and reviews of Jim Fehrle, Clément Pit-Claudel and others).
- **Changed:**
Most of the grammar is now presented using the notation mechanism
that has been used to present commands and tactics since Coq 8.8 and
which is documented in :ref:`syntax-conventions`
(`#11183 <https://github.com/coq/coq/pull/11183>`_,
`#11314 <https://github.com/coq/coq/pull/11314>`_,
`#11423 <https://github.com/coq/coq/pull/11423>`_,
`#11705 <https://github.com/coq/coq/pull/11705>`_,
`#11718 <https://github.com/coq/coq/pull/11718>`_,
`#11720 <https://github.com/coq/coq/pull/11720>`_,
`#11961 <https://github.com/coq/coq/pull/11961>`_
and `#12103 <https://github.com/coq/coq/pull/12103>`_, by Jim
Fehrle, reviewed by Théo Zimmermann).
- **Added:**
A glossary of terms and an index of attributes
(`#11869 <https://github.com/coq/coq/pull/11869>`_,
`#12150 <https://github.com/coq/coq/pull/12150>`_
and `#12224 <https://github.com/coq/coq/pull/12224>`_,
by Jim Fehrle and Théo Zimmermann,
reviewed by Clément Pit-Claudel)
- **Added:**
A selector that allows switching between versions of the reference
manual (`#12286 <https://github.com/coq/coq/pull/12286>`_, by
Clément Pit-Claudel).
- **Fixed:**
Most of the documented syntax has been thoroughly updated to make it
accurate and easily understood. This was done using a
semi-automated `doc_grammar` tool introduced for this purpose and
through significant revisions to the text
(`#9884 <https://github.com/coq/coq/pull/9884>`_,
`#10614 <https://github.com/coq/coq/pull/10614>`_,
`#11314 <https://github.com/coq/coq/pull/11314>`_,
`#11423 <https://github.com/coq/coq/pull/11423>`_,
`#11705 <https://github.com/coq/coq/pull/11705>`_,
`#11718 <https://github.com/coq/coq/pull/11718>`_,
`#11720 <https://github.com/coq/coq/pull/11720>`_
`#11797 <https://github.com/coq/coq/pull/11797>`_,
`#11913 <https://github.com/coq/coq/pull/11913>`_,
`#11958 <https://github.com/coq/coq/pull/11958>`_,
`#11960 <https://github.com/coq/coq/pull/11960>`_,
`#11961 <https://github.com/coq/coq/pull/11961>`_
and `#12103 <https://github.com/coq/coq/pull/12103>`_, by Jim
Fehrle, reviewed by Théo Zimmermann and Jason Gross).
Infrastructure and dependencies
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- **Changed:**
Minimal versions of dependencies for building the reference manual:
now requires Sphinx >= 2.3.1 & < 3.0.0, sphinx_rtd_theme 0.4.3+ and
sphinxcontrib-bibtex 0.4.2+.
.. warning::
The reference manual is known not to build properly with
Sphinx 3.
(`#12224 <https://github.com/coq/coq/pull/12224>`_,
by Jim Fehrle and Théo Zimmermann).
- **Removed:**
Python 2 is no longer required in any part of the codebase
(`#11245 <https://github.com/coq/coq/pull/11245>`_,
by Emilio Jesus Gallego Arias).
Changes in 8.12.0
~~~~~~~~~~~~~~~~~~~~~
**Notations**
- **Added:**
Simultaneous definition of terms and notations now support custom entries
(`#12523 <https://github.com/coq/coq/pull/11523>`_,
fixes `#11121 <https://github.com/coq/coq/pull/11121>`_
by Maxime Dénès).
- **Fixed:**
Printing bug with notations for n-ary applications used with applied references
(`#12683 <https://github.com/coq/coq/pull/12683>`_,
fixes `#12682 <https://github.com/coq/coq/pull/12682>`_,
by Hugo Herbelin).
**Tactics**
- **Fixed:**
:tacn:`typeclasses eauto` (and discriminated hint bases) now correctly
classify local variables as being unfoldable
(`#12572 <https://github.com/coq/coq/pull/12572>`_,
fixes `#12571 <https://github.com/coq/coq/issues/12571>`_,
by Pierre-Marie Pédrot).
**Tactic language**
- **Fixed:**
Excluding occurrences was causing an anomaly in tactics
(e.g., :g:`pattern _ at L` where :g:`L` is :g:`-2`)
(`#12541 <https://github.com/coq/coq/pull/12541>`_,
fixes `#12228 <https://github.com/coq/coq/issues/12228>`_,
by Pierre Roux).
- **Fixed:**
Parsing of multi-parameters Ltac2 types
(`#12594 <https://github.com/coq/coq/pull/12594>`_,
fixes `#12595 <https://github.com/coq/coq/issues/12595>`_,
by Pierre-Marie Pédrot).
**SSReflect**
- **Fixed:**
Do not store the full environment inside ssr ast_closure_term
(`#12708 <https://github.com/coq/coq/pull/12708>`_,
fixes `#12707 <https://github.com/coq/coq/issues/12707>`_,
by Pierre-Marie Pédrot).
**Commands and options**
- **Fixed:**
Properly report the mismatched magic number of vo files
(`#12677 <https://github.com/coq/coq/pull/12677>`_,
fixes `#12513 <https://github.com/coq/coq/issues/12513>`_,
by Pierre-Marie Pédrot).
- **Changed:**
Arbitrary hints have been undeprecated, and their definition
now triggers a standard warning instead
(`#12678 <https://github.com/coq/coq/pull/12678>`_,
fixes `#11970 <https://github.com/coq/coq/issues/11970>`_,
by Pierre-Marie Pédrot).
**CoqIDE**
- **Fixed:** CoqIDE no longer exits when trying to open a file whose name is not a valid identifier
(`#12562 <https://github.com/coq/coq/pull/12562>`_,
fixes `#10988 <https://github.com/coq/coq/issues/10988>`_,
by Vincent Laporte).
**Infrastructure and dependencies**
- **Fixed:**
Running ``make`` in ``test-suite/`` twice (or more) in a row will no longer
rebuild the ``modules/`` tests on subsequent runs, if they have not been
modified in the meantime (`#12583 <https://github.com/coq/coq/pull/12583>`_,
fixes `#12582 <https://github.com/coq/coq/issues/12582>`_, by Jason Gross).
Changes in 8.12.1
~~~~~~~~~~~~~~~~~~~~~
**Kernel**
- **Fixed:** Incompleteness of conversion checking on problems
involving :ref:`eta-expansion-sect` and :ref:`cumulative universe
polymorphic inductive types <cumulative>` (`#12738
<https://github.com/coq/coq/pull/12738>`_, fixes `#7015
<https://github.com/coq/coq/issues/7015>`_, by Gaëtan Gilbert).
- **Fixed:**
Polymorphic side-effects inside monomorphic definitions were incorrectly
handled as not inlined. This allowed deriving an inconsistency
(`#13331 <https://github.com/coq/coq/pull/13331>`_,
fixes `#13330 <https://github.com/coq/coq/issues/13330>`_,
by Pierre-Marie Pédrot).
**Notations**
- **Fixed:**
Undetected collision between a lonely notation and a notation in
scope at printing time
(`#12946 <https://github.com/coq/coq/pull/12946>`_,
fixes the first part of `#12908 <https://github.com/coq/coq/issues/12908>`_,
by Hugo Herbelin).
- **Fixed:**
Printing of notations in custom entries with
variables not mentioning an explicit level
(`#13026 <https://github.com/coq/coq/pull/13026>`_,
fixes `#12775 <https://github.com/coq/coq/issues/12775>`_
and `#13018 <https://github.com/coq/coq/issues/13018>`_,
by Hugo Herbelin).
**Tactics**
- **Added:**
:tacn:`replace` and :tacn:`inversion` support registration of a
:g:`core.identity`\-like equality in :g:`Type`, such as HoTT's :g:`path`
(`#12847 <https://github.com/coq/coq/pull/12847>`_,
partially fixes `#12846 <https://github.com/coq/coq/issues/12846>`_,
by Hugo Herbelin).
- **Fixed:**
Anomaly with :tacn:`injection` involving artificial
dependencies disappearing by reduction
(`#12816 <https://github.com/coq/coq/pull/12816>`_,
fixes `#12787 <https://github.com/coq/coq/issues/12787>`_,
by Hugo Herbelin).
**Tactic language**
- **Fixed:**
Miscellaneous issues with locating tactic errors
(`#13247 <https://github.com/coq/coq/pull/13247>`_,
fixes `#12773 <https://github.com/coq/coq/issues/12773>`_
and `#12992 <https://github.com/coq/coq/issues/12992>`_,
by Hugo Herbelin).
**SSReflect**
- **Fixed:**
Regression in error reporting after :tacn:`case <case (ssreflect)>`.
A generic error message "Could not fill dependent hole in apply" was
reported for any error following :tacn:`case <case (ssreflect)>` or
:tacn:`elim <elim (ssreflect)>`
(`#12857 <https://github.com/coq/coq/pull/12857>`_,
fixes `#12837 <https://github.com/coq/coq/issues/12837>`_,
by Enrico Tassi).
**Commands and options**
- **Fixed:**
Failures of :cmd:`Search` in the presence of primitive projections
(`#13301 <https://github.com/coq/coq/pull/13301>`_,
fixes `#13298 <https://github.com/coq/coq/issues/13298>`_,
by Hugo Herbelin).
- **Fixed:**
:cmd:`Search` supports filtering on parts of identifiers which are
not proper identifiers themselves, such as :n:`"1"`
(`#13351 <https://github.com/coq/coq/pull/13351>`_,
fixes `#13349 <https://github.com/coq/coq/issues/13349>`_,
by Hugo Herbelin).
**Tools**
- **Fixed:**
Special symbols now escaped in the index produced by coqdoc,
avoiding collision with the syntax of the output format
(`#12754 <https://github.com/coq/coq/pull/12754>`_,
fixes `#12752 <https://github.com/coq/coq/issues/12752>`_,
by Hugo Herbelin).
- **Fixed:**
The `details` environment added in the 8.12 release can now be used
as advertised in the reference manual
(`#12772 <https://github.com/coq/coq/pull/12772>`_,
by Thomas Letan).
- **Fixed:**
Targets such as ``print-pretty-timed`` in ``coq_makefile``\-made
``Makefile``\s no longer error in rare cases where ``--output-sync`` is not
passed to make and the timing output gets interleaved in just the wrong way
(`#13063 <https://github.com/coq/coq/pull/13063>`_, fixes `#13062
<https://github.com/coq/coq/issues/13062>`_, by Jason Gross).
**CoqIDE**
- **Fixed:**
View menu "Display parentheses"
(`#12794 <https://github.com/coq/coq/pull/12794>`_ and `#13067 <https://github.com/coq/coq/pull/13067>`_,
fixes `#12793 <https://github.com/coq/coq/issues/12793>`_,
by Jean-Christophe Léchenet and Hugo Herbelin).
**Infrastructure and dependencies**
- **Added:**
Coq is now tested against OCaml 4.11.1
(`#12972 <https://github.com/coq/coq/pull/12972>`_,
by Emilio Jesus Gallego Arias).
- **Fixed:**
The reference manual can now build with Sphinx 3
(`#13011 <https://github.com/coq/coq/pull/13011>`_,
fixes `#12332 <https://github.com/coq/coq/issues/12332>`_,
by Théo Zimmermann and Jim Fehrle).
Changes in 8.12.2
~~~~~~~~~~~~~~~~~
**Notations**
- **Fixed:**
8.12 regression causing notations mentioning a coercion to be ignored
(`#13436 <https://github.com/coq/coq/pull/13436>`_,
fixes `#13432 <https://github.com/coq/coq/issues/13432>`_,
by Hugo Herbelin).
**Tactics**
- **Fixed:**
8.12 regression: incomplete inference of implicit arguments in :tacn:`exists`
(`#13468 <https://github.com/coq/coq/pull/13468>`_,
fixes `#13456 <https://github.com/coq/coq/issues/13456>`_,
by Hugo Herbelin).
Version 8.11
------------
Summary of changes
~~~~~~~~~~~~~~~~~~
The main changes brought by Coq version 8.11 are:
- :ref:`Ltac2<811Ltac2>`, a new tactic language for writing more robust larger scale
tactics, with built-in support for datatypes and the multi-goal tactic monad.
- :ref:`Primitive floats<811PrimitiveFloats>` are integrated in terms and follow the binary64 format
of the IEEE 754 standard, as specified in the `Coq.Float.Floats` library.
- :ref:`Cleanups<811Sections>` of the section mechanism, delayed proofs and further
restrictions of template polymorphism to fix soundness issues related to
universes.
- New :ref:`unsafe flags<811UnsafeFlags>` to disable locally guard, positivity and universe
checking. Reliance on these flags is always printed by
:g:`Print Assumptions`.
- :ref:`Fixed bugs<811ExportBug>` of :g:`Export` and :g:`Import` that can have a
significant impact on user developments (**common source of
incompatibility!**).
- New interactive development method based on `vos` :ref:`interface files<811vos>`,
allowing to work on a file without recompiling the proof parts of their
dependencies.
- New :g:`Arguments` annotation for :ref:`bidirectional type inference<811BidirArguments>`
configuration for reference (e.g. constants, inductive) applications.
- New :ref:`refine attribute<811RefineInstance>` for :cmd:`Instance` can be used instead of
the removed ``Refine Instance Mode``.
- Generalization of the :g:`under` and :g:`over` :ref:`tactics<811SSRUnderOver>` of SSReflect to
arbitrary relations.
- :ref:`Revision<811Reals>` of the :g:`Coq.Reals` library, its axiomatisation and
instances of the constructive and classical real numbers.
Additionally, while the `omega` tactic is not yet deprecated in
this version of Coq, it should soon be the case and we already
recommend users to switch to :tacn:`lia` in new proof scripts.
The ``dev/doc/critical-bugs`` file documents the known critical bugs
of Coq and affected releases. See the `Changes in 8.11+beta1`_
section and following sections for the detailed list of changes,
including potentially breaking changes marked with **Changed**.
Coq's documentation is available at https://coq.github.io/doc/v8.11/api (documentation of
the ML API), https://coq.github.io/doc/v8.11/refman (reference
manual), and https://coq.github.io/doc/v8.11/stdlib (documentation of
the standard library).
Maxime Dénès, Emilio Jesús Gallego Arias, Gaëtan Gilbert, Michael
Soegtrop and Théo Zimmermann worked on maintaining and improving the
continuous integration system and package building infrastructure.
The opam repository for Coq packages has been maintained by
Guillaume Claret, Karl Palmskog, Matthieu Sozeau and Enrico Tassi with
contributions from many users. A list of packages is available at
https://coq.inria.fr/opam/www/.
The 61 contributors to this version are Michael D. Adams, Guillaume
Allais, Helge Bahmann, Langston Barrett, Guillaume Bertholon, Frédéric
Besson, Simon Boulier, Michele Caci, Tej Chajed, Arthur Charguéraud,
Cyril Cohen, Frédéric Dabrowski, Arthur Azevedo de Amorim, Maxime
Dénès, Nikita Eshkeev, Jim Fehrle, Emilio Jesús Gallego Arias,
Paolo G. Giarrusso, Gaëtan Gilbert, Georges Gonthier, Jason Gross,
Samuel Gruetter, Armaël Guéneau, Hugo Herbelin, Florent Hivert, Jasper
Hugunin, Shachar Itzhaky, Jan-Oliver Kaiser, Robbert Krebbers, Vincent
Laporte, Olivier Laurent, Samuel Lelièvre, Nicholas Lewycky, Yishuai
Li, Jose Fernando Lopez Fernandez, Andreas Lynge, Kenji Maillard, Erik
Martin-Dorel, Guillaume Melquiond, Alexandre Moine, Oliver Nash,
Wojciech Nawrocki, Antonio Nikishaev, Pierre-Marie Pédrot, Clément
Pit-Claudel, Lars Rasmusson, Robert Rand, Talia Ringer, JP Rodi,
Pierre Roux, Kazuhiko Sakaguchi, Vincent Semeria, Michael Soegtrop,
Matthieu Sozeau, spanjel, Claude Stolze, Enrico Tassi, Laurent Théry,
James R. Wilcox, Xia Li-yao, Théo Zimmermann
Many power users helped to improve the design of the new features via
the issue and pull request system, the Coq development mailing list,
the coq-club@inria.fr mailing list or the `Discourse forum
<https://coq.discourse.group/>`_. It would be impossible to mention
exhaustively the names of everybody who to some extent influenced the
development.
Version 8.11 is the sixth release of Coq developed on a time-based
development cycle. Its development spanned 3 months from the release of
Coq 8.10. Pierre-Marie Pédrot is the release manager and maintainer of this
release, assisted by Matthieu Sozeau. This release is the result of 2000+
commits and 300+ PRs merged, closing 75+ issues.
| Paris, November 2019,
| Matthieu Sozeau for the Coq development team
|
Changes in 8.11+beta1
~~~~~~~~~~~~~~~~~~~~~
**Kernel**
.. _811PrimitiveFloats:
- **Added:**
A built-in support of floating-point arithmetic, allowing
one to devise efficient reflection tactics involving numerical
computation. Primitive floats are added in the language of terms,
following the binary64 format of the IEEE 754 standard, and the
related operations are implemented for the different reduction
engines of Coq by using the corresponding processor operators in
rounding-to-nearest-even. The properties of these operators are
axiomatized in the theory :g:`Coq.Floats.FloatAxioms` which is part
of the library :g:`Coq.Floats.Floats`.
See Section :ref:`primitive-floats`
(`#9867 <https://github.com/coq/coq/pull/9867>`_,
closes `#8276 <https://github.com/coq/coq/issues/8276>`_,
by Guillaume Bertholon, Erik Martin-Dorel, Pierre Roux).
- **Changed:**
Internal definitions generated by :tacn:`abstract`\-like tactics are now inlined
inside universe :cmd:`Qed`\-terminated polymorphic definitions, similarly to what
happens for their monomorphic counterparts,
(`#10439 <https://github.com/coq/coq/pull/10439>`_, by Pierre-Marie Pédrot).
.. _811Sections:
- **Fixed:**
Section data is now part of the kernel. Solves a soundness issue
in interactive mode where global monomorphic universe constraints would be
dropped when forcing a delayed opaque proof inside a polymorphic section. Also
relaxes the nesting criterion for sections, as polymorphic sections can now
appear inside a monomorphic one
(`#10664 <https://github.com/coq/coq/pull/10664>`_, by Pierre-Marie Pédrot).
- **Changed:**
Using ``SProp`` is now allowed by default, without needing to pass
``-allow-sprop`` or use :flag:`Allow StrictProp` (`#10811
<https://github.com/coq/coq/pull/10811>`_, by Gaëtan Gilbert).
**Specification language, type inference**
.. _811BidirArguments:
- **Added:**
Annotation in `Arguments` for bidirectionality hints: it is now possible
to tell type inference to use type information from the context once the `n`
first arguments of an application are known. The syntax is:
`Arguments foo x y & z`. See :ref:`bidirectionality_hints`
(`#10049 <https://github.com/coq/coq/pull/10049>`_, by Maxime Dénès with
help from Enrico Tassi).
- **Added:**
Record fields can be annotated to prevent them from being used as canonical projections;
see :ref:`canonicalstructures` for details
(`#10076 <https://github.com/coq/coq/pull/10076>`_,
by Vincent Laporte).
- **Changed:**
Require parentheses around nested disjunctive patterns, so that pattern and
term syntax are consistent; match branch patterns no longer require
parentheses for notation at level 100 or more.
.. warning:: Incompatibilities
+ In :g:`match p with (_, (0|1)) => ...` parentheses may no longer be
omitted around :n:`0|1`.
+ Notation :g:`(p | q)` now potentially clashes with core pattern syntax,
and should be avoided. ``-w disj-pattern-notation`` flags such :cmd:`Notation`.
See :ref:`extendedpatternmatching` for details
(`#10167 <https://github.com/coq/coq/pull/10167>`_,
by Georges Gonthier).
- **Changed:**
:cmd:`Function` always opens a proof when used with a ``measure`` or ``wf``
annotation, see :ref:`advanced-recursive-functions` for the updated
documentation (`#10215 <https://github.com/coq/coq/pull/10215>`_,
by Enrico Tassi).
- **Changed:**
The legacy command :cmd:`Add Morphism` always opens a proof and cannot be used
inside a module type. In order to declare a module type parameter that
happens to be a morphism, use :cmd:`Declare Morphism`. See
:ref:`deprecated_syntax_for_generalized_rewriting` for the updated
documentation (`#10215 <https://github.com/coq/coq/pull/10215>`_,
by Enrico Tassi).
- **Changed:**
The universe polymorphism setting now applies from the opening of a section.
In particular, it is not possible anymore to mix polymorphic and monomorphic
definitions in a section when there are no variables nor universe constraints
defined in this section. This makes the behavior consistent with the
documentation. (`#10441 <https://github.com/coq/coq/pull/10441>`_,
by Pierre-Marie Pédrot)
- **Added:**
The :cmd:`Section` command now accepts the "universes" attribute. In
addition to setting the section universe polymorphism, it also locally sets
the universe polymorphic option inside the section
(`#10441 <https://github.com/coq/coq/pull/10441>`_, by Pierre-Marie Pédrot)
- **Fixed:**
``Program Fixpoint`` now uses ``ex`` and ``sig`` to make telescopes
involving ``Prop`` types (`#10758
<https://github.com/coq/coq/pull/10758>`_, by Gaëtan Gilbert, fixing
`#10757 <https://github.com/coq/coq/issues/10757>`_ reported by
Xavier Leroy).
- **Changed:**
Output of the :cmd:`Print` and :cmd:`About` commands.
Arguments meta-data is now displayed as the corresponding
:cmd:`Arguments` command instead of the
human-targeted prose used in previous Coq versions. (`#10985
<https://github.com/coq/coq/pull/10985>`_, by Gaëtan Gilbert).
.. _811RefineInstance:
- **Added:** :attr:`refine` attribute for :cmd:`Instance`, a more
predictable version of the old ``Refine Instance Mode`` which
unconditionally opens a proof (`#10996
<https://github.com/coq/coq/pull/10996>`_, by Gaëtan Gilbert).
- **Changed:**
The unsupported attribute error is now an error-by-default warning,
meaning it can be disabled (`#10997
<https://github.com/coq/coq/pull/10997>`_, by Gaëtan Gilbert).
- **Fixed:** Bugs sometimes preventing to define valid (co)fixpoints with implicit arguments
in the presence of local definitions, see `#3282 <https://github.com/coq/coq/issues/3282>`_
(`#11132 <https://github.com/coq/coq/pull/11132>`_, by Hugo Herbelin).
.. example::
The following features an implicit argument after a local
definition. It was wrongly rejected.
.. coqtop:: in
Definition f := fix f (o := true) {n : nat} m {struct m} :=
match m with 0 => 0 | S m' => f (n:=n+1) m' end.
**Notations**
- **Added:**
Numeral Notations now support sorts in the input to printing
functions (e.g., numeral notations can be defined for terms
containing things like `@cons Set nat nil`). (`#9883
<https://github.com/coq/coq/pull/9883>`_, by Jason Gross).
- **Added:**
The :cmd:`Notation` and :cmd:`Infix` commands now support the `deprecated`
attribute
(`#10180 <https://github.com/coq/coq/pull/10180>`_, by Maxime Dénès).
- **Deprecated:**
The former `compat` annotation for notations is
deprecated, and its semantics changed. It is now made equivalent to using
a `deprecated` attribute, and is no longer connected with the `-compat`
command-line flag
(`#10180 <https://github.com/coq/coq/pull/10180>`_, by Maxime Dénès).
- **Changed:**
A simplification of parsing rules could cause a slight change of
parsing precedences for the very rare users who defined notations
with `constr` at level strictly between 100 and 200 and used these
notations on the right-hand side of a cast operator (`:`, `<:`,
`<<:`) (`#10963 <https://github.com/coq/coq/pull/10963>`_, by Théo
Zimmermann, simplification initially noticed by Jim Fehrle).
**Tactics**
- **Added:**
Syntax :n:`injection @term as [= {+ @intropattern} ]` as
an alternative to :n:`injection @term as {+ @simple_intropattern}` using
the standard injection intropattern syntax (`#9288
<https://github.com/coq/coq/pull/9288>`_, by Hugo Herbelin).
- **Changed:**
Reimplementation of the :tacn:`zify` tactic. The tactic is more efficient and copes with dependent hypotheses.
It can also be extended by redefining the tactic ``zify_post_hook``
(`#9856 <https://github.com/coq/coq/pull/9856>`_, fixes
`#8898 <https://github.com/coq/coq/issues/8898>`_,
`#7886 <https://github.com/coq/coq/issues/7886>`_,
`#9848 <https://github.com/coq/coq/issues/9848>`_ and
`#5155 <https://github.com/coq/coq/issues/5155>`_, by Frédéric Besson).
- **Changed:**
The goal selector tactical ``only`` now checks that the goal range
it is given is valid instead of ignoring goals out of the focus
range (`#10318 <https://github.com/coq/coq/pull/10318>`_, by Gaëtan
Gilbert).
- **Added:**
Flags :flag:`Lia Cache`, :flag:`Nia Cache` and :flag:`Nra Cache`
(`#10765 <https://github.com/coq/coq/pull/10765>`_, by Frédéric Besson,
see `#10772 <https://github.com/coq/coq/issues/10772>`_ for use case).
- **Added:**
The :tacn:`zify` tactic is now aware of `Z.to_N`
(`#10774 <https://github.com/coq/coq/pull/10774>`_, grants
`#9162 <https://github.com/coq/coq/issues/9162>`_, by Kazuhiko Sakaguchi).
- **Changed:**
The :tacn:`assert_succeeds` and :tacn:`assert_fails` tactics now
only run their tactic argument once, even if it has multiple
successes. This prevents blow-up and looping from using
multisuccess tactics with :tacn:`assert_succeeds`. (`#10966
<https://github.com/coq/coq/pull/10966>`_ fixes `#10965
<https://github.com/coq/coq/issues/10965>`_, by Jason Gross).
- **Fixed:**
The :tacn:`assert_succeeds` and :tacn:`assert_fails` tactics now
behave correctly when their tactic fully solves the goal. (`#10966
<https://github.com/coq/coq/pull/10966>`_ fixes `#9114
<https://github.com/coq/coq/issues/9114>`_, by Jason Gross).
**Tactic language**
.. _811Ltac2:
- **Added:**
Ltac2, a new version of the tactic language Ltac, that doesn't
preserve backward compatibility, has been integrated in the main Coq
distribution. It is still experimental, but we already recommend
users of advanced Ltac to start using it and report bugs or request
enhancements. See its documentation in the :ref:`dedicated chapter
<ltac2>` (`#10002 <https://github.com/coq/coq/pull/10002>`_, plugin
authored by Pierre-Marie Pédrot, with contributions by various
users, integration by Maxime Dénès, help on integrating / improving
the documentation by Théo Zimmermann and Jim Fehrle).
- **Added:**
Ltac2 tactic notations with “constr” arguments can specify the
notation scope for these arguments;
see :ref:`ltac2_notations` for details
(`#10289 <https://github.com/coq/coq/pull/10289>`_,
by Vincent Laporte).
- **Changed:**
White spaces are forbidden in the :n:`&@ident` syntax for ltac2 references
that are described in :ref:`ltac2_built-in-quotations`
(`#10324 <https://github.com/coq/coq/pull/10324>`_,
fixes `#10088 <https://github.com/coq/coq/issues/10088>`_,
authored by Pierre-Marie Pédrot).
**SSReflect**
.. _811SSRUnderOver:
- **Added:**
Generalize tactics :tacn:`under` and :tacn:`over` for any registered
relation. More precisely, assume the given context lemma has type
`forall f1 f2, .. -> (forall i, R1 (f1 i) (f2 i)) -> R2 f1 f2`. The
first step performed by :tacn:`under` (since Coq 8.10) amounts to
calling the tactic :tacn:`rewrite <rewrite (ssreflect)>`, which
itself relies on :tacn:`setoid_rewrite` if need be. So this step was
already compatible with a double implication or setoid equality for
the conclusion head symbol `R2`. But a further step consists in
tagging the generated subgoal `R1 (f1 i) (?f2 i)` to protect it from
unwanted evar instantiation, and get `Under_rel _ R1 (f1 i) (?f2 i)`
that is displayed as ``'Under[ f1 i ]``. In Coq 8.10, this second
(convenience) step was only performed when `R1` was Leibniz' `eq` or
`iff`. Now, it is also performed for any relation `R1` which has a
``RewriteRelation`` instance (a `RelationClasses.Reflexive` instance
being also needed so :tacn:`over` can discharge the ``'Under[ _ ]``
goal by instantiating the hidden evar.)
This feature generalizing support for setoid-like relations is
enabled as soon as we do both ``Require Import ssreflect.`` and
``Require Setoid.`` Finally, a rewrite rule ``UnderE`` has been
added if one wants to "unprotect" the evar, and instantiate it
manually with another rule than reflexivity (i.e., without using the
:tacn:`over` tactic nor the ``over`` rewrite rule). See also Section
:ref:`under_ssr` (`#10022 <https://github.com/coq/coq/pull/10022>`_,
by Erik Martin-Dorel, with suggestions and review by Enrico Tassi
and Cyril Cohen).
- **Added:**
A :g:`void` notation for the standard library empty type (:g:`Empty_set`)
(`#10932 <https://github.com/coq/coq/pull/10932>`_, by Arthur Azevedo de
Amorim).
- **Added:** Lemma :g:`inj_compr` to :g:`ssr.ssrfun`
(`#11136 <https://github.com/coq/coq/pull/11136>`_, by Cyril Cohen).
**Commands and options**
- **Removed:**
Deprecated flag `Refine Instance Mode`
(`#9530 <https://github.com/coq/coq/pull/9530>`_, fixes
`#3632 <https://github.com/coq/coq/issues/3632>`_, `#3890
<https://github.com/coq/coq/issues/3890>`_ and `#4638
<https://github.com/coq/coq/issues/4638>`_
by Maxime Dénès, review by Gaëtan Gilbert).
- **Changed:**
:cmd:`Fail` does not catch critical errors (including "stack overflow")
anymore (`#10173 <https://github.com/coq/coq/pull/10173>`_,
by Gaëtan Gilbert).
- **Removed:**
Undocumented :n:`Instance : !@type` syntax
(`#10185 <https://github.com/coq/coq/pull/10185>`_, by Gaëtan Gilbert).
- **Removed:**
Deprecated ``Show Script`` command
(`#10277 <https://github.com/coq/coq/pull/10277>`_, by Gaëtan Gilbert).
.. _811UnsafeFlags:
- **Added:**
Unsafe commands to enable/disable guard checking, positivity checking
and universes checking (providing a local `-type-in-type`).
See :ref:`controlling-typing-flags`
(`#10291 <https://github.com/coq/coq/pull/10291>`_ by Simon Boulier).
.. _811ExportBug:
- **Fixed:**
Two bugs in :cmd:`Export`. This can have an impact on the behavior of the
:cmd:`Import` command on libraries. `Import A` when `A` imports `B` which exports
`C` was importing `C`, whereas :cmd:`Import` is not transitive. Also, after
`Import A B`, the import of `B` was sometimes incomplete
(`#10476 <https://github.com/coq/coq/pull/10476>`_, by Maxime Dénès).
.. warning::
This is a common source of incompatibilities in projects
migrating to Coq 8.11.
- **Changed:**
Output generated by :flag:`Printing Dependent Evars Line` flag
used by the Prooftree tool in Proof General
(`#10489 <https://github.com/coq/coq/pull/10489>`_,
closes `#4504 <https://github.com/coq/coq/issues/4504>`_,
`#10399 <https://github.com/coq/coq/issues/10399>`_ and
`#10400 <https://github.com/coq/coq/issues/10400>`_,
by Jim Fehrle).
- **Added:**
Optionally highlight the differences between successive proof steps in the
:cmd:`Show Proof` command. Experimental; only available in coqtop
and Proof General for now, may be supported in other IDEs
in the future
(`#10494 <https://github.com/coq/coq/pull/10494>`_,
by Jim Fehrle).
- **Removed:** Legacy commands ``AddPath``, ``AddRecPath``, and ``DelPath``
which were undocumented, broken variants of ``Add LoadPath``,
``Add Rec LoadPath``, and ``Remove LoadPath``
(`#11187 <https://github.com/coq/coq/pull/11187>`_,
by Maxime Dénès and Théo Zimmermann).
**Tools**
.. _811vos:
- **Added:**
`coqc` now provides the ability to generate compiled interfaces.
Use `coqc -vos foo.v` to skip all opaque proofs during the
compilation of `foo.v`, and output a file called `foo.vos`.
This feature is experimental. It enables working on a Coq file without the need to
first compile the proofs contained in its dependencies
(`#8642 <https://github.com/coq/coq/pull/8642>`_ by Arthur Charguéraud, review by
Maxime Dénès and Emilio Gallego).
- **Added:**
Command-line options `-require-import`, `-require-export`,
`-require-import-from` and `-require-export-from`, as well as their
shorthand, `-ri`, `-re`, `-refrom` and -`rifrom`. Deprecate
confusing command line option `-require`
(`#10245 <https://github.com/coq/coq/pull/10245>`_
by Hugo Herbelin, review by Emilio Gallego).
- **Changed:**
Renamed `VDFILE` from `.coqdeps.d` to `.<CoqMakefile>.d` in the `coq_makefile`
utility, where `<CoqMakefile>` is the name of the output file given by the
`-o` option. In this way two generated makefiles can coexist in the same
directory
(`#10947 <https://github.com/coq/coq/pull/10947>`_, by Kazuhiko Sakaguchi).
- **Fixed:** ``coq_makefile`` now supports environment variable ``COQBIN`` with
no ending ``/`` character (`#11068
<https://github.com/coq/coq/pull/11068>`_, by Gaëtan Gilbert).
**Standard library**
- **Changed:**
Moved the :tacn:`auto` hints of the `OrderedType` module into a new `ordered_type`
database
(`#9772 <https://github.com/coq/coq/pull/9772>`_,
by Vincent Laporte).
- **Removed:**
Deprecated modules `Coq.ZArith.Zlogarithm` and `Coq.ZArith.Zsqrt_compat`
(`#9811 <https://github.com/coq/coq/pull/9811>`_,
by Vincent Laporte).
.. _811Reals:
- **Added:**
Module `Reals.Cauchy.ConstructiveCauchyReals` defines constructive real numbers
by Cauchy sequences of rational numbers
(`#10445 <https://github.com/coq/coq/pull/10445>`_, by Vincent Semeria,
with the help and review of Guillaume Melquiond and Bas Spitters).
This module is not meant to be imported directly, please import
`Reals.Abstract.ConstructiveReals` instead.
- **Added:**
New module `Reals.ClassicalDedekindReals` defines Dedekind real
numbers as boolean-valued functions along with 3 logical axioms:
limited principle of omniscience, excluded middle of negations, and
functional extensionality. The exposed type :g:`R` in module
:g:`Reals.Rdefinitions` now corresponds to these Dedekind reals,
hidden behind an opaque module, which significantly reduces the
number of axioms needed (see `Reals.Rdefinitions` and
`Reals.Raxioms`), while preserving backward compatibility.
Classical Dedekind reals are a quotient of constructive reals, which
allows to transport many constructive proofs to the classical case
(`#10827 <https://github.com/coq/coq/pull/10827>`_, by Vincent Semeria,
based on discussions with Guillaume Melquiond, Bas Spitters and Hugo Herbelin,
code review by Hugo Herbelin).
- **Added:**
New lemmas on :g:`combine`, :g:`filter`, :g:`nodup`, :g:`nth`, and
:g:`nth_error` functions on lists
(`#10651 <https://github.com/coq/coq/pull/10651>`_, and
`#10731 <https://github.com/coq/coq/pull/10731>`_, by Oliver Nash).
- **Changed:**
The lemma :g:`filter_app` was moved to the :g:`List` module
(`#10651 <https://github.com/coq/coq/pull/10651>`_, by Oliver Nash).
- **Added:**
Standard equivalence between weak excluded-middle and the
classical instance of De Morgan's law, in module :g:`ClassicalFacts`
(`#10895 <https://github.com/coq/coq/pull/10895>`_, by Hugo Herbelin).
**Infrastructure and dependencies**
- **Changed:**
Coq now officially supports OCaml 4.08.
See `INSTALL` file for details
(`#10471 <https://github.com/coq/coq/pull/10471>`_,
by Emilio Jesús Gallego Arias).
Changes in 8.11.0
~~~~~~~~~~~~~~~~~
**Kernel**
- **Changed:** the native compilation (:tacn:`native_compute`) now
creates a directory to contain temporary files instead of putting
them in the root of the system temporary directory (`#11081
<https://github.com/coq/coq/pull/11081>`_, by Gaëtan Gilbert).
- **Fixed:** `#11360 <https://github.com/issues/11360>`_.
Broken section closing when a template polymorphic inductive type depends on
a section variable through its parameters (`#11361
<https://github.com/coq/coq/pull/11361>`_, by Gaëtan Gilbert).
- **Fixed:** The type of :g:`Set+1` would be computed to be itself,
leading to a proof of False (`#11422
<https://github.com/coq/coq/pull/11422>`_, by Gaëtan Gilbert).
**Specification language, type inference**
- **Changed:** Heuristics for universe minimization to :g:`Set`: only
minimize flexible universes (`#10657 <https://github.com/coq/coq/pull/10657>`_,
by Gaëtan Gilbert with help from Maxime Dénès and Matthieu Sozeau).
- **Fixed:**
A dependency was missing when looking for default clauses in the
algorithm for printing pattern matching clauses (`#11233
<https://github.com/coq/coq/pull/11233>`_, by Hugo Herbelin, fixing
`#11231 <https://github.com/coq/coq/pull/11231>`_, reported by Barry
Jay).
**Notations**
- **Fixed:**
:cmd:`Print Visibility` was failing in the presence of only-printing notations
(`#11276 <https://github.com/coq/coq/pull/11276>`_,
by Hugo Herbelin, fixing `#10750 <https://github.com/coq/coq/pull/10750>`_).
- **Fixed:**
Recursive notations with custom entries were incorrectly parsing `constr`
instead of custom grammars (`#11311 <https://github.com/coq/coq/pull/11311>`_
by Maxime Dénès, fixes `#9532 <https://github.com/coq/coq/pull/9532>`_,
`#9490 <https://github.com/coq/coq/pull/9490>`_).
**Tactics**
- **Changed:**
The tactics :tacn:`eapply`, :tacn:`refine` and variants no
longer allow shelved goals to be solved by typeclass resolution
(`#10762 <https://github.com/coq/coq/pull/10762>`_, by Matthieu Sozeau).
- **Fixed:** The optional string argument to :tacn:`time` is now
properly quoted under :cmd:`Print Ltac` (`#11203
<https://github.com/coq/coq/pull/11203>`_, fixes `#10971
<https://github.com/coq/coq/issues/10971>`_, by Jason Gross)
- **Fixed:**
Efficiency regression of :tacn:`lia` introduced in 8.10
by PR `#9725 <https://github.com/coq/coq/pull/9725>`_
(`#11263 <https://github.com/coq/coq/pull/11263>`_,
fixes `#11063 <https://github.com/coq/coq/issues/11063>`_,
and `#11242 <https://github.com/coq/coq/issues/11242>`_,
and `#11270 <https://github.com/coq/coq/issues/11270>`_, by Frédéric Besson).
- **Deprecated:**
The undocumented ``omega with`` tactic variant has been deprecated.
Using :tacn:`lia` is the recommended replacement, though the old semantics
of ``omega with *`` can be recovered with ``zify; omega``
(`#11337 <https://github.com/coq/coq/pull/11337>`_,
by Emilio Jesus Gallego Arias).
- **Fixed**
For compatibility reasons, in 8.11, :tacn:`zify` does not support :g:`Z.pow_pos` by default.
It can be enabled by explicitly loading the module :g:`ZifyPow`
(`#11430 <https://github.com/coq/coq/pull/11430>`_ by Frédéric Besson
fixes `#11191 <https://github.com/coq/coq/issues/11191>`_).
**Tactic language**
- **Fixed:**
Syntax of tactic `cofix ... with ...` was broken since Coq 8.10
(`#11241 <https://github.com/coq/coq/pull/11241>`_,
by Hugo Herbelin).
**Commands and options**
- **Deprecated:** The `-load-ml-source` and `-load-ml-object` command
line options have been deprecated; their use was very limited, you
can achieve the same by adding object files in the linking step or
by using a plugin (`#11428
<https://github.com/coq/coq/pull/11428>`_, by Emilio Jesus Gallego
Arias).
**Tools**
- **Fixed:**
``coqtop --version`` was broken when called in the middle of an installation process
(`#11255 <https://github.com/coq/coq/pull/11255>`_, by Hugo Herbelin, fixing
`#11254 <https://github.com/coq/coq/pull/11254>`_).
- **Deprecated:** The ``-quick`` command is renamed to ``-vio``, for
consistency with the new ``-vos`` and ``-vok`` flags. Usage of
``-quick`` is now deprecated (`#11280
<https://github.com/coq/coq/pull/11280>`_, by Arthur Charguéraud).
- **Fixed:**
``coq_makefile`` does not break when using the ``CAMLPKGS`` variable
together with an unpacked (``mllib``) plugin (`#11357
<https://github.com/coq/coq/pull/11357>`_, by Gaëtan Gilbert).
- **Fixed:**
``coqdoc`` with option ``-g`` (Gallina only) now correctly prints
commands with attributes (`#11394 <https://github.com/coq/coq/pull/11394>`_,
fixes `#11353 <https://github.com/coq/coq/issues/11353>`_,
by Karl Palmskog).
**CoqIDE**
- **Changed:** CoqIDE now uses the GtkSourceView native implementation
of the autocomplete mechanism (`#11400
<https://github.com/coq/coq/pull/11400>`_, by Pierre-Marie Pédrot).
**Standard library**
- **Removed:** Export of module :g:`RList` in :g:`Ranalysis` and
:g:`Ranalysis_reg`. Module :g:`RList` is still there but must be
imported explicitly where required (`#11396
<https://github.com/coq/coq/pull/11396>`_, by Michael Soegtrop).
**Infrastructure and dependencies**
- **Added:**
Build date can now be overridden by setting the `SOURCE_DATE_EPOCH`
environment variable
(`#11227 <https://github.com/coq/coq/pull/11227>`_,
by Bernhard M. Wiedemann).
Changes in 8.11.1
~~~~~~~~~~~~~~~~~
**Kernel**
- **Fixed:**
Allow more inductive types in `Unset Positivity Checking` mode
(`#11811 <https://github.com/coq/coq/pull/11811>`_,
by SimonBoulier).
**Notations**
- **Fixed:**
Bugs in dealing with precedences of notations in custom entries
(`#11530 <https://github.com/coq/coq/pull/11530>`_,
by Hugo Herbelin, fixing in particular
`#9517 <https://github.com/coq/coq/pull/9517>`_,
`#9519 <https://github.com/coq/coq/pull/9519>`_,
`#9521 <https://github.com/coq/coq/pull/9521>`_,
`#11331 <https://github.com/coq/coq/pull/11331>`_).
- **Added:**
In primitive floats, print a warning when parsing a decimal value
that is not exactly a binary64 floating-point number.
For instance, parsing 0.1 will print a warning whereas parsing 0.5 won't
(`#11859 <https://github.com/coq/coq/pull/11859>`_,
by Pierre Roux).
**CoqIDE**
- **Fixed:**
Compiling file paths containing spaces
(`#10008 <https://github.com/coq/coq/pull/10008>`_,
by snyke7, fixing `#11595 <https://github.com/coq/coq/pull/11595>`_).
**Infrastructure and dependencies**
- **Added:**
Bump official OCaml support and CI testing to 4.10.0
(`#11131 <https://github.com/coq/coq/pull/11131>`_,
`#11123 <https://github.com/coq/coq/pull/11123>`_,
`#11102 <https://github.com/coq/coq/pull/11102>`_,
by Emilio Jesus Gallego Arias, Jacques-Henri Jourdan,
Guillaume Melquiond, and Guillaume Munch-Maccagnoni).
**Miscellaneous**
- **Fixed:**
:cmd:`Extraction Implicit` on the constructor of a record was leading to an anomaly
(`#11329 <https://github.com/coq/coq/pull/11329>`_,
by Hugo Herbelin, fixes `#11114 <https://github.com/coq/coq/pull/11114>`_).
Changes in 8.11.2
~~~~~~~~~~~~~~~~~
**Kernel**
- **Fixed:**
Using :cmd:`Require` inside a section caused an anomaly when closing
the section. (`#11972 <https://github.com/coq/coq/pull/11972>`_, by
Gaëtan Gilbert, fixing `#11783
<https://github.com/coq/coq/issues/11783>`_, reported by Attila
Boros).
**Tactics**
- **Fixed:**
Anomaly with induction schemes whose conclusion is not normalized
(`#12116 <https://github.com/coq/coq/pull/12116>`_,
by Hugo Herbelin; fixes
`#12045 <https://github.com/coq/coq/pull/12045>`_)
- **Fixed:**
Loss of location of some tactic errors
(`#12223 <https://github.com/coq/coq/pull/12223>`_,
by Hugo Herbelin; fixes
`#12152 <https://github.com/coq/coq/pull/12152>`_ and
`#12255 <https://github.com/coq/coq/pull/12255>`_).
**Commands and options**
- **Changed:**
Ignore -native-compiler option when built without native compute
support
(`#12070 <https://github.com/coq/coq/pull/12070>`_,
by Pierre Roux).
**CoqIDE**
- **Changed:**
CoqIDE now uses native window frames by default on Windows.
The GTK window frames can be restored by setting the `GTK_CSD` environment variable to `1`
(`#12060 <https://github.com/coq/coq/pull/12060>`_,
fixes `#11080 <https://github.com/coq/coq/issues/11080>`_,
by Attila Gáspár).
- **Fixed:**
New patch presumably fixing the random Coq 8.11 segfault issue with CoqIDE completion
(`#12068 <https://github.com/coq/coq/pull/12068>`_,
by Hugo Herbelin, presumably fixing
`#11943 <https://github.com/coq/coq/pull/11943>`_).
- **Fixed:**
Highlighting style consistently applied to all three buffers of CoqIDE
(`#12106 <https://github.com/coq/coq/pull/12106>`_,
by Hugo Herbelin; fixes
`#11506 <https://github.com/coq/coq/pull/11506>`_).
Version 8.10
------------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.10 contains two major new features: support for a native
fixed-precision integer type and a new sort :math:`\SProp` of strict
propositions. It is also the result of refinements and stabilization of
previous features, deprecations or removals of deprecated features,
cleanups of the internals of the system and API, and many documentation improvements.
This release includes many user-visible changes, including deprecations that are
documented in the next subsection, and new features that are documented in the
reference manual. Here are the most important user-visible changes:
- Kernel:
- A notion of primitive object was added to the calculus. Its first
instance is primitive cyclic unsigned integers, axiomatized in
module :g:`UInt63`. See Section :ref:`primitive-integers`.
The `Coq.Numbers.Cyclic.Int31` library is deprecated
(`#6914 <https://github.com/coq/coq/pull/6914>`_, by Maxime Dénès,
Benjamin Grégoire and Vincent Laporte,
with help and reviews from many others).
- The :math:`\SProp` sort of definitionally proof-irrelevant propositions was
introduced. :math:`\SProp` allows to mark proof
terms as irrelevant for conversion, and is treated like :math:`\Prop`
during extraction. It is enabled using the `-allow-sprop`
command-line flag or the :flag:`Allow StrictProp` flag.
See Chapter :ref:`sprop`
(`#8817 <https://github.com/coq/coq/pull/8817>`_, by Gaëtan Gilbert).
- The unfolding heuristic in termination checking was made more
complete, allowing more constants to be unfolded to discover valid
recursive calls. Performance regression may occur in Fixpoint
declarations without an explicit ``{struct}`` annotation, since
guessing the decreasing argument can now be more expensive
(`#9602 <https://github.com/coq/coq/pull/9602>`_, by Enrico Tassi).
- Universes:
- Added Subgraph variant to :cmd:`Print Universes`.
Try for instance
:g:`Print Universes Subgraph(sigT2.u1 sigT_of_sigT2.u1 projT3_eq.u1).`
(`#8451 <https://github.com/coq/coq/pull/8451>`_, by Gaëtan Gilbert).
- Added private universes for opaque polymorphic constants, see the
documentation for the :flag:`Private Polymorphic Universes` flag,
and unset it to get the previous behavior
(`#8850 <https://github.com/coq/coq/pull/8850>`_, by Gaëtan Gilbert).
- Notations:
- New command :cmd:`String Notation` to register string syntax for custom
inductive types
(`#8965 <https://github.com/coq/coq/pull/8965>`_, by Jason Gross).
- Experimental: :ref:`Number Notations <number-notations>` now parse decimal
constants such as ``1.02e+01`` or ``10.2``. Parsers added for :g:`Q` and :g:`R`.
In the rare case when such numeral notations were used
in a development along with :g:`Q` or :g:`R`, they may have to be removed or
disambiguated through explicit scope annotations
(`#8764 <https://github.com/coq/coq/pull/8764>`_, by Pierre Roux).
- Ltac backtraces can be turned on using the :flag:`Ltac Backtrace`
flag, which is off by default
(`#9142 <https://github.com/coq/coq/pull/9142>`_,
fixes `#7769 <https://github.com/coq/coq/issues/7769>`_
and `#7385 <https://github.com/coq/coq/issues/7385>`_,
by Pierre-Marie Pédrot).
- The tactics :tacn:`lia`, :tacn:`nia`, :tacn:`lra`, :tacn:`nra` are now using a novel
Simplex-based proof engine. In case of regression, unset `Simplex`
to get the venerable Fourier-based engine
(`#8457 <https://github.com/coq/coq/pull/8457>`_, by Fréderic Besson).
- SSReflect:
- New intro patterns:
- temporary introduction: `=> +`
- block introduction: `=> [^ prefix ] [^~ suffix ]`
- fast introduction: `=> >`
- tactics as views: `=> /ltac:mytac`
- replace hypothesis: `=> {}H`
See Section :ref:`introduction_ssr`
(`#6705 <https://github.com/coq/coq/pull/6705>`_, by Enrico Tassi,
with help from Maxime Dénès,
ideas coming from various users).
- New tactic :tacn:`under` to rewrite under binders, given an
extensionality lemma:
- interactive mode: :n:`under @term`, associated terminator: :tacn:`over`
- one-liner mode: :n:`under @term do [@tactic | ...]`
It can take occurrence switches, contextual patterns, and intro patterns:
:g:`under {2}[in RHS]eq_big => [i|i ?]`
(`#9651 <https://github.com/coq/coq/pull/9651>`_,
by Erik Martin-Dorel and Enrico Tassi).
- :cmd:`Combined Scheme` now works when inductive schemes are generated in sort
:math:`\Type`. It used to be limited to sort `Prop`
(`#7634 <https://github.com/coq/coq/pull/7634>`_, by Théo Winterhalter).
- A new registration mechanism for reference from ML code to Coq
constructs has been added
(`#186 <https://github.com/coq/coq/pull/186>`_,
by Emilio Jesús Gallego Arias, Maxime Dénès and Vincent Laporte).
- CoqIDE:
- CoqIDE now depends on gtk+3 and lablgtk3 instead of gtk+2 and lablgtk2.
The INSTALL file available in the Coq sources has been updated to list
the new dependencies
(`#9279 <https://github.com/coq/coq/pull/9279>`_,
by Hugo Herbelin, with help from Jacques Garrigue,
Emilio Jesús Gallego Arias, Michael Sogetrop and Vincent Laporte).
- Smart input for Unicode characters. For example, typing
``\alpha`` then ``Shift+Space`` will insert the greek letter alpha.
A larger number of default bindings are provided, following the latex
naming convention. Bindings can be customized, either globally, or on a
per-project basis. See Section :ref:`coqide-unicode` for details
(`#8560 <https://github.com/coq/coq/pull/8560>`_, by Arthur Charguéraud).
- Infrastructure and dependencies:
- Coq 8.10 requires OCaml >= 4.05.0, bumped from 4.02.3 See the
`INSTALL` file for more information on dependencies
(`#7522 <https://github.com/coq/coq/pull/7522>`_, by Emilio Jesús Gallego Arías).
- Coq 8.10 doesn't need Camlp5 to build anymore. It now includes a
fork of the core parsing library that Coq uses, which is a small
subset of the whole Camlp5 distribution. In particular, this subset
doesn't depend on the OCaml AST, allowing easier compilation and
testing on experimental OCaml versions. Coq also ships a new parser
`coqpp` that plugin authors must switch to
(`#7902 <https://github.com/coq/coq/pull/7902>`_,
`#7979 <https://github.com/coq/coq/pull/7979>`_,
`#8161 <https://github.com/coq/coq/pull/8161>`_,
`#8667 <https://github.com/coq/coq/pull/8667>`_,
and `#8945 <https://github.com/coq/coq/pull/8945>`_,
by Pierre-Marie Pédrot and Emilio Jesús Gallego Arias).
The Coq developers would like to thank Daniel de Rauglaudre for many
years of continued support.
- Coq now supports building with Dune, in addition to the traditional
Makefile which is scheduled for deprecation
(`#6857 <https://github.com/coq/coq/pull/6857>`_,
by Emilio Jesús Gallego Arias, with help from Rudi Grinberg).
Experimental support for building Coq projects has been integrated
in Dune at the same time, providing an `improved experience
<https://coq.discourse.group/t/a-guide-to-building-your-coq-libraries-and-plugins-with-dune/>`_
for plugin developers. We thank the Dune team for their work
supporting Coq.
Version 8.10 also comes with a bunch of smaller-scale changes and
improvements regarding the different components of the system, including
many additions to the standard library (see the next subsection for details).
On the implementation side, the ``dev/doc/changes.md`` file documents
the numerous changes to the implementation and improvements of
interfaces. The file provides guidelines on porting a plugin to the new
version and a plugin development tutorial originally made by Yves Bertot
is now in `doc/plugin_tutorial`. The ``dev/doc/critical-bugs`` file
documents the known critical bugs of Coq and affected releases.
The efficiency of the whole system has seen improvements thanks to
contributions from Gaëtan Gilbert, Pierre-Marie Pédrot, and Maxime Dénès.
Maxime Dénès, Emilio Jesús Gallego Arias, Gaëtan Gilbert, Michael
Soegtrop, Théo Zimmermann worked on maintaining and improving the
continuous integration system and package building infrastructure.
Coq is now continuously tested against the OCaml trunk, in addition to the
oldest supported and latest OCaml releases.
Coq's documentation for the development branch is now deployed
continuously at https://coq.github.io/doc/master/api (documentation of
the ML API), https://coq.github.io/doc/master/refman (reference
manual), and https://coq.github.io/doc/master/stdlib (documentation of
the standard library). Similar links exist for the `v8.10` branch.
The opam repository for Coq packages has been maintained by Guillaume
Melquiond, Matthieu Sozeau, Enrico Tassi (who migrated it to opam 2)
with contributions from many users. A list of packages is available at
https://coq.inria.fr/opam/www/.
The 61 contributors to this version are Tanaka Akira, Benjamin
Barenblat, Yves Bertot, Frédéric Besson, Lasse Blaauwbroek, Martin
Bodin, Joachim Breitner, Tej Chajed, Frédéric Chapoton, Arthur
Charguéraud, Cyril Cohen, Lukasz Czajka, David A. Dalrymple, Christian
Doczkal, Maxime Dénès, Andres Erbsen, Jim Fehrle, Emilio Jesus Gallego
Arias, Gaëtan Gilbert, Matěj Grabovský, Simon Gregersen, Jason Gross,
Samuel Gruetter, Hugo Herbelin, Jasper Hugunin, Mirai Ikebuchi,
Chantal Keller, Matej Košík, Sam Pablo Kuper, Vincent Laporte, Olivier
Laurent, Larry Darryl Lee Jr, Nick Lewycky, Yao Li, Yishuai Li, Assia
Mahboubi, Simon Marechal, Erik Martin-Dorel, Thierry Martinez,
Guillaume Melquiond, Kayla Ngan, Karl Palmskog, Pierre-Marie Pédrot,
Clément Pit-Claudel, Pierre Roux, Kazuhiko Sakaguchi, Ryan Scott,
Vincent Semeria, Gan Shen, Michael Soegtrop, Matthieu Sozeau, Enrico
Tassi, Laurent Théry, Kamil Trzciński, whitequark, Théo Winterhalter,
Xia Li-yao, Beta Ziliani and Théo Zimmermann.
Many power users helped to improve the design of the new features via
the issue and pull request system, the Coq development mailing list,
the coq-club@inria.fr mailing list or the new Discourse forum. It would
be impossible to mention exhaustively the names of everybody who to some
extent influenced the development.
Version 8.10 is the fifth release of Coq developed on a time-based
development cycle. Its development spanned 6 months from the release of
Coq 8.9. Vincent Laporte is the release manager and maintainer of this
release. This release is the result of ~2500 commits and ~650 PRs merged,
closing 150+ issues.
| Santiago de Chile, April 2019,
| Matthieu Sozeau for the Coq development team
|
Other changes in 8.10+beta1
~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Command-line tools and options:
- The use of `coqtop` as a compiler has been deprecated, in favor of
`coqc`. Consequently option `-compile` will stop to be accepted in
the next release. `coqtop` is now reserved to interactive
use
(`#9095 <https://github.com/coq/coq/pull/9095>`_,
by Emilio Jesús Gallego Arias).
- New option ``-topfile filename``, which will set the current module name
(*à la* ``-top``) based on the filename passed, taking into account the
proper ``-R``/``-Q`` options. For example, given ``-R Foo foolib`` using
``-topfile foolib/bar.v`` will set the module name to ``Foo.Bar``.
CoqIDE now properly sets the module name for a given file based on
its path
(`#8991 <https://github.com/coq/coq/pull/8991>`_,
closes `#8989 <https://github.com/coq/coq/issues/8989>`_,
by Gaëtan Gilbert).
- Experimental: Coq flags and options can now be set on the
command-line, e.g. ``-set "Universe Polymorphism=true"``
(`#9876 <https://github.com/coq/coq/pull/9876>`_, by Gaëtan Gilbert).
- The `-native-compiler` flag of `coqc` and `coqtop` now takes an
argument which can have three values:
- `no` disables native_compute
- `yes` enables native_compute and precompiles `.v` files to
native code
- `ondemand` enables native_compute but compiles code only when
`native_compute` is called
The default value is `ondemand`. Note that this flag now has
priority over the configure flag of the same name.
A new `-bytecode-compiler` flag for `coqc` and `coqtop` controls
whether conversion can use the VM. The default value is `yes`.
(`#8870 <https://github.com/coq/coq/pull/8870>`_, by Maxime Dénès)
- The pretty timing diff scripts (flag `TIMING=1` to a
`coq_makefile`\-made `Makefile`, also
`tools/make-both-single-timing-files.py`,
`tools/make-both-time-files.py`, and `tools/make-one-time-file.py`)
now correctly support non-UTF-8 characters in the output of
`coqc` / `make` as well as printing to stdout, on both python2 and
python3
(`#9872 <https://github.com/coq/coq/pull/9872>`_,
closes `#9767 <https://github.com/coq/coq/issues/9767>`_
and `#9705 <https://github.com/coq/coq/issues/9705>`_,
by Jason Gross)
- coq_makefile's install target now errors if any file to install is missing
(`#9906 <https://github.com/coq/coq/pull/9906>`_, by Gaëtan Gilbert).
- Preferences from ``coqide.keys`` are no longer overridden by
modifiers preferences in ``coqiderc``
(`#10014 <https://github.com/coq/coq/pull/10014>`_, by Hugo Herbelin).
- Specification language, type inference:
- Fixing a missing check in interpreting instances of existential
variables that are bound to local definitions. Might exceptionally
induce an overhead if the cost of checking the conversion of the
corresponding definitions is additionally high
(`#8217 <https://github.com/coq/coq/pull/8217>`_,
closes `#8215 <https://github.com/coq/coq/issues/8215>`_,
by Hugo Herbelin).
- A few improvements in inference of the return clause of `match` that
can exceptionally introduce incompatibilities. This can be
solved by writing an explicit `return` clause, sometimes even simply
an explicit `return _` clause
(`#262 <https://github.com/coq/coq/pull/262>`_, by Hugo Herbelin).
- Using non-projection values with the projection syntax is not
allowed. For instance :g:`0.(S)` is not a valid way to write :g:`S 0`.
Projections from non-primitive (emulated) records are allowed with
warning "nonprimitive-projection-syntax"
(`#8829 <https://github.com/coq/coq/pull/8829>`_, by Gaëtan Gilbert).
- An option and attributes to control the automatic decision to declare
an inductive type as template polymorphic were added. Warning
"auto-template" (off by default) can trigger when an inductive is
automatically declared template polymorphic without the attribute.
Inductive types declared by Funind will never be template polymorphic.
(`#8488 <https://github.com/coq/coq/pull/8488>`_, by Gaëtan Gilbert)
- Notations:
- New command :cmd:`Declare Scope` to explicitly declare a scope name
before any use of it. Implicit declaration of a scope at the time of
:cmd:`Bind Scope`, :cmd:`Delimit Scope`, :cmd:`Undelimit Scope`,
or :cmd:`Notation` is deprecated
(`#7135 <https://github.com/coq/coq/pull/7135>`_, by Hugo Herbelin).
- Various bugs have been fixed (e.g. `#9214
<https://github.com/coq/coq/pull/9214>`_ on removing spurious
parentheses on abbreviations shortening a strict prefix of an
application, by Hugo Herbelin).
- :cmd:`Number Notation` now support inductive types in the input to
printing functions (e.g., numeral notations can be defined for terms
containing things like :g:`@cons nat O O`), and parsing functions now
fully normalize terms including parameters of constructors (so that,
e.g., a numeral notation whose parsing function outputs a proof of
:g:`Nat.gcd x y = 1` will no longer fail to parse due to containing the
constant :g:`Nat.gcd` in the parameter-argument of :g:`eq_refl`)
(`#9874 <https://github.com/coq/coq/pull/9874>`_,
closes `#9840 <https://github.com/coq/coq/issues/9840>`_
and `#9844 <https://github.com/coq/coq/issues/9844>`_,
by Jason Gross).
- Deprecated compatibility notations have actually been
removed. Uses of these notations are generally easy to fix thanks
to the hint contained in the deprecation warning emitted by Coq
8.8 and 8.9. For projects that require more than a handful of
such fixes, there is `a script
<https://gist.github.com/JasonGross/9770653967de3679d131c59d42de6d17#file-replace-notations-py>`_
that will do it automatically, using the output of ``coqc``
(`#8638 <https://github.com/coq/coq/pull/8638>`_, by Jason Gross).
- Allow inspecting custom grammar entries by :cmd:`Print Custom Grammar`
(`#10061 <https://github.com/coq/coq/pull/10061>`_,
fixes `#9681 <https://github.com/coq/coq/pull/9681>`_,
by Jasper Hugunin, review by Pierre-Marie Pédrot and Hugo Herbelin).
- The `quote plugin
<https://coq.github.io/doc/v8.9/refman/proof-engine/detailed-tactic-examples.html#quote>`_
was removed. If some users are interested in maintaining this plugin
externally, the Coq development team can provide assistance for
extracting the plugin and setting up a new repository
(`#7894 <https://github.com/coq/coq/pull/7894>`_, by Maxime Dénès).
- Ltac:
- Tactic names are no longer allowed to clash, even if they are not defined in
the same section. For example, the following is no longer accepted:
:g:`Ltac foo := idtac. Section S. Ltac foo := fail. End S.`
(`#8555 <https://github.com/coq/coq/pull/8555>`_, by Maxime Dénès).
- Names of existential variables occurring in Ltac functions
(e.g. :g:`?[n]` or :g:`?n` in terms - not in patterns) are now interpreted
the same way as other variable names occurring in Ltac functions
(`#7309 <https://github.com/coq/coq/pull/7309>`_, by Hugo Herbelin).
- Tactics:
- Removed the deprecated `romega` tactic
(`#8419 <https://github.com/coq/coq/pull/8419>`_,
by Maxime Dénès and Vincent Laporte).
- Hint declaration and removal should now specify a database (e.g. `Hint Resolve
foo : database`). When the database name is omitted, the hint is added to the
`core` database (as previously), but a deprecation warning is emitted
(`#8987 <https://github.com/coq/coq/pull/8987>`_, by Maxime Dénès).
- There are now tactics in `PreOmega.v` called
`Z.div_mod_to_equations`, `Z.quot_rem_to_equations`, and
`Z.to_euclidean_division_equations` (which combines the `div_mod`
and `quot_rem` variants) which allow :tacn:`lia`, :tacn:`nia`, etc to
support `Z.div` and `Z.modulo` (`Z.quot` and `Z.rem`, respectively),
by posing the specifying equation for `Z.div` and `Z.modulo` before
replacing them with atoms
(`#8062 <https://github.com/coq/coq/pull/8062>`_, by Jason Gross).
- The syntax of the :tacn:`autoapply` tactic was fixed to conform with preexisting
documentation: it now takes a `with` clause instead of a `using` clause
(`#9524 <https://github.com/coq/coq/pull/9524>`_,
closes `#7632 <https://github.com/coq/coq/issues/7632>`_,
by Théo Zimmermann).
- Modes are now taken into account by :tacn:`typeclasses eauto` for
local hypotheses
(`#9996 <https://github.com/coq/coq/pull/9996>`_,
fixes `#5752 <https://github.com/coq/coq/issues/5752>`_,
by Maxime Dénès, review by Pierre-Marie Pédrot).
- New variant :tacn:`change_no_check` of :tacn:`change`, usable as a
documented replacement of `convert_concl_no_check`
(`#10012 <https://github.com/coq/coq/pull/10012>`_,
`#10017 <https://github.com/coq/coq/pull/10017>`_,
`#10053 <https://github.com/coq/coq/pull/10053>`_, and
`#10059 <https://github.com/coq/coq/pull/10059>`_,
by Hugo Herbelin and Paolo G. Giarrusso).
- The simplified value returned by :tacn:`field_simplify` is not
always a fraction anymore. When the denominator is :g:`1`, it
returns :g:`x` while previously it was returning :g:`x/1`. This
change could break codes that were post-processing application of
:tacn:`field_simplify` to get rid of these :g:`x/1`
(`#9854 <https://github.com/coq/coq/pull/9854>`_,
by Laurent Théry,
with help from Michael Soegtrop, Maxime Dénès, and Vincent Laporte).
- SSReflect:
- Clear discipline made consistent across the entire proof language.
Whenever a clear switch `{x..}` comes immediately before an existing proof
context entry (used as a view, as a rewrite rule or as name for a new
context entry) then such entry is cleared too.
E.g. The following sentences are elaborated as follows (when H is an existing
proof context entry):
- `=> {x..} H` -> `=> {x..H} H`
- `=> {x..} /H` -> `=> /v {x..H}`
- `rewrite {x..} H` -> `rewrite E {x..H}`
(`#9341 <https://github.com/coq/coq/pull/9341>`_, by Enrico Tassi).
- `inE` now expands `y \in r x` when `r` is a `simpl_rel`.
New `{pred T}` notation for a `pred T` alias in the `pred_sort` coercion
class, simplified `predType` interface: `pred_class` and `mkPredType`
deprecated, `{pred T}` and `PredType` should be used instead.
`if c return t then ...` now expects `c` to be a variable bound in `t`.
New `nonPropType` interface matching types that do _not_ have sort `Prop`.
New `relpre R f` definition for the preimage of a relation R under f
(`#9995 <https://github.com/coq/coq/pull/9995>`_, by Georges Gonthier).
- Commands:
- Binders for an :cmd:`Instance` now act more like binders for a :cmd:`Theorem`.
Names may not be repeated, and may not overlap with section variable names
(`#8820 <https://github.com/coq/coq/pull/8820>`_,
closes `#8791 <https://github.com/coq/coq/issues/8791>`_,
by Jasper Hugunin).
- Removed the deprecated `Implicit Tactic` family of commands
(`#8779 <https://github.com/coq/coq/pull/8779>`_, by Pierre-Marie Pédrot).
- The `Automatic Introduction` option has been removed and is now the
default
(`#9001 <https://github.com/coq/coq/pull/9001>`_,
by Emilio Jesús Gallego Arias).
- `Arguments` now accepts names for arguments provided with `extra_scopes`
(`#9117 <https://github.com/coq/coq/pull/9117>`_, by Maxime Dénès).
- The naming scheme for anonymous binders in a `Theorem` has changed to
avoid conflicts with explicitly named binders
(`#9160 <https://github.com/coq/coq/pull/9160>`_,
closes `#8819 <https://github.com/coq/coq/issues/8819>`_,
by Jasper Hugunin).
- Computation of implicit arguments now properly handles local definitions in the
binders for an `Instance`, and can be mixed with implicit binders `{x : T}`
(`#9307 <https://github.com/coq/coq/pull/9307>`_,
closes `#9300 <https://github.com/coq/coq/issues/9300>`_,
by Jasper Hugunin).
- :cmd:`Declare Instance` now requires an instance name.
The flag `Refine Instance Mode` has been turned off by default, meaning that
:cmd:`Instance` no longer opens a proof when a body is provided. The flag
has been deprecated and will be removed in the next version.
(`#9270 <https://github.com/coq/coq/pull/9270>`_,
and `#9825 <https://github.com/coq/coq/pull/9825>`_,
by Maxime Dénès)
- Command :cmd:`Instance`, when no body is provided, now always opens
a proof. This is a breaking change, as instance of :n:`Instance
@ident__1 : @ident__2.` where :n:`@ident__2` is a trivial class will
have to be changed into :n:`Instance @ident__1 : @ident__2 := %{%}.`
or :n:`Instance @ident__1 : @ident__2. Proof. Qed.`
(`#9274 <https://github.com/coq/coq/pull/9274>`_, by Maxime Dénès).
- The flag :flag:`Program Mode` now means that the `Program` attribute is enabled
for all commands that support it. In particular, it does not have any effect
on tactics anymore. May cause some incompatibilities
(`#9410 <https://github.com/coq/coq/pull/9410>`_, by Maxime Dénès).
- The algorithm computing implicit arguments now behaves uniformly for primitive
projection and application nodes
(`#9509 <https://github.com/coq/coq/pull/9509>`_,
closes `#9508 <https://github.com/coq/coq/issues/9508>`_,
by Pierre-Marie Pédrot).
- :cmd:`Hypotheses` and :cmd:`Variables` can now take implicit
binders inside sections
(`#9364 <https://github.com/coq/coq/pull/9364>`_,
closes `#9363 <https://github.com/coq/coq/issues/9363>`_,
by Jasper Hugunin).
- Removed deprecated option `Automatic Coercions Import`
(`#8094 <https://github.com/coq/coq/pull/8094>`_, by Maxime Dénès).
- The ``Show Script`` command has been deprecated
(`#9829 <https://github.com/coq/coq/pull/9829>`_, by Vincent Laporte).
- :cmd:`Coercion` does not warn ambiguous paths which are obviously
convertible with existing ones. The ambiguous paths messages have been
turned to warnings, thus now they could appear in the output of ``coqc``.
The convertibility checking procedure for coercion paths is complete for
paths consisting of coercions satisfying the uniform inheritance condition,
but some coercion paths could be reported as ambiguous even if they are
convertible with existing ones when they have coercions that don't satisfy
the uniform inheritance condition
(`#9743 <https://github.com/coq/coq/pull/9743>`_,
closes `#3219 <https://github.com/coq/coq/issues/3219>`_,
by Kazuhiko Sakaguchi).
- A new flag :flag:`Fast Name Printing` has been introduced. It changes the
algorithm used for allocating bound variable names for a faster but less
clever one
(`#9078 <https://github.com/coq/coq/pull/9078>`_, by Pierre-Marie Pédrot).
- Option ``Typeclasses Axioms Are Instances`` (compatibility option
introduced in the previous version) is deprecated. Use :cmd:`Declare
Instance` for axioms which should be instances
(`#8920 <https://github.com/coq/coq/pull/8920>`_, by Gaëtan Gilbert).
- Removed option `Printing Primitive Projection Compatibility`
(`#9306 <https://github.com/coq/coq/pull/9306>`_, by Gaëtan Gilbert).
- Standard Library:
- Added `Bvector.BVeq` that decides whether two `Bvector`\s are equal.
Added notations for `BVxor`, `BVand`, `BVor`, `BVeq` and `BVneg`
(`#8171 <https://github.com/coq/coq/pull/8171>`_, by Yishuai Li).
- Added `ByteVector` type that can convert to and from `string`
(`#8365 <https://github.com/coq/coq/pull/8365>`_, by Yishuai Li).
- Added lemmas about monotonicity of `N.double` and `N.succ_double`, and about
the upper bound of number represented by a vector.
Allowed implicit vector length argument in `Ndigits.Bv2N`
(`#8815 <https://github.com/coq/coq/pull/8815>`_, by Yishuai Li).
- The prelude used to be automatically Exported and is now only
Imported. This should be relevant only when importing files which
don't use `-noinit` into files which do
(`#9013 <https://github.com/coq/coq/pull/9013>`_, by Gaëtan Gilbert).
- Added `Coq.Structures.OrderedTypeEx.String_as_OT` to make strings an
ordered type, using lexical order
(`#7221 <https://github.com/coq/coq/pull/7221>`_, by Li Yao).
- Added lemmas about `Z.testbit`, `Z.ones`, and `Z.modulo`
(`#9425 <https://github.com/coq/coq/pull/9425>`_, by Andres Erbsen).
- Moved the `auto` hints of the `FSet` library into a new
`fset` database
(`#9725 <https://github.com/coq/coq/pull/9725>`_, by Frédéric Besson).
- Added :g:`Coq.Structures.EqualitiesFacts.PairUsualDecidableTypeFull`
(`#9984 <https://github.com/coq/coq/pull/9984>`_,
by Jean-Christophe Léchenet and Oliver Nash).
- Some error messages that show problems with a pair of non-matching
values will now highlight the differences
(`#8669 <https://github.com/coq/coq/pull/8669>`_, by Jim Fehrle).
- Changelog has been moved from a specific file `CHANGES.md` to the
reference manual; former Credits chapter of the reference manual has
been split in two parts: a History chapter which was enriched with
additional historical information about Coq versions 1 to 5, and a
Changes chapter which was enriched with the content formerly in
`CHANGES.md` and `COMPATIBILITY`
(`#9133 <https://github.com/coq/coq/pull/9133>`_,
`#9668 <https://github.com/coq/coq/pull/9668>`_,
`#9939 <https://github.com/coq/coq/pull/9939>`_,
`#9964 <https://github.com/coq/coq/pull/9964>`_,
and `#10085 <https://github.com/coq/coq/pull/10085>`_,
by Théo Zimmermann,
with help and ideas from Emilio Jesús Gallego Arias, Gaëtan
Gilbert, Clément Pit-Claudel, Matthieu Sozeau, and Enrico Tassi).
Changes in 8.10+beta2
~~~~~~~~~~~~~~~~~~~~~
Many bug fixes and documentation improvements, in particular:
**Tactics**
- Make the :tacn:`discriminate` tactic work together with
:flag:`Universe Polymorphism` and equality in :g:`Type`. This,
in particular, makes :tacn:`discriminate` compatible with the HoTT
library https://github.com/HoTT/HoTT
(`#10205 <https://github.com/coq/coq/pull/10205>`_,
by Andreas Lynge, review by Pierre-Marie Pédrot and Matthieu Sozeau).
**SSReflect**
- Make the ``case E: t`` tactic work together with
:flag:`Universe Polymorphism` and equality in :g:`Type`.
This makes :tacn:`case <case (ssreflect)>` compatible with the HoTT
library https://github.com/HoTT/HoTT
(`#10302 <https://github.com/coq/coq/pull/10302>`_,
fixes `#10301 <https://github.com/coq/coq/issues/10301>`_,
by Andreas Lynge, review by Enrico Tassi)
- Make the ``rewrite /t`` tactic work together with
:flag:`Universe Polymorphism`.
This makes :tacn:`rewrite <rewrite (ssreflect)>` compatible with the HoTT
library https://github.com/HoTT/HoTT
(`#10305 <https://github.com/coq/coq/pull/10305>`_,
fixes `#9336 <https://github.com/coq/coq/issues/9336>`_,
by Andreas Lynge, review by Enrico Tassi)
**CoqIDE**
- Fix CoqIDE instability on Windows after the update to gtk3
(`#10360 <https://github.com/coq/coq/pull/10360>`_, by Michael Soegtrop,
closes `#9885 <https://github.com/coq/coq/issues/9885>`_).
**Miscellaneous**
- Proof General can now display Coq-generated diffs between proof steps
in color
(`#10019 <https://github.com/coq/coq/pull/10019>`_ and
(in Proof General) `#421 <https://github.com/ProofGeneral/PG/pull/421>`_,
by Jim Fehrle).
Changes in 8.10+beta3
~~~~~~~~~~~~~~~~~~~~~
**Kernel**
- Fix soundness issue with template polymorphism (`#9294
<https://github.com/coq/coq/issues/9294>`_).
Declarations of template-polymorphic inductive types ignored the
provenance of the universes they were abstracting on and did not
detect if they should be greater or equal to :math:`\Set` in
general. Previous universes and universes introduced by the inductive
definition could have constraints that prevented their instantiation
with e.g. :math:`\Prop`, resulting in unsound instantiations later. The
implemented fix only allows abstraction over universes introduced by
the inductive declaration, and properly records all their constraints
by making them by default only :math:`>= \Prop`. It is also checked
that a template polymorphic inductive actually is polymorphic on at
least one universe.
This prevents inductive declarations in sections to be universe
polymorphic over section parameters. For a backward compatible fix,
simply hoist the inductive definition out of the section.
An alternative is to declare the inductive as universe-polymorphic and
cumulative in a universe-polymorphic section: all universes and
constraints will be properly gathered in this case.
See :ref:`Template-polymorphism` for a detailed exposition of the
rules governing template-polymorphic types.
To help users incrementally fix this issue, a command line option
`-no-template-check` and a global flag ``Template Check`` are
available to selectively disable the new check. Use at your own risk.
(`#9918 <https://github.com/coq/coq/pull/9918>`_, by Matthieu Sozeau
and Maxime Dénès).
**User messages**
- Improve the ambiguous paths warning to indicate which path is ambiguous with
new one
(`#10336 <https://github.com/coq/coq/pull/10336>`_,
closes `#3219 <https://github.com/coq/coq/issues/3219>`_,
by Kazuhiko Sakaguchi).
**Extraction**
- Fix extraction to OCaml of primitive machine integers;
see :ref:`primitive-integers`
(`#10430 <https://github.com/coq/coq/pull/10430>`_,
fixes `#10361 <https://github.com/coq/coq/issues/10361>`_,
by Vincent Laporte).
- Fix a printing bug of OCaml extraction on dependent record projections, which
produced improper `assert false`. This change makes the OCaml extractor
internally inline record projections by default; thus the monolithic OCaml
extraction (:cmd:`Extraction` and :cmd:`Recursive Extraction`) does not
produce record projection constants anymore except for record projections
explicitly instructed to extract, and records declared in opaque modules
(`#10577 <https://github.com/coq/coq/pull/10577>`_,
fixes `#7348 <https://github.com/coq/coq/issues/7348>`_,
by Kazuhiko Sakaguchi).
**Standard library**
- Added ``splitat`` function and lemmas about ``splitat`` and ``uncons``
(`#9379 <https://github.com/coq/coq/pull/9379>`_,
by Yishuai Li, with help of Konstantinos Kallas,
follow-up of `#8365 <https://github.com/coq/coq/pull/8365>`_,
which added ``uncons`` in 8.10+beta1).
Changes in 8.10.0
~~~~~~~~~~~~~~~~~
- Micromega tactics (:tacn:`lia`, :tacn:`nia`, etc) are no longer confused by
primitive projections (`#10806 <https://github.com/coq/coq/pull/10806>`_,
fixes `#9512 <https://github.com/coq/coq/issues/9512>`_
by Vincent Laporte).
Changes in 8.10.1
~~~~~~~~~~~~~~~~~
A few bug fixes and documentation improvements, in particular:
**Kernel**
- Fix proof of False when using |SProp| (incorrect De Bruijn handling
when inferring the relevance mark of a function) (`#10904
<https://github.com/coq/coq/pull/10904>`_, by Pierre-Marie Pédrot).
**Tactics**
- Fix an anomaly when unsolved evar in :cmd:`Add Ring`
(`#10891 <https://github.com/coq/coq/pull/10891>`_,
fixes `#9851 <https://github.com/coq/coq/issues/9851>`_,
by Gaëtan Gilbert).
**Tactic language**
- Fix Ltac regression in binding free names in uconstr
(`#10899 <https://github.com/coq/coq/pull/10899>`_,
fixes `#10894 <https://github.com/coq/coq/issues/10894>`_,
by Hugo Herbelin).
**CoqIDE**
- Fix handling of unicode input before space
(`#10852 <https://github.com/coq/coq/pull/10852>`_,
fixes `#10842 <https://github.com/coq/coq/issues/10842>`_,
by Arthur Charguéraud).
**Extraction**
- Fix custom extraction of inductives to JSON
(`#10897 <https://github.com/coq/coq/pull/10897>`_,
fixes `#4741 <https://github.com/coq/coq/issues/4741>`_,
by Helge Bahmann).
Changes in 8.10.2
~~~~~~~~~~~~~~~~~
**Kernel**
- Fixed a critical bug of template polymorphism and nonlinear universes
(`#11128 <https://github.com/coq/coq/pull/11128>`_,
fixes `#11039 <https://github.com/coq/coq/issues/11039>`_,
by Gaëtan Gilbert).
- Fixed an anomaly “Uncaught exception Constr.DestKO” on :g:`Inductive`
(`#11052 <https://github.com/coq/coq/pull/11052>`_,
fixes `#11048 <https://github.com/coq/coq/issues/11048>`_,
by Gaëtan Gilbert).
- Fixed an anomaly “not enough abstractions in fix body”
(`#11014 <https://github.com/coq/coq/pull/11014>`_,
fixes `#8459 <https://github.com/coq/coq/issues/8459>`_,
by Gaëtan Gilbert).
**Notations**
- Fixed an 8.10 regression related to the printing of coercions associated with notations
(`#11090 <https://github.com/coq/coq/pull/11090>`_,
fixes `#11033 <https://github.com/coq/coq/issues/11033>`_, by Hugo Herbelin).
**CoqIDE**
- Fixed uneven dimensions of CoqIDE panels when window has been resized
(`#11070 <https://github.com/coq/coq/pull/11070>`_,
fixes 8.10-regression `#10956 <https://github.com/coq/coq/issues/10956>`_,
by Guillaume Melquiond).
- Do not include final stops in queries
(`#11069 <https://github.com/coq/coq/pull/11069>`_,
fixes 8.10-regression `#11058 <https://github.com/coq/coq/issues/11058>`_,
by Guillaume Melquiond).
**Infrastructure and dependencies**
- Enable building of executables when they are running
(`#11000 <https://github.com/coq/coq/pull/11000>`_,
fixes 8.9-regression `#10728 <https://github.com/coq/coq/issues/10728>`_,
by Gaëtan Gilbert).
Version 8.9
-----------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.9 contains the result of refinements and stabilization
of features and deprecations or removals of deprecated features,
cleanups of the internals of the system and API along with a few new
features. This release includes many user-visible changes, including
deprecations that are documented in the next subsection and new features that
are documented in the reference manual. Here are the most important
changes:
- Kernel: mutually recursive records are now supported, by Pierre-Marie
Pédrot.
- Notations:
- Support for autonomous grammars of terms called “custom entries”, by
Hugo Herbelin (see Section :ref:`custom-entries` of the reference
manual).
- Deprecated notations of the standard library will be removed in the
next version of Coq, see the next subsection for a script to
ease porting, by Jason Gross and Jean-Christophe Léchenet.
- Added the :cmd:`Number Notation` command for registering decimal
numeral notations for custom types, by Daniel de Rauglaudre, Pierre
Letouzey and Jason Gross.
- Tactics: Introduction tactics :tacn:`intro`/:tacn:`intros` on a goal that is an
existential variable now force a refinement of the goal into a
dependent product rather than failing, by Hugo Herbelin.
- Decision procedures: deprecation of tactic ``romega`` in favor of
:tacn:`lia` and removal of ``fourier``, replaced by :tacn:`lra` which
subsumes it, by Frédéric Besson, Maxime Dénès, Vincent Laporte and
Laurent Théry.
- Proof language: focusing bracket ``{`` now supports named
:ref:`goals <curly-braces>`, e.g. ``[x]:{`` will focus
on a goal (existential variable) named ``x``, by Théo Zimmermann.
- SSReflect: the implementation of delayed clear was simplified by
Enrico Tassi: the variables are always renamed using inaccessible
names when the clear switch is processed and finally cleared at the
end of the intro pattern. In addition to that, the use-and-discard flag
``{}`` typical of rewrite rules can now be also applied to views,
e.g. ``=> {}/v`` applies ``v`` and then clears ``v``. See Section
:ref:`introduction_ssr`.
- Vernacular:
- Experimental support for :term:`attributes <attribute>` on
commands, by Vincent Laporte, as in ``#[local] Lemma foo : bar.``
Tactics and tactic notations now support the ``deprecated``
attribute.
- Removed deprecated commands ``Arguments Scope`` and ``Implicit
Arguments`` in favor of :cmd:`Arguments`, with the help of Jasper Hugunin.
- New flag :flag:`Uniform Inductive Parameters` by Jasper Hugunin to
avoid repeating uniform parameters in constructor declarations.
- New commands :cmd:`Hint Variables` and :cmd:`Hint Constants`, by
Matthieu Sozeau, for controlling the opacity status of variables and
constants in hint databases. It is recommended to always use these
commands after creating a hint database with :cmd:`Create HintDb`.
- Multiple sections with the same name are now allowed, by Jasper
Hugunin.
- Library: additions and changes in the ``VectorDef``, ``Ascii``, and
``String`` libraries. Syntax notations are now available only when using
``Import`` of libraries and not merely ``Require``, by various
contributors (source of incompatibility, see the next subsection for details).
- Toplevels: ``coqtop`` and ``coqide`` can now display diffs between proof
steps in color, using the :opt:`Diffs` option, by Jim Fehrle.
- Documentation: we integrated a large number of fixes to the new Sphinx
documentation by various contributors, coordinated by Clément
Pit-Claudel and Théo Zimmermann.
- Tools: removed the ``gallina`` utility and the homebrewed ``Emacs`` mode.
- Packaging: as in Coq 8.8.2, the Windows installer now includes many
more external packages that can be individually selected for
installation, by Michael Soegtrop.
Version 8.9 also comes with a bunch of smaller-scale changes and
improvements regarding the different components of the system. Most
important ones are documented in the next subsection file.
On the implementation side, the ``dev/doc/changes.md`` file documents
the numerous changes to the implementation and improvements of
interfaces. The file provides guidelines on porting a plugin to the new
version and a plugin development tutorial kept in sync with Coq was
introduced by Yves Bertot http://github.com/ybertot/plugin_tutorials.
The new ``dev/doc/critical-bugs`` file documents the known critical bugs
of Coq and affected releases.
The efficiency of the whole system has seen improvements thanks to
contributions from Gaëtan Gilbert, Pierre-Marie Pédrot, and Maxime Dénès.
Maxime Dénès, Emilio Jesús Gallego Arias, Gaëtan Gilbert, Michael
Soegtrop, Théo Zimmermann worked on maintaining and improving the
continuous integration system.
The opam repository for Coq packages has been maintained by Guillaume
Melquiond, Matthieu Sozeau, Enrico Tassi with contributions from many
users. A list of packages is available at https://coq.inria.fr/opam/www/.
The 54 contributors for this version are Léo Andrès, Rin Arakaki,
Benjamin Barenblat, Langston Barrett, Siddharth Bhat, Martin Bodin,
Simon Boulier, Timothy Bourke, Joachim Breitner, Tej Chajed, Arthur
Charguéraud, Pierre Courtieu, Maxime Dénès, Andres Erbsen, Jim Fehrle,
Julien Forest, Emilio Jesus Gallego Arias, Gaëtan Gilbert, Matěj
Grabovský, Jason Gross, Samuel Gruetter, Armaël Guéneau, Hugo Herbelin,
Jasper Hugunin, Ralf Jung, Sam Pablo Kuper, Ambroise Lafont, Leonidas
Lampropoulos, Vincent Laporte, Peter LeFanu Lumsdaine, Pierre Letouzey,
Jean-Christophe Léchenet, Nick Lewycky, Yishuai Li, Sven M. Hallberg,
Assia Mahboubi, Cyprien Mangin, Guillaume Melquiond, Perry E. Metzger,
Clément Pit-Claudel, Pierre-Marie Pédrot, Daniel R. Grayson, Kazuhiko
Sakaguchi, Michael Soegtrop, Matthieu Sozeau, Paul Steckler, Enrico
Tassi, Laurent Théry, Anton Trunov, whitequark, Théo Winterhalter,
Zeimer, Beta Ziliani, Théo Zimmermann.
Many power users helped to improve the design of the new features via
the issue and pull request system, the Coq development mailing list or
the coq-club@inria.fr mailing list. It would be impossible to mention
exhaustively the names of everybody who to some extent influenced the
development.
Version 8.9 is the fourth release of Coq developed on a time-based
development cycle. Its development spanned 7 months from the release of
Coq 8.8. The development moved to a decentralized merging process
during this cycle. Guillaume Melquiond was in charge of the release
process and is the maintainer of this release. This release is the
result of ~2,000 commits and ~500 PRs merged, closing 75+ issues.
The Coq development team welcomed Vincent Laporte, a new Coq
engineer working with Maxime Dénès in the Coq consortium.
| Paris, November 2018,
| Matthieu Sozeau for the Coq development team
|
Details of changes in 8.9+beta1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kernel
- Mutually defined records are now supported.
Notations
- New support for autonomous grammars of terms, called "custom
entries" (see chapter "Syntax extensions" of the reference manual).
- Deprecated compatibility notations will actually be removed in the
next version of Coq. Uses of these notations are generally easy to
fix thanks to the hint contained in the deprecation warnings. For
projects that require more than a handful of such fixes, there is `a
script
<https://gist.github.com/JasonGross/9770653967de3679d131c59d42de6d17#file-replace-notations-py>`_
that will do it automatically, using the output of ``coqc``. The script
contains documentation on its usage in a comment at the top.
Tactics
- Added toplevel goal selector `!` which expects a single focused goal.
Use with `Set Default Goal Selector` to force focusing before tactics
are called.
- The undocumented "nameless" forms `fix N`, `cofix` that were
deprecated in 8.8 have been removed from Ltac's syntax; please use
`fix ident N/cofix ident` to explicitly name the (co)fixpoint
hypothesis to be introduced.
- Introduction tactics `intro`/`intros` on a goal that is an
existential variable now force a refinement of the goal into a
dependent product rather than failing.
- Support for `fix`/`cofix` added in Ltac `match` and `lazymatch`.
- Ltac backtraces now include trace information about tactics
called by OCaml-defined tactics.
- Option `Ltac Debug` now applies also to terms built using Ltac functions.
- Deprecated the `Implicit Tactic` family of commands.
- The default program obligation tactic uses a bounded proof search
instead of an unbounded and potentially non-terminating one now
(source of incompatibility).
- The `simple apply` tactic now respects the `Opaque` flag when called from
Ltac (`auto` still does not respect it).
- Tactic `constr_eq` now adds universe constraints needed for the
identity to the context (it used to ignore them). New tactic
`constr_eq_strict` checks that the required constraints already hold
without adding new ones. Preexisting tactic `constr_eq_nounivs` can
still be used if you really want to ignore universe constraints.
- Tactics and tactic notations now understand the `deprecated` attribute.
- The `fourier` tactic has been removed. Please now use `lra` instead. You
may need to add `Require Import Lra` to your developments. For compatibility,
we now define `fourier` as a deprecated alias of `lra`.
- The `romega` tactics have been deprecated; please use `lia` instead.
Focusing
- Focusing bracket `{` now supports named goal selectors,
e.g. `[x]: {` will focus on a goal (existential variable) named `x`.
As usual, unfocus with `}` once the subgoal is fully solved.
Specification language
- A fix to unification (which was sensitive to the ascii name of
variables) may occasionally change type inference in incompatible
ways, especially regarding the inference of the return clause of `match`.
Standard Library
- Added `Ascii.eqb` and `String.eqb` and the `=?` notation for them,
and proved some lemmas about them. Note that this might cause
incompatibilities if you have, e.g., `string_scope` and `Z_scope` both
open with `string_scope` on top, and expect `=?` to refer to `Z.eqb`.
Solution: wrap `_ =? _` in `(_ =? _)%Z` (or whichever scope you
want).
- Added `Ndigits.N2Bv_sized`, and proved some lemmas about it.
Deprecated `Ndigits.N2Bv_gen`.
- The scopes `int_scope` and `uint_scope` have been renamed to
`dec_int_scope` and `dec_uint_scope`, to clash less with ssreflect
and other packages. They are still delimited by `%int` and `%uint`.
- Syntax notations for `string`, `ascii`, `Z`, `positive`, `N`, `R`,
and `int31` are no longer available merely by :cmd:`Require`\ing the files
that define the inductives. You must :cmd:`Import` `Coq.Strings.String.StringSyntax`
(after `Require` `Coq.Strings.String`), `Coq.Strings.Ascii.AsciiSyntax` (after
`Require` `Coq.Strings.Ascii`), `Coq.ZArith.BinIntDef`, `Coq.PArith.BinPosDef`,
`Coq.NArith.BinNatDef`, `Coq.Reals.Rdefinitions`, and
`Coq.Numbers.Cyclic.Int31.Int31`, respectively, to be able to use
these notations. Note that passing `-compat 8.8` or issuing
`Require Import Coq.Compat.Coq88` will make these notations
available. Users wishing to port their developments automatically
may download `fix.py` from
https://gist.github.com/JasonGross/5d4558edf8f5c2c548a3d96c17820169
and run a command like `while true; do make -Okj 2>&1 |
/path/to/fix.py; done` and get a cup of coffee. (This command must
be manually interrupted once the build finishes all the way though.
Note also that this method is not fail-proof; you may have to adjust
some scopes if you were relying on string notations not being
available even when `string_scope` was open.)
- Numeral syntax for `nat` is no longer available without loading the
entire prelude (`Require Import Coq.Init.Prelude`). This only
impacts users running Coq without the init library (`-nois` or
`-noinit`) and also issuing `Require Import Coq.Init.Datatypes`.
Tools
- Coq_makefile lets one override or extend the following variables from
the command line: `COQFLAGS`, `COQCHKFLAGS`, `COQDOCFLAGS`.
`COQFLAGS` is now entirely separate from `COQLIBS`, so in custom Makefiles
`$(COQFLAGS)` should be replaced by `$(COQFLAGS) $(COQLIBS)`.
- Removed the `gallina` utility (extracts specification from Coq vernacular files).
If you would like to maintain this tool externally, please contact us.
- Removed the Emacs modes distributed with Coq. You are advised to
use `Proof-General <https://proofgeneral.github.io/>`_ (and optionally
`Company-Coq <https://github.com/cpitclaudel/company-coq>`_) instead.
If your use case is not covered by these alternative Emacs modes,
please open an issue. We can help set up external maintenance as part
of Proof-General, or independently as part of coq-community.
Commands
- Removed deprecated commands `Arguments Scope` and `Implicit Arguments`
(not the option). Use the `Arguments` command instead.
- Nested proofs may be enabled through the option `Nested Proofs Allowed`.
By default, they are disabled and produce an error. The deprecation
warning which used to occur when using nested proofs has been removed.
- Added option `Uniform Inductive Parameters` which abstracts over parameters
before typechecking constructors, allowing to write for example
`Inductive list (A : Type) := nil : list | cons : A -> list -> list.`
- New `Set Hint Variables/Constants Opaque/Transparent` commands for setting
globally the opacity flag of variables and constants in hint databases,
overriding the opacity setting of the hint database.
- Added generic syntax for "attributes", as in:
`#[local] Lemma foo : bar.`
- Added the `Numeral Notation` command for registering decimal numeral
notations for custom types
- The `Set SsrHave NoTCResolution` command no longer has special global
scope. If you want the previous behavior, use `Global Set SsrHave
NoTCResolution`.
- Multiple sections with the same name are allowed.
Coq binaries and process model
- Before 8.9, Coq distributed a single `coqtop` binary and a set of
dynamically loadable plugins that used to take over the main loop
for tasks such as IDE language server or parallel proof checking.
These plugins have been turned into full-fledged binaries so each
different process has associated a particular binary now, in
particular `coqidetop` is the CoqIDE language server, and
`coq{proof,tactic,query}worker` are in charge of task-specific and
parallel proof checking.
SSReflect
- The implementation of delayed clear switches in intro patterns
is now simpler to explain:
1. The immediate effect of a clear switch like `{x}` is to rename the
variable `x` to `_x_` (i.e. a reserved identifier that cannot be mentioned
explicitly)
2. The delayed effect of `{x}` is that `_x_` is cleared at the end of the intro
pattern
3. A clear switch immediately before a view application like `{x}/v` is
translated to `/v{x}`.
In particular, the third rule lets one write `{x}/v` even if `v` uses the variable `x`:
indeed the view is executed before the renaming.
- An empty clear switch is now accepted in intro patterns before a
view application whenever the view is a variable.
One can now write `{}/v` to mean `{v}/v`. Remark that `{}/x` is very similar
to the idiom `{}e` for the rewrite tactic (the equation `e` is used for
rewriting and then discarded).
Standard Library
- There are now conversions between `string` and `positive`, `Z`,
`nat`, and `N` in binary, octal, and hex.
Display diffs between proof steps
- `coqtop` and `coqide` can now highlight the differences between proof steps
in color. This can be enabled from the command line or the
`Set Diffs "on"/"off"/"removed"` command. Please see the documentation for
details. Showing diffs in Proof General requires small changes to PG
(under discussion).
Notations
- Added `++` infix for `VectorDef.append`.
Note that this might cause incompatibilities if you have, e.g., `list_scope`
and `vector_scope` both open with `vector_scope` on top, and expect `++` to
refer to `app`.
Solution: wrap `_ ++ _` in `(_ ++ _)%list` (or whichever scope you want).
Changes in 8.8.0
~~~~~~~~~~~~~~~~
Various bug fixes.
Changes in 8.8.1
~~~~~~~~~~~~~~~~
- Some quality-of-life fixes.
- Numerous improvements to the documentation.
- Fix a critical bug related to primitive projections and :tacn:`native_compute`.
- Ship several additional Coq libraries with the Windows installer.
Version 8.8
-----------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.8 contains the result of refinements and stabilization of
features and deprecations, cleanups of the internals of the system along
with a few new features. The main user visible changes are:
- Kernel: fix a subject reduction failure due to allowing fixpoints
on non-recursive values, by Matthieu Sozeau.
Handling of evars in the VM (the kernel still does not accept evars)
by Pierre-Marie Pédrot.
- Notations: many improvements on recursive notations and support for
destructuring patterns in the syntax of notations by Hugo Herbelin.
- Proof language: tacticals for profiling, timing and checking success
or failure of tactics by Jason Gross. The focusing bracket ``{``
supports single-numbered goal selectors, e.g. ``2:{``, by Théo
Zimmermann.
- Vernacular: deprecation of commands and more uniform handling of the
``Local`` flag, by Vincent Laporte and Maxime Dénès, part of a larger
attribute system overhaul. Experimental ``Show Extraction`` command by
Pierre Letouzey. Coercion now accepts ``Prop`` or ``Type`` as a source
by Arthur Charguéraud. ``Export`` modifier for options allowing to
export the option to modules that ``Import`` and not only ``Require``
a module, by Pierre-Marie Pédrot.
- Universes: many user-level and API level enhancements: qualified
naming and printing, variance annotations for cumulative inductive
types, more general constraints and enhancements of the minimization
heuristics, interaction with modules by Gaëtan Gilbert, Pierre-Marie
Pédrot and Matthieu Sozeau.
- Library: Decimal Numbers library by Pierre Letouzey and various small
improvements.
- Documentation: a large community effort resulted in the migration
of the reference manual to the Sphinx documentation tool. The result
is this manual. The new documentation infrastructure (based on Sphinx)
is by Clément Pit-Claudel. The migration was coordinated by Maxime Dénès
and Paul Steckler, with some help of Théo Zimmermann during the
final integration phase. The 14 people who ported the manual are
Calvin Beck, Heiko Becker, Yves Bertot, Maxime Dénès, Richard Ford,
Pierre Letouzey, Assia Mahboubi, Clément Pit-Claudel,
Laurence Rideau, Matthieu Sozeau, Paul Steckler, Enrico Tassi,
Laurent Théry, Nikita Zyuzin.
- Tools: experimental ``-mangle-names`` option to ``coqtop``/``coqc`` for
linting proof scripts, by Jasper Hugunin.
On the implementation side, the ``dev/doc/changes.md`` file
documents the numerous changes to the implementation and improvements of
interfaces. The file provides guidelines on porting a plugin to the new
version.
Version 8.8 also comes with a bunch of smaller-scale changes and
improvements regarding the different components of the system.
Most important ones are documented in the next subsection file.
The efficiency of the whole system has seen improvements thanks to
contributions from Gaëtan Gilbert, Pierre-Marie Pédrot, Maxime Dénès and
Matthieu Sozeau and performance issue tracking by Jason Gross and Paul
Steckler.
The official wiki and the bugtracker of Coq migrated to the GitHub
platform, thanks to the work of Pierre Letouzey and Théo
Zimmermann. Gaëtan Gilbert, Emilio Jesús Gallego Arias worked on
maintaining and improving the continuous integration system.
The opam repository for Coq packages has been maintained by Guillaume
Melquiond, Matthieu Sozeau, Enrico Tassi with contributions from many
users. A list of packages is available at https://coq.inria.fr/opam/www/.
The 44 contributors for this version are Yves Bertot, Joachim Breitner, Tej
Chajed, Arthur Charguéraud, Jacques-Pascal Deplaix, Maxime Dénès, Jim Fehrle,
Julien Forest, Yannick Forster, Gaëtan Gilbert, Jason Gross, Samuel Gruetter,
Thomas Hebb, Hugo Herbelin, Jasper Hugunin, Emilio Jesus Gallego Arias, Ralf
Jung, Johannes Kloos, Matej Košík, Robbert Krebbers, Tony Beta Lambda, Vincent
Laporte, Peter LeFanu Lumsdaine, Pierre Letouzey, Farzon Lotfi, Cyprien Mangin,
Guillaume Melquiond, Raphaël Monat, Carl Patenaude Poulin, Pierre-Marie Pédrot,
Clément Pit-Claudel, Matthew Ryan, Matt Quinn, Sigurd Schneider, Bernhard
Schommer, Michael Soegtrop, Matthieu Sozeau, Arnaud Spiwack, Paul Steckler,
Enrico Tassi, Anton Trunov, Martin Vassor, Vadim Zaliva and Théo Zimmermann.
Version 8.8 is the third release of Coq developed on a time-based
development cycle. Its development spanned 6 months from the release of
Coq 8.7 and was based on a public roadmap. The development process
was coordinated by Matthieu Sozeau. Maxime Dénès was in charge of the
release process. Théo Zimmermann is the maintainer of this release.
Many power users helped to improve the design of the new features via
the bug tracker, the pull request system, the Coq development mailing
list or the coq-club@inria.fr mailing list. Special thanks to the users who
contributed patches and intensive brain-storming and code reviews,
starting with Jason Gross, Ralf Jung, Robbert Krebbers and Amin Timany.
It would however be impossible to mention exhaustively the names
of everybody who to some extent influenced the development.
The Coq consortium, an organization directed towards users and
supporters of the system, is now running and employs Maxime Dénès.
The contacts of the Coq Consortium are Yves Bertot and Maxime Dénès.
| Santiago de Chile, March 2018,
| Matthieu Sozeau for the Coq development team
|
Details of changes in 8.8+beta1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kernel
- Support for template polymorphism for definitions was removed. May trigger
more "universe inconsistency" errors in rare occasions.
- Fixpoints are no longer allowed on non-recursive inductive types.
Notations
- Recursive notations with the recursive pattern repeating on the
right (e.g. "( x ; .. ; y ; z )") now supported.
- Notations with a specific level for the leftmost nonterminal,
when printing-only, are supported.
- Notations can now refer to the syntactic category of patterns (as in
"fun 'pat =>" or "match p with pat => ... end"). Two variants are
available, depending on whether a single variable is considered as a
pattern or not.
- Recursive notations now support ".." patterns with several
occurrences of the recursive term or binder, possibly mixing terms
and binders, possibly in reverse left-to-right order.
- "Locate" now working also on notations of the form "x + y" (rather
than "_ + _").
Specification language
- When printing clauses of a "match", clauses with same right-hand
side are factorized and the last most factorized clause with no
variables, if it exists, is turned into a default clause.
Use "Unset Printing Allow Default Clause" do deactivate printing
of a default clause.
Use "Unset Printing Factorizable Match Patterns" to deactivate
factorization of clauses with same right-hand side.
Tactics
- On Linux, "native_compute" calls can be profiled using the "perf"
utility. The command "Set NativeCompute Profiling" enables
profiling, and "Set NativeCompute Profile Filename" customizes
the profile filename.
- The tactic "omega" is now aware of the bodies of context variables
such as "x := 5 : Z" (see #1362). This could be disabled via
Unset Omega UseLocalDefs.
- The tactic "romega" is also aware now of the bodies of context variables.
- The tactic "zify" resp. "omega with N" is now aware of N.pred.
- Tactic "decide equality" now able to manage constructors which
contain proofs.
- Added tactics reset ltac profile, show ltac profile (and variants)
- Added tactics restart_timer, finish_timing, and time_constr as an
experimental way of timing Ltac's evaluation phase
- Added tactic optimize_heap, analogous to the Vernacular Optimize
Heap, which performs a major garbage collection and heap compaction
in the OCaml run-time system.
- The tactics "dtauto", "dintuition", "firstorder" now handle inductive types
with let bindings in the parameters.
- The tactic ``dtauto`` now handles some inductives such as
``@sigT A (fun _ => B)`` as non-dependent conjunctions.
- A bug fixed in ``rewrite H in *`` and ``rewrite H in * |-`` may cause a
few rare incompatibilities (it was unintendedly recursively
rewriting in the side conditions generated by H).
- Added tactics "assert_succeeds tac" and "assert_fails tac" to ensure
properties of the execution of a tactic without keeping the effect
of the execution.
- `vm_compute` now supports existential variables.
- Calls to `shelve` and `give_up` within calls to tactic `refine` now working.
- Deprecated tactic `appcontext` was removed.
Focusing
- Focusing bracket `{` now supports single-numbered goal selector,
e.g. `2: {` will focus on the second subgoal. As usual, unfocus
with `}` once the subgoal is fully solved.
The `Focus` and `Unfocus` commands are now deprecated.
Commands
- Proofs ending in "Qed exporting ident, .., ident" are not supported
anymore. Constants generated during `abstract` are kept private to the
local environment.
- The deprecated Coercion Local, Open Local Scope, Notation Local syntax
was removed. Use Local as a prefix instead.
- For the Extraction Language command, "OCaml" is spelled correctly.
The older "Ocaml" is still accepted, but deprecated.
- Using “Require” inside a section is deprecated.
- An experimental command "Show Extraction" allows to extract the content
of the current ongoing proof (grant wish #4129).
- Coercion now accepts the type of its argument to be "Prop" or "Type".
- The "Export" modifier can now be used when setting and unsetting options, and
will result in performing the same change when the module corresponding the
command is imported.
- The `Axiom` command does not automatically declare axioms as instances when
their type is a class. Previous behavior can be restored using `Set
Typeclasses Axioms Are Instances`.
Universes
- Qualified naming of global universes now works like other namespaced
objects (e.g. constants), with a separate namespace, inside and across
module and library boundaries. Global universe names introduced in an
inductive / constant / Let declaration get qualified with the name of
the declaration.
- Universe cumulativity for inductive types is now specified as a
variance for each polymorphic universe. See the reference manual for
more information.
- Inference of universe constraints with cumulative inductive types
produces more general constraints. Unsetting new option Cumulativity
Weak Constraints produces even more general constraints (but may
produce too many universes to be practical).
- Fix #5726: Notations that start with `Type` now support universe instances
with `@{u}`.
- `with Definition` now understands universe declarations
(like `@{u| Set < u}`).
Tools
- Coq can now be run with the option -mangle-names to change the auto-generated
name scheme. This is intended to function as a linter for developments that
want to be robust to changes in auto-generated names. This feature is experimental,
and may change or disappear without warning.
- GeoProof support was removed.
Checker
- The checker now accepts filenames in addition to logical paths.
CoqIDE
- Find and Replace All report the number of occurrences found; Find indicates
when it wraps.
coqdep
- Learned to read -I, -Q, -R and filenames from _CoqProject files.
This is used by coq_makefile when generating dependencies for .v
files (but not other files).
Documentation
- The Coq FAQ, formerly located at https://coq.inria.fr/faq, has been
moved to the GitHub wiki section of this repository; the main entry
page is https://github.com/coq/coq/wiki/The-Coq-FAQ.
- Documentation: a large community effort resulted in the migration
of the reference manual to the Sphinx documentation tool. The result
is partially integrated in this version.
Standard Library
- New libraries Coq.Init.Decimal, Coq.Numbers.DecimalFacts,
Coq.Numbers.DecimalNat, Coq.Numbers.DecimalPos,
Coq.Numbers.DecimalN, Coq.Numbers.DecimalZ,
Coq.Numbers.DecimalString providing a type of decimal numbers, some
facts about them, and conversions between decimal numbers and nat,
positive, N, Z, and string.
- Added [Coq.Strings.String.concat] to concatenate a list of strings
inserting a separator between each item
- Notation `'` for Zpos in QArith was removed.
- Some deprecated aliases are now emitting warnings when used.
Compatibility support
- Support for compatibility with versions before 8.6 was dropped.
Options
- The following deprecated options have been removed:
+ `Refolding Reduction`
+ `Standard Proposition Elimination`
+ `Dependent Propositions Elimination`
+ `Discriminate Introduction`
+ `Shrink Abstract`
+ `Tactic Pattern Unification`
+ `Intuition Iff Unfolding`
+ `Injection L2R Pattern Order`
+ `Record Elimination Schemes`
+ `Match Strict`
+ `Tactic Compat Context`
+ `Typeclasses Legacy Resolution`
+ `Typeclasses Module Eta`
+ `Typeclass Resolution After Apply`
Details of changes in 8.8.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tools
- Asynchronous proof delegation policy was fixed. Since version 8.7
Coq was ignoring previous runs and the `-async-proofs-delegation-threshold`
option did not have the expected behavior.
Tactic language
- The undocumented "nameless" forms `fix N`, `cofix` have been
deprecated; please use `fix ident N /cofix ident` to explicitly
name the (co)fixpoint hypothesis to be introduced.
Documentation
- The reference manual is now fully ported to Sphinx.
Other small deprecations and bug fixes.
Details of changes in 8.8.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kernel
- Fix a critical bug with cofixpoints and `vm_compute`/`native_compute` (#7333).
- Fix a critical bug with modules and algebraic universes (#7695)
- Fix a critical bug with inlining of polymorphic constants (#7615).
- Fix a critical bug with universe polymorphism and `vm_compute` (#7723). Was
present since 8.5.
Notations
- Fixed unexpected collision between only-parsing and only-printing
notations (issue #7462).
Windows installer
- The Windows installer now includes external packages Ltac2 and Equations
(it included the Bignums package since 8.8+beta1).
Many other bug fixes, documentation improvements (including fixes of
regressions due to the Sphinx migration), and user message improvements
(for details, see the 8.8.1 milestone at
https://github.com/coq/coq/milestone/13?closed=1).
Details of changes in 8.8.2
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Documentation
- A PDF version of the reference manual is available once again.
Tools
- The coq-makefile targets `print-pretty-timed`, `print-pretty-timed-diff`,
and `print-pretty-single-time-diff` now correctly label the "before" and
"after" columns, rather than swapping them.
Kernel
- The kernel does not tolerate capture of global universes by
polymorphic universe binders, fixing a soundness break (triggered
only through custom plugins)
Windows installer
- The Windows installer now includes many more external packages that can be
individually selected for installation.
Many other bug fixes and lots of documentation improvements (for details,
see the 8.8.2 milestone at https://github.com/coq/coq/milestone/15?closed=1).
Version 8.7
-----------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.7 contains the result of refinements, stabilization of features
and cleanups of the internals of the system along with a few new features. The
main user visible changes are:
- New tactics: variants of tactics supporting existential variables :tacn:`eassert`,
:tacn:`eenough`, etc... by Hugo Herbelin. Tactics ``extensionality in H`` and
:tacn:`inversion_sigma` by Jason Gross, ``specialize with ...`` accepting partial bindings
by Pierre Courtieu.
- ``Cumulative Polymorphic Inductive`` types, allowing cumulativity of universes to
go through applied inductive types, by Amin Timany and Matthieu Sozeau.
- Integration of the SSReflect plugin and its documentation in the reference
manual, by Enrico Tassi, Assia Mahboubi and Maxime Dénès.
- The ``coq_makefile`` tool was completely redesigned to improve its maintainability
and the extensibility of generated Makefiles, and to make ``_CoqProject`` files
more palatable to IDEs by Enrico Tassi.
Coq 8.7 involved a large amount of work on cleaning and speeding up the code
base, notably the work of Pierre-Marie Pédrot on making the tactic-level system
insensitive to existential variable expansion, providing a safer API to plugin
writers and making the code more robust. The ``dev/doc/changes.txt`` file
documents the numerous changes to the implementation and improvements of
interfaces. An effort to provide an official, streamlined API to plugin writers
is in progress, thanks to the work of Matej Košík.
Version 8.7 also comes with a bunch of smaller-scale changes and improvements
regarding the different components of the system. We shall only list a few of
them.
The efficiency of the whole system has been significantly improved thanks to
contributions from Pierre-Marie Pédrot, Maxime Dénès and Matthieu Sozeau and
performance issue tracking by Jason Gross and Paul Steckler.
Thomas Sibut-Pinote and Hugo Herbelin added support for side effect hooks in
cbv, cbn and simpl. The side effects are provided via a plugin available at
https://github.com/herbelin/reduction-effects/.
The BigN, BigZ, BigQ libraries are no longer part of the Coq standard library,
they are now provided by a separate repository https://github.com/coq/bignums,
maintained by Pierre Letouzey.
In the Reals library, ``IZR`` has been changed to produce a compact representation
of integers and real constants are now represented using ``IZR`` (work by
Guillaume Melquiond).
Standard library additions and improvements by Jason Gross, Pierre Letouzey and
others, documented in the next subsection file.
The mathematical proof language/declarative mode plugin was removed from the
archive.
The opam repository for Coq packages has been maintained by Guillaume Melquiond,
Matthieu Sozeau, Enrico Tassi with contributions from many users. A list of
packages is available at https://coq.inria.fr/opam/www/.
Packaging tools and software development kits were prepared by Michael Soegtrop
with the help of Maxime Dénès and Enrico Tassi for Windows, and Maxime Dénès for
MacOS X. Packages are regularly built on the Travis continuous integration
server.
The contributors for this version are Abhishek Anand, C.J. Bell, Yves Bertot,
Frédéric Besson, Tej Chajed, Pierre Courtieu, Maxime Dénès, Julien Forest,
Gaëtan Gilbert, Jason Gross, Hugo Herbelin, Emilio Jesús Gallego Arias, Ralf
Jung, Matej Košík, Xavier Leroy, Pierre Letouzey, Assia Mahboubi, Cyprien
Mangin, Erik Martin-Dorel, Olivier Marty, Guillaume Melquiond, Sam Pablo Kuper,
Benjamin Pierce, Pierre-Marie Pédrot, Lars Rasmusson, Lionel Rieg, Valentin
Robert, Yann Régis-Gianas, Thomas Sibut-Pinote, Michael Soegtrop, Matthieu
Sozeau, Arnaud Spiwack, Paul Steckler, George Stelle, Pierre-Yves Strub, Enrico
Tassi, Hendrik Tews, Amin Timany, Laurent Théry, Vadim Zaliva and Théo
Zimmermann.
The development process was coordinated by Matthieu Sozeau with the help of
Maxime Dénès, who was also in charge of the release process. Théo Zimmermann is
the maintainer of this release.
Many power users helped to improve the design of the new features via the bug
tracker, the pull request system, the Coq development mailing list or the
Coq-Club mailing list. Special thanks to the users who contributed patches and
intensive brain-storming and code reviews, starting with Jason Gross, Ralf Jung,
Robbert Krebbers, Xavier Leroy, Clément Pit–Claudel and Gabriel Scherer. It
would however be impossible to mention exhaustively the names of everybody who
to some extent influenced the development.
Version 8.7 is the second release of Coq developed on a time-based development
cycle. Its development spanned 9 months from the release of Coq 8.6 and was
based on a public road-map. It attracted many external contributions. Code
reviews and continuous integration testing were systematically used before
integration of new features, with an important focus given to compatibility and
performance issues, resulting in a hopefully more robust release than Coq 8.6
while maintaining compatibility.
Coq Enhancement Proposals (CEPs for short) and open pull request discussions
were used to discuss publicly the new features.
The Coq consortium, an organization directed towards users and supporters of the
system, is now upcoming and will rely on Inria’s newly created Foundation.
| Paris, August 2017,
| Matthieu Sozeau and the Coq development team
|
Potential compatibility issues
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Extra superfluous names in introduction patterns may now raise an
error rather than a warning when the superfluous name is already in
use. The easy fix is to remove the superfluous name.
Details of changes in 8.7+beta1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tactics
- New tactic "extensionality in H" which applies (possibly dependent)
functional extensionality in H supposed to be a quantified equality
until giving a bare equality.
- New tactic ``inversion_sigma`` which turns equalities of dependent
pairs (e.g., ``existT P x p = existT P y q``, frequently left over by
``inversion`` on a dependent type family) into pairs of equalities
(e.g., a hypothesis ``H : x = y`` and a hypothesis of type ``rew H in p = q``);
these hypotheses can subsequently be simplified using
``subst``, without ever invoking any kind of axiom asserting
uniqueness of identity proofs. If you want to explicitly specify the
hypothesis to be inverted, or name the generated hypotheses, you can
invoke ``induction H as [H1 H2] using eq_sigT_rect``. The tactic also
works for ``sig``, ``sigT2``, and ``sig2``, and there are similar
``eq_sig*_rect`` induction lemmas.
- Tactic "specialize with ..." now accepts any partial bindings.
Missing bindings are either solved by unification or left quantified
in the hypothesis.
- New representation of terms that statically ensure stability by
evar-expansion. This has several consequences.
* In terms of performance, this adds a cost to every term destructuration,
but at the same time most eager evar normalizations were removed, which
couterbalances this drawback and even sometimes outperforms the old
implementation. For instance, many operations that would require O(n)
normalization of the term are now O(1) in tactics. YMMV.
* This triggers small changes in unification, which was not evar-insensitive.
Most notably, the new implementation recognizes Miller patterns that were
missed before because of a missing normalization step. Hopefully this should
be fairly uncommon.
- Tactic "auto with real" can now discharge comparisons of literals.
- The types of variables in patterns of "match" are now
beta-iota-reduced after type checking. This has an impact on the
type of the variables that the tactic "refine" introduces in the
context, producing types that should be closer to the expectations.
- In "Tactic Notation" or "TACTIC EXTEND", entry "constr_with_bindings"
now uses type classes and rejects terms with unresolved holes, like
entry "constr" does. To get the former behavior use
"open_constr_with_bindings" (possible source of incompatibility).
- New e-variants eassert, eenough, epose proof, eset, eremember, epose
which behave like the corresponding variants with no "e" but turn
unresolved implicit arguments into existential variables, on the
shelf, rather than failing.
- Tactic injection has become more powerful (closes bug #4890) and its
documentation has been updated.
- New variants of the `first` and `solve` tacticals that do not rely
on parsing rules, meant to define tactic notations.
- Added support for side effects hooks in `cbv`, `cbn` and `simpl`.
The side effects are provided via a plugin:
https://github.com/herbelin/reduction-effects/
- It is now possible to take hint database names as parameters in a
Ltac definition or a Tactic Notation.
- New option `Set Ltac Batch Debug` on top of `Set Ltac Debug` for
non-interactive Ltac debug output.
Gallina
- Now supporting all kinds of binders, including 'pat, in syntax of record fields.
Commands
- Goals context can be printed in a more compact way when `Set
Printing Compact Contexts` is activated.
- Unfocused goals can be printed with the `Set Printing Unfocused`
option.
- `Print` now shows the types of let-bindings.
- The compatibility options for printing primitive projections
(`Set Printing Primitive Projection Parameters` and
`Set Printing Primitive Projection Compatibility`) are now off by default.
- Possibility to unset the printing of notations in a more fine grained
fashion than `Unset Printing Notations` is provided without any
user-syntax. The goal is that someone creates a plugin to experiment
such a user-syntax, to be later integrated in Coq when stabilized.
- `About` now tells if a reference is a coercion.
- The deprecated `Save` vernacular and its form `Save Theorem id` to
close proofs have been removed from the syntax. Please use `Qed`.
- `Search` now sorts results by relevance (the relevance metric is a
weighted sum of number of distinct symbols and size of the term).
Standard Library
- New file PropExtensionality.v to explicitly work in the axiomatic
context of propositional extensionality.
- New file SetoidChoice.v axiomatically providing choice over setoids,
and, consequently, choice of representatives in equivalence classes.
Various proof-theoretic characterizations of choice over setoids in
file ChoiceFacts.v.
- New lemmas about iff and about orders on positive and Z.
- New lemmas on powerRZ.
- Strengthened statement of JMeq_eq_dep (closes bug #4912).
- The BigN, BigZ, BigZ libraries are no longer part of the Coq standard
library, they are now provided by a separate repository
https://github.com/coq/bignums
The split has been done just after the Int31 library.
- IZR (Reals) has been changed to produce a compact representation of
integers. As a consequence, IZR is no longer convertible to INR and
lemmas such as INR_IZR_INZ should be used instead.
- Real constants are now represented using IZR rather than R0 and R1;
this might cause rewriting rules to fail to apply to constants.
- Added new notation {x & P} for sigT (without a type for x)
Plugins
- The Ssreflect plugin is now distributed with Coq. Its documentation has
been integrated as a chapter of the reference manual. This chapter is
work in progress so feedback is welcome.
- The mathematical proof language (also known as declarative mode) was removed.
- A new command Extraction TestCompile has been introduced, not meant
for the general user but instead for Coq's test-suite.
- The extraction plugin is no longer loaded by default. It must be
explicitly loaded with [Require Extraction], which is backwards
compatible.
- The functional induction plugin (which provides the [Function]
vernacular) is no longer loaded by default. It must be explicitly
loaded with [Require FunInd], which is backwards compatible.
Dependencies
- Support for camlp4 has been removed.
Tools
- coq_makefile was completely redesigned to improve its maintainability and
the extensibility of generated Makefiles, and to make _CoqProject files
more palatable to IDEs. Overview:
* _CoqProject files contain only Coq specific data (i.e. the list of
files, -R options, ...)
* coq_makefile translates _CoqProject to Makefile.conf and copies in the
desired location a standard Makefile (that reads Makefile.conf)
* Makefile extensions can be implemented in a Makefile.local file (read
by the main Makefile) by installing a hook in the extension points
provided by the standard Makefile
The current version contains code for retro compatibility that prints
warnings when a deprecated feature is used. Please upgrade your _CoqProject
accordingly.
* Additionally, coq_makefile-made Makefiles now support experimental timing
targets `pretty-timed`, `pretty-timed-before`, `pretty-timed-after`,
`print-pretty-timed-diff`, `print-pretty-single-time-diff`,
`all.timing.diff`, and the variable `TIMING=1` (or `TIMING=before` or
`TIMING=after`); see the documentation for more details.
Build Infrastructure
- Note that 'make world' does not build the bytecode binaries anymore.
For that, you can use 'make byte' (and 'make install-byte' afterwards).
Warning: native and byte compilations should *not* be mixed in the same
instance of 'make -j', otherwise both ocamlc and ocamlopt might race for
access to the same .cmi files. In short, use "make -j && make -j byte"
instead of "make -j world byte".
Universes
- Cumulative inductive types. see prefixes "Cumulative", "NonCumulative"
for inductive definitions and the option "Set Polymorphic Inductive Cumulativity"
in the reference manual.
- New syntax `foo@{_}` to instantiate a polymorphic definition with
anonymous universes (can also be used with `Type`).
XML Protocol and internal changes
See dev/doc/changes.txt
Many bugfixes including #1859, #2884, #3613, #3943, #3994,
#4250, #4709, #4720, #4824, #4844, #4911, #5026, #5233,
#5275, #5315, #5336, #5360, #5390, #5414, #5417, #5420,
#5439, #5449, #5475, #5476, #5482, #5501, #5507, #5520,
#5523, #5524, #5553, #5577, #5578, #5589, #5597, #5598,
#5607, #5618, #5619, #5620, #5641, #5648, #5651, #5671.
Many bugfixes on OS X and Windows (now the test-suite passes on these
platforms too).
Many optimizations.
Many documentation improvements.
Details of changes in 8.7+beta2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tools
- In CoqIDE, the "Compile Buffer" command takes account of flags in
_CoqProject or other project file.
Improvements around some error messages.
Many bug fixes including two important ones:
- Bug #5730: CoqIDE becomes unresponsive on file open.
- coq_makefile: make sure compile flags for Coq and coq_makefile are in sync
(in particular, make sure the `-safe-string` option is used to compile plugins).
Details of changes in 8.7.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~
OCaml
- Users can pass specific flags to the OCaml optimizing compiler by
-using the flambda-opts configure-time option.
Beware that compiling Coq with a flambda-enabled compiler is
experimental and may require large amounts of RAM and CPU, see
INSTALL for more details.
Details of changes in 8.7.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Compatibility with OCaml 4.06.0.
Many bug fixes, documentation improvements, and user message improvements (for
details see the 8.7.1 milestone at https://github.com/coq/coq/milestone/10?closed=1).
Details of changes in 8.7.2
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Fixed a critical bug in the VM handling of universes (#6677). This bug
affected all releases since 8.5.
Improved support for building with OCaml 4.06.0 and external num package.
Many other bug fixes, documentation improvements, and user
message improvements (for details, see the 8.7.2 milestone at
https://github.com/coq/coq/milestone/11?closed=1).
Version 8.6
-----------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.6 contains the result of refinements, stabilization of
8.5’s features and cleanups of the internals of the system. Over the
year of (now time-based) development, about 450 bugs were resolved and
over 100 contributions integrated. The main user visible changes are:
- A new, faster state-of-the-art universe constraint checker, by
Jacques-Henri Jourdan.
- In CoqIDE and other asynchronous interfaces, more fine-grained
asynchronous processing and error reporting by Enrico Tassi, making
Coq capable of recovering from errors and continue processing the
document.
- More access to the proof engine features from Ltac: goal management
primitives, range selectors and a :tacn:`typeclasses eauto` engine handling
multiple goals and multiple successes, by Cyprien Mangin, Matthieu
Sozeau and Arnaud Spiwack.
- Tactic behavior uniformization and specification, generalization of
intro-patterns by Hugo Herbelin and others.
- A brand new warning system allowing to control warnings, turn them
into errors or ignore them selectively by Maxime Dénès, Guillaume
Melquiond, Pierre-Marie Pédrot and others.
- Irrefutable patterns in abstractions, by Daniel de Rauglaudre.
- The ssreflect subterm selection algorithm by Georges Gonthier and
Enrico Tassi is now accessible to tactic writers through the
ssrmatching plugin.
- Integration of LtacProf, a profiler for Ltac by Jason Gross, Paul
Steckler, Enrico Tassi and Tobias Tebbi.
Coq 8.6 also comes with a bunch of smaller-scale changes and
improvements regarding the different components of the system. We shall
only list a few of them.
The iota reduction flag is now a shorthand for match, fix and cofix
flags controlling the corresponding reduction rules (by Hugo Herbelin
and Maxime Dénès).
Maxime Dénès maintained the native compilation machinery.
Pierre-Marie Pédrot separated the Ltac code from general purpose
tactics, and generalized and rationalized the handling of generic
arguments, allowing to create new versions of Ltac more easily in the
future.
In patterns and terms, @, abbreviations and notations are now
interpreted the same way, by Hugo Herbelin.
Name handling for universes has been improved by Pierre-Marie Pédrot and
Matthieu Sozeau. The minimization algorithm has been improved by
Matthieu Sozeau.
The unifier has been improved by Hugo Herbelin and Matthieu Sozeau,
fixing some incompatibilities introduced in Coq 8.5. Unification
constraints can now be left floating around and be seen by the user
thanks to a new option. The Keyed Unification mode has been improved by
Matthieu Sozeau.
The typeclass resolution engine and associated proof search tactic have
been reimplemented on top of the proof-engine monad, providing better
integration in tactics, and new options have been introduced to control
it, by Matthieu Sozeau with help from Théo Zimmermann.
The efficiency of the whole system has been significantly improved
thanks to contributions from Pierre-Marie Pédrot, Maxime Dénès and
Matthieu Sozeau and performance issue tracking by Jason Gross and Paul
Steckler.
Standard library improvements by Jason Gross, Sébastien Hinderer, Pierre
Letouzey and others.
Emilio Jesús Gallego Arias contributed many cleanups and refactorings of
the pretty-printing and user interface communication components.
Frédéric Besson maintained the micromega tactic.
The opam repository for Coq packages has been maintained by Guillaume
Claret, Guillaume Melquiond, Matthieu Sozeau, Enrico Tassi and others. A
list of packages is now available at https://coq.inria.fr/opam/www/.
Packaging tools and software development kits were prepared by Michael
Soegtrop with the help of Maxime Dénès and Enrico Tassi for Windows, and
Maxime Dénès and Matthieu Sozeau for MacOS X. Packages are now regularly
built on the continuous integration server. Coq now comes with a META
file usable with ocamlfind, contributed by Emilio Jesús Gallego Arias,
Gregory Malecha, and Matthieu Sozeau.
Matej Košík maintained and greatly improved the continuous integration
setup and the testing of Coq contributions. He also contributed many API
improvements and code cleanups throughout the system.
The contributors for this version are Bruno Barras, C.J. Bell, Yves
Bertot, Frédéric Besson, Pierre Boutillier, Tej Chajed, Guillaume
Claret, Xavier Clerc, Pierre Corbineau, Pierre Courtieu, Maxime Dénès,
Ricky Elrod, Emilio Jesús Gallego Arias, Jason Gross, Hugo Herbelin,
Sébastien Hinderer, Jacques-Henri Jourdan, Matej Košík, Xavier Leroy,
Pierre Letouzey, Gregory Malecha, Cyprien Mangin, Erik Martin-Dorel,
Guillaume Melquiond, Clément Pit–Claudel, Pierre-Marie Pédrot, Daniel de
Rauglaudre, Lionel Rieg, Gabriel Scherer, Thomas Sibut-Pinote, Matthieu
Sozeau, Arnaud Spiwack, Paul Steckler, Enrico Tassi, Laurent Théry,
Nickolai Zeldovich and Théo Zimmermann. The development process was
coordinated by Hugo Herbelin and Matthieu Sozeau with the help of Maxime
Dénès, who was also in charge of the release process.
Many power users helped to improve the design of the new features via
the bug tracker, the pull request system, the Coq development mailing
list or the Coq-Club mailing list. Special thanks to the users who
contributed patches and intensive brain-storming and code reviews,
starting with Cyril Cohen, Jason Gross, Robbert Krebbers, Jonathan
Leivent, Xavier Leroy, Gregory Malecha, Clément Pit–Claudel, Gabriel
Scherer and Beta Ziliani. It would however be impossible to mention
exhaustively the names of everybody who to some extent influenced the
development.
Version 8.6 is the first release of Coq developed on a time-based
development cycle. Its development spanned 10 months from the release of
Coq 8.5 and was based on a public roadmap. To date, it contains more
external contributions than any previous Coq system. Code reviews were
systematically done before integration of new features, with an
important focus given to compatibility and performance issues, resulting
in a hopefully more robust release than Coq 8.5.
Coq Enhancement Proposals (CEPs for short) were introduced by Enrico
Tassi to provide more visibility and a discussion period on new
features, they are publicly available https://github.com/coq/ceps.
Started during this period, an effort is led by Yves Bertot and Maxime
Dénès to put together a Coq consortium.
| Paris, November 2016,
| Matthieu Sozeau and the Coq development team
|
Potential sources of incompatibilities
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Symptom: An obligation generated by Program or an abstracted subproof
has different arguments.
Cause: Set Shrink Abstract and Set Shrink Obligations are on by default
and the subproof does not use the argument.
Remedy:
+ Adapt the script.
+ Write an explicit lemma to prove the obligation/subproof and use it
instead (compatible with 8.4).
+ Unset the option for the program/proof the obligation/subproof originates
from.
- Symptom: In a goal, order of hypotheses, or absence of an equality of
the form "x = t" or "t = x", or no unfolding of a local definition.
Cause: This might be connected to a number of fixes in the tactic
"subst". The former behavior can be reactivated by issuing "Unset
Regular Subst Tactic".
Details of changes in 8.6beta1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kernel
- A new, faster state-of-the-art universe constraint checker.
Specification language
- Giving implicit arguments explicitly to a constant with multiple
choices of implicit arguments does not break any more insertion of
further maximal implicit arguments.
- Ability to put any pattern in binders, prefixed by quote, e.g.
"fun '(a,b) => ...", "λ '(a,(b,c)), ...", "Definition foo '(x,y) := ...".
It expands into a "let 'pattern := ..."
Tactics
- Flag "Bracketing Last Introduction Pattern" is now on by default.
- Flag "Regular Subst Tactic" is now on by default: it respects the
initial order of hypothesis, it contracts cycles, it unfolds no
local definitions (common source of incompatibilities, fixable by
"Unset Regular Subst Tactic").
- New flag "Refolding Reduction", now disabled by default, which turns
on refolding of constants/fixpoints (as in cbn) during the reductions
done during type inference and tactic retyping. Can be extremely
expensive. When set off, this recovers the 8.4 behavior of unification
and type inference. Potential source of incompatibility with 8.5 developments
(the option is set on in Compat/Coq85.v).
- New flag "Shrink Abstract" that minimalizes proofs generated by the abstract
tactical w.r.t. variables appearing in the body of the proof.
On by default and deprecated. Minor source of incompatibility
for code relying on the precise arguments of abstracted proofs.
- Serious bugs are fixed in tactic "double induction" (source of
incompatibilities as soon as the inductive types have dependencies in
the type of their constructors; "double induction" remains however
deprecated).
- In introduction patterns of the form (pat1,...,patn), n should match
the exact number of hypotheses introduced (except for local definitions
for which pattern can be omitted, as in regular pattern-matching).
- Tactic scopes in Ltac like constr: and ltac: now require parentheses around
their argument.
- Every generic argument type declares a tactic scope of the form "name:(...)"
where name is the name of the argument. This generalizes the constr: and ltac:
instances.
- When in strict mode (i.e. in a Ltac definition), if the "intro" tactic is
given a free identifier, it is not bound in subsequent tactics anymore.
In order to introduce a binding, use e.g. the "fresh" primitive instead
(potential source of incompatibilities).
- New tactics is_ind, is_const, is_proj, is_constructor for use in Ltac.
- New goal selectors. Sets of goals can be selected by listing integers
ranges. Example: "1,4-7,24: tac" focuses "tac" on goals 1,4,5,6,7,24.
- For uniformity with "destruct"/"induction" and for a more natural
behavior, "injection" can now work in place by activating option
"Structural Injection". In this case, hypotheses are also put in the
context in the natural left-to-right order and the hypothesis on
which injection applies is cleared.
- Tactic "contradiction" (hence "easy") now also solve goals with
hypotheses of the form "~True" or "t<>t" (possible source of
incompatibilities because of more successes in automation, but
generally a more intuitive strategy).
- Option "Injection On Proofs" was renamed "Keep Proof Equalities". When
enabled, injection and inversion do not drop equalities between objects
in Prop. Still disabled by default.
- New tactics "notypeclasses refine" and "simple notypeclasses refine" that
disallow typeclass resolution when typechecking their argument, for use
in typeclass hints.
- Integration of LtacProf, a profiler for Ltac.
- Reduction tactics now accept more fine-grained flags: iota is now a shorthand
for the new flags match, fix and cofix.
- The ssreflect subterm selection algorithm is now accessible to tactic writers
through the ssrmatching plugin.
- When used as an argument of an ltac function, "auto" without "with"
nor "using" clause now correctly uses only the core hint database by
default.
Hints
- Revised the syntax of [Hint Cut] to follow standard notation for regexps.
- Hint Mode now accepts "!" which means that the mode matches only if the
argument's head is not an evar (it goes under applications, casts, and
scrutinees of matches and projections).
- Hints can now take an optional user-given pattern, used only by
[typeclasses eauto] with the [Filtered Unification] option on.
Typeclasses
- Many new options and new engine based on the proof monad. The
[typeclasses eauto] tactic is now a multi-goal, multi-success tactic.
See reference manual for more information. It is planned to
replace auto and eauto in the following version. The 8.5 resolution
engine is still available to help solve compatibility issues.
Program
- The "Shrink Obligations" flag now applies to all obligations, not only
those solved by the automatic tactic.
- "Shrink Obligations" is on by default and deprecated. Minor source of
incompatibility for code relying on the precise arguments of
obligations.
Notations
- "Bind Scope" can once again bind "Funclass" and "Sortclass".
General infrastructure
- New configurable warning system which can be controlled with the vernacular
command "Set Warnings", or, under coqc/coqtop, with the flag "-w". In
particular, the default is now that warnings are printed by coqc.
- In asynchronous mode, Coq is now capable of recovering from errors and
continue processing the document.
Tools
- coqc accepts a -o option to specify the output file name
- coqtop accepts --print-version to print Coq and OCaml versions in
easy to parse format
- Setting [Printing Dependent Evars Line] can be unset to disable the
computation associated with printing the "dependent evars: " line in
-emacs mode
- Removed the -verbose-compat-notations flag and the corresponding Set
Verbose Compat vernacular, since these warnings can now be silenced or
turned into errors using "-w".
XML protocol
- message format has changed, see dev/doc/changes.txt for more details.
Many bug fixes, minor changes and documentation improvements are not mentioned
here.
Details of changes in 8.6
~~~~~~~~~~~~~~~~~~~~~~~~~
Kernel
- Fixed critical bug #5248 in VM long multiplication on 32-bit
architectures. Was there only since 8.6beta1, so no stable release impacted.
Other bug fixes in universes, type class shelving,...
Details of changes in 8.6.1
~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Fix #5380: Default colors for CoqIDE are actually applied.
- Fix plugin warnings
- Document named evars (including Show ident)
- Fix Bug #5574, document function scope
- Adding a test case as requested in bug 5205.
- Fix Bug #5568, no dup notation warnings on repeated module imports
- Fix documentation of Typeclasses eauto :=
- Refactor documentation of records.
- Protecting from warnings while compiling 8.6
- Fixing an inconsistency between configure and configure.ml
- Add test-suite checks for coqchk with constraints
- Fix bug #5019 (looping zify on dependent types)
- Fix bug 5550: "typeclasses eauto with" does not work with section variables.
- Bug 5546, qualify datatype constructors when needed in Show Match
- Bug #5535, test for Show with -emacs
- Fix bug #5486, don't reverse ids in tuples
- Fixing #5522 (anomaly with free vars of pat)
- Fix bug #5526, don't check for nonlinearity in notation if printing only
- Fix bug #5255
- Fix bug #3659: -time should understand multibyte encodings.
- FIx bug #5300: Anomaly: Uncaught exception Not_found" in "Print Assumptions".
- Fix outdated description in RefMan.
- Repairing `Set Rewriting Schemes`
- Fixing #5487 (v8.5 regression on ltac-matching expressions with evars).
- Fix description of command-line arguments for Add (Rec) LoadPath
- Fix bug #5377: @? patterns broken.
- add XML protocol doc
- Fix anomaly when doing [all:Check _.] during a proof.
- Correction of bug #4306
- Fix #5435: [Eval native_compute in] raises anomaly.
- Instances should obey universe binders even when defined by tactics.
- Intern names bound in match patterns
- funind: Ignore missing info for current function
- Do not typecheck twice the type of opaque constants.
- show unused intro pattern warning
- [future] Be eager when "chaining" already resolved future values.
- Opaque side effects
- Fix #5132: coq_makefile generates incorrect install goal
- Run non-tactic comands without resilient_command
- Univs: fix bug #5365, generation of u+k <= v constraints
- make ``emit`` tail recursive
- Don't require printing-only notation to be productive
- Fix the way setoid_rewrite handles bindings.
- Fix for bug 5244 - set printing width ignored when given enough space
- Fix bug 4969, autoapply was not tagging shelved subgoals correctly
Version 8.5
-----------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.5 contains the result of five specific long-term projects:
- A new asynchronous evaluation and compilation mode by Enrico Tassi
with help from Bruno Barras and Carst Tankink.
- Full integration of the new proof engine by Arnaud Spiwack helped by
Pierre-Marie Pédrot,
- Addition of conversion and reduction based on native compilation by
Maxime Dénès and Benjamin Grégoire.
- Full universe polymorphism for definitions and inductive types by
Matthieu Sozeau.
- An implementation of primitive projections with
η-conversion bringing significant performance improvements
when using records by Matthieu Sozeau.
The full integration of the proof engine, by Arnaud Spiwack and
Pierre-Marie Pédrot, brings to primitive tactics and the user level Ltac
language dependent subgoals, deep backtracking and multiple goal
handling, along with miscellaneous features and an improved potential
for future modifications. Dependent subgoals allow statements in a goal
to mention the proof of another. Proofs of unsolved subgoals appear as
existential variables. Primitive backtracking makes it possible to write
a tactic with several possible outcomes which are tried successively
when subsequent tactics fail. Primitives are also available to control
the backtracking behavior of tactics. Multiple goal handling paves the
way for smarter automation tactics. It is currently used for simple goal
manipulation such as goal reordering.
The way Coq processes a document in batch and interactive mode has been
redesigned by Enrico Tassi with help from Bruno Barras. Opaque proofs,
the text between Proof and Qed, can be processed asynchronously,
decoupling the checking of definitions and statements from the checking
of proofs. It improves the responsiveness of interactive development,
since proofs can be processed in the background. Similarly, compilation
of a file can be split into two phases: the first one checking only
definitions and statements and the second one checking proofs. A file
resulting from the first phase – with the .vio extension – can be
already Required. All .vio files can be turned into complete .vo files
in parallel. The same infrastructure also allows terminating tactics to
be run in parallel on a set of goals via the ``par:`` goal selector.
CoqIDE was modified to cope with asynchronous checking of the document.
Its source code was also made separate from that of Coq, so that CoqIDE
no longer has a special status among user interfaces, paving the way for
decoupling its release cycle from that of Coq in the future.
Carst Tankink developed a Coq back-end for user interfaces built on
Makarius Wenzel’s Prover IDE framework (PIDE), like PIDE/jEdit (with
help from Makarius Wenzel) or PIDE/Coqoon (with help from Alexander
Faithfull and Jesper Bengtson). The development of such features was
funded by the Paral-ITP French ANR project.
The full universe polymorphism extension was designed by Matthieu
Sozeau. It conservatively extends the universes system and core calculus
with definitions and inductive declarations parameterized by universes
and constraints. It is based on a modification of the kernel
architecture to handle constraint checking only, leaving the generation
of constraints to the refinement/type inference engine. Accordingly,
tactics are now fully universe aware, resulting in more localized error
messages in case of inconsistencies and allowing higher-level algorithms
like unification to be entirely type safe. The internal representation
of universes has been modified but this is invisible to the user.
The underlying logic has been extended with η-conversion for
records defined with primitive projections by Matthieu Sozeau. This
additional form of η-conversion is justified using the same
principle than the previously added η-conversion for function
types, based on formulations of the Calculus of Inductive Constructions
with typed equality. Primitive projections, which do not carry the
parameters of the record and are rigid names (not defined as a
pattern matching construct), make working with nested records more
manageable in terms of time and space consumption. This extension and
universe polymorphism were carried out partly while Matthieu Sozeau was
working at the IAS in Princeton.
The guard condition has been made compliant with extensional equality
principles such as propositional extensionality and univalence, thanks
to Maxime Dénès and Bruno Barras. To ensure compatibility with the
univalence axiom, a new flag ``-indices-matter`` has been implemented,
taking into account the universe levels of indices when computing the
levels of inductive types. This supports using Coq as a tool to explore
the relations between homotopy theory and type theory.
Maxime Dénès and Benjamin Grégoire developed an implementation of
conversion test and normal form computation using the OCaml native
compiler. It complements the virtual machine conversion offering much
faster computation for expensive functions.
Coq 8.5 also comes with a bunch of many various smaller-scale changes
and improvements regarding the different components of the system. We
shall only list a few of them.
Pierre Boutillier developed an improved tactic for simplification of
expressions called :tacn:`cbn`.
Maxime Dénès maintained the bytecode-based reduction machine. Pierre
Letouzey maintained the extraction mechanism.
Pierre-Marie Pédrot has extended the syntax of terms to, experimentally,
allow holes in terms to be solved by a locally specified tactic.
Existential variables are referred to by identifiers rather than mere
numbers, thanks to Hugo Herbelin who also improved the tactic language
here and there.
Error messages for universe inconsistencies have been improved by
Matthieu Sozeau. Error messages for unification and type inference
failures have been improved by Hugo Herbelin, Pierre-Marie Pédrot and
Arnaud Spiwack.
Pierre Courtieu contributed new features for using Coq through Proof
General and for better interactive experience (bullets, Search, etc).
The efficiency of the whole system has been significantly improved
thanks to contributions from Pierre-Marie Pédrot.
A distribution channel for Coq packages using the opam tool has been
initiated by Thomas Braibant and developed by Guillaume Claret, with
contributions by Enrico Tassi and feedback from Hugo Herbelin.
Packaging tools were provided by Pierre Letouzey and Enrico Tassi
(Windows), Pierre Boutillier, Matthieu Sozeau and Maxime Dénès (MacOS
X). Maxime Dénès improved significantly the testing and benchmarking
support.
Many power users helped to improve the design of the new features via
the bug tracker, the coq development mailing list or the Coq-Club
mailing list. Special thanks are going to the users who contributed
patches and intensive brain-storming, starting with Jason Gross,
Jonathan Leivent, Greg Malecha, Clément Pit-Claudel, Marc Lasson, Lionel
Rieg. It would however be impossible to mention with precision all names
of people who to some extent influenced the development.
Version 8.5 is one of the most important releases of Coq. Its development
spanned over about 3 years and a half with about one year of
beta-testing. General maintenance during part or whole of this period
has been done by Pierre Boutillier, Pierre Courtieu, Maxime Dénès, Hugo
Herbelin, Pierre Letouzey, Guillaume Melquiond, Pierre-Marie Pédrot,
Matthieu Sozeau, Arnaud Spiwack, Enrico Tassi as well as Bruno Barras,
Yves Bertot, Frédéric Besson, Xavier Clerc, Pierre Corbineau,
Jean-Christophe Filliâtre, Julien Forest, Sébastien Hinderer, Assia
Mahboubi, Jean-Marc Notin, Yann Régis-Gianas, François Ripault, Carst
Tankink. Maxime Dénès coordinated the release process.
| Paris, January 2015, revised December 2015,
| Hugo Herbelin, Matthieu Sozeau and the Coq development team
|
Potential sources of incompatibilities
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
List of typical changes to be done to adapt files from Coq 8.4
to Coq 8.5 when not using compatibility option ``-compat 8.4``.
- Symptom: "The reference omega was not found in the current environment".
Cause: "Require Omega" does not import the tactic "omega" any more
Possible solutions:
+ use "Require Import OmegaTactic" (not compatible with 8.4)
+ use "Require Import Omega" (compatible with 8.4)
+ add definition "Ltac omega := Coq.omega.Omega.omega."
- Symptom: "intuition" cannot solve a goal (not working anymore on nonstandard connective)
Cause: "intuition" had an accidental non-uniform behavior fixed on nonstandard connectives
Possible solutions:
+ use "dintuition" instead; it is stronger than "intuition" and works
uniformly on nonstandard connectives, such as n-ary conjunctions or disjunctions
(not compatible with 8.4)
+ do the script differently
- Symptom: The constructor foo (in type bar) expects n arguments.
Cause: parameters must now be given in patterns
Possible solutions:
+ use option "Set Asymmetric Patterns" (compatible with 8.4)
+ add "_" for the parameters (not compatible with 8.4)
+ turn the parameters into implicit arguments (compatible with 8.4)
- Symptom: "NPeano.Nat.foo" not existing anymore\
Possible solutions:
+ use "Nat.foo" instead
Symptom: typing problems with proj1_sig or similar
Cause: coercion from sig to sigT and similar coercions have been
removed so as to make the initial state easier to understand for
beginners
Solution: change proj1_sig into projT1 and similarly (compatible with 8.4)
Other detailed changes
- options for *coq* compilation (see below for ocaml).
+ [-I foo] is now deprecated and will not add directory foo to the
coq load path (only for ocaml, see below). Just replace [-I foo] by
[-Q foo ""] in your project file and re-generate makefile. Or
perform the same operation directly in your makefile if you edit it
by hand.
+ Option -R Foo bar is the same in v8.5 than in v8.4 concerning coq
load path.
+ Option [-I foo -as bar] is unchanged but discouraged unless you
compile ocaml code. Use -Q foo bar instead.
for more details: see section "Customization at launch
time" of the reference manual.
- Command line options for ocaml Compilation of ocaml code (plugins)
+ [-I foo] is *not* deprecated to add foo to the ocaml load path.
+ [-I foo -as bar] adds foo to the ocaml load path *and* adds foo to
the coq load path with logical name bar (shortcut for -I foo -Q foo
bar).
for more details: section "Customization at launch
time" of the reference manual.
- Universe Polymorphism.
- Refinement, unification and tactics are now aware of universes,
resulting in more localized errors. Universe inconsistencies
should no more get raised at Qed time but during the proof.
Unification *always* produces well-typed substitutions, hence
some rare cases of unifications that succeeded while producing
ill-typed terms before will now fail.
- The [change p with c] tactic semantics changed, now typechecking
[c] at each matching occurrence [t] of the pattern [p], and
converting [t] with [c].
- Template polymorphic inductive types: the partial application
of a template polymorphic type (e.g. list) is not polymorphic.
An explicit parameter application (e.g [fun A => list A]) or
[apply (list _)] will result in a polymorphic instance.
- The type inference algorithm now takes opacity of constants into
account. This may have effects on tactics using type inference
(e.g. induction). Extra "Transparent" might have to be added to
revert opacity of constants.
Type classes.
- When writing an ``Instance foo : Class A := {| proj := t |}`` (note the
vertical bars), support for typechecking the projections using the
type information and switching to proof mode is no longer available.
Use ``{ }`` (without the vertical bars) instead.
Tactic abstract.
- Auxiliary lemmas generated by the abstract tactic are removed from
the global environment and inlined in the proof term when a proof
is ended with Qed. The behavior of 8.4 can be obtained by ending
proofs with "Qed exporting" or "Qed exporting ident, .., ident".
Details of changes in 8.5beta1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Logic
- Primitive projections for records allow for a compact representation
of projections, without parameters and avoid the behavior of defined
projections that can unfold to a case expression. To turn the use of
native projections on, use [Set Primitive Projections]. Record,
Class and Structure types defined while this option is set will be
defined with primitive projections instead of the usual encoding as
a case expression. For compatibility, when p is a primitive
projection, @p can be used to refer to the projection with explicit
parameters, i.e. [@p] is definitionally equal to [λ params r. r.(p)].
Records with primitive projections have eta-conversion, the
canonical form being [mkR pars (p1 t) ... (pn t)].
- New universe polymorphism (see reference manual)
- New option -type-in-type to collapse the universe hierarchy (this makes the
logic inconsistent).
- The guard condition for fixpoints is now a bit stricter. Propagation
of subterm value through pattern matching is restricted according to
the return predicate. Restores compatibility of Coq's logic with the
propositional extensionality axiom. May create incompatibilities in
recursive programs heavily using dependent types.
- Trivial inductive types are no longer defined in Type but in Prop, which
leads to a non-dependent induction principle being generated in place of
the dependent one. To recover the old behavior, explicitly define your
inductive types in Set.
Commands
- A command "Variant" allows to define non-recursive variant types.
- The command "Record foo ..." does not generate induction principles
(foo_rect, foo_rec, foo_ind) anymore by default (feature wish
#2693). The command "Variant foo ..." does not either. A flag
"Set/Unset Nonrecursive Elimination Schemes" allows changing this.
The tactic "induction" on a "Record" or a "Variant" is now actually
doing "destruct".
- The "Open Scope" command can now be given also a delimiter (e.g. Z).
- The "Definition" command now allows the "Local" modifier, allowing
for non-importable definitions. The same goes for "Axiom" and "Parameter".
- Section-specific commands such as "Let" (resp. "Variable", "Hypothesis") used
out of a section now behave like the corresponding "Local" command, i.e.
"Local Definition" (resp. "Local Parameter", "Local Axiom"). (potential source
of rare incompatibilities).
- The "Let" command can now define local (co)fixpoints.
- Command "Search" has been renamed into "SearchHead". The command
name "Search" now behaves like former "SearchAbout". The latter name
is deprecated.
- "Search", "About", "SearchHead", "SearchRewrite" and "SearchPattern"
now search for hypothesis (of the current goal by default) first.
They now also support the goal selector prefix to specify another
goal to search: e.g. "n:Search id". This is also true for
SearchAbout although it is deprecated.
- The coq/user-contrib directory and the XDG directories are no longer
recursively added to the load path, so files from installed libraries
now need to be fully qualified for the "Require" command to find them.
The tools/update-require script can be used to convert a development.
- A new Print Strategies command allows visualizing the opacity status
of the whole engine.
- The "Locate" command now searches through all sorts of qualified namespaces of
Coq: terms, modules, tactics, etc. The old behavior of the command can be
retrieved using the "Locate Term" command.
- New "Derive" command to help writing program by derivation.
- New "Refine Instance Mode" option that allows to deactivate the generation of
obligations in incomplete typeclass instances, raising an error instead.
- "Collection" command to name sets of section hypotheses. Named collections
can be used in the syntax of "Proof using" to assert which section variables
are used in a proof.
- The "Optimize Proof" command can be placed in the middle of a proof to
force the compaction of the data structure used to represent the ongoing
proof (evar map). This may result in a lower memory footprint and speed up
the execution of the following tactics.
- "Optimize Heap" command to tell the OCaml runtime to perform a major
garbage collection step and heap compaction.
- ``Instance`` no longer treats the ``{|...|}`` syntax specially; it handles it
in the same way as other commands, e.g. "Definition". Use the ``{...}``
syntax (no pipe symbols) to recover the old behavior.
Specification Language
- Slight changes in unification error messages.
- Added a syntax $(...)$ that allows putting tactics in terms (may
break user notations using "$(", fixable by inserting a space or
rewriting the notation).
- Constructors in pattern-matching patterns now respect the same rules
regarding implicit arguments as in applicative position. The old
behavior can be recovered by the command "Set Asymmetric
Patterns". As a side effect, notations for constructors explicitly
mentioning non-implicit parameters can now be used in patterns.
Considering that the pattern language is already rich enough, binding
local definitions is however now forbidden in patterns (source of
incompatibilities for local definitions that delta-reduce to a constructor).
- Type inference algorithm now granting opacity of constants. This might also
affect behavior of tactics (source of incompatibilities, solvable by
re-declaring transparent constants which were set opaque).
- Existential variables are now referred to by an identifier and the
relevant part of their instance is displayed by default. They can be
reparsed. The naming policy is yet unstable and subject to changes
in future releases.
Tactics
- New tactic engine allowing dependent subgoals, fully backtracking
(also known as multiple success) tactics, as well as tactics which
can consider multiple goals together. In the new tactic engine,
instantiation information of existential variables is always
propagated to tactics, removing the need to manually use the
"instantiate" tactics to mark propagation points.
* New tactical (a+b) inserts a backtracking point. When (a+b);c fails
during the execution of c, it can backtrack and try b instead of a.
* New tactical (once a) removes all the backtracking points from a
(i.e. it selects the first success of a).
* Tactic "constructor" is now fully backtracking. In case of
incompatibilities (e.g. combinatoric explosion), the former
behavior of "constructor" can be retrieved by using instead
"[> once constructor ..]". Thanks to backtracking, undocumented
"constructor <tac>" syntax is now equivalent to
"[> once (constructor; tac) ..]".
* New "multimatch" variant of "match" tactic which backtracks to
new branches in case of a later failure. The "match" tactic is
equivalent to "once multimatch".
* New selector "all:" such that "all:tac" applies tactic "tac" to
all the focused goals, instead of just the first one as is the
default.
* A corresponding new option Set Default Goal Selector "all" makes
the tactics in scripts be applied to all the focused goal by default
* New selector "par:" such that "par:tac" applies the (terminating)
tactic "tac" to all the focused goal in parallel. The number of worker
can be selected with -async-proofs-tac-j and also limited using the
coqworkmgr utility.
* New tactics "revgoals", "cycle" and "swap" to reorder goals.
* The semantics of recursive tactics (introduced with "Ltac t := ..."
or "let rec t := ... in ...") changed slightly as t is now
applied to every goal, not each goal independently. In particular
it may be applied when no goals are left. This may cause tactics
such as "let rec t := constructor;t" to loop indefinitely. The
simple fix is to rewrite the recursive calls as follows:
"let rec t := constructor;[t..]" which recovers the earlier behavior
(source of rare incompatibilities).
* New tactic language feature "numgoals" to count number of goals. It is
accompanied by a "guard" tactic which fails if a Boolean test over
integers does not pass.
* New tactical "[> ... ]" to apply tactics to individual goals.
* New tactic "gfail" which works like "fail" except it will also
fail if every goal has been solved.
* The refine tactic is changed not to use an ad hoc typing algorithm
to generate subgoals. It also uses the dependent subgoal feature
to generate goals to materialize every existential variable which
is introduced by the refinement (source of incompatibilities).
* A tactic shelve is introduced to manage the subgoals which may be
solved by unification: shelve removes every goal it is applied to
from focus. These goals can later be called back into focus by the
Unshelve command.
* A variant shelve_unifiable only removes those goals which appear
as existential variables in other goals. To emulate the old
refine, use "refine c;shelve_unifiable". This can still cause
incompatibilities in rare occasions.
* New "give_up" tactic to skip over a goal. A proof containing
given up goals cannot be closed with "Qed", but only with "Admitted".
- The implementation of the admit tactic has changed: no axiom is
generated for the admitted sub proof. "admit" is now an alias for
"give_up". Code relying on this specific behavior of "admit"
can be made to work by:
* Adding an "Axiom" for each admitted subproof.
* Adding a single "Axiom proof_admitted : False." and the Ltac definition
"Ltac admit := case proof_admitted.".
- Matching using "lazymatch" was fundamentally modified. It now behaves
like "match" (immediate execution of the matching branch) but without
the backtracking mechanism in case of failure.
- New "tryif t then u else v" tactical which executes "u" in case of success
of "t" and "v" in case of failure.
- New conversion tactic "native_compute": evaluates the goal (or an hypothesis)
with a call-by-value strategy, using the OCaml native compiler. Useful on
very intensive computations.
- New "cbn" tactic, a well-behaved simpl.
- Repeated identical calls to omega should now produce identical proof terms.
- Tactics btauto, a reflexive Boolean tautology solver.
- Tactic "tauto" was exceptionally able to destruct other connectives
than the binary connectives "and", "or", "prod", "sum", "iff". This
non-uniform behavior has been fixed (bug #2680) and tauto is
slightly weaker (possible source of incompatibilities). On the
opposite side, new tactic "dtauto" is able to destruct any
record-like inductive types, superseding the old version of "tauto".
- Similarly, "intuition" has been made more uniform and, where it now
fails, "dintuition" can be used (possible source of incompatibilities).
- New option "Unset Intuition Negation Unfolding" for deactivating automatic
unfolding of "not" in intuition.
- Tactic notations can now be defined locally to a module (use "Local" prefix).
- Tactic "red" now reduces head beta-iota redexes (potential source of
rare incompatibilities).
- Tactic "hnf" now reduces inner beta-iota redexes
(potential source of rare incompatibilities).
- Tactic "intro H" now reduces beta-iota redexes if these hide a product
(potential source of rare incompatibilities).
- In Ltac matching on patterns of the form "_ pat1 ... patn" now
behaves like if matching on "?X pat1 ... patn", i.e. accepting "_"
to be instantiated by an applicative term (experimental at this
stage, potential source of incompatibilities).
- In Ltac matching on goal, types of hypotheses are now interpreted in
the %type scope (possible source of incompatibilities).
- "change ... in ..." and "simpl ... in ..." now properly consider nested
occurrences (possible source of incompatibilities since this alters
the numbering of occurrences), but do not support nested occurrences.
- Tactics simpl, vm_compute and native_compute can be given a notation string
to a constant as argument.
- When given a reference as argument, simpl, vm_compute and
native_compute now strictly interpret it as the head of a pattern
starting with this reference.
- The "change p with c" tactic semantics changed, now type checking
"c" at each matching occurrence "t" of the pattern "p", and
converting "t" with "c".
- Now "appcontext" and "context" behave the same. The old buggy behavior of
"context" can be retrieved at parse time by setting the
"Tactic Compat Context" flag (possible source of incompatibilities).
- New introduction pattern p/c which applies lemma c on the fly on the
hypothesis under consideration before continuing with introduction pattern p.
- New introduction pattern [= x1 .. xn] applies "injection as [x1 .. xn]"
on the fly if injection is applicable to the hypothesis under consideration
(idea borrowed from Georges Gonthier). Introduction pattern [=] applies
"discriminate" if a discriminable equality.
- New introduction patterns * and ** to respectively introduce all forthcoming
dependent variables and all variables/hypotheses dependent or not.
- Tactic "injection c as ipats" now clears c if c refers to an
hypothesis and moves the resulting equations in the hypotheses
independently of the number of ipats, which has itself to be less
than the number of new hypotheses (possible source of incompatibilities;
former behavior obtainable by "Unset Injection L2R Pattern Order").
- Tactic "injection" now automatically simplifies subgoals
"existT n p = existT n p'" into "p = p'" when "n" is in an inductive type for
which a decidable equality scheme has been generated with "Scheme Equality"
(possible source of incompatibilities).
- New tactic "rewrite_strat" for generalized rewriting with user-defined
strategies, subsuming autorewrite.
- Injection can now also deduce equality of arguments of sort Prop, by using
the option "Set Injection On Proofs" (disabled by default). Also improved the
error messages.
- Tactic "subst id" now supports id occurring in dependent local definitions.
- Bugs fixed about intro-pattern "*" might lead to some rare incompatibilities.
- New tactical "time" to display time spent executing its argument.
- Tactics referring or using a constant dependent in a section variable which
has been cleared or renamed in the current goal context now fail
(possible source of incompatibilities solvable by avoiding clearing
the relevant hypotheses).
- New construct "uconstr:c" and "type_term c" to build untyped terms.
- Binders in terms defined in Ltac (either "constr" or "uconstr") can
now take their names from identifiers defined in Ltac. As a
consequence, a name cannot be used in a binder "constr:(fun x =>
...)" if an Ltac variable of that name already exists and does not
contain an identifier. Source of occasional incompatibilities.
- The "refine" tactic now accepts untyped terms built with "uconstr"
so that terms with holes can be constructed piecewise in Ltac.
- New bullets --, ++, **, ---, +++, ***, ... made available.
- More informative messages when wrong bullet is used.
- Bullet suggestion when a subgoal is solved.
- New tactic "enough", symmetric to "assert", but with subgoals
swapped, as a more friendly replacement of "cut".
- In destruct/induction, experimental modifier "!" prefixing the
hypothesis name to tell not erasing the hypothesis.
- Bug fixes in "inversion as" may occasionally lead to incompatibilities.
- Behavior of introduction patterns -> and <- made more uniform
(hypothesis is cleared, rewrite in hypotheses and conclusion and
erasing the variable when rewriting a variable).
- New experimental option "Set Standard Proposition Elimination Names"
so that case analysis or induction on schemes in Type containing
propositions now produces "H"-based names.
- Tactics from plugins are now active only when the corresponding module
is imported (source of incompatibilities, solvable by adding an "Import";
in the particular case of Omega, use "Require Import OmegaTactic").
- Semantics of destruct/induction has been made more regular in some
edge cases, possibly leading to incompatibilities:
+ new goals are now opened when the term does not match a subterm of
the goal and has unresolved holes, while in 8.4 these holes were
turned into existential variables
+ when no "at" option is given, the historical semantics which
selects all subterms syntactically identical to the first subterm
matching the given pattern is used
+ non-dependent destruct/induction on an hypothesis with premises in
an inductive type with indices is fixed
+ residual local definitions are now correctly removed.
- The rename tactic may now replace variables in parallel.
- A new "Info" command replaces the "info" tactical discontinued in
v8.4. It still gives informative results in many cases.
- The "info_auto" tactic is known to be broken and does not print a
trace anymore. Use "Info 1 auto" instead. The same goes for
"info_trivial". On the other hand "info_eauto" still works fine,
while "Info 1 eauto" prints a trivial trace.
- When using a lemma of the prototypical form "forall A, {a:A & P a}",
"apply" and "apply in" do not instantiate anymore "A" with the
current goal and use "a" as the proof, as they were sometimes doing,
now considering that it is a too powerful decision.
Program
- "Solve Obligations using" changed to "Solve Obligations with",
consistent with "Proof with".
- Program Lemma, Definition now respect automatic introduction.
- Program Lemma, Definition, etc.. now interpret "->" like Lemma and
Definition as a non-dependent arrow (potential source of
incompatibility).
- Add/document "Set Hide Obligations" (to hide obligations in the final
term inside an implicit argument) and "Set Shrink Obligations" (to
minimize dependencies of obligations defined by tactics).
Notations
- The syntax "x -> y" is now declared at level 99. In particular, it has
now a lower priority than "<->": "A -> B <-> C" is now "A -> (B <-> C)"
(possible source of incompatibilities)
- Notations accept term-providing tactics using the $(...)$ syntax.
- "Bind Scope" can no longer bind "Funclass" and "Sortclass".
- A notation can be given a (compat "8.x") annotation, making it behave
like a "only parsing" notation, but the annotation may lead to eventually
issue warnings or errors in further versions when this notation is used.
- More systematic insertion of spaces as a default for printing
notations ("format" still available to override the default).
- In notations, a level modifier referring to a non-existent variable is
now considered an error rather than silently ignored.
Tools
- Option -I now only adds directories to the ml path.
- Option -Q behaves as -R, except that the logical path of any loaded file has
to be fully qualified.
- Option -R no longer adds recursively to the ml path; only the root
directory is added. (Behavior with respect to the load path is
unchanged.)
- Option -nois prevents coq/theories and coq/plugins to be recursively
added to the load path. (Same behavior as with coq/user-contrib.)
- coqdep accepts a -dumpgraph option generating a dot file.
- Makefiles generated through coq_makefile have three new targets "quick"
"checkproofs" and "vio2vo", allowing respectively to asynchronously compile
the files without playing the proof scripts, asynchronously checking
that the quickly generated proofs are correct and generating the object
files from the quickly generated proofs.
- The XML plugin was discontinued and removed from the source.
- A new utility called coqworkmgr can be used to limit the number of
concurrent workers started by independent processes, like make and CoqIDE.
This is of interest for users of the par: goal selector.
Interfaces
- CoqIDE supports asynchronous edition of the document, ongoing tasks and
errors are reported in the bottom right window. The number of workers
taking care of processing proofs can be selected with -async-proofs-j.
- CoqIDE highlights in yellow "unsafe" commands such as axiom
declarations, and tactics like "give_up".
- CoqIDE supports Proof General like key bindings;
to activate the PG mode go to Edit -> Preferences -> Editor.
For the documentation see Help -> Help for PG mode.
- CoqIDE automatically retracts the locked area when one edits the
locked text.
- CoqIDE search and replace got regular expressions power. See the
documentation of OCaml's Str module for the supported syntax.
- Many CoqIDE windows, including the query one, are now detachable to
improve usability on multi screen work stations.
- Coqtop/coqc outputs highlighted syntax. Colors can be configured thanks
to the COQ_COLORS environment variable, and their current state can
be displayed with the -list-tags command line option.
- Third party user interfaces can install their main loop in $COQLIB/toploop
and call coqtop with the -toploop flag to select it.
Internal Infrastructure
- Many reorganizations in the ocaml source files. For instance,
many internal a.s.t. of Coq are now placed in mli files in
a new directory intf/, for instance constrexpr.mli or glob_term.mli.
More details in dev/doc/changes.
- The file states/initial.coq does not exist anymore. Instead, coqtop
initially does a "Require" of Prelude.vo (or nothing when given
the options -noinit or -nois).
- The format of vo files has slightly changed: cf final comments in
checker/cic.mli.
- The build system does not produce anymore programs named coqtop.opt
and a symbolic link to coqtop. Instead, coqtop is now directly
an executable compiled with the best OCaml compiler available.
The bytecode program coqtop.byte is still produced. Same for other
utilities.
- Some options of the ./configure script slightly changed:
* The -coqrunbyteflags and its blank-separated argument is replaced
by option -vmbyteflags which expects a comma-separated argument.
* The -coqtoolsbyteflags option is discontinued, see -no-custom instead.
Miscellaneous
- ML plugins now require a "DECLARE PLUGIN \"foo\"" statement. The "foo" name
must be exactly the name of the ML module that will be loaded through a
"Declare ML \"foo\"" command.
Details of changes in 8.5beta2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Logic
- The VM now supports inductive types with up to 8388851 non-constant
constructors and up to 8388607 constant ones.
Specification language
- Syntax "$(tactic)$" changed to "ltac: tactic".
Tactics
- A script using the admit tactic can no longer be concluded by either
Qed or Defined. In the first case, Admitted can be used instead. In
the second case, a subproof should be used.
- The easy tactic and the now tactical now have a more predictable
behavior, but they might now discharge some previously unsolved goals.
Extraction
- Definitions extracted to Haskell GHC should no longer randomly
segfault when some Coq types cannot be represented by Haskell types.
- Definitions can now be extracted to Json for post-processing.
Tools
- Option -I -as has been removed, and option -R -as has been
deprecated. In both cases, option -R can be used instead.
- coq_makefile now generates double-colon rules for rules such as clean.
API
- The interface of [change] has changed to take a [change_arg], which
can be built from a [constr] using [make_change_arg].
Details of changes in 8.5beta3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Commands
- New command "Redirect" to redirect the output of a command to a file.
- New command "Undelimit Scope" to remove the delimiter of a scope.
- New option "Strict Universe Declaration", set by default. It enforces the
declaration of all polymorphic universes appearing in a definition when
introducing it.
- New command "Show id" to show goal named id.
- Option "Virtual Machine" removed.
Tactics
- New flag "Regular Subst Tactic" which fixes "subst" in situations where
it failed to substitute all substitutable equations or failed to simplify
cycles, or accidentally unfolded local definitions (flag is off by default).
- New flag "Loose Hint Behavior" to handle hints loaded but not imported in a
special way. It accepts three distinct flags:
* "Lax", which is the default one, sets the old behavior, i.e. a non-imported
hint behaves the same as an imported one.
* "Warn" outputs a warning when a non-imported hint is used. Note that this is
an over-approximation, because a hint may be triggered by an eauto run that
will eventually fail and backtrack.
* "Strict" changes the behavior of an unloaded hint to the one of the fail
tactic, allowing to emulate the hopefully future import-scoped hint mechanism.
- New compatibility flag "Universal Lemma Under Conjunction" which
let tactics working under conjunctions apply sublemmas of the form
"forall A, ... -> A".
- New compatibility flag "Bracketing Last Introduction Pattern" which can be
set so that the last disjunctive-conjunctive introduction pattern given to
"intros" automatically complete the introduction of its subcomponents, as the
the disjunctive-conjunctive introduction patterns in non-terminal position
already do.
- New flag "Shrink Abstract" that minimalizes proofs generated by the abstract
tactical w.r.t. variables appearing in the body of the proof.
Program
- The "Shrink Obligations" flag now applies to all obligations, not only those
solved by the automatic tactic.
- Importing Program no longer overrides the "exists" tactic (potential source
of incompatibilities).
- Hints costs are now correctly taken into account (potential source of
incompatibilities).
- Documented the Hint Cut command that allows control of the
proof search during typeclass resolution (see reference manual).
API
- Some functions from pretyping/typing.ml and their derivatives were potential
source of evarmap leaks, as they dropped their resulting evarmap. The
situation was clarified by renaming them according to a ``unsafe_*`` scheme. Their
sound variant is likewise renamed to their old name. The following renamings
were made.
* ``Typing.type_of`` -> ``unsafe_type_of``
* ``Typing.e_type_of`` -> ``type_of``
* A new ``e_type_of`` function that matches the ``e_`` prefix policy
* ``Tacmach.pf_type_of`` -> ``pf_unsafe_type_of``
* A new safe ``pf_type_of`` function.
All uses of ``unsafe_*`` functions should be eventually eliminated.
Tools
- Added an option -w to control the output of coqtop warnings.
- Configure now takes an optional -native-compiler (yes|no) flag replacing
-no-native-compiler. The new flag is set to no by default under Windows.
- Flag -no-native-compiler was removed and became the default for coqc. If
precompilation of files for native conversion test is desired, use
-native-compiler.
- The -compile command-line option now takes the full path of the considered
file, including the ".v" extension, and outputs a warning if such an extension
is lacking.
- The -require and -load-vernac-object command-line options now take a logical
path of a given library rather than a physical path, thus they behave like
Require [Import] path.
- The -vm command-line option has been removed.
Standard Library
- There is now a Coq.Compat.Coq84 library, which sets the various compatibility
options and does a few redefinitions to make Coq behave more like Coq v8.4.
The standard way of putting Coq in v8.4 compatibility mode is to pass the command
line flags "-require Coq.Compat.Coq84 -compat 8.4".
Details of changes in 8.5
~~~~~~~~~~~~~~~~~~~~~~~~~
Tools
- Flag "-compat 8.4" now loads Coq.Compat.Coq84. The standard way of
putting Coq in v8.4 compatibility mode is to pass the command line flag
"-compat 8.4". It can be followed by "-require Coq.Compat.AdmitAxiom"
if the 8.4 behavior of admit is needed, in which case it uses an axiom.
Specification language
- Syntax "$(tactic)$" changed to "ltac:(tactic)".
Tactics
- Syntax "destruct !hyp" changed to "destruct (hyp)", and similarly
for induction (rare source of incompatibilities easily solvable by
removing parentheses around "hyp" when not for the purpose of keeping
the hypothesis).
- Syntax "p/c" for on-the-fly application of a lemma c before
introducing along pattern p changed to p%c1..%cn. The feature and
syntax are in experimental stage.
- "Proof using" does not clear unused section variables.
- Tactic "refine" has been changed back to the 8.4 behavior of shelving subgoals
that occur in other subgoals. The "refine" tactic of 8.5beta3 has been
renamed "simple refine"; it does not shelve any subgoal.
- New tactical "unshelve tac" which grab existential variables put on
the tactic shelve by the execution of "tac".
Details of changes in 8.5pl1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Critical bugfix
- The subterm relation for the guard condition was incorrectly defined on
primitive projections (#4588)
Plugin development tools
- add a .merlin target to the makefile
Various performance improvements (time, space used by .vo files)
Other bugfixes
- Fix order of arguments to Big.compare_case in ExtrOcamlZBigInt.v
- Added compatibility coercions from Specif.v which were present in Coq 8.4.
- Fixing a source of inefficiency and an artificial dependency in the printer in the congruence tactic.
- Allow to unset the refinement mode of Instance in ML
- Fixing an incorrect use of prod_appvect on a term which was not a product in setoid_rewrite.
- Add -compat 8.4 econstructor tactics, and tests
- Add compatibility Nonrecursive Elimination Schemes
- Fixing the "No applicable tactic" uninformative error message regression on apply.
- Univs: fix get_current_context (bug #4603, part I)
- Fix a bug in Program coercion code
- Fix handling of arity of definitional classes.
- #4630: Some tactics are 20x slower in 8.5 than 8.4.
- #4627: records with no declared arity can be template polymorphic.
- #4623: set tactic too weak with universes (regression)
- Fix incorrect behavior of CS resolution
- #4591: Uncaught exception in directory browsing.
- CoqIDE is more resilient to initialization errors.
- #4614: "Fully check the document" is uninterruptible.
- Try eta-expansion of records only on non-recursive ones
- Fix bug when a sort is ascribed to a Record
- Primitive projections: protect kernel from erroneous definitions.
- Fixed bug #4533 with previous Keyed Unification commit
- Win: kill unreliable hence do not waitpid after kill -9 (Close #4369)
- Fix strategy of Keyed Unification
- #4608: Anomaly "output_value: abstract value (outside heap)".
- #4607: do not read native code files if native compiler was disabled.
- #4105: poor escaping in the protocol between CoqIDE and coqtop.
- #4596: [rewrite] broke in the past few weeks.
- #4533 (partial): respect declared global transparency of projections in unification.ml
- #4544: Backtrack on using full betaiota reduction during keyed unification.
- #4540: CoqIDE bottom progress bar does not update.
- Fix regression from 8.4 in reflexivity
- #4580: [Set Refine Instance Mode] also used for Program Instance.
- #4582: cannot override notation [ x ]. MAY CREATE INCOMPATIBILITIES, see #4683.
- STM: Print/Extraction have to be skipped if -quick
- #4542: CoqIDE: STOP button also stops workers
- STM: classify some variants of Instance as regular `` `Fork `` nodes.
- #4574: Anomaly: Uncaught exception Invalid_argument("splay_arity").
- Do not give a name to anonymous evars anymore. See bug #4547.
- STM: always stock in vio files the first node (state) of a proof
- STM: not delegate proofs that contain Vernac(Module|Require|Import), #4530
- Don't fail fatally if PATH is not set.
- #4537: Coq 8.5 is slower in typeclass resolution.
- #4522: Incorrect "Warning..." on windows.
- #4373: coqdep does not know about .vio files.
- #3826: "Incompatible module types" is uninformative.
- #4495: Failed assertion in metasyntax.ml.
- #4511: evar tactic can create non-typed evars.
- #4503: mixing universe polymorphic and monomorphic variables and definitions in sections is unsupported.
- #4519: oops, global shadowed local universe level bindings.
- #4506: Anomaly: File "pretyping/indrec.ml", line 169, characters 14-20: Assertion failed.
- #4548: CoqIDE crashes when going back one command
Details of changes in 8.5pl2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Critical bugfix
- Checksums of .vo files dependencies were not correctly checked.
- Unicode-to-ASCII translation was not injective, leading in a soundness bug in
the native compiler.
Other bugfixes
- #4097: more efficient occur-check in presence of primitive projections
- #4398: type_scope used consistently in "match goal".
- #4450: eauto does not work with polymorphic lemmas
- #4677: fix alpha-conversion in notations needing eta-expansion.
- Fully preserve initial order of hypotheses in "Regular Subst Tactic" mode.
- #4644: a regression in unification.
- #4725: Function (Error: Conversion test raised an anomaly) and Program
(Error: Cannot infer this placeholder of type)
- #4747: Problem building Coq 8.5pl1 with OCaml 4.03.0: Fatal warnings
- #4752: CoqIDE crash on files not ended by ".v".
- #4777: printing inefficiency with implicit arguments
- #4818: "Admitted" fails due to undefined universe anomaly after calling
"destruct"
- #4823: remote counter: avoid thread race on sockets
- #4841: -verbose flag changed semantics in 8.5, is much harder to use
- #4851: [nsatz] cannot handle duplicated hypotheses
- #4858: Anomaly: Uncaught exception Failure("hd"). Please report. in variant
of nsatz
- #4880: [nsatz_compute] generates invalid certificates if given redundant
hypotheses
- #4881: synchronizing "Declare Implicit Tactic" with backtrack.
- #4882: anomaly with Declare Implicit Tactic on hole of type with evars
- Fix use of "Declare Implicit Tactic" in refine.
triggered by CoqIDE
- #4069, #4718: congruence fails when universes are involved.
Universes
- Disallow silently dropping universe instances applied to variables
(forward compatible)
- Allow explicit universe instances on notations, when they can apply
to the head reference of their expansion.
Build infrastructure
- New update on how to find camlp5 binary and library at configure time.
Details of changes in 8.5pl3
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Critical bugfix
- #4876: Guard checker incompleteness when using primitive projections
Other bugfixes
- #4780: Induction with universe polymorphism on was creating ill-typed terms.
- #4673: regression in setoid_rewrite, unfolding let-ins for type unification.
- #4754: Regression in setoid_rewrite, allow postponed unification problems to remain.
- #4769: Anomaly with universe polymorphic schemes defined inside sections.
- #3886: Program: duplicate obligations of mutual fixpoints.
- #4994: Documentation typo.
- #5008: Use the "md5" command on OpenBSD.
- #5007: Do not assume the "TERM" environment variable is always set.
- #4606: Output a break before a list only if there was an empty line.
- #5001: metas not cleaned properly in clenv_refine_in.
- #2336: incorrect glob data for module symbols (bug #2336).
- #4832: Remove extraneous dot in error message.
- Anomaly in printing a unification error message.
- #4947: Options which take string arguments are not backwards compatible.
- #4156: micromega cache files are now hidden files.
- #4871: interrupting par:abstract kills coqtop.
- #5043: [Admitted] lemmas pick up section variables.
- Fix name of internal refine ("simple refine").
- #5062: probably a typo in Strict Proofs mode.
- #5065: Anomaly: Not a proof by induction.
- Restore native compiler optimizations, they were disabled since 8.5!
- #5077: failure on typing a fixpoint with evars in its type.
- Fix recursive notation bug.
- #5095: irrelevant too strict test in let-in abstraction.
- Ensuring that the evar name is preserved by "rename".
- #4887: confusion between using and with in documentation of firstorder.
- Bug in subst with let-ins.
- #4762: eauto weaker than auto.
- Remove if_then_else (was buggy). Use tryif instead.
- #4970: confusion between special "{" and non-special "{{" in notations.
- #4529: primitive projections unfolding.
- #4416: Incorrect "Error: Incorrect number of goals".
- #4863: abstract in typeclass hint fails.
- #5123: unshelve can impact typeclass resolution
- Fix a collision about the meta-variable ".." in recursive notations.
- Fix printing of info_auto.
- #3209: Not_found due to an occur-check cycle.
- #5097: status of evars refined by "clear" in ltac: closed wrt evars.
- #5150: Missing dependency of the test-suite subsystems in prerequisite.
- Fix a bug in error printing of unif constraints
- #3941: Do not stop propagation of signals when Coq is busy.
- #4822: Incorrect assertion in cbn.
- #3479 parsing of "{" and "}" when a keyword starts with "{" or "}".
- #5127: Memory corruption with the VM.
- #5102: bullets parsing broken by calls to parse_entry.
Various documentation improvements
Version 8.4
-----------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.4 contains the result of three long-term projects: a new
modular library of arithmetic by Pierre Letouzey, a new proof engine by
Arnaud Spiwack and a new communication protocol for CoqIDE by Vincent
Gross.
The new modular library of arithmetic extends, generalizes and unifies
the existing libraries on Peano arithmetic (types nat, N and BigN),
positive arithmetic (type positive), integer arithmetic (Z and BigZ) and
machine word arithmetic (type Int31). It provides with unified notations
(e.g. systematic use of add and mul for denoting the addition and
multiplication operators), systematic and generic development of
operators and properties of these operators for all the types mentioned
above, including gcd, pcm, power, square root, base 2 logarithm,
division, modulo, bitwise operations, logical shifts, comparisons,
iterators, ...
The most visible feature of the new proof engine is the support for
structured scripts (bullets and proof brackets) but, even if yet not
user-available, the new engine also provides the basis for refining
existential variables using tactics, for applying tactics to several
goals simultaneously, for reordering goals, all features which are
planned for the next release. The new proof engine forced Pierre Letouzey
to reimplement info and Show Script differently.
Before version 8.4, CoqIDE was linked to Coq with the graphical
interface living in a separate thread. From version 8.4, CoqIDE is a
separate process communicating with Coq through a textual channel. This
allows for a more robust interfacing, the ability to interrupt Coq
without interrupting the interface, and the ability to manage several
sessions in parallel. Relying on the infrastructure work made by Vincent
Gross, Pierre Letouzey, Pierre Boutillier and Pierre-Marie Pédrot
contributed many various refinements of CoqIDE.
Coq 8.4 also comes with a bunch of various smaller-scale changes
and improvements regarding the different components of the system.
The underlying logic has been extended with η-conversion
thanks to Hugo Herbelin, Stéphane Glondu and Benjamin Grégoire. The
addition of η-conversion is justified by the confidence that
the formulation of the Calculus of Inductive Constructions based on
typed equality (such as the one considered in Lee and Werner to build a
set-theoretic model of CIC :cite:`LeeWerner11`) is
applicable to the concrete implementation of Coq.
The underlying logic benefited also from a refinement of the guard
condition for fixpoints by Pierre Boutillier, the point being that it is
safe to propagate the information about structurally smaller arguments
through β-redexes that are blocked by the “match”
construction (blocked commutative cuts).
Relying on the added permissiveness of the guard condition, Hugo
Herbelin could extend the pattern matching compilation algorithm so that
matching over a sequence of terms involving dependencies of a term or of
the indices of the type of a term in the type of other terms is
systematically supported.
Regarding the high-level specification language, Pierre Boutillier
introduced the ability to give implicit arguments to anonymous
functions, Hugo Herbelin introduced the ability to define notations with
several binders (e.g. ``exists x y z, P``), Matthieu Sozeau made the
typeclass inference mechanism more robust and predictable, Enrico
Tassi introduced a command Arguments that generalizes Implicit Arguments
and Arguments Scope for assigning various properties to arguments of
constants. Various improvements in the type inference algorithm were
provided by Matthieu Sozeau and Hugo Herbelin with contributions from
Enrico Tassi.
Regarding tactics, Hugo Herbelin introduced support for referring to
expressions occurring in the goal by pattern in tactics such as set or
destruct. Hugo Herbelin also relied on ideas from Chung-Kil Hur’s Heq
plugin to introduce automatic computation of occurrences to generalize
when using destruct and induction on types with indices. Stéphane Glondu
introduced new tactics :tacn:`constr_eq`, :tacn:`is_evar`, and :tacn:`has_evar`, to be used
when writing complex tactics. Enrico Tassi added support to fine-tuning
the behavior of :tacn:`simpl`. Enrico Tassi added the ability to specify over
which variables of a section a lemma has to be exactly generalized.
Pierre Letouzey added a tactic timeout and the interruptibility of
:tacn:`vm_compute`. Bug fixes and miscellaneous improvements of the tactic
language came from Hugo Herbelin, Pierre Letouzey and Matthieu Sozeau.
Regarding decision tactics, Loïc Pottier maintained nsatz, moving in
particular to a typeclass based reification of goals while Frédéric
Besson maintained Micromega, adding in particular support for division.
Regarding commands, Stéphane Glondu provided new commands to
analyze the structure of type universes.
Regarding libraries, a new library about lists of a given length (called
vectors) has been provided by Pierre Boutillier. A new instance of
finite sets based on Red-Black trees and provided by Andrew Appel has
been adapted for the standard library by Pierre Letouzey. In the library
of real analysis, Yves Bertot changed the definition of :math:`\pi` and
provided a proof of the long-standing fact yet remaining unproved in
this library, namely that :math:`sin \frac{\pi}{2} =
1`.
Pierre Corbineau maintained the Mathematical Proof Language (C-zar).
Bruno Barras and Benjamin Grégoire maintained the call-by-value
reduction machines.
The extraction mechanism benefited from several improvements provided by
Pierre Letouzey.
Pierre Letouzey maintained the module system, with contributions from
Élie Soubiran.
Julien Forest maintained the Function command.
Matthieu Sozeau maintained the setoid rewriting mechanism.
Coq related tools have been upgraded too. In particular, coq\_makefile
has been largely revised by Pierre Boutillier. Also, patches from Adam
Chlipala for coqdoc have been integrated by Pierre Boutillier.
Bruno Barras and Pierre Letouzey maintained the `coqchk` checker.
Pierre Courtieu and Arnaud Spiwack contributed new features for using
Coq through Proof General.
The Dp plugin has been removed. Use the plugin provided with Why 3
instead (http://why3.lri.fr/).
Under the hood, the Coq architecture benefited from improvements in
terms of efficiency and robustness, especially regarding universes
management and existential variables management, thanks to Pierre
Letouzey and Yann Régis-Gianas with contributions from Stéphane Glondu
and Matthias Puech. The build system is maintained by Pierre Letouzey
with contributions from Stéphane Glondu and Pierre Boutillier.
A new backtracking mechanism simplifying the task of external interfaces
has been designed by Pierre Letouzey.
The general maintenance was done by Pierre Letouzey, Hugo Herbelin,
Pierre Boutillier, Matthieu Sozeau and Stéphane Glondu with also
specific contributions from Guillaume Melquiond, Julien Narboux and
Pierre-Marie Pédrot.
Packaging tools were provided by Pierre Letouzey (Windows), Pierre
Boutillier (MacOS), Stéphane Glondu (Debian). Releasing, testing and
benchmarking support was provided by Jean-Marc Notin.
Many suggestions for improvements were motivated by feedback from users,
on either the bug tracker or the Coq-Club mailing list. Special thanks
are going to the users who contributed patches, starting with Tom
Prince. Other patch contributors include Cédric Auger, David Baelde, Dan
Grayson, Paolo Herms, Robbert Krebbers, Marc Lasson, Hendrik Tews and
Eelis van der Weegen.
| Paris, December 2011
| Hugo Herbelin
|
Potential sources of incompatibilities
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The main known incompatibilities between 8.3 and 8.4 are consequences
of the following changes:
- The reorganization of the library of numbers:
Several definitions have new names or are defined in modules of
different names, but a special care has been taken to have this
renaming transparent for the user thanks to compatibility notations.
However some definitions have changed, what might require some
adaptations. The most noticeable examples are:
+ The "?=" notation which now bind to Pos.compare rather than former
Pcompare (now Pos.compare_cont).
+ Changes in names may induce different automatically generated
names in proof scripts (e.g. when issuing "destruct Z_le_gt_dec").
+ Z.add has a new definition, hence, applying "simpl" on subterms of
its body might give different results than before.
+ BigN.shiftl and BigN.shiftr have reversed arguments order, the
power function in BigN now takes two BigN.
- Other changes in libraries:
+ The definition of functions over "vectors" (list of fixed length)
have changed.
+ TheoryList.v has been removed.
- Slight changes in tactics:
+ Less unfolding of fixpoints when applying destruct or inversion on
a fixpoint hiding an inductive type (add an extra call to simpl to
preserve compatibility).
+ Less unexpected local definitions when applying "destruct"
(incompatibilities solvable by adapting name hypotheses).
+ Tactic "apply" might succeed more often, e.g. by now solving
pattern-matching of the form ?f x y = g(x,y) (compatibility
ensured by using "Unset Tactic Pattern Unification"), but also
because it supports (full) betaiota (using "simple apply" might
then help).
+ Tactic autorewrite does no longer instantiate pre-existing
existential variables.
+ Tactic "info" is now available only for auto, eauto and trivial.
- Miscellaneous changes:
+ The command "Load" is now atomic for backtracking (use "Unset
Atomic Load" for compatibility).
Details of changes in 8.4beta
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Logic
- Standard eta-conversion now supported (dependent product only).
- Guard condition improvement: subterm property is propagated through beta-redex
blocked by pattern-matching, as in "(match v with C .. => fun x => u end) x";
this allows for instance to use "rewrite ... in ..." without breaking
the guard condition.
Specification language and notations
- Maximal implicit arguments can now be set locally by { }. The registration
traverses fixpoints and lambdas. Because there is conversion in types,
maximal implicit arguments are not taken into account in partial
applications (use eta expanded form with explicit { } instead).
- Added support for recursive notations with binders (allows for instance
to write "exists x y z, P").
- Structure/Record printing can be disable by "Unset Printing Records".
In addition, it can be controlled on type by type basis using
"Add Printing Record" or "Add Printing Constructor".
- Pattern-matching compilation algorithm: in "match x, y with ... end",
possible dependencies of x (or of the indices of its type) in the type
of y are now taken into account.
Tactics
- New proof engine.
- Scripts can now be structured thanks to bullets - * + and to subgoal
delimitation via { }. Note: for use with Proof General, a cvs version of
Proof General no older than mid-July 2011 is currently required.
- Support for tactical "info" is suspended.
- Support for command "Show Script" is suspended.
- New tactics constr_eq, is_evar and has_evar for use in Ltac (DOC TODO).
- Removed the two-argument variant of "decide equality".
- New experimental tactical "timeout <n> <tac>". Since <n> is a time
in second for the moment, this feature should rather be avoided
in scripts meant to be machine-independent.
- Fix in "destruct": removal of unexpected local definitions in context might
result in some rare incompatibilities (solvable by adapting name hypotheses).
- Introduction pattern "_" made more robust.
- Tactic (and Eval command) vm_compute can now be interrupted via Ctrl-C.
- Unification in "apply" supports unification of patterns of the form
?f x y = g(x,y) (compatibility ensured by using
"Unset Tactic Pattern Unification"). It also supports (full) betaiota.
- Tactic autorewrite does no longer instantiate pre-existing
existential variables (theoretical source of possible incompatibilities).
- Tactic "dependent rewrite" now supports equality in "sig".
- Tactic omega now understands Zpred (wish #1912) and can prove any goal
from a context containing an arithmetical contradiction (wish #2236).
- Using "auto with nocore" disables the use of the "core" database (wish #2188).
This pseudo-database "nocore" can also be used with trivial and eauto.
- Tactics "set", "destruct" and "induction" accepts incomplete terms and
use the goal to complete the pattern assuming it is unambiguous.
- When used on arguments with a dependent type, tactics such as
"destruct", "induction", "case", "elim", etc. now try to abstract
automatically the dependencies over the arguments of the types
(based on initial ideas from Chung-Kil Hur, extension to nested
dependencies suggested by Dan Grayson)
- Tactic "injection" now failing on an equality showing no constructors while
it was formerly generalizing again the goal over the given equality.
- In Ltac, the "context [...]" syntax has now a variant "appcontext [...]"
allowing to match partial applications in larger applications.
- When applying destruct or inversion on a fixpoint hiding an inductive
type, recursive calls to the fixpoint now remain folded by default (rare
source of incompatibility generally solvable by adding a call to simpl).
- In an ltac pattern containing a "match", a final "| _ => _" branch could be
used now instead of enumerating all remaining constructors. Moreover, the
pattern "match _ with _ => _ end" now allows to match any "match". A "in"
annotation can also be added to restrict to a precise inductive type.
- The behavior of "simpl" can be tuned using the "Arguments" vernacular.
In particular constants can be marked so that they are always/never unfolded
by "simpl", or unfolded only when a set of arguments evaluates to a
constructor. Last one can mark a constant so that it is unfolded only if the
simplified term does not expose a match in head position.
Commands
- It is now mandatory to have a space (or tabulation or newline or end-of-file)
after a "." ending a sentence.
- In SearchAbout, the [ ] delimiters are now optional.
- New command "Add/Remove Search Blacklist <substring> ...":
a Search or SearchAbout or similar query will never mention lemmas
whose qualified names contain any of the declared substrings.
The default blacklisted substrings are ``_subproof``, ``Private_``.
- When the output file of "Print Universes" ends in ".dot" or ".gv",
the universe graph is printed in the DOT language, and can be
processed by Graphviz tools.
- New command "Print Sorted Universes".
- The undocumented and obsolete option "Set/Unset Boxed Definitions" has
been removed, as well as syntaxes like "Boxed Fixpoint foo".
- A new option "Set Default Timeout n / Unset Default Timeout".
- Qed now uses information from the reduction tactics used in proof script
to avoid conversion at Qed time to go into a very long computation.
- New command "Show Goal ident" to display the statement of a goal, even
a closed one (available from Proof General).
- Command "Proof" accept a new modifier "using" to force generalization
over a given list of section variables at section ending (DOC TODO).
- New command "Arguments" generalizing "Implicit Arguments" and
"Arguments Scope" and that also allows to rename the parameters of a
definition and to tune the behavior of the tactic "simpl".
Module System
- During subtyping checks, an opaque constant in a module type could now
be implemented by anything of the right type, even if bodies differ.
Said otherwise, with respect to subtyping, an opaque constant behaves
just as a parameter. Coqchk was already implementing this, but not coqtop.
- The inlining done during application of functors can now be controlled
more precisely, by the annotations (no inline) or (inline at level XX).
With the latter annotation, only functor parameters whose levels
are lower or equal than XX will be inlined.
The level of a parameter can be fixed by "Parameter Inline(30) foo".
When levels aren't given, the default value is 100. One can also use
the flag "Set Inline Level ..." to set a level (DOC TODO).
- Print Assumptions should now handle correctly opaque modules (#2168).
- Print Module (Type) now tries to print more details, such as types and
bodies of the module elements. Note that Print Module Type could be
used on a module to display only its interface. The option
"Set Short Module Printing" could be used to switch back to the earlier
behavior were only field names were displayed.
Libraries
- Extension of the abstract part of Numbers, which now provide axiomatizations
and results about many more integer functions, such as pow, gcd, lcm, sqrt,
log2 and bitwise functions. These functions are implemented for nat, N, BigN,
Z, BigZ. See in particular file NPeano for new functions about nat.
- The definition of types positive, N, Z is now in file BinNums.v
- Major reorganization of ZArith. The initial file ZArith/BinInt.v now contains
an internal module Z implementing the Numbers interface for integers.
This module Z regroups:
* all functions over type Z : Z.add, Z.mul, ...
* the minimal proofs of specifications for these functions : Z.add_0_l, ...
* an instantiation of all derived properties proved generically in Numbers :
Z.add_comm, Z.add_assoc, ...
A large part of ZArith is now simply compatibility notations, for instance
Zplus_comm is an alias for Z.add_comm. The direct use of module Z is now
recommended instead of relying on these compatibility notations.
- Similar major reorganization of NArith, via a module N in NArith/BinNat.v
- Concerning the positive datatype, BinPos.v is now in a specific directory
PArith, and contains an internal submodule Pos. We regroup there functions
such as Pos.add Pos.mul etc as well as many results about them. These results
are here proved directly (no Number interface for strictly positive numbers).
- Note that in spite of the compatibility layers, all these reorganizations
may induce some marginal incompatibilies in scripts. In particular:
* the "?=" notation for positive now refers to a binary function Pos.compare,
instead of the infamous ternary Pcompare (now Pos.compare_cont).
* some hypothesis names generated by the system may changed (typically for
a "destruct Z_le_gt_dec") since naming is done after the short name of
the head predicate (here now "le" in module Z instead of "Zle", etc).
* the internals of Z.add has changed, now relying of Z.pos_sub.
- Also note these new notations:
* "<?" "<=?" "=?" for boolean tests such as Z.ltb Z.leb Z.eqb.
* "÷" for the alternative integer division Z.quot implementing the Truncate
convention (former ZOdiv), while the notation for the Coq usual division
Z.div implementing the Flooring convention remains "/". Their corresponding
modulo functions are Z.rem (no notations) for Z.quot and Z.modulo (infix
"mod" notation) for Z.div.
- Lemmas about conversions between these datatypes are also organized
in modules, see for instance modules Z2Nat, N2Z, etc.
- When creating BigN, the macro-generated part NMake_gen is much smaller.
The generic part NMake has been reworked and improved. Some changes
may introduce incompatibilities. In particular, the order of the arguments
for BigN.shiftl and BigN.shiftr is now reversed: the number to shift now
comes first. By default, the power function now takes two BigN.
- Creation of Vector, an independent library for lists indexed by their length.
Vectors' names override lists' one so you should not "Import" the library.
All old names changed: function names follow the ocaml ones and, for example,
Vcons becomes Vector.cons. You can get [..;..;..]-style notations by importing
Vector.VectorNotations.
- Removal of TheoryList. Requiring List instead should work most of the time.
- New syntax "rew Heq in H" and "rew <- Heq in H" for eq_rect and
eq_rect_r (available by importing module EqNotations).
- Wf.iter_nat is now Peano.nat_iter (with an implicit type argument).
Internal infrastructure
- Opaque proofs are now loaded lazily by default. This allows to be almost as
fast as -dont-load-proofs, while being safer (no creation of axioms) and
avoiding feature restrictions (Print and Print Assumptions work ok).
- Revised hash-consing code allowing more sharing of memory
- Experimental support added for camlp4 (the one provided alongside ocaml),
simply pass option -usecamlp4 to ./configure. By default camlp5 is used.
- Revised build system: no more stages in Makefile thanks to some recursive
aspect of recent gnu make, use of vo.itarget files containing .v to compile
for both make and ocamlbuild, etc.
- Support of cross-compilation via mingw from unix toward Windows,
contact P. Letouzey for more informations.
- New Makefile rules mli-doc to make html of mli in dev/doc/html and
full-stdlib to get a (huge) pdf reflecting the whole standard library.
Extraction
- By default, opaque terms are now truly considered opaque by extraction:
instead of accessing their body, they are now considered as axioms.
The previous behavior can be reactivated via the option
"Set Extraction AccessOpaque".
- The pretty-printer for Haskell now produces layout-independent code
- A new command "Separate Extraction cst1 cst2 ..." that mixes a
minimal extracted environment a la "Recursive Extraction" and the
production of several files (one per coq source) a la "Extraction Library"
(DOC TODO).
- New option "Set/Unset Extraction KeepSingleton" for preventing the
extraction to optimize singleton container types (DOC TODO).
- The extraction now identifies and properly rejects a particular case of
universe polymorphism it cannot handle yet (the pair (I,I) being Prop).
- Support of anonymous fields in record (#2555).
CoqIDE
- CoqIDE now runs coqtop as separated process, making it more robust:
coqtop subprocess can be interrupted, or even killed and relaunched
(cf button "Restart Coq", ex-"Go to Start"). For allowing such
interrupts, the Windows version of coqide now requires Windows >= XP
SP1.
- The communication between CoqIDE and coqtop is now done via a dialect
of XML (DOC TODO).
- The backtrack engine of CoqIDE has been reworked, it now uses the
"Backtrack" command similarly to Proof General.
- The CoqIDE parsing of sentences has be reworked and now supports
tactic delimitation via { }.
- CoqIDE now accepts the Abort command (wish #2357).
- CoqIDE can read coq_makefile files as "project file" and use it to
set automatically options to send to coqtop.
- Preference files have moved to $XDG_CONFIG_HOME/coq and accelerators
are not stored as a list anymore.
Tools
- Coq now searches directories specified in COQPATH, $XDG_DATA_HOME/coq,
$XDG_DATA_DIRS/coq, and user-contribs before the standard library.
- Coq rc file has moved to $XDG_CONFIG_HOME/coq.
- Major changes to coq_makefile:
* mli/mlpack/mllib taken into account, ml not preproccessed anymore, ml4 work;
* mlihtml generates doc of mli, install-doc install the html doc in DOCDIR
with the same policy as vo in COQLIB;
* More variables are given by coqtop -config, others are defined only if the
users doesn't have defined them elsewhere. Consequently, generated makefile
should work directly on any architecture;
* Packagers can take advantage of $(DSTROOT) introduction. Installation can
be made in $XDG_DATA_HOME/coq;
* -arg option allows to send option as argument to coqc.
Details of changes in 8.4beta2
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Commands
- Commands "Back" and "BackTo" are now handling the proof states. They may
perform some extra steps of backtrack to avoid states where the proof
state is unavailable (typically a closed proof).
- The commands "Suspend" and "Resume" have been removed.
- A basic Show Script has been reintroduced (no indentation).
- New command "Set Parsing Explicit" for deactivating parsing (and printing)
of implicit arguments (useful for teaching).
- New command "Grab Existential Variables" to transform the unresolved evars
at the end of a proof into goals.
Tactics
- Still no general "info" tactical, but new specific tactics info_auto,
info_eauto, info_trivial which provides information on the proofs found
by auto/eauto/trivial. Display of these details could also be activated by
"Set Info Auto"/"Set Info Eauto"/"Set Info Trivial".
- Details on everything tried by auto/eauto/trivial during a proof search
could be obtained by "debug auto", "debug eauto", "debug trivial" or by a
global "Set Debug Auto"/"Set Debug Eauto"/"Set Debug Trivial".
- New command "r string" in Ltac debugger that interprets "idtac
string" in Ltac code as a breakpoint and jumps to its next use.
- Tactics from the Dp plugin (simplify, ergo, yices, cvc3, z3, cvcl,
harvey, zenon, gwhy) have been removed, since Why2 has not been
maintained for the last few years. The Why3 plugin should be a suitable
replacement in most cases.
Libraries
- MSetRBT: a new implementation of MSets via Red-Black trees (initial
contribution by Andrew Appel).
- MSetAVL: for maximal sharing with the new MSetRBT, the argument order
of Node has changed (this should be transparent to regular MSets users).
Module System
- The names of modules (and module types) are now in a fully separated
namespace from ordinary definitions: "Definition E:=0. Module E. End E."
is now accepted.
CoqIDE
- CoqIDE now supports the "Restart" command, and "Undo" (with a warning).
Better support for "Abort".
Details of changes in 8.4
~~~~~~~~~~~~~~~~~~~~~~~~~
Commands
- The "Reset" command is now supported again in files given to coqc or Load.
- "Show Script" now indents again the displayed scripts. It can also work
correctly across Load'ed files if the option "Unset Atomic Load" is used.
- "Open Scope" can now be given the delimiter (e.g. Z) instead of the full
scope name (e.g. Z_scope).
Notations
- Most compatibility notations of the standard library are now tagged as
(compat xyz), where xyz is a former Coq version, for instance "8.3".
These notations behave as (only parsing) notations, except that they may
triggers warnings (or errors) when used while Coq is not in a corresponding
-compat mode.
- To activate these compatibility warnings, use "Set Verbose Compat Notations"
or the command-line flag -verbose-compat-notations.
- For a strict mode without these compatibility notations, use
"Unset Compat Notations" or the command-line flag -no-compat-notations.
Tactics
- An annotation "eqn:H" or "eqn:?" can be added to a "destruct"
or "induction" to make it generate equations in the spirit of "case_eq".
The former syntax "_eqn" is discontinued.
- The name of the hypothesis introduced by tactic "remember" can be
set via the new syntax "remember t as x eqn:H" (wish #2489).
Libraries
- Reals: changed definition of PI, no more axiom about sin(PI/2).
- SetoidPermutation: a notion of permutation for lists modulo a setoid equality.
- BigN: fixed the ocaml code doing the parsing/printing of big numbers.
- List: a couple of lemmas added especially about no-duplication, partitions.
- Init: Removal of the coercions between variants of sigma-types and
subset types (possible source of incompatibility).
Version 8.3
-----------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.3 is before all a transition version with refinements or
extensions of the existing features and libraries and a new tactic nsatz
based on Hilbert’s Nullstellensatz for deciding systems of equations
over rings.
With respect to libraries, the main evolutions are due to Pierre
Letouzey with a rewriting of the library of finite sets FSets and a new
round of evolutions in the modular development of arithmetic (library
Numbers). The reason for making FSets evolve is that the computational
and logical contents were quite intertwined in the original
implementation, leading in some cases to longer computations than
expected and this problem is solved in the new MSets implementation. As
for the modular arithmetic library, it was only dealing with the basic
arithmetic operators in the former version and its current extension
adds the standard theory of the division, min and max functions, all
made available for free to any implementation of :math:`\mathbb{N}`,
:math:`\mathbb{Z}` or :math:`\mathbb{Z}/n\mathbb{Z}`.
The main other evolutions of the library are due to Hugo Herbelin who
made a revision of the sorting library (including a certified
merge-sort) and to Guillaume Melquiond who slightly revised and cleaned
up the library of reals.
The module system evolved significantly. Besides the resolution of some
efficiency issues and a more flexible construction of module types, Élie
Soubiran brought a new model of name equivalence, the
:math:`\Delta`-equivalence, which respects as much as possible the names
given by the users. He also designed with Pierre Letouzey a new,
convenient operator ``<+`` for nesting functor application that
provides a light notation for inheriting the properties of cascading
modules.
The new tactic nsatz is due to Loïc Pottier. It works by computing
Gröbner bases. Regarding the existing tactics, various improvements have
been done by Matthieu Sozeau, Hugo Herbelin and Pierre Letouzey.
Matthieu Sozeau extended and refined the typeclasses and Program
features (the Russell language). Pierre Letouzey maintained and improved
the extraction mechanism. Bruno Barras and Élie Soubiran maintained the
Coq checker, Julien Forest maintained the Function mechanism for
reasoning over recursively defined functions. Matthieu Sozeau, Hugo
Herbelin and Jean-Marc Notin maintained coqdoc. Frédéric Besson
maintained the Micromega platform for deciding systems of inequalities.
Pierre Courtieu maintained the support for the Proof General Emacs
interface. Claude Marché maintained the plugin for calling external
provers (dp). Yves Bertot made some improvements to the libraries of
lists and integers. Matthias Puech improved the search functions.
Guillaume Melquiond usefully contributed here and there. Yann
Régis-Gianas grounded the support for Unicode on a more standard and
more robust basis.
Though invisible from outside, Arnaud Spiwack improved the general
process of management of existential variables. Pierre Letouzey and
Stéphane Glondu improved the compilation scheme of the Coq archive.
Vincent Gross provided support to CoqIDE. Jean-Marc Notin provided
support for benchmarking and archiving.
Many users helped by reporting problems, providing patches, suggesting
improvements or making useful comments, either on the bug tracker or on
the Coq-Club mailing list. This includes but not exhaustively Cédric
Auger, Arthur Charguéraud, François Garillot, Georges Gonthier, Robin
Green, Stéphane Lescuyer, Eelis van der Weegen, ...
Though not directly related to the implementation, special thanks are
going to Yves Bertot, Pierre Castéran, Adam Chlipala, and Benjamin
Pierce for the excellent teaching materials they provided.
| Paris, April 2010
| Hugo Herbelin
|
Details of changes
~~~~~~~~~~~~~~~~~~
Rewriting tactics
- Tactic "rewrite" now supports rewriting on ad hoc equalities such as eq_true.
- "Hint Rewrite" now checks that the lemma looks like an equation.
- New tactic "etransitivity".
- Support for heterogeneous equality (JMeq) in "injection" and "discriminate".
- Tactic "subst" now supports heterogeneous equality and equality
proofs that are dependent (use "simple subst" for preserving compatibility).
- Added support for Leibniz-rewriting of dependent hypotheses.
- Renamed "Morphism" into "Proper" and "respect" into "proper_prf"
(possible source of incompatibility). A partial fix is to define
"Notation Morphism R f := (Proper (R%signature) f)."
- New tactic variants "rewrite* by" and "autorewrite*" that rewrite
respectively the first and all matches whose side-conditions are
solved.
- "Require Import Setoid" does not export all of "Morphisms" and
"RelationClasses" anymore (possible source of incompatibility, fixed
by importing "Morphisms" too).
- Support added for using Chung-Kil Hur's Heq library for rewriting over
heterogeneous equality (courtesy of the library's author).
- Tactic "replace" supports matching terms with holes.
Automation tactics
- Tactic ``intuition`` now preserves inner ``iff`` and ``not`` (exceptional
source of incompatibilities solvable by redefining ``intuition`` as
``unfold iff, not in *; intuition``, or, for iff only, by using
``Set Intuition Iff Unfolding``.)
- Tactic ``tauto`` now proves classical tautologies as soon as classical logic
(i.e. library ``Classical_Prop`` or ``Classical``) is loaded.
- Tactic ``gappa`` has been removed from the Dp plugin.
- Tactic ``firstorder`` now supports the combination of its ``using`` and
``with`` options.
- New ``Hint Resolve ->`` (or ``<-``) for declaring iff's as oriented
hints (wish #2104).
- An inductive type as argument of the ``using`` option of ``auto`` / ``eauto`` / ``firstorder``
is interpreted as using the collection of its constructors.
- New decision tactic "nsatz" to prove polynomial equations
by computation of Groebner bases.
Other tactics
- Tactic "discriminate" now performs intros before trying to discriminate an
hypothesis of the goal (previously it applied intro only if the goal
had the form t1<>t2) (exceptional source of incompatibilities - former
behavior can be obtained by "Unset Discriminate Introduction").
- Tactic "quote" now supports quotation of arbitrary terms (not just the
goal).
- Tactic "idtac" now displays its "list" arguments.
- New introduction patterns "*" for introducing the next block of dependent
variables and "**" for introducing all quantified variables and hypotheses.
- Pattern Unification for existential variables activated in tactics and
new option "Unset Tactic Evars Pattern Unification" to deactivate it.
- Resolution of canonical structure is now part of the tactic's unification
algorithm.
- New tactic "decide lemma with hyp" for rewriting decidability lemmas
when one knows which side is true.
- Improved support of dependent goals over objects in dependent types for
"destruct" (rare source of incompatibility that can be avoided by unsetting
option "Dependent Propositions Elimination").
- Tactic "exists", "eexists", "destruct" and "edestruct" supports iteration
using comma-separated arguments.
- Tactic names "case" and "elim" now support clauses "as" and "in" and become
then synonymous of "destruct" and "induction" respectively.
- A new tactic name "exfalso" for the use of 'ex-falso quodlibet' principle.
This tactic is simply a shortcut for "elimtype False".
- Made quantified hypotheses get the name they would have if introduced in
the context (possible but rare source of incompatibilities).
- When applying a component of a conjunctive lemma, "apply in" (and
sequences of "apply in") now leave the side conditions of the lemmas
uniformly after the main goal (possible source of rare incompatibilities).
- In "simpl c" and "change c with d", c can be a pattern.
- Tactic "revert" now preserves let-in's making it the exact inverse of
"intro".
- New tactics "clear dependent H" and "revert dependent H" that
clears (resp. reverts) H and all the hypotheses that depend on H.
- Ltac's pattern-matching now supports matching metavariables that
depend on variables bound upwards in the pattern.
Tactic definitions
- Ltac definitions support Local option for non-export outside modules.
- Support for parsing non-empty lists with separators in tactic notations.
- New command "Locate Ltac" to get the full name of an Ltac definition.
Notations
- Record syntax ``{|x=...; y=...|}`` now works inside patterns too.
- Abbreviations from non-imported module now invisible at printing time.
- Abbreviations now use implicit arguments and arguments scopes for printing.
- Abbreviations to pure names now strictly behave like the name they refer to
(make redirections of qualified names easier).
- Abbreviations for applied constant now propagate the implicit arguments
and arguments scope of the underlying reference (possible source of
incompatibilities generally solvable by changing such abbreviations from
e.g. ``Notation foo' := (foo x)`` to ``Notation foo' y := (foo x (y:=y))``).
- The "where" clause now supports multiple notations per defined object.
- Recursive notations automatically expand one step on the left for better
factorization; recursion notations inner separators now ensured being tokens.
- Added "Reserved Infix" as a specific shortcut of the corresponding
"Reserved Notation".
- Open/Close Scope command supports Global option in sections.
Specification language
- New support for local binders in the syntax of Record/Structure fields.
- Fixpoint/CoFixpoint now support building part or all of bodies using tactics.
- Binders given before ":" in lemmas and in definitions built by tactics are
now automatically introduced (possible source of incompatibility that can
be resolved by invoking "Unset Automatic Introduction").
- New support for multiple implicit arguments signatures per reference.
Module system
- Include Type is now deprecated since Include now accepts both modules and
module types.
- Declare ML Module supports Local option.
- The sharing between non-logical object and the management of the
name-space has been improved by the new "Delta-equivalence" on
qualified name.
- The include operator has been extended to high-order structures
- Sequences of Include can be abbreviated via new syntax "<+".
- A module (or module type) can be given several "<:" signatures.
- Interactive proofs are now permitted in module type. Functors can hence
be declared as Module Type and be used later to type themselves.
- A functor application can be prefixed by a "!" to make it ignore any
"Inline" annotation in the type of its argument(s) (for examples of
use of the new features, see libraries Structures and Numbers).
- Coercions are now active only when modules are imported (use "Set Automatic
Coercions Import" to get the behavior of the previous versions of Coq).
Extraction
- When using (Recursive) Extraction Library, the filenames are directly the
Coq ones with new appropriate extensions : we do not force anymore
uncapital first letters for Ocaml and capital ones for Haskell.
- The extraction now tries harder to avoid code transformations that can be
dangerous for the complexity. In particular many eta-expansions at the top
of functions body are now avoided, clever partial applications will likely
be preserved, let-ins are almost always kept, etc.
- In the same spirit, auto-inlining is now disabled by default, except for
induction principles, since this feature was producing more frequently
weird code than clear gain. The previous behavior can be restored via
"Set Extraction AutoInline".
- Unicode characters in identifiers are now transformed into ascii strings
that are legal in Ocaml and other languages.
- Harsh support of module extraction to Haskell and Scheme: module hierarchy
is flattened, module abbreviations and functor applications are expanded,
module types and unapplied functors are discarded.
- Less unsupported situations when extracting modules to Ocaml. In particular
module parameters might be alpha-renamed if a name clash is detected.
- Extract Inductive is now possible toward non-inductive types (e.g. nat => int)
- Extraction Implicit: this new experimental command allows to mark
some arguments of a function or constructor for removed during
extraction, even if these arguments don't fit the usual elimination
principles of extraction, for instance the length n of a vector.
- Files ExtrOcaml*.v in plugins/extraction try to provide a library of common
extraction commands: mapping of basics types toward Ocaml's counterparts,
conversions from/to int and big_int, or even complete mapping of nat,Z,N
to int or big_int, or mapping of ascii to char and string to char list
(in this case recognition of ascii constants is hard-wired in the extraction).
Program
- Streamlined definitions using well-founded recursion and measures so
that they can work on any subset of the arguments directly (uses currying).
- Try to automatically clear structural fixpoint prototypes in
obligations to avoid issues with opacity.
- Use return type clause inference in pattern-matching as in the standard
typing algorithm.
- Support [Local Obligation Tactic] and [Next Obligation with tactic].
- Use [Show Obligation Tactic] to print the current default tactic.
- [fst] and [snd] have maximal implicit arguments in Program now (possible
source of incompatibility).
Type classes
- Declaring axiomatic type class instances in Module Type should be now
done via new command "Declare Instance", while the syntax "Instance"
now always provides a concrete instance, both in and out of Module Type.
- Use [Existing Class foo] to declare a preexisting object [foo] as a class.
[foo] can be an inductive type or a constant definition. No
projections or instances are defined.
- Various bug fixes and improvements: support for defined fields,
anonymous instances, declarations giving terms, better handling of
sections and [Context].
Commands
- New command "Timeout <n> <command>." interprets a command and a timeout
interrupts the execution after <n> seconds.
- New command "Compute <expr>." is a shortcut for "Eval vm_compute in <expr>".
- New command "Fail <command>." interprets a command and is successful iff
the command fails on an error (but not an anomaly). Handy for tests and
illustration of wrong commands.
- Most commands referring to constant (e.g. Print or About) now support
referring to the constant by a notation string.
- New option "Boolean Equality Schemes" to make generation of boolean
equality automatic for datatypes (together with option "Decidable
Equality Schemes", this replaces deprecated option "Equality Scheme").
- Made support for automatic generation of case analysis schemes available
to user (governed by option "Set Case Analysis Schemes").
- New command :n:`{? Global } Generalizable {| All | No } {| Variable | Variables } {* @ident}` to
declare which identifiers are generalizable in `` `{} `` and `` `() `` binders.
- New command "Print Opaque Dependencies" to display opaque constants in
addition to all variables, parameters or axioms a theorem or
definition relies on.
- New command "Declare Reduction <id> := <conv_expr>", allowing to write
later "Eval <id> in ...". This command accepts a Local variant.
- Syntax of Implicit Type now supports more than one block of variables of
a given type.
- Command "Canonical Structure" now warns when it has no effects.
- Commands of the form "Set X" or "Unset X" now support "Local" and "Global"
prefixes.
Library
- Use "standard" Coq names for the properties of eq and identity
(e.g. refl_equal is now eq_refl). Support for compatibility is provided.
- The function Compare_dec.nat_compare is now defined directly,
instead of relying on lt_eq_lt_dec. The earlier version is still
available under the name nat_compare_alt.
- Lemmas in library Relations and Reals have been homogenized a bit.
- The implicit argument of Logic.eq is now maximally inserted, allowing
to simply write "eq" instead of "@eq _" in morphism signatures.
- Wrongly named lemmas (Zlt_gt_succ and Zlt_succ_gt) fixed (potential source
of incompatibilities)
- List library:
+ Definitions of list, length and app are now in Init/Datatypes.
Support for compatibility is provided.
+ Definition of Permutation is now in Sorting/Permtation.v
+ Some other light revisions and extensions (possible source
of incompatibilities solvable by qualifying names accordingly).
- In ListSet, set_map has been fixed (source of incompatibilities if used).
- Sorting library:
+ new mergesort of worst-case complexity O(n*ln(n)) made available in
Mergesort.v;
+ former notion of permutation up to setoid from Permutation.v is
deprecated and moved to PermutSetoid.v;
+ heapsort from Heap.v of worst-case complexity O(n*n) is deprecated;
+ new file Sorted.v for some definitions of being sorted.
- Structure library. This new library is meant to contain generic
structures such as types with equalities or orders, either
in Module version (for now) or Type Classes (still to do):
+ DecidableType.v and OrderedType.v: initial notions for FSets/FMaps,
left for compatibility but considered as deprecated.
+ Equalities.v and Orders.v: evolutions of the previous files,
with fine-grain Module architecture, many variants, use of
Equivalence and other relevant Type Classes notions.
+ OrdersTac.v: a generic tactic for solving chains of (in)equalities
over variables. See {Nat,N,Z,P}OrderedType.v for concrete instances.
+ GenericMinMax.v: any ordered type can be equipped with min and max.
We derived here all the generic properties of these functions.
- MSets library: an important evolution of the FSets library.
"MSets" stands for Modular (Finite) Sets, by contrast with a forthcoming
library of Class (Finite) Sets contributed by S. Lescuyer which will be
integrated with the next release of Coq. The main features of MSets are:
+ The use of Equivalence, Proper and other Type Classes features
easing the handling of setoid equalities.
+ The interfaces are now stated in iff-style. Old specifications
are now derived properties.
+ The compare functions are now pure, and return a "comparison" value.
Thanks to the CompSpec inductive type, reasoning on them remains easy.
+ Sets structures requiring invariants (i.e. sorted lists) are
built first as "Raw" sets (pure objects and separate proofs) and
attached with their proofs thanks to a generic functor. "Raw" sets
have now a proper interface and can be manipulated directly.
Note: No Maps yet in MSets. The FSets library is still provided
for compatibility, but will probably be considered as deprecated in the
next release of Coq.
- Numbers library:
+ The abstract layer (NatInt, Natural/Abstract, Integer/Abstract) has
been simplified and enhance thanks to new features of the module
system such as Include (see above). It has been extended to Euclidean
division (three flavors for integers: Trunc, Floor and Math).
+ The arbitrary-large efficient numbers (BigN, BigZ, BigQ) has also
been reworked. They benefit from the abstract layer improvements
(especially for div and mod). Note that some specifications have
slightly changed (compare, div, mod, shift{r,l}). Ring/Field should
work better (true recognition of constants).
Tools
- Option -R now supports binding Coq root read-only.
- New coqtop/coqc option -beautify to reformat .v files (usable
e.g. to globally update notations).
- New tool beautify-archive to beautify a full archive of developments.
- New coqtop/coqc option -compat X.Y to simulate the general behavior
of previous versions of Coq (provides e.g. support for 8.2 compatibility).
Coqdoc
- List have been revamped. List depth and scope is now determined by
an "offside" whitespace rule.
- Text may be italicized by placing it in _underscores_.
- The "--index <string>" flag changes the filename of the index.
- The "--toc-depth <int>" flag limits the depth of headers which are
included in the table of contents.
- The "--lib-name <string>" flag prints "<string> Foo" instead of
"Library Foo" where library titles are called for. The
"--no-lib-name" flag eliminates the extra title.
- New option "--parse-comments" to allow parsing of regular ``(* *)``
comments.
- New option "--plain-comments" to disable interpretation inside comments.
- New option "--interpolate" to try and typeset identifiers in Coq escapings
using the available globalization information.
- New option "--external url root" to refer to external libraries.
- Links to section variables and notations now supported.
Internal infrastructure
- To avoid confusion with the repository of user's contributions,
the subdirectory "contrib" has been renamed into "plugins".
On platforms supporting ocaml native dynlink, code located there
is built as loadable plugins for coqtop.
- An experimental build mechanism via ocamlbuild is provided.
From the top of the archive, run ./configure as usual, and
then ./build. Feedback about this build mechanism is most welcome.
Compiling Coq on platforms such as Windows might be simpler
this way, but this remains to be tested.
- The Makefile system has been simplified and factorized with
the ocamlbuild system. In particular "make" takes advantage
of .mllib files for building .cma/.cmxa. The .vo files to
compile are now listed in several vo.itarget files.
Version 8.2
-----------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.2 adds new features, new libraries and improves on many
various aspects.
Regarding the language of Coq, the main novelty is the introduction by
Matthieu Sozeau of a package of commands providing Haskell-style typeclasses.
Typeclasses, which come with a few convenient features such as
type-based resolution of implicit arguments, play a new landmark role
in the architecture of Coq with respect to automation. For
instance, thanks to typeclass support, Matthieu Sozeau could
implement a new resolution-based version of the tactics dedicated to
rewriting on arbitrary transitive relations.
Another major improvement of Coq 8.2 is the evolution of the arithmetic
libraries and of the tools associated with them. Benjamin Grégoire and
Laurent Théry contributed a modular library for building arbitrarily
large integers from bounded integers while Evgeny Makarov contributed a
modular library of abstract natural and integer arithmetic together
with a few convenient tactics. On his side, Pierre Letouzey made
numerous extensions to the arithmetic libraries on :math:`\mathbb{Z}`
and :math:`\mathbb{Q}`, including extra support for automation in
presence of various number-theory concepts.
Frédéric Besson contributed a reflective tactic based on Krivine-Stengle
Positivstellensatz (the easy way) for validating provability of systems
of inequalities. The platform is flexible enough to support the
validation of any algorithm able to produce a “certificate” for the
Positivstellensatz and this covers the case of Fourier-Motzkin (for
linear systems in :math:`\mathbb{Q}` and :math:`\mathbb{R}`),
Fourier-Motzkin with cutting planes (for linear systems in
:math:`\mathbb{Z}`) and sum-of-squares (for non-linear systems). Evgeny
Makarov made the platform generic over arbitrary ordered rings.
Arnaud Spiwack developed a library of 31-bits machine integers and,
relying on Benjamin Grégoire and Laurent Théry’s library, delivered a
library of unbounded integers in base :math:`2^{31}`. As importantly, he
developed a notion of “retro-knowledge” so as to safely extend the
kernel-located bytecode-based efficient evaluation algorithm of Coq
version 8.1 to use 31-bits machine arithmetic for efficiently computing
with the library of integers he developed.
Beside the libraries, various improvements were contributed to provide a more
comfortable end-user language and more expressive tactic language. Hugo
Herbelin and Matthieu Sozeau improved the pattern matching compilation
algorithm (detection of impossible clauses in pattern matching,
automatic inference of the return type). Hugo Herbelin, Pierre Letouzey
and Matthieu Sozeau contributed various new convenient syntactic
constructs and new tactics or tactic features: more inference of
redundant information, better unification, better support for proof or
definition by fixpoint, more expressive rewriting tactics, better
support for meta-variables, more convenient notations...
Élie Soubiran improved the module system, adding new features (such as
an “include” command) and making it more flexible and more general. He
and Pierre Letouzey improved the support for modules in the extraction
mechanism.
Matthieu Sozeau extended the Russell language, ending in an convenient
way to write programs of given specifications, Pierre Corbineau extended
the Mathematical Proof Language and the automation tools that
accompany it, Pierre Letouzey supervised and extended various parts of the
standard library, Stéphane Glondu contributed a few tactics and
improvements, Jean-Marc Notin provided help in debugging, general
maintenance and coqdoc support, Vincent Siles contributed extensions of
the Scheme command and of injection.
Bruno Barras implemented the ``coqchk`` tool: this is a stand-alone
type checker that can be used to certify .vo files. Especially, as this
verifier runs in a separate process, it is granted not to be “hijacked”
by virtually malicious extensions added to Coq.
Yves Bertot, Jean-Christophe Filliâtre, Pierre Courtieu and Julien
Forest acted as maintainers of features they implemented in previous
versions of Coq.
Julien Narboux contributed to CoqIDE. Nicolas Tabareau made the
adaptation of the interface of the old “setoid rewrite” tactic to the
new version. Lionel Mamane worked on the interaction between Coq and its
external interfaces. With Samuel Mimram, he also helped making Coq
compatible with recent software tools. Russell O’Connor, Cezary
Kaliszyk, Milad Niqui contributed to improve the libraries of integers,
rational, and real numbers. We also thank many users and partners for
suggestions and feedback, in particular Pierre Castéran and Arthur
Charguéraud, the INRIA Marelle team, Georges Gonthier and the
INRIA-Microsoft Mathematical Components team, the Foundations group at
Radboud university in Nijmegen, reporters of bugs and participants to
the Coq-Club mailing list.
| Palaiseau, June 2008
| Hugo Herbelin
|
Details of changes
~~~~~~~~~~~~~~~~~~
Language
- If a fixpoint is not written with an explicit { struct ... }, then
all arguments are tried successively (from left to right) until one is
found that satisfies the structural decreasing condition.
- New experimental typeclass system giving ad-hoc polymorphism and
overloading based on dependent records and implicit arguments.
- New syntax "let 'pat := b in c" for let-binding using irrefutable patterns.
- New syntax "forall {A}, T" for specifying maximally inserted implicit
arguments in terms.
- Sort of Record/Structure, Inductive and CoInductive defaults to Type
if omitted.
- (Co)Inductive types can be defined as records
(e.g. "CoInductive stream := { hd : nat; tl : stream }.")
- New syntax "Theorem id1:t1 ... with idn:tn" for proving mutually dependent
statements.
- Support for sort-polymorphism on constants denoting inductive types.
- Several evolutions of the module system (handling of module aliases,
functorial module types, an Include feature, etc).
- Prop now a subtype of Set (predicative and impredicative forms).
- Recursive inductive types in Prop with a single constructor of which
all arguments are in Prop is now considered to be a singleton
type. It consequently supports all eliminations to Prop, Set and Type.
As a consequence, Acc_rect has now a more direct proof [possible source
of easily fixed incompatibility in case of manual definition of a recursor
in a recursive singleton inductive type].
Commands
- Added option Global to "Arguments Scope" for section surviving.
- Added option "Unset Elimination Schemes" to deactivate the automatic
generation of elimination schemes.
- Modification of the Scheme command so you can ask for the name to be
automatically computed (e.g. Scheme Induction for nat Sort Set).
- New command "Combined Scheme" to build combined mutual induction
principles from existing mutual induction principles.
- New command "Scheme Equality" to build a decidable (boolean) equality
for simple inductive datatypes and a decision property over this equality
(e.g. Scheme Equality for nat).
- Added option "Set Equality Scheme" to make automatic the declaration
of the boolean equality when possible.
- Source of universe inconsistencies now printed when option
"Set Printing Universes" is activated.
- New option "Set Printing Existential Instances" for making the display of
existential variable instances explicit.
- Support for option "[id1 ... idn]", and "-[id1 ... idn]", for the
"compute"/"cbv" reduction strategy, respectively meaning reduce only, or
everything but, the constants id1 ... idn. "lazy" alone or followed by
"[id1 ... idn]", and "-[id1 ... idn]" also supported, meaning apply
all of beta-iota-zeta-delta, possibly restricting delta.
- New command "Strategy" to control the expansion of constants during
conversion tests. It generalizes commands Opaque and Transparent by
introducing a range of levels. Lower levels are assigned to constants
that should be expanded first.
- New options Global and Local to Opaque and Transparent.
- New command "Print Assumptions" to display all variables, parameters
or axioms a theorem or definition relies on.
- "Add Rec LoadPath" now provides references to libraries using partially
qualified names (this holds also for coqtop/coqc option -R).
- SearchAbout supports negated search criteria, reference to logical objects
by their notation, and more generally search of subterms.
- "Declare ML Module" now allows to import .cmxs files when Coq is
compiled in native code with a version of OCaml that supports native
Dynlink (>= 3.11).
- Specific sort constraints on Record now taken into account.
- "Print LoadPath" supports a path argument to filter the display.
Libraries
- Several parts of the libraries are now in Type, in particular FSets,
SetoidList, ListSet, Sorting, Zmisc. This may induce a few
incompatibilities. In case of trouble while fixing existing development,
it may help to simply declare Set as an alias for Type (see file
SetIsType).
- New arithmetical library in theories/Numbers. It contains:
* an abstract modular development of natural and integer arithmetics
in Numbers/Natural/Abstract and Numbers/Integer/Abstract
* an implementation of efficient computational bounded and unbounded
integers that can be mapped to processor native arithmetics.
See Numbers/Cyclic/Int31 for 31-bit integers and Numbers/Natural/BigN
for unbounded natural numbers and Numbers/Integer/BigZ for unbounded
integers.
* some proofs that both older libraries Arith, ZArith and NArith and
newer BigN and BigZ implement the abstract modular development.
This allows in particular BigN and BigZ to already come with a
large database of basic lemmas and some generic tactics (ring),
This library has still an experimental status, as well as the
processor-acceleration mechanism, but both its abstract and its
concrete parts are already quite usable and could challenge the use
of nat, N and Z in actual developments. Moreover, an extension of
this framework to rational numbers is ongoing, and an efficient
Q structure is already provided (see Numbers/Rational/BigQ), but
this part is currently incomplete (no abstract layer and generic
lemmas).
- Many changes in FSets/FMaps. In practice, compatibility with earlier
version should be fairly good, but some adaptations may be required.
* Interfaces of unordered ("weak") and ordered sets have been factorized
thanks to new features of Coq modules (in particular Include), see
FSetInterface. Same for maps. Hints in these interfaces have been
reworked (they are now placed in a "set" database).
* To allow full subtyping between weak and ordered sets, a field
"eq_dec" has been added to OrderedType. The old version of OrderedType
is now called MiniOrderedType and functor MOT_to_OT allow to
convert to the new version. The interfaces and implementations
of sets now contain also such a "eq_dec" field.
* FSetDecide, contributed by Aaron Bohannon, contains a decision
procedure allowing to solve basic set-related goals (for instance,
is a point in a particular set ?). See FSetProperties for examples.
* Functors of properties have been improved, especially the ones about
maps, that now propose some induction principles. Some properties
of fold need less hypothesis.
* More uniformity in implementations of sets and maps: they all use
implicit arguments, and no longer export unnecessary scopes (see
bug #1347)
* Internal parts of the implementations based on AVL have evolved a
lot. The main files FSetAVL and FMapAVL are now much more
lightweight now. In particular, minor changes in some functions
has allowed to fully separate the proofs of operational
correctness from the proofs of well-balancing: well-balancing is
critical for efficiency, but not anymore for proving that these
trees implement our interfaces, hence we have moved these proofs
into appendix files FSetFullAVL and FMapFullAVL. Moreover, a few
functions like union and compare have been modified in order to be
structural yet efficient. The appendix files also contains
alternative versions of these few functions, much closer to the
initial Ocaml code and written via the Function framework.
- Library IntMap, subsumed by FSets/FMaps, has been removed from
Coq Standard Library and moved into a user contribution Cachan/IntMap
- Better computational behavior of some constants (eq_nat_dec and
le_lt_dec more efficient, Z_lt_le_dec and Positive_as_OT.compare
transparent, ...) (exceptional source of incompatibilities).
- Boolean operators moved from module Bool to module Datatypes (may need
to rename qualified references in script and force notations || and &&
to be at levels 50 and 40 respectively).
- The constructors xI and xO of type positive now have postfix notations
"~1" and "~0", allowing to write numbers in binary form easily, for instance
6 is 1~1~0 and 4*p is p~0~0 (see BinPos.v).
- Improvements to NArith (Nminus, Nmin, Nmax), and to QArith (in particular
a better power function).
- Changes in ZArith: several additional lemmas (used in theories/Numbers),
especially in Zdiv, Znumtheory, Zpower. Moreover, many results in
Zdiv have been generalized: the divisor may simply be non-null
instead of strictly positive (see lemmas with name ending by
"_full"). An alternative file ZOdiv proposes a different behavior
(the one of Ocaml) when dividing by negative numbers.
- Changes in Arith: EqNat and Wf_nat now exported from Arith, some
constructions on nat that were outside Arith are now in (e.g. iter_nat).
- In SetoidList, eqlistA now expresses that two lists have similar elements
at the same position, while the predicate previously called eqlistA
is now equivlistA (this one only states that the lists contain the same
elements, nothing more).
- Changes in Reals:
* Most statement in "sigT" (including the
completeness axiom) are now in "sig" (in case of incompatibility,
use proj1_sig instead of projT1, sig instead of sigT, etc).
* More uniform naming scheme (identifiers in French moved to English,
consistent use of 0 -- zero -- instead of O -- letter O --, etc).
* Lemma on prod_f_SO is now on prod_f_R0.
* Useless hypothesis of ln_exists1 dropped.
* New Rlogic.v states a few logical properties about R axioms.
* RIneq.v extended and made cleaner.
- Slight restructuration of the Logic library regarding choice and classical
logic. Addition of files providing intuitionistic axiomatizations of
descriptions: Epsilon.v, Description.v and IndefiniteDescription.v.
- Definition of pred and minus made compatible with the structural
decreasing criterion for use in fixpoints.
- Files Relations/Rstar.v and Relations/Newman.v moved out to the user
contribution repository (contribution CoC_History). New lemmas about
transitive closure added and some bound variables renamed (exceptional
risk of incompatibilities).
- Syntax for binders in terms (e.g. for "exists") supports anonymous names.
Notations, coercions, implicit arguments and type inference
- More automation in the inference of the return clause of dependent
pattern-matching problems.
- Experimental allowance for omission of the clauses easily detectable as
impossible in pattern-matching problems.
- Improved inference of implicit arguments.
- New options "Set Maximal Implicit Insertion", "Set Reversible Pattern
Implicit", "Set Strongly Strict Implicit" and "Set Printing Implicit
Defensive" for controlling inference and use of implicit arguments.
- New modifier in "Implicit Arguments" to force an implicit argument to
be maximally inserted.
- New modifier of "Implicit Arguments" to enrich the set of implicit arguments.
- New options Global and Local to "Implicit Arguments" for section
surviving or non-export outside module.
- Level "constr" moved from 9 to 8.
- Structure/Record now printed as Record (unless option Printing All is set).
- Support for parametric notations defining constants.
- Insertion of coercions below product types refrains to unfold
constants (possible source of incompatibility).
- New support for fix/cofix in notations.
Tactic Language
- Second-order pattern-matching now working in Ltac "match" clauses
(syntax for second-order unification variable is "@?X").
- Support for matching on let bindings in match context using syntax
"H := body" or "H := body : type".
- Ltac accepts integer arguments (syntax is "ltac:nnn" for nnn an integer).
- The general sequence tactical "expr_0 ; [ expr_1 | ... | expr_n ]"
is extended so that at most one expr_i may have the form "expr .."
or just "..". Also, n can be different from the number of subgoals
generated by expr_0. In this case, the value of expr (or idtac in
case of just "..") is applied to the intermediate subgoals to make
the number of tactics equal to the number of subgoals.
- A name used as the name of the parameter of a lemma (like f in
"apply f_equal with (f:=t)") is now interpreted as a ltac variable
if such a variable exists (this is a possible source of
incompatibility and it can be fixed by renaming the variables of a
ltac function into names that do not clash with the lemmas
parameter names used in the tactic).
- New syntax "Ltac tac ::= ..." to rebind a tactic to a new expression.
- "let rec ... in ... " now supported for expressions without explicit
parameters; interpretation is lazy to the contrary of "let ... in ...";
hence, the "rec" keyword can be used to turn the argument of a
"let ... in ..." into a lazy one.
- Patterns for hypotheses types in "match goal" are now interpreted in
type_scope.
- A bound variable whose name is not used elsewhere now serves as
metavariable in "match" and it gets instantiated by an identifier
(allow e.g. to extract the name of a statement like "exists x, P x").
- New printing of Ltac call trace for better debugging.
Tactics
- New tactics "apply -> term", "apply <- term", "apply -> term in
ident", "apply <- term in ident" for applying equivalences (iff).
- Slight improvement of the hnf and simpl tactics when applied on
expressions with explicit occurrences of match or fix.
- New tactics "eapply in", "erewrite", "erewrite in".
- New tactics "ediscriminate", "einjection", "esimplify_eq".
- Tactics "discriminate", "injection", "simplify_eq" now support any
term as argument. Clause "with" is also supported.
- Unfoldable references can be given by notation's string rather than by name
in unfold.
- The "with" arguments are now typed using informations from the current goal:
allows support for coercions and more inference of implicit arguments.
- Application of "f_equal"-style lemmas works better.
- Tactics elim, case, destruct and induction now support variants eelim,
ecase, edestruct and einduction.
- Tactics destruct and induction now support the "with" option and the
"in" clause option. If the option "in" is used, an equality is added
to remember the term to which the induction or case analysis applied
(possible source of parsing incompatibilities when destruct or induction is
part of a let-in expression in Ltac; extra parentheses are then required).
- New support for "as" clause in tactics "apply in" and "eapply in".
- Some new intro patterns:
* intro pattern "?A" genererates a fresh name based on A.
Caveat about a slight loss of compatibility:
Some intro patterns don't need space between them. In particular
intros ?a?b used to be legal and equivalent to intros ? a ? b. Now it
is still legal but equivalent to intros ?a ?b.
* intro pattern "(A & ... & Y & Z)" synonym to "(A,....,(Y,Z)))))"
for right-associative constructs like /\ or exists.
- Several syntax extensions concerning "rewrite":
* "rewrite A,B,C" can be used to rewrite A, then B, then C. These rewrites
occur only on the first subgoal: in particular, side-conditions of the
"rewrite A" are not concerned by the "rewrite B,C".
* "rewrite A by tac" allows to apply tac on all side-conditions generated by
the "rewrite A".
* "rewrite A at n" allows to select occurrences to rewrite: rewrite only
happen at the n-th exact occurrence of the first successful matching of
A in the goal.
* "rewrite 3 A" or "rewrite 3!A" is equivalent to "rewrite A,A,A".
* "rewrite !A" means rewriting A as long as possible (and at least once).
* "rewrite 3?A" means rewriting A at most three times.
* "rewrite ?A" means rewriting A as long as possible (possibly never).
* many of the above extensions can be combined with each other.
- Introduction patterns better respect the structure of context in presence of
missing or extra names in nested disjunction-conjunction patterns [possible
source of rare incompatibilities].
- New syntax "rename a into b, c into d" for "rename a into b; rename c into d"
- New tactics "dependent induction/destruction H [ generalizing id_1 .. id_n ]"
to do induction-inversion on instantiated inductive families à la BasicElim.
- Tactics "apply" and "apply in" now able to reason modulo unfolding of
constants (possible source of incompatibility in situations where apply
may fail, e.g. as argument of a try or a repeat and in a ltac function);
versions that do not unfold are renamed into "simple apply" and
"simple apply in" (usable for compatibility or for automation).
- Tactics "apply" and "apply in" now able to traverse conjunctions and to
select the first matching lemma among the components of the conjunction;
tactic "apply" also able to apply lemmas of conclusion an empty type.
- Tactic "apply" now supports application of several lemmas in a row.
- Tactics "set" and "pose" can set functions using notation "(f x1..xn := c)".
- New tactic "instantiate" (without argument).
- Tactic firstorder "with" and "using" options have their meaning swapped for
consistency with auto/eauto (source of incompatibility).
- Tactic "generalize" now supports "at" options to specify occurrences
and "as" options to name the quantified hypotheses.
- New tactic "specialize H with a" or "specialize (H a)" allows to transform
in-place a universally-quantified hypothesis (H : forall x, T x) into its
instantiated form (H : T a). Nota: "specialize" was in fact there in earlier
versions of Coq, but was undocumented, and had a slightly different behavior.
- New tactic "contradict H" can be used to solve any kind of goal as long as
the user can provide afterwards a proof of the negation of the hypothesis H.
If H is already a negation, say ~T, then a proof of T is asked.
If the current goal is a negation, say ~U, then U is saved in H afterwards,
hence this new tactic "contradict" extends earlier tactic "swap", which is
now obsolete.
- Tactics f_equal is now done in ML instead of Ltac: it now works on any
equality of functions, regardless of the arity of the function.
- New options "before id", "at top", "at bottom" for tactics "move"/"intro".
- Some more debug of reflexive omega (``romega``), and internal clarifications.
Moreover, romega now has a variant ``romega with *`` that can be also used
on non-Z goals (nat, N, positive) via a call to a translation tactic named
zify (its purpose is to Z-ify your goal...). This zify may also be used
independently of romega.
- Tactic "remember" now supports an "in" clause to remember only selected
occurrences of a term.
- Tactic "pose proof" supports name overriding in case of specialization of an
hypothesis.
- Semi-decision tactic "jp" for first-order intuitionistic logic moved to user
contributions (subsumed by "firstorder").
Program
- Moved useful tactics in theories/Program and documented them.
- Add Program.Basics which contains standard definitions for functional
programming (id, apply, flip...)
- More robust obligation handling, dependent pattern-matching and
well-founded definitions.
- New syntax " dest term as pat in term " for destructing objects using
an irrefutable pattern while keeping equalities (use this instead of
"let" in Programs).
- Program CoFixpoint is accepted, Program Fixpoint uses the new way to infer
which argument decreases structurally.
- Program Lemma, Axiom etc... now permit to have obligations in the statement
iff they can be automatically solved by the default tactic.
- Renamed "Obligations Tactic" command to "Obligation Tactic".
- New command "Preterm [ of id ]" to see the actual term fed to Coq for
debugging purposes.
- New option "Transparent Obligations" to control the declaration of
obligations as transparent or opaque. All obligations are now transparent
by default, otherwise the system declares them opaque if possible.
- Changed the notations "left" and "right" to "in_left" and "in_right" to hide
the proofs in standard disjunctions, to avoid breaking existing scripts when
importing Program. Also, put them in program_scope.
Type Classes
- New "Class", "Instance" and "Program Instance" commands to define
classes and instances documented in the reference manual.
- New binding construct " [ Class_1 param_1 .. param_n, Class_2 ... ] "
for binding type classes, usable everywhere.
- New command " Print Classes " and " Print Instances some_class " to
print tables for typeclasses.
- New default eauto hint database "typeclass_instances" used by the default
typeclass instance search tactic.
- New theories directory "theories/Classes" for standard typeclasses
declarations. Module Classes.RelationClasses is a typeclass port of
Relation_Definitions plus a generic development of algebra on
n-ary heterogeneous predicates.
Setoid rewriting
- Complete (and still experimental) rewrite of the tactic
based on typeclasses. The old interface and semantics are
almost entirely respected, except:
+ Import Setoid is now mandatory to be able to call setoid_replace
and declare morphisms.
+ "-->", "++>" and "==>" are now right associative notations
declared at level 55 in scope signature_scope.
Their introduction may break existing scripts that defined
them as notations with different levels.
+ One needs to use [Typeclasses unfold [cst]] if [cst] is used
as an abbreviation hiding products in types of morphisms,
e.g. if ones redefines [relation] and declares morphisms
whose type mentions [relation].
+ The [setoid_rewrite]'s semantics change when rewriting with
a lemma: it can rewrite two different instantiations of the lemma
at once. Use [setoid_rewrite H at 1] for (almost) the usual semantics.
[setoid_rewrite] will also try to rewrite under binders now, and can
succeed on different terms than before. In particular, it will unify under
let-bound variables. When called through [rewrite], the semantics are
unchanged though.
+ [Add Morphism term : id] has different semantics when used with
parametric morphism: it will try to find a relation on the parameters
too. The behavior has also changed with respect to default relations:
the most recently declared Setoid/Relation will be used, the documentation
explains how to customize this behavior.
+ Parametric Relation and Morphism are declared differently, using the
new [Add Parametric] commands, documented in the manual.
+ Setoid_Theory is now an alias to Equivalence, scripts building objects
of type Setoid_Theory need to unfold (or "red") the definitions
of Reflexive, Symmetric and Transitive in order to get the same goals
as before. Scripts which introduced variables explicitly will not break.
+ The order of subgoals when doing [setoid_rewrite] with side-conditions
is always the same: first the new goal, then the conditions.
- New standard library modules ``Classes.Morphisms`` declares
standard morphisms on ``refl`` / ``sym`` / ``trans`` relations.
``Classes.Morphisms_Prop`` declares morphisms on propositional
connectives and ``Classes.Morphisms_Relations`` on generalized predicate
connectives. ``Classes.Equivalence`` declares notations and tactics
related to equivalences and ``Classes.SetoidTactics`` defines the
setoid_replace tactics and some support for the ``Add *`` interface,
notably the tactic applied automatically before each ``Add Morphism``
proof.
- User-defined subrelations are supported, as well as higher-order morphisms
and rewriting under binders. The tactic is also extensible entirely in Ltac.
The documentation has been updated to cover these features.
- [setoid_rewrite] and [rewrite] now support the [at] modifier to select
occurrences to rewrite, and both use the [setoid_rewrite] code, even when
rewriting with leibniz equality if occurrences are specified.
Extraction
- Improved behavior of the Caml extraction of modules: name clashes should
not happen anymore.
- The command Extract Inductive has now a syntax for infix notations. This
allows in particular to map Coq lists and pairs onto OCaml ones:
+ Extract Inductive list => list [ "[]" "(::)" ].
+ Extract Inductive prod => "(*)" [ "(,)" ].
- In pattern matchings, a default pattern "| _ -> ..." is now used whenever
possible if several branches are identical. For instance, functions
corresponding to decidability of equalities are now linear instead of
quadratic.
- A new instruction Extraction Blacklist id1 .. idn allows to prevent filename
conflits with existing code, for instance when extracting module List
to Ocaml.
CoqIDE
- CoqIDE font defaults to monospace so as indentation to be meaningful.
- CoqIDE supports nested goals and any other kind of declaration in the middle
of a proof.
- Undoing non-tactic commands in CoqIDE works faster.
- New CoqIDE menu for activating display of various implicit informations.
- Added the possibility to choose the location of tabs in coqide:
(in Edit->Preferences->Misc)
- New Open and Save As dialogs in CoqIDE which filter ``*.v`` files.
Tools
- New stand-alone .vo files verifier "coqchk".
- Extended -I coqtop/coqc option to specify a logical dir: "-I dir -as coqdir".
- New coqtop/coqc option -exclude-dir to exclude subdirs for option -R.
- The binary "parser" has been renamed to "coq-parser".
- Improved coqdoc and dump of globalization information to give more
meta-information on identifiers. All categories of Coq definitions are
supported, which makes typesetting trivial in the generated documentation.
Support for hyperlinking and indexing developments in the tex output
has been implemented as well.
Miscellaneous
- Coq installation provides enough files so that Ocaml's extensions need not
the Coq sources to be compiled (this assumes O'Caml 3.10 and Camlp5).
- New commands "Set Whelp Server" and "Set Whelp Getter" to customize the
Whelp search tool.
- Syntax of "Test Printing Let ref" and "Test Printing If ref" changed into
"Test Printing Let for ref" and "Test Printing If for ref".
- An overhauled build system (new Makefiles); see dev/doc/build-system.txt.
- Add -browser option to configure script.
- Build a shared library for the C part of Coq, and use it by default on
non-(Windows or MacOS) systems. Bytecode executables are now pure. The
behavior is configurable with -coqrunbyteflags, -coqtoolsbyteflags and
-custom configure options.
- Complexity tests can be skipped by setting the environment variable
COQTEST_SKIPCOMPLEXITY.
Version 8.1
-----------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8.1 adds various new functionalities.
Benjamin Grégoire implemented an alternative algorithm to check the
convertibility of terms in the Coq type checker. This alternative
algorithm works by compilation to an efficient bytecode that is
interpreted in an abstract machine similar to Xavier Leroy’s ZINC
machine. Convertibility is performed by comparing the normal forms. This
alternative algorithm is specifically interesting for proofs by
reflection. More generally, it is convenient in case of intensive
computations.
Christine Paulin implemented an extension of inductive types allowing
recursively non-uniform parameters. Hugo Herbelin implemented
sort-polymorphism for inductive types (now called template polymorphism).
Claudio Sacerdoti Coen improved the tactics for rewriting on arbitrary
compatible equivalence relations. He also generalized rewriting to
arbitrary transition systems.
Claudio Sacerdoti Coen added new features to the module system.
Benjamin Grégoire, Assia Mahboubi and Bruno Barras developed a new, more
efficient and more general simplification algorithm for rings and
semirings.
Laurent Théry and Bruno Barras developed a new, significantly more
efficient simplification algorithm for fields.
Hugo Herbelin, Pierre Letouzey, Julien Forest, Julien Narboux and
Claudio Sacerdoti Coen added new tactic features.
Hugo Herbelin implemented matching on disjunctive patterns.
New mechanisms made easier the communication between Coq and external
provers. Nicolas Ayache and Jean-Christophe Filliâtre implemented
connections with the provers cvcl, Simplify and zenon. Hugo Herbelin
implemented an experimental protocol for calling external tools from the
tactic language.
Matthieu Sozeau developed Russell, an experimental language to specify
the behavior of programs with subtypes.
A mechanism to automatically use some specific tactic to solve
unresolved implicit has been implemented by Hugo Herbelin.
Laurent Théry’s contribution on strings and Pierre Letouzey and
Jean-Christophe Filliâtre’s contribution on finite maps have been
integrated to the Coq standard library. Pierre Letouzey developed a
library about finite sets “à la Objective Caml”. With Jean-Marc Notin,
he extended the library on lists. Pierre Letouzey’s contribution on
rational numbers has been integrated and extended.
Pierre Corbineau extended his tactic for solving first-order statements.
He wrote a reflection-based intuitionistic tautology solver.
Pierre Courtieu, Julien Forest and Yves Bertot added extra support to
reason on the inductive structure of recursively defined functions.
Jean-Marc Notin significantly contributed to the general maintenance of
the system. He also took care of ``coqdoc``.
Pierre Castéran contributed to the documentation of (co)inductive types
and suggested improvements to the libraries.
Pierre Corbineau implemented a declarative mathematical proof language,
usable in combination with the tactic-based style of proof.
Finally, many users suggested improvements of the system through the
Coq-Club mailing list and bug-tracker systems, especially user groups
from INRIA Rocquencourt, Radboud University, University of Pennsylvania
and Yale University.
| Palaiseau, July 2006
| Hugo Herbelin
|
Details of changes in 8.1beta
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Logic
- Added sort-polymorphism on inductive families
- Allowance for recursively non-uniform parameters in inductive types
Syntax
- No more support for version 7 syntax and for translation to version 8 syntax.
- In fixpoints, the { struct ... } annotation is not mandatory any more when
only one of the arguments has an inductive type
- Added disjunctive patterns in match-with patterns
- Support for primitive interpretation of string literals
- Extended support for Unicode ranges
Commands
- Added "Print Ltac qualid" to print a user defined tactic.
- Added "Print Rewrite HintDb" to print the content of a DB used by
autorewrite.
- Added "Print Canonical Projections".
- Added "Example" as synonym of "Definition".
- Added "Proposition" and "Corollary" as extra synonyms of "Lemma".
- New command "Whelp" to send requests to the Helm database of proofs
formalized in the Calculus of Inductive Constructions.
- Command "functional induction" has been re-implemented from the new
"Function" command.
Ltac and tactic syntactic extensions
- New primitive "external" for communication with tool external to Coq
- New semantics for "match t with": if a clause returns a
tactic, it is now applied to the current goal. If it fails, the next
clause or next matching subterm is tried (i.e. it behaves as "match
goal with" does). The keyword "lazymatch" can be used to delay the
evaluation of tactics occurring in matching clauses.
- Hint base names can be parametric in auto and trivial.
- Occurrence values can be parametric in unfold, pattern, etc.
- Added entry constr_may_eval for tactic extensions.
- Low-priority term printer made available in ML-written tactic extensions.
- "Tactic Notation" extended to allow notations of tacticals.
Tactics
- New implementation and generalization of ``setoid_*`` (``setoid_rewrite``,
``setoid_symmetry``, ``setoid_transitivity``, ``setoid_reflexivity`` and ``autorewite``).
New syntax for declaring relations and morphisms (old syntax still working
with minor modifications, but deprecated).
- New implementation (still experimental) of the ring tactic with a built-in
notion of coefficients and a better usage of setoids.
- New conversion tactic "vm_compute": evaluates the goal (or an hypothesis)
with a call-by-value strategy, using the compiled version of terms.
- When rewriting H where H is not directly a Coq equality, search first H for
a registered setoid equality before starting to reduce in H. This is unlikely
to break any script. Should this happen nonetheless, one can insert manually
some "unfold ... in H" before rewriting.
- Fixed various bugs about (setoid) rewrite ... in ... (in particular bug #5941)
- "rewrite ... in" now accepts a clause as place where to rewrite instead of
just a simple hypothesis name. For instance:
``rewrite H in H1,H2 |- *`` means ``rewrite H in H1; rewrite H in H2; rewrite H``
``rewrite H in * |-`` will do try ``rewrite H in Hi`` for all hypothesis Hi <> H.
- Added "dependent rewrite term" and "dependent rewrite term in hyp".
- Added "autorewrite with ... in hyp [using ...]".
- Tactic "replace" now accepts a "by" tactic clause.
- Added "clear - id" to clear all hypotheses except the ones depending in id.
- The argument of Declare Left Step and Declare Right Step is now a term
(it used to be a reference).
- Omega now handles arbitrary precision integers.
- Several bug fixes in Reflexive Omega (romega).
- Idtac can now be left implicit in a [...|...] construct: for instance,
[ foo | | bar ] stands for [ foo | idtac | bar ].
- Fixed a "fold" bug (noncritical but possible source of incompatibilities).
- Added classical_left and classical_right which transforms ``|- A \/ B`` into
``~B |- A`` and ``~A |- B`` respectively.
- Added command "Declare Implicit Tactic" to set up a default tactic to be
used to solve unresolved subterms of term arguments of tactics.
- Better support for coercions to Sortclass in tactics expecting type
arguments.
- Tactic "assert" now accepts "as" intro patterns and "by" tactic clauses.
- New tactic "pose proof" that generalizes "assert (id:=p)" with intro patterns.
- New introduction pattern "?" for letting Coq choose a name.
- Introduction patterns now support side hypotheses (e.g. intros [|] on
"(nat -> nat) -> nat" works).
- New introduction patterns "->" and "<-" for immediate rewriting of
introduced hypotheses.
- Introduction patterns coming after nontrivial introduction patterns now
force full introduction of the first pattern (e.g. ``intros [[|] p]`` on
``nat->nat->nat`` now behaves like ``intros [[|?] p]``)
- Added "eassumption".
- Added option 'using lemmas' to auto, trivial and eauto.
- Tactic "congruence" is now complete for its intended scope (ground
equalities and inequalities with constructors). Furthermore, it
tries to equates goal and hypotheses.
- New tactic "rtauto" solves pure propositional logic and gives a
reflective version of the available proof.
- Numbering of "pattern", "unfold", "simpl", ... occurrences in "match
with" made consistent with the printing of the return clause after
the term to match in the "match-with" construct (use "Set Printing All"
to see hidden occurrences).
- Generalization of induction "induction x1...xn using scheme" where
scheme is an induction principle with complex predicates (like the
ones generated by function induction).
- Some small Ltac tactics has been added to the standard library
(file Tactics.v):
* f_equal : instead of using the different f_equalX lemmas
* case_eq : a "case" without loss of information. An equality
stating the current situation is generated in every sub-cases.
* swap : for a negated goal ~B and a negated hypothesis H:~A,
swap H asks you to prove A from hypothesis B
* revert : revert H is generalize H; clear H.
Extraction
- All type parts should now disappear instead of sometimes producing _
(for instance in Map.empty).
- Haskell extraction: types of functions are now printed, better
unsafeCoerce mechanism, both for hugs and ghc.
- Scheme extraction improved, see http://www.pps.jussieu.fr/~letouzey/scheme.
- Many bug fixes.
Modules
- Added "Locate Module qualid" to get the full path of a module.
- Module/Declare Module syntax made more uniform.
- Added syntactic sugar "Declare Module Export/Import" and
"Module Export/Import".
- Added syntactic sugar "Module M(Export/Import X Y: T)" and
"Module Type M(Export/Import X Y: T)"
(only for interactive definitions)
- Construct "with" generalized to module paths:
T with (Definition|Module) M1.M2....Mn.l := l'.
Notations
- Option "format" aware of recursive notations.
- Added insertion of spaces by default in recursive notations w/o separators.
- No more automatic printing box in case of user-provided printing "format".
- New notation "exists! x:A, P" for unique existence.
- Notations for specific numerals now compatible with generic notations of
numerals (e.g. "1" can be used to denote the unit of a group without
hiding 1%nat)
Libraries
- New library on String and Ascii characters (contributed by L. Thery).
- New library FSets+FMaps of finite sets and maps.
- New library QArith on rational numbers.
- Small extension of Zmin.V, new Zmax.v, new Zminmax.v.
- Reworking and extension of the files on classical logic and
description principles (possible incompatibilities)
- Few other improvements in ZArith potentially exceptionally breaking the
compatibility (useless hypothesys of Zgt_square_simpl and
Zlt_square_simpl removed; fixed names mentioning letter O instead of
digit 0; weaken premises in Z_lt_induction).
- Restructuration of Eqdep_dec.v and Eqdep.v: more lemmas in Type.
- Znumtheory now contains a gcd function that can compute within Coq.
- More lemmas stated on Type in Wf.v, removal of redundant Acc_iter and
Acc_iter2.
- Change of the internal names of lemmas in OmegaLemmas.
- Acc in Wf.v and clos_refl_trans in Relation_Operators.v now rely on
the allowance for recursively non-uniform parameters (possible
source of incompatibilities: explicit pattern-matching on these
types may require to remove the occurrence associated with their
recursively non-uniform parameter).
- Coq.List.In_dec has been set transparent (this may exceptionally break
proof scripts, set it locally opaque for compatibility).
- More on permutations of lists in List.v and Permutation.v.
- List.v has been much expanded.
- New file SetoidList.v now contains results about lists seen with
respect to a setoid equality.
- Library NArith has been expanded, mostly with results coming from
Intmap (for instance a bitwise xor), plus also a bridge between N and
Bitvector.
- Intmap has been reorganized. In particular its address type "addr" is
now N. User contributions known to use Intmap have been adapted
accordingly. If you're using this library please contact us.
A wrapper FMapIntMap now presents Intmap as a particular implementation
of FMaps. New developments are strongly encouraged to use either this
wrapper or any other implementations of FMap instead of using directly
this obsolete Intmap.
Tools
- New semantics for coqtop options ("-batch" expects option "-top dir"
for loading vernac file that contains definitions).
- Tool coq_makefile now removes custom targets that are file names in
"make clean"
- New environment variable COQREMOTEBROWSER to set the command invoked
to start the remote browser both in Coq and CoqIDE. Standard syntax:
"%s" is the placeholder for the URL.
Details of changes in 8.1gamma
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Syntax
- changed parsing precedence of let/in and fun constructions of Ltac:
let x := t in e1; e2 is now parsed as let x := t in (e1;e2).
Language and commands
- Added sort-polymorphism for definitions in Type (but finally abandoned).
- Support for implicit arguments in the types of parameters in
(co)fixpoints and (co)inductive declarations.
- Improved type inference: use as much of possible general information.
before applying irreversible unification heuristics (allow e.g. to
infer the predicate in "(exist _ 0 (refl_equal 0) : {n:nat | n=0 })").
- Support for Miller-Pfenning's patterns unification in type synthesis
(e.g. can infer P such that P x y = phi(x,y)).
- Support for "where" clause in cofixpoint definitions.
- New option "Set Printing Universes" for making Type levels explicit.
Tactics
- Improved implementation of the ring and field tactics. For compatibility
reasons, the previous tactics are renamed as legacy ring and legacy field,
but should be considered as deprecated.
- New declarative mathematical proof language.
- Support for argument lists of arbitrary length in Tactic Notation.
- ``rewrite ... in H`` now fails if ``H`` is used either in an hypothesis
or in the goal.
- The semantics of ``rewrite ... in *`` has been slightly modified (see doc).
- Support for ``as`` clause in tactic injection.
- New forward-reasoning tactic "apply in".
- Ltac fresh operator now builds names from a concatenation of its arguments.
- New ltac tactic "remember" to abstract over a subterm and keep an equality
- Support for Miller-Pfenning's patterns unification in apply/rewrite/...
(may lead to few incompatibilities - generally now useless tactic calls).
Bug fixes
- Fix for notations involving basic "match" expressions.
- Numerous other bugs solved (a few fixes may lead to incompatibilities).
Details of changes in 8.1
~~~~~~~~~~~~~~~~~~~~~~~~~
Bug fixes
- Many bugs have been fixed (cf coq-bugs web page)
Tactics
- New tactics ring, ring_simplify and new tactic field now able to manage
power to a positive integer constant. Tactic ring on Z and R, and
field on R manage power (may lead to incompatibilities with V8.1gamma).
- Tactic field_simplify now applicable in hypotheses.
- New field_simplify_eq for simplifying field equations into ring equations.
- Tactics ring, ring_simplify, field, field_simplify and field_simplify_eq
all able to apply user-given equations to rewrite monoms on the fly
(see documentation).
Libraries
- New file ConstructiveEpsilon.v defining an epsilon operator and
proving the axiom of choice constructively for a countable domain
and a decidable predicate.
Version 8.0
-----------
Summary of changes
~~~~~~~~~~~~~~~~~~
Coq version 8 is a major revision of the Coq proof assistant. First, the
underlying logic is slightly different. The so-called *impredicativity*
of the sort Set has been dropped. The main reason is that it is
inconsistent with the principle of description which is quite a useful
principle for formalizing mathematics within classical logic. Moreover,
even in an constructive setting, the impredicativity of Set does not add
so much in practice and is even subject of criticism from a large part
of the intuitionistic mathematician community. Nevertheless, the
impredicativity of Set remains optional for users interested in
investigating mathematical developments which rely on it.
Secondly, the concrete syntax of terms has been completely revised. The
main motivations were
- a more uniform, purified style: all constructions are now lowercase,
with a functional programming perfume (e.g. abstraction is now
written fun), and more directly accessible to the novice (e.g.
dependent product is now written forall and allows omission of
types). Also, parentheses are no longer mandatory for function
application.
- extensibility: some standard notations (e.g. “<” and “>”) were
incompatible with the previous syntax. Now all standard arithmetic
notations (=, +, \*, /, <, <=, ... and more) are directly part of the
syntax.
Together with the revision of the concrete syntax, a new mechanism of
*notation scopes* permits to reuse the same symbols (typically +,
-, \*, /, <, <=) in various mathematical theories without any
ambiguities for Coq, leading to a largely improved readability of Coq
scripts. New commands to easily add new symbols are also provided.
Coming with the new syntax of terms, a slight reform of the tactic
language and of the language of commands has been carried out. The
purpose here is a better uniformity making the tactics and commands
easier to use and to remember.
Thirdly, a restructuring and uniformization of the standard library of
Coq has been performed. There is now just one Leibniz equality usable
for all the different kinds of Coq objects. Also, the set of real
numbers now lies at the same level as the sets of natural and integer
numbers. Finally, the names of the standard properties of numbers now
follow a standard pattern and the symbolic notations for the standard
definitions as well.
The fourth point is the release of CoqIDE, a new graphical gtk2-based
interface fully integrated with Coq. Close in style to the Proof General
Emacs interface, it is faster and its integration with Coq makes
interactive developments more friendly. All mathematical Unicode symbols
are usable within CoqIDE.
Finally, the module system of Coq completes the picture of Coq version
8.0. Though released with an experimental status in the previous version
7.4, it should be considered as a salient feature of the new version.
Besides, Coq comes with its load of novelties and improvements: new or
improved tactics (including a new tactic for solving first-order
statements), new management commands, extended libraries.
Bruno Barras and Hugo Herbelin have been the main contributors of the
reflection and the implementation of the new syntax. The smart automatic
translator from old to new syntax released with Coq is also their work
with contributions by Olivier Desmettre.
Hugo Herbelin is the main designer and implementer of the notion of
notation scopes and of the commands for easily adding new
notations.
Hugo Herbelin is the main implementer of the restructured standard library.
Pierre Corbineau is the main designer and implementer of the new tactic
for solving first-order statements in presence of inductive types. He is
also the maintainer of the non-domain specific automation tactics.
Benjamin Monate is the developer of the CoqIDE graphical interface with
contributions by Jean-Christophe Filliâtre, Pierre Letouzey, Claude
Marché and Bruno Barras.
Claude Marché coordinated the edition of the Reference Manual for Coq
V8.0.
Pierre Letouzey and Jacek Chrząszcz respectively maintained the
extraction tool and module system of Coq.
Jean-Christophe Filliâtre, Pierre Letouzey, Hugo Herbelin and other
contributors from Sophia-Antipolis and Nijmegen participated in
extending the library.
Julien Narboux built a NSIS-based automatic Coq installation tool for
the Windows platform.
Hugo Herbelin and Christine Paulin coordinated the development which was
under the responsibility of Christine Paulin.
| Palaiseau & Orsay, Apr. 2004
| Hugo Herbelin & Christine Paulin
| (updated Apr. 2006)
|
Details of changes in 8.0beta old syntax
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Logic
- Set now predicative by default
- New option -impredicative-set to set Set impredicative
- The standard library doesn't need impredicativity of Set and is
compatible with the classical axioms which contradict Set impredicativity
Syntax for arithmetic
- Notation "=" and "<>" in Z and R are no longer implicitly in Z or R
(with possible introduction of a coercion), use <Z>...=... or
<Z>...<>... instead
- Locate applied to a simple string (e.g. "+") searches for all
notations containing this string
Commands
- "Declare ML Module" now allows to import .cma files. This avoids to use a
bunch of "Declare ML Module" statements when using several ML files.
- "Set Printing Width n" added, allows to change the size of width printing.
- "Implicit Variables Type x,y:t" (new syntax: "Implicit Types x y:t")
assigns default types for binding variables.
- Declarations of Hints and Notation now accept a "Local" flag not to
be exported outside the current file even if not in section
- "Print Scopes" prints all notations
- New command "About name" for light printing of type, implicit arguments, etc.
- New command "Admitted" to declare incompletely proven statement as axioms
- New keyword "Conjecture" to declare an axiom intended to be provable
- SearchAbout can now search for lemmas referring to more than one constant
and on substrings of the name of the lemma
- "Print Implicit" displays the implicit arguments of a constant
- Locate now searches for all names having a given suffix
- New command "Functional Scheme" for building an induction principle
from a function defined by case analysis and fix.
Commands
- new coqtop/coqc option -dont-load-proofs not to load opaque proofs in memory
Implicit arguments
- Inductive in sections declared with implicits now "discharged" with
implicits (like constants and variables)
- Implicit Arguments flags are now synchronous with reset
- New switch "Unset/Set Printing Implicits" (new syntax: "Unset/Set Printing
Implicit") to globally control printing of implicits
Grammar extensions
- Many newly supported UTF-8 encoded unicode blocks
- Greek letters (0380-03FF), Hebrew letters (U05D0-05EF), letter-like
symbols (2100-214F, that includes double N,Z,Q,R), prime
signs (from 2080-2089) and characters from many written languages
are valid in identifiers
- mathematical operators (2200-22FF), supplemental mathematical
operators (2A00-2AFF), miscellaneous technical (2300-23FF that
includes sqrt symbol), miscellaneous symbols (2600-26FF), arrows
(2190-21FF and 2900-297F), invisible mathematical operators (from
2080-2089), ... are valid symbols
Library
- New file about the factorial function in Arith
- An additional elimination Acc_iter for Acc, simpler than Acc_rect.
This new elimination principle is used for definition well_founded_induction.
- New library NArith on binary natural numbers
- R is now of type Set
- Restructuration in ZArith library
+ "true_sub" used in Zplus now a definition, not a local one (source
of incompatibilities in proof referring to true_sub, may need extra Unfold)
+ Some lemmas about minus moved from fast_integer to Arith/Minus.v
(le_minus, lt_mult_left) (theoretical source of incompatibilities)
+ Several lemmas moved from auxiliary.v and zarith_aux.v to
fast_integer.v (theoretical source of incompatibilities)
+ Variables names of iff_trans changed (source of incompatibilities)
+ ZArith lemmas named ``OMEGA`` something or ``fast_`` something, and lemma ``new_var``
are now out of ZArith (except ``OMEGA2``)
+ Redundant ZArith lemmas have been renamed: for the following pairs,
use the second name (Zle_Zmult_right2, Zle_mult_simpl), (OMEGA2,
Zle_0_plus), (Zplus_assoc_l, Zplus_assoc), (Zmult_one, Zmult_1_n),
(Zmult_assoc_l, Zmult_assoc), (Zmult_minus_distr, Zmult_Zminus_distr_l)
(add_un_double_moins_un_xO, is_double_moins_un),
(Rlt_monotony_rev,Rlt_monotony_contra) (source of incompatibilities)
- Few minor changes (no more implicit arguments in
Zmult_Zminus_distr_l and Zmult_Zminus_distr_r, lemmas moved from
Zcomplements to other files) (rare source of incompatibilities)
- New lemmas provided by users added
Tactic language
- Fail tactic now accepts a failure message
- Idtac tactic now accepts a message
- New primitive tactic "FreshId" (new syntax: "fresh") to generate new names
- Debugger prints levels of calls
Tactics
- Replace can now replace proofs also
- Fail levels are now decremented at "Match Context" blocks only and
if the right-hand-side of "Match term With" are tactics, these
tactics are never evaluated immediately and do not induce
backtracking (in contrast with "Match Context")
- Quantified names now avoid global names of the current module (like
Intro names did) [source of rare incompatibilities: 2 changes in the set of
user contribs]
- NewDestruct/NewInduction accepts intro patterns as introduction names
- NewDestruct/NewInduction now work for non-inductive type using option "using"
- A NewInduction naming bug for inductive types with functional
arguments (e.g. the accessibility predicate) has been fixed (source
of incompatibilities)
- Symmetry now applies to hypotheses too
- Inversion now accept option "as [ ... ]" to name the hypotheses
- Contradiction now looks also for contradictory hypotheses stating ~A and A
(source of incompatibility)
- "Contradiction c" try to find an hypothesis in context which
contradicts the type of c
- Ring applies to new library NArith (require file NArithRing)
- Field now works on types in Set
- Auto with reals now try to replace le by ge (Rge_le is no longer an
immediate hint), resulting in shorter proofs
- Instantiate now works in hyps (syntax : Instantiate in ...)
- Some new tactics : EConstructor, ELeft, Eright, ESplit, EExists
- New tactic "functional induction" to perform case analysis and
induction following the definition of a function.
- Clear now fails when trying to remove a local definition used by
a constant appearing in the current goal
Extraction (See details in plugins/extraction/CHANGES)
- The old commands: (Recursive) Extraction Module M.
are now: (Recursive) Extraction Library M.
To use these commands, M should come from a library M.v
- The other syntax Extraction & Recursive Extraction now accept
module names as arguments.
Bugs
- see coq-bugs server for the complete list of fixed bugs
Miscellaneous
- Implicit parameters of inductive types definition now taken into
account for inferring other implicit arguments
Incompatibilities
- Persistence of true_sub (4 incompatibilities in Coq user contributions)
- Variable names of some constants changed for a better uniformity (2 changes
in Coq user contributions)
- Naming of quantified names in goal now avoid global names (2 occurrences)
- NewInduction naming for inductive types with functional arguments
(no incompatibility in Coq user contributions)
- Contradiction now solve more goals (source of 2 incompatibilities)
- Merge of eq and eqT may exceptionally result in subgoals now
solved automatically
- Redundant pairs of ZArith lemmas may have different names: it may
cause "Apply/Rewrite with" to fail if using the first name of a pair
of redundant lemmas (this is solved by renaming the variables bound by
"with"; 3 incompatibilities in Coq user contribs)
- ML programs referring to constants from fast_integer.v must use
"Coqlib.gen_constant_modules Coqlib.zarith_base_modules" instead
Details of changes in 8.0beta new syntax
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
New concrete syntax
- A completely new syntax for terms
- A more uniform syntax for tactics and the tactic language
- A few syntactic changes for commands
- A smart automatic translator translating V8.0 files in old syntax to
files valid for V8.0
Syntax extensions
- "Grammar" for terms disappears
- "Grammar" for tactics becomes "Tactic Notation"
- "Syntax" disappears
- Introduction of a notion of notation scope allowing to use the
same notations in various contexts without using specific delimiters
(e.g the same expression "4<=3+x" is interpreted either in "nat",
"positive", "N" (previously "entier"), "Z", "R", depending on which
Notation scope is currently open) [see documentation for details]
- Notation now requires a precedence and associativity
(default was to set precedence to 1 and associativity to none)
Revision of the standard library
- Many lemmas and definitions names have been made more uniform mostly
in Arith, NArith, ZArith and Reals (e.g : "times" -> "Pmult",
"times_sym" -> "Pmult_comm", "Zle_Zmult_pos_right" ->
"Zmult_le_compat_r", "SUPERIEUR" -> "Gt", "ZERO" -> "Z0")
- Order and names of arguments of basic lemmas on nat, Z, positive and R
have been made uniform.
- Notions of Coq initial state are declared with (strict) implicit arguments
- eq merged with eqT: old eq disappear, new eq (written =) is old eqT
and new eqT is syntactic sugar for new eq (notation == is an alias
for = and is written as it, exceptional source of incompatibilities)
- Similarly, ex, ex2, all, identity are merged with exT, exT2, allT, identityT
- Arithmetical notations for nat, positive, N, Z, R, without needing
any backquote or double-backquotes delimiters.
- In Lists: new concrete notations; argument of nil is now implicit
- All changes in the library are taken in charge by the translator
Semantical changes during translation
- Recursive keyword set by default (and no longer needed) in Tactic Definition
- Set Implicit Arguments is strict by default in new syntax
- reductions in hypotheses of the form "... in H" now apply to the type
also if H is a local definition
- etc
Gallina
- New syntax of the form "Inductive bool : Set := true, false : bool." for
enumerated types
- Experimental syntax of the form p.(fst) for record projections
(activable with option "Set Printing Projections" which is
recognized by the translator)
Known problems of the automatic translation
- iso-latin-1 characters are no longer supported: move your files to
7-bits ASCII or unicode before translation (switch to unicode is
automatically done if a file is loaded and saved again by coqide)
- Renaming in ZArith: incompatibilities in Coq user contribs due to
merging names INZ, from Reals, and inject_nat.
- Renaming and new lemmas in ZArith: may clash with names used by users
- Restructuration of ZArith: replace requirement of specific modules
in ZArith by "Require Import ZArith_base" or "Require Import ZArith"
- Some implicit arguments must be made explicit before translation: typically
for "length nil", the implicit argument of length must be made explicit
- Grammar rules, Infix notations and V7.4 Notations must be updated wrt the
new scheme for syntactic extensions (see translator documentation)
- Unsafe for annotation Cases when constructors coercions are used or when
annotations are eta-reduced predicates
Details of changes in 8.0
~~~~~~~~~~~~~~~~~~~~~~~~~
Commands
- New option "Set Printing All" to deactivate all high-level forms of
printing (implicit arguments, coercions, destructing let,
if-then-else, notations, projections)
- "Functional Scheme" and "Functional Induction" extended to polymorphic
types and dependent types
- Notation now allows recursive patterns, hence recovering parts of the
functionalities of pre-V8 Grammar/Syntax commands
- Command "Print." discontinued.
- Redundant syntax "Implicit Arguments On/Off" discontinued
New syntax
- Semantics change of the if-then-else construction in new syntax:
"if c then t1 else t2" now stands for
"match c with c1 _ ... _ => t1 | c2 _ ... _ => t2 end"
with no dependency of t1 and t2 in the arguments of the constructors;
this may cause incompatibilities for files translated using coq 8.0beta
Notation scopes
- Delimiting key %bool for bool_scope added
- Import no more needed to activate argument scopes from a module
Tactics and the tactic Language
- Semantics of "assert" is now consistent with the reference manual
- New tactics stepl and stepr for chaining transitivity steps
- Tactic "replace ... with ... in" added
- Intro patterns now supported in Ltac (parsed with prefix "ipattern:")
Executables and tools
- Added option -top to change the name of the toplevel module "Top"
- Coqdoc updated to new syntax and now part of Coq sources
- XML exportation tool now exports the structure of vernacular files
(cf chapter 13 in the reference manual)
User contributions
- User contributions have been updated to the new syntax
Bug fixes
- Many bugs have been fixed (cf coq-bugs web page)
|