{"files":[ {"path":"v1/anc/code/1.3.8/classgroup/data/small_25000.json","sha256":"890c20ab7a4c497e4e96db602e1c7d0f146b3f72f50ed4acec2f3d4bca8ebc4d","mode":420,"size":80913,"encoding":"utf-8","text":"{\"2\": [1, 1, 1, 2], \"3\": [2, 5, 5, 5, 10], \"5\": [2, 5, 5, 5, 10], \"7\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"11\": [1, 5, 5, 5, 5], \"13\": [1, 1, 5, 5, 5, 5, 5], \"17\": [3, 6, 6, 6, 6], \"19\": [9, 9, 9], \"23\": [3, 12, 12], \"29\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"31\": [2, 5, 5, 5, 10], \"37\": [1, 4, 4, 6, 12], \"41\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"43\": [2, 5, 5, 5, 10], \"47\": [1, 1, 5, 5, 5, 5, 5], \"53\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"59\": [9, 9, 9], \"61\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"67\": [1, 4, 4, 6, 12], \"71\": [3, 6, 6, 6, 6], \"73\": [3, 12, 12], \"79\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"83\": [9, 9, 9], \"89\": [3, 12, 12], \"97\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"101\": [1, 1, 5, 5, 5, 5, 5], \"103\": [3, 12, 12], \"107\": [3, 12, 12], \"109\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"113\": [1, 2, 8, 8, 8], \"127\": [3, 6, 6, 6, 6], \"131\": [1, 1, 5, 5, 5, 5, 5], \"137\": [1, 1, 5, 5, 5, 5, 5], \"139\": [1, 2, 8, 8, 8], \"149\": [2, 5, 5, 5, 10], \"151\": [3, 12, 12], \"157\": [3, 6, 6, 6, 6], \"163\": [3, 6, 6, 6, 6], \"167\": [9, 9, 9], \"173\": [2, 5, 5, 5, 10], \"179\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"181\": [3, 3, 3, 3, 3, 6, 6], \"191\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"193\": [1, 1, 5, 5, 5, 5, 5], \"197\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"199\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"211\": [1, 4, 4, 6, 12], \"223\": [9, 9, 9], \"227\": [3, 3, 3, 3, 3, 6, 6], \"229\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"233\": [9, 9, 9], \"239\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"241\": [9, 9, 9], \"251\": [9, 9, 9], \"257\": [3, 12, 12], \"263\": [3, 6, 6, 6, 6], \"269\": [3, 6, 6, 6, 6], \"271\": [2, 5, 5, 5, 10], \"277\": [3, 6, 6, 6, 6], \"281\": [3, 6, 6, 6, 6], \"283\": [9, 9, 9], \"293\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"307\": [1, 4, 4, 6, 12], \"311\": [3, 12, 12], \"313\": [1, 2, 8, 8, 8], \"317\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"331\": [3, 6, 6, 6, 6], \"337\": [2, 5, 5, 5, 10], \"347\": [3, 6, 6, 6, 6], \"349\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"353\": [1, 4, 4, 6, 12], \"359\": [3, 6, 6, 6, 6], \"367\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"373\": [3, 6, 6, 6, 6], \"379\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"383\": [1, 2, 8, 8, 8], \"389\": [2, 5, 5, 5, 10], \"397\": [1, 4, 4, 6, 12], \"401\": [3, 6, 6, 6, 6], \"409\": [1, 4, 4, 6, 12], \"419\": [3, 6, 6, 6, 6], \"421\": [1, 4, 4, 6, 12], \"431\": [3, 12, 12], \"433\": [9, 9, 9], \"439\": [1, 2, 8, 8, 8], \"443\": [2, 5, 5, 5, 10], \"449\": [1, 4, 4, 6, 12], \"457\": [1, 2, 8, 8, 8], \"461\": [1, 1, 5, 5, 5, 5, 5], \"463\": [3, 6, 6, 6, 6], \"467\": [1, 2, 8, 8, 8], \"479\": [3, 6, 6, 6, 6], \"487\": [3, 12, 12], \"491\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"499\": [1, 2, 8, 8, 8], \"503\": [1, 1, 5, 5, 5, 5, 5], \"509\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"521\": [3, 6, 6, 6, 6], \"523\": [2, 5, 5, 5, 10], \"541\": [1, 2, 8, 8, 8], \"547\": [1, 4, 4, 6, 12], \"557\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"563\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"569\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"571\": [3, 6, 6, 6, 6], \"577\": [1, 1, 5, 5, 5, 5, 5], \"587\": [1, 2, 8, 8, 8], \"593\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"599\": [9, 9, 9], \"601\": [3, 3, 3, 3, 3, 6, 6], \"607\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"613\": [3, 12, 12], \"617\": [3, 12, 12], \"619\": [2, 5, 5, 5, 10], \"631\": [1, 4, 4, 6, 12], \"641\": [2, 5, 5, 5, 10], \"643\": [3, 12, 12], \"647\": [3, 3, 3, 3, 3, 6, 6], \"653\": [9, 9, 9], \"659\": [1, 2, 8, 8, 8], \"661\": [9, 9, 9], \"673\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"677\": [9, 9, 9], \"683\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"691\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"701\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"709\": [2, 5, 5, 5, 10], \"719\": [2, 5, 5, 5, 10], \"727\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"733\": [3, 12, 12], \"739\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"743\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"751\": [1, 2, 8, 8, 8], \"757\": [1, 4, 4, 6, 12], \"761\": [3, 6, 6, 6, 6], \"769\": [2, 5, 5, 5, 10], \"773\": [1, 4, 4, 6, 12], \"787\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"797\": [2, 5, 5, 5, 10], \"809\": [1, 1, 5, 5, 5, 5, 5], \"811\": [9, 9, 9], \"821\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"823\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"827\": [2, 5, 5, 5, 10], \"829\": [2, 5, 5, 5, 10], \"839\": [3, 6, 6, 6, 6], \"853\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"857\": [9, 9, 9], \"859\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"863\": [3, 12, 12], \"877\": [1, 2, 8, 8, 8], \"881\": [1, 1, 5, 5, 5, 5, 5], \"883\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"887\": [1, 1, 5, 5, 5, 5, 5], \"907\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"911\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"919\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"929\": [1, 4, 4, 6, 12], \"937\": [9, 9, 9], \"941\": [1, 4, 4, 6, 12], \"947\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"953\": [3, 6, 6, 6, 6], \"967\": [1, 1, 5, 5, 5, 5, 5], \"971\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"977\": [3, 6, 6, 6, 6], \"983\": [1, 2, 8, 8, 8], \"991\": [1, 2, 8, 8, 8], \"997\": [1, 2, 8, 8, 8], \"1009\": [1, 1, 5, 5, 5, 5, 5], \"1013\": [1, 1, 5, 5, 5, 5, 5], \"1019\": [1, 4, 4, 6, 12], \"1021\": [3, 12, 12], \"1031\": [3, 12, 12], \"1033\": [1, 2, 8, 8, 8], \"1039\": [3, 6, 6, 6, 6], \"1049\": [9, 9, 9], \"1051\": [3, 6, 6, 6, 6], \"1061\": [1, 1, 5, 5, 5, 5, 5], \"1063\": [9, 9, 9], \"1069\": [9, 9, 9], \"1087\": [3, 6, 6, 6, 6], \"1091\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"1093\": [1, 2, 8, 8, 8], \"1097\": [9, 9, 9], \"1103\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"1109\": [3, 6, 6, 6, 6], \"1117\": [1, 4, 4, 6, 12], \"1123\": [1, 4, 4, 6, 12], \"1129\": [2, 5, 5, 5, 10], \"1151\": [1, 1, 5, 5, 5, 5, 5], \"1153\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"1163\": [1, 2, 8, 8, 8], \"1171\": [9, 9, 9], \"1181\": [2, 5, 5, 5, 10], \"1187\": [1, 1, 5, 5, 5, 5, 5], \"1193\": [1, 2, 8, 8, 8], \"1201\": [3, 12, 12], \"1213\": [2, 5, 5, 5, 10], \"1217\": [9, 9, 9], \"1223\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"1229\": [3, 12, 12], \"1231\": [3, 6, 6, 6, 6], \"1237\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"1249\": [2, 5, 5, 5, 10], \"1259\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"1277\": [3, 12, 12], \"1279\": [2, 5, 5, 5, 10], \"1283\": [3, 12, 12], \"1289\": [1, 1, 5, 5, 5, 5, 5], \"1291\": [9, 9, 9], \"1297\": [1, 2, 8, 8, 8], \"1301\": [3, 6, 6, 6, 6], \"1303\": [3, 6, 6, 6, 6], \"1307\": [3, 12, 12], \"1319\": [3, 3, 3, 3, 3, 6, 6], \"1321\": [3, 6, 6, 6, 6], \"1327\": [3, 6, 6, 6, 6], \"1361\": [3, 6, 6, 6, 6], \"1367\": [1, 2, 8, 8, 8], \"1373\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"1381\": [2, 5, 5, 5, 10], \"1399\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"1409\": [3, 3, 3, 3, 3, 6, 6], \"1423\": [2, 5, 5, 5, 10], \"1427\": [3, 12, 12], \"1429\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"1433\": [2, 5, 5, 5, 10], \"1439\": [2, 5, 5, 5, 10], \"1447\": [1, 2, 8, 8, 8], \"1451\": [2, 5, 5, 5, 10], \"1453\": [1, 2, 8, 8, 8], \"1459\": [1, 4, 4, 6, 12], \"1471\": [1, 2, 8, 8, 8], \"1481\": [3, 6, 6, 6, 6], \"1483\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"1487\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"1489\": [2, 5, 5, 5, 10], \"1493\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"1499\": [1, 4, 4, 6, 12], \"1511\": [1, 1, 5, 5, 5, 5, 5], \"1523\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"1531\": [2, 5, 5, 5, 10], \"1543\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"1549\": [1, 2, 8, 8, 8], \"1553\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"1559\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"1567\": [3, 12, 12], \"1571\": [3, 6, 6, 6, 6], \"1579\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"1583\": [1, 2, 8, 8, 8], \"1597\": [2, 5, 5, 5, 10], \"1601\": [9, 9, 9], \"1607\": [1, 2, 8, 8, 8], \"1609\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"1613\": [1, 1, 5, 5, 5, 5, 5], \"1619\": [1, 4, 4, 6, 12], \"1621\": [3, 6, 6, 6, 6], \"1627\": [1, 2, 8, 8, 8], \"1637\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"1657\": [1, 4, 4, 6, 12], \"1663\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"1667\": [9, 9, 9], \"1669\": [1, 2, 8, 8, 8], \"1693\": [1, 4, 4, 6, 12], \"1697\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"1699\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"1709\": [1, 1, 5, 5, 5, 5, 5], \"1721\": [2, 5, 5, 5, 10], \"1723\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"1733\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"1741\": [1, 4, 4, 6, 12], \"1747\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"1753\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"1759\": [9, 9, 9], \"1777\": [2, 5, 5, 5, 10], \"1783\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"1787\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"1789\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"1801\": [3, 6, 6, 6, 6], \"1811\": [9, 9, 9], \"1823\": [3, 12, 12], \"1831\": [1, 1, 5, 5, 5, 5, 5], \"1847\": [9, 9, 9], \"1861\": [3, 6, 6, 6, 6], \"1867\": [1, 4, 4, 6, 12], \"1871\": [1, 1, 5, 5, 5, 5, 5], \"1873\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"1877\": [9, 9, 9], \"1879\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"1889\": [1, 2, 8, 8, 8], \"1901\": [3, 6, 6, 6, 6], \"1907\": [9, 9, 9], \"1913\": [1, 4, 4, 6, 12], \"1931\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"1933\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"1949\": [1, 4, 4, 6, 12], \"1951\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"1973\": [1, 1, 5, 5, 5, 5, 5], \"1979\": [3, 6, 6, 6, 6], \"1987\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"1993\": [2, 5, 5, 5, 10], \"1997\": [3, 6, 6, 6, 6], \"1999\": [3, 6, 6, 6, 6], \"2003\": [1, 2, 8, 8, 8], \"2011\": [1, 2, 8, 8, 8], \"2017\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2027\": [3, 12, 12], \"2029\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"2039\": [1, 2, 8, 8, 8], \"2053\": [1, 4, 4, 6, 12], \"2063\": [1, 2, 8, 8, 8], \"2069\": [1, 2, 8, 8, 8], \"2081\": [3, 3, 3, 3, 3, 6, 6], \"2083\": [2, 5, 5, 5, 10], \"2087\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2089\": [9, 9, 9], \"2099\": [1, 1, 5, 5, 5, 5, 5], \"2111\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"2113\": [9, 9, 9], \"2129\": [1, 4, 4, 6, 12], \"2131\": [3, 3, 3, 3, 3, 6, 6], \"2137\": [3, 12, 12], \"2141\": [2, 5, 5, 5, 10], \"2143\": [2, 5, 5, 5, 10], \"2153\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"2161\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2179\": [9, 9, 9], \"2203\": [1, 1, 5, 5, 5, 5, 5], \"2207\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"2213\": [1, 4, 4, 6, 12], \"2221\": [9, 9, 9], \"2237\": [3, 6, 6, 6, 6], \"2239\": [1, 1, 5, 5, 5, 5, 5], \"2243\": [2, 5, 5, 5, 10], \"2251\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"2267\": [1, 4, 4, 6, 12], \"2269\": [1, 4, 4, 6, 12], \"2273\": [2, 5, 5, 5, 10], \"2281\": [1, 1, 5, 5, 5, 5, 5], \"2287\": [1, 2, 8, 8, 8], \"2293\": [1, 2, 8, 8, 8], \"2297\": [2, 5, 5, 5, 10], \"2309\": [1, 4, 4, 6, 12], \"2311\": [1, 2, 8, 8, 8], \"2333\": [3, 6, 6, 6, 6], \"2339\": [1, 2, 8, 8, 8], \"2341\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2347\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"2351\": [1, 1, 5, 5, 5, 5, 5], \"2357\": [1, 2, 8, 8, 8], \"2371\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"2377\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"2381\": [3, 12, 12], \"2383\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"2389\": [1, 4, 4, 6, 12], \"2393\": [1, 2, 8, 8, 8], \"2399\": [3, 12, 12], \"2411\": [1, 1, 5, 5, 5, 5, 5], \"2417\": [3, 6, 6, 6, 6], \"2423\": [9, 9, 9], \"2437\": [1, 1, 5, 5, 5, 5, 5], \"2441\": [3, 6, 6, 6, 6], \"2447\": [1, 2, 8, 8, 8], \"2459\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"2467\": [1, 4, 4, 6, 12], \"2473\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2477\": [2, 5, 5, 5, 10], \"2503\": [3, 3, 3, 3, 3, 6, 6], \"2521\": [3, 6, 6, 6, 6], \"2531\": [2, 5, 5, 5, 10], \"2539\": [3, 12, 12], \"2543\": [2, 5, 5, 5, 10], \"2549\": [1, 2, 8, 8, 8], \"2551\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"2557\": [9, 9, 9], \"2579\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"2591\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2593\": [3, 12, 12], \"2609\": [1, 2, 8, 8, 8], \"2617\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"2621\": [2, 5, 5, 5, 10], \"2633\": [3, 6, 6, 6, 6], \"2647\": [3, 6, 6, 6, 6], \"2657\": [1, 1, 5, 5, 5, 5, 5], \"2659\": [1, 4, 4, 6, 12], \"2663\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"2671\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"2677\": [1, 1, 5, 5, 5, 5, 5], \"2683\": [1, 2, 8, 8, 8], \"2687\": [2, 5, 5, 5, 10], \"2689\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2693\": [3, 6, 6, 6, 6], \"2699\": [1, 1, 5, 5, 5, 5, 5], \"2707\": [3, 6, 6, 6, 6], \"2711\": [3, 12, 12], \"2713\": [3, 6, 6, 6, 6], \"2719\": [3, 6, 6, 6, 6], \"2729\": [3, 6, 6, 6, 6], \"2731\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2741\": [3, 6, 6, 6, 6], \"2749\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2753\": [1, 2, 8, 8, 8], \"2767\": [9, 9, 9], \"2777\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2789\": [1, 1, 5, 5, 5, 5, 5], \"2791\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2797\": [9, 9, 9], \"2801\": [3, 12, 12], \"2803\": [2, 5, 5, 5, 10], \"2819\": [3, 6, 6, 6, 6], \"2833\": [2, 5, 5, 5, 10], \"2837\": [9, 9, 9], \"2843\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2851\": [3, 6, 6, 6, 6], \"2857\": [1, 2, 8, 8, 8], \"2861\": [9, 9, 9], \"2879\": [9, 9, 9], \"2887\": [1, 1, 5, 5, 5, 5, 5], \"2897\": [3, 12, 12], \"2903\": [1, 1, 5, 5, 5, 5, 5], \"2909\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"2917\": [1, 4, 4, 6, 12], \"2927\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"2939\": [9, 9, 9], \"2953\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"2957\": [3, 6, 6, 6, 6], \"2963\": [1, 1, 5, 5, 5, 5, 5], \"2969\": [1, 4, 4, 6, 12], \"2971\": [3, 6, 6, 6, 6], \"2999\": [1, 1, 5, 5, 5, 5, 5], \"3001\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"3011\": [1, 2, 8, 8, 8], \"3019\": [2, 5, 5, 5, 10], \"3023\": [1, 4, 4, 6, 12], \"3037\": [3, 12, 12], \"3041\": [3, 6, 6, 6, 6], \"3049\": [1, 2, 8, 8, 8], \"3061\": [3, 12, 12], \"3067\": [1, 1, 5, 5, 5, 5, 5], \"3079\": [9, 9, 9], \"3083\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"3089\": [1, 1, 5, 5, 5, 5, 5], \"3109\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"3119\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"3121\": [3, 6, 6, 6, 6], \"3137\": [1, 4, 4, 6, 12], \"3163\": [1, 2, 8, 8, 8], \"3167\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"3169\": [3, 6, 6, 6, 6], \"3181\": [2, 5, 5, 5, 10], \"3187\": [3, 3, 3, 3, 3, 6, 6], \"3191\": [9, 9, 9], \"3203\": [2, 5, 5, 5, 10], \"3209\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"3217\": [3, 6, 6, 6, 6], \"3221\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"3229\": [1, 2, 8, 8, 8], \"3251\": [1, 1, 5, 5, 5, 5, 5], \"3253\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"3257\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"3259\": [9, 9, 9], \"3271\": [9, 9, 9], \"3299\": [1, 4, 4, 6, 12], \"3301\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"3307\": [2, 5, 5, 5, 10], \"3313\": [3, 6, 6, 6, 6], \"3319\": [9, 9, 9], \"3323\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"3329\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"3331\": [9, 9, 9], \"3343\": [2, 5, 5, 5, 10], \"3347\": [3, 6, 6, 6, 6], \"3359\": [3, 6, 6, 6, 6], \"3361\": [1, 2, 8, 8, 8], \"3371\": [1, 1, 5, 5, 5, 5, 5], \"3373\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"3389\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"3391\": [2, 5, 5, 5, 10], \"3407\": [1, 2, 8, 8, 8], \"3413\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"3433\": [1, 2, 8, 8, 8], \"3449\": [3, 12, 12], \"3457\": [1, 1, 5, 5, 5, 5, 5], \"3461\": [1, 2, 8, 8, 8], \"3463\": [3, 6, 6, 6, 6], \"3467\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"3469\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"3491\": [9, 9, 9], \"3499\": [1, 2, 8, 8, 8], \"3511\": [1, 4, 4, 6, 12], \"3517\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"3527\": [1, 2, 8, 8, 8], \"3529\": [3, 6, 6, 6, 6], \"3533\": [3, 6, 6, 6, 6], \"3539\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"3541\": [3, 3, 3, 3, 3, 6, 6], \"3547\": [3, 12, 12], \"3557\": [2, 5, 5, 5, 10], \"3559\": [1, 4, 4, 6, 12], \"3571\": [1, 4, 4, 6, 12], \"3581\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"3583\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"3593\": [2, 5, 5, 5, 10], \"3607\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"3613\": [2, 5, 5, 5, 10], \"3617\": [1, 4, 4, 6, 12], \"3623\": [1, 2, 8, 8, 8], \"3631\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"3637\": [3, 6, 6, 6, 6], \"3643\": [1, 2, 8, 8, 8], \"3659\": [1, 2, 8, 8, 8], \"3671\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"3673\": [3, 6, 6, 6, 6], \"3677\": [2, 5, 5, 5, 10], \"3691\": [3, 3, 3, 3, 3, 6, 6], \"3697\": [3, 6, 6, 6, 6], \"3701\": [3, 6, 6, 6, 6], \"3709\": [1, 1, 5, 5, 5, 5, 5], \"3719\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"3727\": [1, 2, 8, 8, 8], \"3733\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"3739\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"3761\": [3, 12, 12], \"3767\": [1, 4, 4, 6, 12], \"3769\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"3779\": [1, 1, 5, 5, 5, 5, 5], \"3793\": [9, 9, 9], \"3797\": [1, 4, 4, 6, 12], \"3803\": [2, 5, 5, 5, 10], \"3821\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"3823\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"3833\": [3, 12, 12], \"3847\": [3, 6, 6, 6, 6], \"3851\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"3853\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"3863\": [3, 12, 12], \"3877\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"3881\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"3889\": [9, 9, 9], \"3907\": [2, 5, 5, 5, 10], \"3911\": [9, 9, 9], \"3917\": [1, 4, 4, 6, 12], \"3919\": [1, 4, 4, 6, 12], \"3923\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"3929\": [3, 12, 12], \"3931\": [9, 9, 9], \"3943\": [3, 6, 6, 6, 6], \"3947\": [2, 5, 5, 5, 10], \"3967\": [3, 6, 6, 6, 6], \"3989\": [1, 4, 4, 6, 12], \"4001\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4003\": [3, 6, 6, 6, 6], \"4007\": [3, 6, 6, 6, 6], \"4013\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4019\": [1, 2, 8, 8, 8], \"4021\": [2, 5, 5, 5, 10], \"4027\": [2, 5, 5, 5, 10], \"4049\": [2, 5, 5, 5, 10], \"4051\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4057\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"4073\": [1, 1, 5, 5, 5, 5, 5], \"4079\": [1, 4, 4, 6, 12], \"4091\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"4093\": [1, 2, 8, 8, 8], \"4099\": [1, 1, 5, 5, 5, 5, 5], \"4111\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4127\": [3, 6, 6, 6, 6], \"4129\": [2, 5, 5, 5, 10], \"4133\": [1, 2, 8, 8, 8], \"4139\": [1, 1, 5, 5, 5, 5, 5], \"4153\": [1, 1, 5, 5, 5, 5, 5], \"4157\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"4159\": [3, 6, 6, 6, 6], \"4177\": [9, 9, 9], \"4201\": [2, 5, 5, 5, 10], \"4211\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"4217\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"4219\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"4229\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4231\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4241\": [3, 6, 6, 6, 6], \"4243\": [9, 9, 9], \"4253\": [9, 9, 9], \"4259\": [3, 6, 6, 6, 6], \"4261\": [3, 12, 12], \"4271\": [3, 12, 12], \"4273\": [3, 6, 6, 6, 6], \"4283\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"4289\": [9, 9, 9], \"4297\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"4327\": [1, 4, 4, 6, 12], \"4337\": [1, 2, 8, 8, 8], \"4339\": [1, 4, 4, 6, 12], \"4349\": [2, 5, 5, 5, 10], \"4357\": [9, 9, 9], \"4363\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4373\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"4391\": [9, 9, 9], \"4397\": [2, 5, 5, 5, 10], \"4409\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"4421\": [1, 2, 8, 8, 8], \"4423\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4441\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4447\": [9, 9, 9], \"4451\": [3, 6, 6, 6, 6], \"4457\": [3, 6, 6, 6, 6], \"4463\": [1, 2, 8, 8, 8], \"4481\": [1, 4, 4, 6, 12], \"4483\": [3, 6, 6, 6, 6], \"4493\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"4507\": [3, 6, 6, 6, 6], \"4513\": [3, 12, 12], \"4517\": [3, 6, 6, 6, 6], \"4519\": [1, 1, 5, 5, 5, 5, 5], \"4523\": [3, 6, 6, 6, 6], \"4547\": [3, 6, 6, 6, 6], \"4549\": [9, 9, 9], \"4561\": [9, 9, 9], \"4567\": [2, 5, 5, 5, 10], \"4583\": [2, 5, 5, 5, 10], \"4591\": [3, 12, 12], \"4597\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4603\": [9, 9, 9], \"4621\": [1, 4, 4, 6, 12], \"4637\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"4639\": [1, 1, 5, 5, 5, 5, 5], \"4643\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"4649\": [3, 12, 12], \"4651\": [3, 6, 6, 6, 6], \"4657\": [1, 2, 8, 8, 8], \"4663\": [3, 12, 12], \"4673\": [9, 9, 9], \"4679\": [3, 6, 6, 6, 6], \"4691\": [3, 6, 6, 6, 6], \"4703\": [1, 1, 5, 5, 5, 5, 5], \"4721\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"4723\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"4729\": [1, 2, 8, 8, 8], \"4733\": [2, 5, 5, 5, 10], \"4751\": [1, 2, 8, 8, 8], \"4759\": [2, 5, 5, 5, 10], \"4783\": [1, 1, 5, 5, 5, 5, 5], \"4787\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"4789\": [1, 4, 4, 6, 12], \"4793\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"4799\": [9, 9, 9], \"4801\": [3, 6, 6, 6, 6], \"4813\": [1, 4, 4, 6, 12], \"4817\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"4831\": [1, 2, 8, 8, 8], \"4861\": [2, 5, 5, 5, 10], \"4871\": [1, 2, 8, 8, 8], \"4877\": [1, 2, 8, 8, 8], \"4889\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4903\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4909\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"4919\": [1, 1, 5, 5, 5, 5, 5], \"4931\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"4933\": [1, 4, 4, 6, 12], \"4937\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"4943\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"4951\": [2, 5, 5, 5, 10], \"4957\": [2, 5, 5, 5, 10], \"4967\": [2, 5, 5, 5, 10], \"4969\": [9, 9, 9], \"4973\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"4987\": [2, 5, 5, 5, 10], \"4993\": [3, 12, 12], \"4999\": [3, 12, 12], \"5003\": [3, 6, 6, 6, 6], \"5009\": [1, 2, 8, 8, 8], \"5011\": [9, 9, 9], \"5021\": [3, 12, 12], \"5023\": [1, 2, 8, 8, 8], \"5039\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"5051\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"5059\": [9, 9, 9], \"5077\": [3, 6, 6, 6, 6], \"5081\": [9, 9, 9], \"5087\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"5099\": [1, 2, 8, 8, 8], \"5101\": [1, 2, 8, 8, 8], \"5107\": [1, 1, 5, 5, 5, 5, 5], \"5113\": [9, 9, 9], \"5119\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"5147\": [2, 5, 5, 5, 10], \"5153\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"5167\": [2, 5, 5, 5, 10], \"5171\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"5179\": [2, 5, 5, 5, 10], \"5189\": [3, 6, 6, 6, 6], \"5197\": [1, 1, 5, 5, 5, 5, 5], \"5209\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"5227\": [1, 4, 4, 6, 12], \"5231\": [1, 2, 8, 8, 8], \"5233\": [1, 4, 4, 6, 12], \"5237\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"5261\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"5273\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"5279\": [1, 2, 8, 8, 8], \"5281\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"5297\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"5303\": [1, 2, 8, 8, 8], \"5309\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"5323\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"5333\": [3, 6, 6, 6, 6], \"5347\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"5351\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"5381\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"5387\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"5393\": [2, 5, 5, 5, 10], \"5399\": [1, 1, 5, 5, 5, 5, 5], \"5407\": [1, 4, 4, 6, 12], \"5413\": [1, 1, 5, 5, 5, 5, 5], \"5417\": [2, 5, 5, 5, 10], \"5419\": [9, 9, 9], \"5431\": [1, 2, 8, 8, 8], \"5437\": [3, 6, 6, 6, 6], \"5441\": [1, 1, 5, 5, 5, 5, 5], \"5443\": [1, 4, 4, 6, 12], \"5449\": [3, 6, 6, 6, 6], \"5471\": [3, 3, 3, 3, 3, 6, 6], \"5477\": [1, 4, 4, 6, 12], \"5479\": [3, 12, 12], \"5483\": [3, 6, 6, 6, 6], \"5501\": [1, 2, 8, 8, 8], \"5503\": [3, 6, 6, 6, 6], \"5507\": [9, 9, 9], \"5519\": [2, 5, 5, 5, 10], \"5521\": [3, 12, 12], \"5527\": [1, 1, 5, 5, 5, 5, 5], \"5531\": [9, 9, 9], \"5557\": [1, 4, 4, 6, 12], \"5563\": [9, 9, 9], \"5569\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"5573\": [9, 9, 9], \"5581\": [1, 1, 5, 5, 5, 5, 5], \"5591\": [3, 12, 12], \"5623\": [9, 9, 9], \"5639\": [1, 1, 5, 5, 5, 5, 5], \"5641\": [2, 5, 5, 5, 10], \"5647\": [1, 1, 5, 5, 5, 5, 5], \"5651\": [3, 6, 6, 6, 6], \"5653\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"5657\": [2, 5, 5, 5, 10], \"5659\": [1, 4, 4, 6, 12], \"5669\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"5683\": [3, 12, 12], \"5689\": [9, 9, 9], \"5693\": [1, 4, 4, 6, 12], \"5701\": [3, 12, 12], \"5711\": [3, 6, 6, 6, 6], \"5717\": [1, 2, 8, 8, 8], \"5737\": [9, 9, 9], \"5741\": [3, 6, 6, 6, 6], \"5743\": [3, 12, 12], \"5749\": [3, 6, 6, 6, 6], \"5779\": [3, 6, 6, 6, 6], \"5783\": [1, 4, 4, 6, 12], \"5791\": [9, 9, 9], \"5801\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"5807\": [1, 1, 5, 5, 5, 5, 5], \"5813\": [1, 2, 8, 8, 8], \"5821\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"5827\": [2, 5, 5, 5, 10], \"5839\": [1, 1, 5, 5, 5, 5, 5], \"5843\": [2, 5, 5, 5, 10], \"5849\": [1, 2, 8, 8, 8], \"5851\": [9, 9, 9], \"5857\": [1, 4, 4, 6, 12], \"5861\": [1, 1, 5, 5, 5, 5, 5], \"5867\": [3, 6, 6, 6, 6], \"5869\": [9, 9, 9], \"5879\": [1, 1, 5, 5, 5, 5, 5], \"5881\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"5897\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2], \"5903\": [9, 9, 9], \"5923\": [1, 2, 8, 8, 8], \"5927\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"5939\": [3, 3, 3, 3, 3, 6, 6], \"5953\": [2, 5, 5, 5, 10], \"5981\": [3, 12, 12], \"5987\": [3, 12, 12], \"6007\": [1, 4, 4, 6, 12], \"6011\": [1, 2, 8, 8, 8], \"6029\": [9, 9, 9], \"6037\": [3, 6, 6, 6, 6], \"6043\": [2, 5, 5, 5, 10], \"6047\": [2, 5, 5, 5, 10], \"6053\": [1, 4, 4, 6, 12], \"6067\": [1, 4, 4, 6, 12], \"6073\": [1, 4, 4, 6, 12], \"6079\": [3, 3, 3, 3, 3, 6, 6], \"6089\": [3, 6, 6, 6, 6], \"6091\": [1, 4, 4, 6, 12], \"6101\": [3, 12, 12], \"6113\": [2, 5, 5, 5, 10], \"6121\": [1, 4, 4, 6, 12], \"6131\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"6133\": [1, 1, 5, 5, 5, 5, 5], \"6143\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"6151\": [1, 1, 5, 5, 5, 5, 5], \"6163\": [3, 3, 3, 3, 3, 6, 6], \"6173\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"6197\": [3, 3, 3, 3, 3, 6, 6], \"6199\": [2, 5, 5, 5, 10], \"6203\": [9, 9, 9], \"6211\": [3, 3, 3, 3, 3, 6, 6], \"6217\": [3, 12, 12], \"6221\": [1, 1, 5, 5, 5, 5, 5], \"6229\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"6247\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"6257\": [2, 5, 5, 5, 10], \"6263\": [3, 12, 12], \"6269\": [2, 5, 5, 5, 10], \"6271\": [3, 12, 12], \"6277\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"6287\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"6299\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"6301\": [1, 2, 8, 8, 8], \"6311\": [1, 2, 8, 8, 8], \"6317\": [2, 5, 5, 5, 10], \"6323\": [3, 12, 12], \"6329\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"6337\": [1, 4, 4, 6, 12], \"6343\": [3, 6, 6, 6, 6], \"6353\": [1, 1, 5, 5, 5, 5, 5], \"6359\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"6361\": [9, 9, 9], \"6367\": [2, 5, 5, 5, 10], \"6373\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"6379\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"6389\": [1, 2, 8, 8, 8], \"6397\": [3, 6, 6, 6, 6], \"6421\": [3, 12, 12], \"6427\": [1, 2, 8, 8, 8], \"6449\": [9, 9, 9], \"6451\": [9, 9, 9], \"6469\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"6473\": [3, 12, 12], \"6481\": [3, 6, 6, 6, 6], \"6491\": [2, 5, 5, 5, 10], \"6521\": [9, 9, 9], \"6529\": [3, 12, 12], \"6547\": [1, 1, 5, 5, 5, 5, 5], \"6551\": [1, 4, 4, 6, 12], \"6553\": [3, 6, 6, 6, 6], \"6563\": [3, 6, 6, 6, 6], \"6569\": [9, 9, 9], \"6571\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"6577\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"6581\": [1, 1, 5, 5, 5, 5, 5], \"6599\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"6607\": [9, 9, 9], \"6619\": [3, 12, 12], \"6637\": [9, 9, 9], \"6653\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"6659\": [3, 12, 12], \"6661\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"6673\": [1, 2, 8, 8, 8], \"6679\": [3, 3, 3, 3, 3, 6, 6], \"6689\": [2, 5, 5, 5, 10], \"6691\": [9, 9, 9], \"6701\": [3, 12, 12], \"6703\": [3, 6, 6, 6, 6], \"6709\": [1, 1, 5, 5, 5, 5, 5], \"6719\": [9, 9, 9], \"6733\": [9, 9, 9], \"6737\": [9, 9, 9], \"6761\": [1, 2, 8, 8, 8], \"6763\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"6779\": [1, 4, 4, 6, 12], \"6781\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"6791\": [9, 9, 9], \"6793\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"6803\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"6823\": [3, 6, 6, 6, 6], \"6827\": [3, 12, 12], \"6829\": [1, 2, 8, 8, 8], \"6833\": [2, 5, 5, 5, 10], \"6841\": [1, 2, 8, 8, 8], \"6857\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"6863\": [3, 6, 6, 6, 6], \"6869\": [3, 12, 12], \"6871\": [3, 6, 6, 6, 6], \"6883\": [1, 4, 4, 6, 12], \"6899\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"6907\": [2, 5, 5, 5, 10], \"6911\": [1, 4, 4, 6, 12], \"6917\": [9, 9, 9], \"6947\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"6949\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"6959\": [1, 2, 8, 8, 8], \"6961\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"6967\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"6971\": [1, 4, 4, 6, 12], \"6977\": [3, 6, 6, 6, 6], \"6983\": [3, 6, 6, 6, 6], \"6991\": [1, 2, 8, 8, 8], \"6997\": [1, 4, 4, 6, 12], \"7001\": [2, 5, 5, 5, 10], \"7013\": [1, 4, 4, 6, 12], \"7019\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"7027\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"7039\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"7043\": [1, 2, 8, 8, 8], \"7057\": [1, 2, 8, 8, 8], \"7069\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"7079\": [1, 4, 4, 6, 12], \"7103\": [9, 9, 9], \"7109\": [9, 9, 9], \"7121\": [2, 5, 5, 5, 10], \"7127\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"7129\": [1, 1, 5, 5, 5, 5, 5], \"7151\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"7159\": [3, 6, 6, 6, 6], \"7177\": [2, 5, 5, 5, 10], \"7187\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"7193\": [9, 9, 9], \"7207\": [3, 6, 6, 6, 6], \"7211\": [3, 6, 6, 6, 6], \"7213\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"7219\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"7229\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"7237\": [2, 5, 5, 5, 10], \"7243\": [3, 12, 12], \"7247\": [1, 2, 8, 8, 8], \"7253\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"7283\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"7297\": [3, 6, 6, 6, 6], \"7307\": [3, 3, 3, 3, 3, 6, 6], \"7309\": [1, 1, 5, 5, 5, 5, 5], \"7321\": [3, 3, 3, 3, 3, 6, 6], \"7331\": [9, 9, 9], \"7333\": [2, 5, 5, 5, 10], \"7349\": [3, 3, 3, 3, 3, 6, 6], \"7351\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"7369\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"7393\": [9, 9, 9], \"7411\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"7417\": [1, 2, 8, 8, 8], \"7433\": [9, 9, 9], \"7451\": [3, 6, 6, 6, 6], \"7457\": [9, 9, 9], \"7459\": [1, 2, 8, 8, 8], \"7477\": [3, 12, 12], \"7481\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"7487\": [3, 3, 3, 3, 3, 6, 6], \"7489\": [1, 1, 5, 5, 5, 5, 5], \"7499\": [1, 1, 5, 5, 5, 5, 5], \"7507\": [1, 2, 8, 8, 8], \"7517\": [1, 1, 5, 5, 5, 5, 5], \"7523\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"7529\": [9, 9, 9], \"7537\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"7541\": [3, 6, 6, 6, 6], \"7547\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"7549\": [3, 6, 6, 6, 6], \"7559\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"7561\": [3, 6, 6, 6, 6], \"7573\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"7577\": [9, 9, 9], \"7583\": [1, 2, 8, 8, 8], \"7589\": [1, 1, 5, 5, 5, 5, 5], \"7591\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"7603\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"7607\": [2, 5, 5, 5, 10], \"7621\": [1, 4, 4, 6, 12], \"7639\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"7643\": [3, 12, 12], \"7649\": [1, 4, 4, 6, 12], \"7669\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"7673\": [1, 4, 4, 6, 12], \"7681\": [1, 4, 4, 6, 12], \"7687\": [9, 9, 9], \"7691\": [9, 9, 9], \"7699\": [2, 5, 5, 5, 10], \"7703\": [2, 5, 5, 5, 10], \"7717\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"7723\": [1, 1, 5, 5, 5, 5, 5], \"7727\": [2, 5, 5, 5, 10], \"7741\": [9, 9, 9], \"7753\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"7757\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"7759\": [1, 2, 8, 8, 8], \"7789\": [3, 12, 12], \"7793\": [3, 6, 6, 6, 6], \"7817\": [1, 4, 4, 6, 12], \"7823\": [9, 9, 9], \"7829\": [1, 4, 4, 6, 12], \"7841\": [1, 4, 4, 6, 12], \"7853\": [3, 6, 6, 6, 6], \"7867\": [1, 1, 5, 5, 5, 5, 5], \"7873\": [9, 9, 9], \"7877\": [3, 3, 3, 3, 3, 6, 6], \"7879\": [1, 4, 4, 6, 12], \"7883\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"7901\": [1, 4, 4, 6, 12], \"7907\": [9, 9, 9], \"7919\": [1, 2, 8, 8, 8], \"7927\": [1, 4, 4, 6, 12], \"7933\": [3, 6, 6, 6, 6], \"7937\": [3, 6, 6, 6, 6], \"7949\": [3, 6, 6, 6, 6], \"7951\": [3, 6, 6, 6, 6], \"7963\": [1, 1, 5, 5, 5, 5, 5], \"7993\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"8009\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"8011\": [1, 4, 4, 6, 12], \"8017\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"8039\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"8053\": [1, 1, 5, 5, 5, 5, 5], \"8059\": [1, 4, 4, 6, 12], \"8069\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"8081\": [3, 6, 6, 6, 6], \"8087\": [2, 5, 5, 5, 10], \"8089\": [3, 6, 6, 6, 6], \"8093\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"8101\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"8111\": [3, 6, 6, 6, 6], \"8117\": [1, 2, 8, 8, 8], \"8123\": [1, 2, 8, 8, 8], \"8147\": [1, 1, 5, 5, 5, 5, 5], \"8161\": [3, 12, 12], \"8167\": [1, 2, 8, 8, 8], \"8171\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"8179\": [2, 5, 5, 5, 10], \"8191\": [9, 9, 9], \"8209\": [1, 2, 8, 8, 8], \"8219\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"8221\": [9, 9, 9], \"8231\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"8233\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"8237\": [2, 5, 5, 5, 10], \"8243\": [2, 5, 5, 5, 10], \"8263\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"8269\": [1, 2, 8, 8, 8], \"8273\": [1, 1, 5, 5, 5, 5, 5], \"8287\": [2, 5, 5, 5, 10], \"8291\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"8293\": [1, 2, 8, 8, 8], \"8297\": [1, 2, 8, 8, 8], \"8311\": [1, 4, 4, 6, 12], \"8317\": [1, 2, 8, 8, 8], \"8329\": [1, 2, 8, 8, 8], \"8353\": [1, 4, 4, 6, 12], \"8363\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"8369\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"8377\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"8387\": [2, 5, 5, 5, 10], \"8389\": [1, 1, 5, 5, 5, 5, 5], \"8419\": [9, 9, 9], \"8423\": [9, 9, 9], \"8429\": [1, 2, 8, 8, 8], \"8431\": [3, 6, 6, 6, 6], \"8443\": [1, 1, 5, 5, 5, 5, 5], \"8447\": [3, 12, 12], \"8461\": [3, 12, 12], \"8467\": [1, 4, 4, 6, 12], \"8501\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"8513\": [9, 9, 9], \"8521\": [2, 5, 5, 5, 10], \"8527\": [1, 4, 4, 6, 12], \"8537\": [2, 5, 5, 5, 10], \"8539\": [3, 6, 6, 6, 6], \"8543\": [3, 6, 6, 6, 6], \"8563\": [3, 12, 12], \"8573\": [3, 12, 12], \"8581\": [3, 6, 6, 6, 6], \"8597\": [1, 2, 8, 8, 8], \"8599\": [1, 2, 8, 8, 8], \"8609\": [1, 1, 5, 5, 5, 5, 5], \"8623\": [3, 6, 6, 6, 6], \"8627\": [9, 9, 9], \"8629\": [2, 5, 5, 5, 10], \"8641\": [3, 6, 6, 6, 6], \"8647\": [9, 9, 9], \"8663\": [1, 1, 5, 5, 5, 5, 5], \"8669\": [2, 5, 5, 5, 10], \"8677\": [1, 1, 5, 5, 5, 5, 5], \"8681\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"8689\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"8693\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"8699\": [9, 9, 9], \"8707\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"8713\": [3, 6, 6, 6, 6], \"8719\": [2, 5, 5, 5, 10], \"8731\": [1, 4, 4, 6, 12], \"8737\": [1, 2, 8, 8, 8], \"8741\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"8747\": [3, 6, 6, 6, 6], \"8753\": [2, 5, 5, 5, 10], \"8761\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"8779\": [1, 4, 4, 6, 12], \"8783\": [2, 5, 5, 5, 10], \"8803\": [1, 1, 5, 5, 5, 5, 5], \"8807\": [2, 5, 5, 5, 10], \"8819\": [2, 5, 5, 5, 10], \"8821\": [9, 9, 9], \"8831\": [1, 2, 8, 8, 8], \"8837\": [2, 5, 5, 5, 10], \"8839\": [3, 6, 6, 6, 6], \"8849\": [1, 1, 5, 5, 5, 5, 5], \"8861\": [3, 6, 6, 6, 6], \"8863\": [3, 6, 6, 6, 6], \"8867\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"8887\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"8893\": [1, 2, 8, 8, 8], \"8923\": [1, 2, 8, 8, 8], \"8929\": [3, 12, 12], \"8933\": [1, 4, 4, 6, 12], \"8941\": [2, 5, 5, 5, 10], \"8951\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"8963\": [1, 1, 5, 5, 5, 5, 5], \"8969\": [1, 4, 4, 6, 12], \"8971\": [3, 6, 6, 6, 6], \"8999\": [1, 2, 8, 8, 8], \"9001\": [1, 4, 4, 6, 12], \"9007\": [3, 6, 6, 6, 6], \"9011\": [9, 9, 9], \"9013\": [1, 1, 5, 5, 5, 5, 5], \"9029\": [3, 3, 3, 3, 3, 6, 6], \"9041\": [1, 2, 8, 8, 8], \"9043\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"9049\": [1, 4, 4, 6, 12], \"9059\": [2, 5, 5, 5, 10], \"9067\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9091\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9103\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"9109\": [3, 6, 6, 6, 6], \"9127\": [1, 4, 4, 6, 12], \"9133\": [1, 2, 8, 8, 8], \"9137\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"9151\": [2, 5, 5, 5, 10], \"9157\": [1, 2, 8, 8, 8], \"9161\": [2, 5, 5, 5, 10], \"9173\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9181\": [1, 4, 4, 6, 12], \"9187\": [3, 6, 6, 6, 6], \"9199\": [1, 2, 8, 8, 8], \"9203\": [3, 3, 3, 3, 3, 6, 6], \"9209\": [1, 1, 5, 5, 5, 5, 5], \"9221\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"9227\": [9, 9, 9], \"9239\": [3, 12, 12], \"9241\": [3, 12, 12], \"9257\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9277\": [1, 1, 5, 5, 5, 5, 5], \"9281\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"9283\": [3, 6, 6, 6, 6], \"9293\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"9311\": [1, 4, 4, 6, 12], \"9319\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"9323\": [1, 4, 4, 6, 12], \"9337\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"9341\": [3, 6, 6, 6, 6], \"9343\": [3, 12, 12], \"9349\": [2, 5, 5, 5, 10], \"9371\": [9, 9, 9], \"9377\": [1, 4, 4, 6, 12], \"9391\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9397\": [3, 6, 6, 6, 6], \"9403\": [2, 5, 5, 5, 10], \"9413\": [3, 3, 3, 3, 3, 6, 6], \"9419\": [1, 2, 8, 8, 8], \"9421\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9431\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9433\": [1, 2, 8, 8, 8], \"9437\": [9, 9, 9], \"9439\": [3, 6, 6, 6, 6], \"9461\": [3, 12, 12], \"9463\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"9467\": [1, 2, 8, 8, 8], \"9473\": [1, 4, 4, 6, 12], \"9479\": [3, 12, 12], \"9491\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9497\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"9511\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9521\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9533\": [1, 1, 5, 5, 5, 5, 5], \"9539\": [9, 9, 9], \"9547\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"9551\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"9587\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"9601\": [2, 5, 5, 5, 10], \"9613\": [1, 1, 5, 5, 5, 5, 5], \"9619\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"9623\": [3, 12, 12], \"9629\": [1, 1, 5, 5, 5, 5, 5], \"9631\": [9, 9, 9], \"9643\": [9, 9, 9], \"9649\": [1, 2, 8, 8, 8], \"9661\": [9, 9, 9], \"9677\": [1, 2, 8, 8, 8], \"9679\": [2, 5, 5, 5, 10], \"9689\": [1, 2, 8, 8, 8], \"9697\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9719\": [3, 12, 12], \"9721\": [3, 6, 6, 6, 6], \"9733\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"9739\": [3, 6, 6, 6, 6], \"9743\": [1, 1, 5, 5, 5, 5, 5], \"9749\": [2, 5, 5, 5, 10], \"9767\": [1, 2, 8, 8, 8], \"9769\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"9781\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"9787\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"9791\": [3, 12, 12], \"9803\": [1, 2, 8, 8, 8], \"9811\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"9817\": [1, 2, 8, 8, 8], \"9829\": [1, 2, 8, 8, 8], \"9833\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"9839\": [1, 1, 5, 5, 5, 5, 5], \"9851\": [1, 2, 8, 8, 8], \"9857\": [3, 6, 6, 6, 6], \"9859\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9871\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"9883\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"9887\": [3, 12, 12], \"9901\": [2, 5, 5, 5, 10], \"9907\": [3, 12, 12], \"9923\": [2, 5, 5, 5, 10], \"9929\": [3, 12, 12], \"9931\": [2, 5, 5, 5, 10], \"9941\": [1, 4, 4, 6, 12], \"9949\": [3, 12, 12], \"9967\": [9, 9, 9], \"9973\": [1, 2, 8, 8, 8], \"10007\": [2, 5, 5, 5, 10], \"10009\": [3, 12, 12], \"10037\": [1, 4, 4, 6, 12], \"10039\": [3, 12, 12], \"10061\": [3, 6, 6, 6, 6], \"10067\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"10069\": [3, 6, 6, 6, 6], \"10079\": [1, 4, 4, 6, 12], \"10091\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"10093\": [1, 2, 8, 8, 8], \"10099\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10103\": [1, 1, 5, 5, 5, 5, 5], \"10111\": [3, 6, 6, 6, 6], \"10133\": [3, 6, 6, 6, 6], \"10139\": [1, 1, 5, 5, 5, 5, 5], \"10141\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"10151\": [2, 5, 5, 5, 10], \"10159\": [3, 12, 12], \"10163\": [2, 5, 5, 5, 10], \"10169\": [3, 12, 12], \"10177\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"10181\": [1, 1, 5, 5, 5, 5, 5], \"10193\": [1, 2, 8, 8, 8], \"10211\": [3, 6, 6, 6, 6], \"10223\": [1, 1, 5, 5, 5, 5, 5], \"10243\": [3, 6, 6, 6, 6], \"10247\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10253\": [1, 1, 5, 5, 5, 5, 5], \"10259\": [2, 5, 5, 5, 10], \"10267\": [9, 9, 9], \"10271\": [1, 2, 8, 8, 8], \"10273\": [1, 2, 8, 8, 8], \"10289\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"10301\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"10303\": [2, 5, 5, 5, 10], \"10313\": [9, 9, 9], \"10321\": [3, 12, 12], \"10331\": [1, 1, 5, 5, 5, 5, 5], \"10333\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10337\": [1, 4, 4, 6, 12], \"10343\": [1, 1, 5, 5, 5, 5, 5], \"10357\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10369\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"10391\": [1, 1, 5, 5, 5, 5, 5], \"10399\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"10427\": [9, 9, 9], \"10429\": [9, 9, 9], \"10433\": [3, 12, 12], \"10453\": [1, 2, 8, 8, 8], \"10457\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10459\": [3, 3, 3, 3, 3, 6, 6], \"10463\": [9, 9, 9], \"10477\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10487\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"10499\": [1, 2, 8, 8, 8], \"10501\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10513\": [3, 12, 12], \"10529\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10531\": [3, 12, 12], \"10559\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10567\": [1, 2, 8, 8, 8], \"10589\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10597\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"10601\": [3, 6, 6, 6, 6], \"10607\": [3, 6, 6, 6, 6], \"10613\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"10627\": [3, 12, 12], \"10631\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"10639\": [3, 6, 6, 6, 6], \"10651\": [1, 1, 5, 5, 5, 5, 5], \"10657\": [2, 5, 5, 5, 10], \"10663\": [1, 4, 4, 6, 12], \"10667\": [9, 9, 9], \"10687\": [3, 3, 3, 3, 3, 6, 6], \"10691\": [2, 5, 5, 5, 10], \"10709\": [2, 5, 5, 5, 10], \"10711\": [9, 9, 9], \"10723\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"10729\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10733\": [3, 6, 6, 6, 6], \"10739\": [2, 5, 5, 5, 10], \"10753\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"10771\": [1, 1, 5, 5, 5, 5, 5], \"10781\": [9, 9, 9], \"10789\": [1, 1, 5, 5, 5, 5, 5], \"10799\": [1, 1, 5, 5, 5, 5, 5], \"10831\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"10837\": [3, 6, 6, 6, 6], \"10847\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"10853\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"10859\": [1, 2, 8, 8, 8], \"10861\": [2, 5, 5, 5, 10], \"10867\": [1, 1, 5, 5, 5, 5, 5], \"10883\": [3, 12, 12], \"10889\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"10891\": [1, 4, 4, 6, 12], \"10903\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"10909\": [1, 4, 4, 6, 12], \"10937\": [3, 6, 6, 6, 6], \"10939\": [1, 4, 4, 6, 12], \"10949\": [2, 5, 5, 5, 10], \"10957\": [9, 9, 9], \"10973\": [9, 9, 9], \"10979\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"10987\": [1, 1, 5, 5, 5, 5, 5], \"10993\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"11003\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"11027\": [1, 4, 4, 6, 12], \"11047\": [1, 1, 5, 5, 5, 5, 5], \"11057\": [9, 9, 9], \"11059\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"11069\": [9, 9, 9], \"11071\": [1, 4, 4, 6, 12], \"11083\": [3, 6, 6, 6, 6], \"11087\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"11093\": [3, 6, 6, 6, 6], \"11113\": [1, 4, 4, 6, 12], \"11117\": [1, 2, 8, 8, 8], \"11119\": [9, 9, 9], \"11131\": [1, 1, 5, 5, 5, 5, 5], \"11149\": [1, 1, 5, 5, 5, 5, 5], \"11159\": [9, 9, 9], \"11161\": [1, 2, 8, 8, 8], \"11171\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"11173\": [3, 6, 6, 6, 6], \"11177\": [3, 6, 6, 6, 6], \"11197\": [3, 6, 6, 6, 6], \"11213\": [3, 12, 12], \"11239\": [9, 9, 9], \"11243\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"11251\": [1, 1, 5, 5, 5, 5, 5], \"11257\": [1, 1, 5, 5, 5, 5, 5], \"11261\": [9, 9, 9], \"11273\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"11279\": [3, 6, 6, 6, 6], \"11287\": [3, 12, 12], \"11299\": [1, 1, 5, 5, 5, 5, 5], \"11311\": [9, 9, 9], \"11317\": [1, 2, 8, 8, 8], \"11321\": [9, 9, 9], \"11329\": [2, 5, 5, 5, 10], \"11351\": [2, 5, 5, 5, 10], \"11353\": [1, 2, 8, 8, 8], \"11369\": [1, 4, 4, 6, 12], \"11383\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"11393\": [3, 6, 6, 6, 6], \"11399\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"11411\": [3, 12, 12], \"11423\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"11437\": [2, 5, 5, 5, 10], \"11443\": [9, 9, 9], \"11447\": [2, 5, 5, 5, 10], \"11467\": [3, 3, 3, 3, 3, 6, 6], \"11471\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"11483\": [9, 9, 9], \"11489\": [3, 3, 3, 3, 3, 6, 6], \"11491\": [3, 6, 6, 6, 6], \"11497\": [3, 6, 6, 6, 6], \"11503\": [9, 9, 9], \"11519\": [1, 2, 8, 8, 8], \"11527\": [2, 5, 5, 5, 10], \"11549\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"11551\": [1, 2, 8, 8, 8], \"11579\": [1, 1, 5, 5, 5, 5, 5], \"11587\": [1, 4, 4, 6, 12], \"11593\": [1, 4, 4, 6, 12], \"11597\": [3, 6, 6, 6, 6], \"11617\": [3, 6, 6, 6, 6], \"11621\": [3, 12, 12], \"11633\": [3, 6, 6, 6, 6], \"11657\": [1, 2, 8, 8, 8], \"11677\": [1, 2, 8, 8, 8], \"11681\": [3, 12, 12], \"11689\": [3, 12, 12], \"11699\": [9, 9, 9], \"11701\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"11717\": [1, 1, 5, 5, 5, 5, 5], \"11719\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"11731\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"11743\": [3, 12, 12], \"11777\": [2, 5, 5, 5, 10], \"11779\": [9, 9, 9], \"11783\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"11789\": [1, 1, 5, 5, 5, 5, 5], \"11801\": [1, 4, 4, 6, 12], \"11807\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"11813\": [3, 6, 6, 6, 6], \"11821\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"11827\": [1, 4, 4, 6, 12], \"11831\": [1, 1, 5, 5, 5, 5, 5], \"11833\": [9, 9, 9], \"11839\": [3, 12, 12], \"11863\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"11867\": [3, 12, 12], \"11887\": [9, 9, 9], \"11897\": [1, 2, 8, 8, 8], \"11903\": [2, 5, 5, 5, 10], \"11909\": [2, 5, 5, 5, 10], \"11923\": [2, 5, 5, 5, 10], \"11927\": [9, 9, 9], \"11933\": [9, 9, 9], \"11939\": [3, 12, 12], \"11941\": [1, 2, 8, 8, 8], \"11953\": [1, 4, 4, 6, 12], \"11959\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"11969\": [1, 2, 8, 8, 8], \"11971\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"11981\": [2, 5, 5, 5, 10], \"11987\": [9, 9, 9], \"12007\": [9, 9, 9], \"12011\": [2, 5, 5, 5, 10], \"12037\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"12041\": [1, 1, 5, 5, 5, 5, 5], \"12043\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"12049\": [3, 12, 12], \"12071\": [1, 1, 5, 5, 5, 5, 5], \"12073\": [1, 1, 5, 5, 5, 5, 5], \"12097\": [1, 2, 8, 8, 8], \"12101\": [3, 6, 6, 6, 6], \"12107\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"12109\": [2, 5, 5, 5, 10], \"12113\": [3, 12, 12], \"12119\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"12143\": [1, 1, 5, 5, 5, 5, 5], \"12149\": [2, 5, 5, 5, 10], \"12157\": [2, 5, 5, 5, 10], \"12161\": [3, 6, 6, 6, 6], \"12163\": [1, 2, 8, 8, 8], \"12197\": [9, 9, 9], \"12203\": [1, 4, 4, 6, 12], \"12211\": [3, 6, 6, 6, 6], \"12227\": [1, 2, 8, 8, 8], \"12239\": [9, 9, 9], \"12241\": [9, 9, 9], \"12251\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"12253\": [1, 1, 5, 5, 5, 5, 5], \"12263\": [1, 4, 4, 6, 12], \"12269\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"12277\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"12281\": [2, 5, 5, 5, 10], \"12289\": [2, 5, 5, 5, 10], \"12301\": [3, 12, 12], \"12323\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"12329\": [1, 1, 5, 5, 5, 5, 5], \"12343\": [1, 2, 8, 8, 8], \"12347\": [1, 2, 8, 8, 8], \"12373\": [3, 12, 12], \"12377\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"12379\": [9, 9, 9], \"12391\": [1, 1, 5, 5, 5, 5, 5], \"12401\": [3, 12, 12], \"12409\": [9, 9, 9], \"12413\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"12421\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"12433\": [1, 1, 5, 5, 5, 5, 5], \"12437\": [3, 12, 12], \"12451\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"12457\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"12473\": [3, 6, 6, 6, 6], \"12479\": [1, 2, 8, 8, 8], \"12487\": [3, 12, 12], \"12491\": [1, 2, 8, 8, 8], \"12497\": [3, 3, 3, 3, 3, 6, 6], \"12503\": [9, 9, 9], \"12511\": [2, 5, 5, 5, 10], \"12517\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"12527\": [3, 12, 12], \"12539\": [2, 5, 5, 5, 10], \"12541\": [1, 1, 5, 5, 5, 5, 5], \"12547\": [3, 6, 6, 6, 6], \"12553\": [3, 6, 6, 6, 6], \"12569\": [2, 5, 5, 5, 10], \"12577\": [2, 5, 5, 5, 10], \"12583\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"12589\": [1, 2, 8, 8, 8], \"12601\": [1, 4, 4, 6, 12], \"12611\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"12613\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"12619\": [1, 1, 5, 5, 5, 5, 5], \"12637\": [2, 5, 5, 5, 10], \"12641\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"12647\": [1, 4, 4, 6, 12], \"12653\": [3, 6, 6, 6, 6], \"12659\": [2, 5, 5, 5, 10], \"12671\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"12689\": [1, 1, 5, 5, 5, 5, 5], \"12697\": [1, 2, 8, 8, 8], \"12703\": [2, 5, 5, 5, 10], \"12713\": [1, 1, 5, 5, 5, 5, 5], \"12721\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"12739\": [9, 9, 9], \"12743\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"12757\": [1, 4, 4, 6, 12], \"12763\": [1, 4, 4, 6, 12], \"12781\": [1, 2, 8, 8, 8], \"12791\": [1, 2, 8, 8, 8], \"12799\": [1, 2, 8, 8, 8], \"12809\": [3, 12, 12], \"12821\": [3, 6, 6, 6, 6], \"12823\": [3, 6, 6, 6, 6], \"12829\": [3, 12, 12], \"12841\": [1, 1, 5, 5, 5, 5, 5], \"12853\": [1, 4, 4, 6, 12], \"12889\": [1, 4, 4, 6, 12], \"12893\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"12899\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"12907\": [1, 2, 8, 8, 8], \"12911\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"12917\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"12919\": [2, 5, 5, 5, 10], \"12923\": [1, 1, 5, 5, 5, 5, 5], \"12941\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"12953\": [2, 5, 5, 5, 10], \"12959\": [1, 4, 4, 6, 12], \"12967\": [3, 12, 12], \"12973\": [3, 6, 6, 6, 6], \"12979\": [2, 5, 5, 5, 10], \"12983\": [3, 6, 6, 6, 6], \"13001\": [1, 2, 8, 8, 8], \"13003\": [2, 5, 5, 5, 10], \"13007\": [3, 6, 6, 6, 6], \"13009\": [1, 2, 8, 8, 8], \"13033\": [2, 5, 5, 5, 10], \"13037\": [1, 2, 8, 8, 8], \"13043\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"13049\": [1, 4, 4, 6, 12], \"13063\": [3, 6, 6, 6, 6], \"13093\": [9, 9, 9], \"13099\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"13103\": [3, 12, 12], \"13109\": [1, 1, 5, 5, 5, 5, 5], \"13121\": [3, 12, 12], \"13127\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"13147\": [1, 1, 5, 5, 5, 5, 5], \"13151\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"13159\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"13163\": [3, 6, 6, 6, 6], \"13171\": [9, 9, 9], \"13177\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"13183\": [1, 4, 4, 6, 12], \"13187\": [1, 2, 8, 8, 8], \"13217\": [1, 1, 5, 5, 5, 5, 5], \"13219\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"13229\": [1, 2, 8, 8, 8], \"13241\": [1, 2, 8, 8, 8], \"13249\": [1, 1, 5, 5, 5, 5, 5], \"13259\": [3, 12, 12], \"13267\": [1, 4, 4, 6, 12], \"13291\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"13297\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"13309\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"13313\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"13327\": [3, 12, 12], \"13331\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"13337\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"13339\": [2, 5, 5, 5, 10], \"13367\": [9, 9, 9], \"13381\": [1, 2, 8, 8, 8], \"13397\": [1, 1, 5, 5, 5, 5, 5], \"13399\": [1, 4, 4, 6, 12], \"13411\": [1, 4, 4, 6, 12], \"13417\": [3, 6, 6, 6, 6], \"13421\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"13441\": [9, 9, 9], \"13451\": [1, 4, 4, 6, 12], \"13457\": [9, 9, 9], \"13463\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"13469\": [1, 1, 5, 5, 5, 5, 5], \"13477\": [3, 6, 6, 6, 6], \"13487\": [3, 6, 6, 6, 6], \"13499\": [3, 6, 6, 6, 6], \"13513\": [1, 1, 5, 5, 5, 5, 5], \"13523\": [1, 4, 4, 6, 12], \"13537\": [2, 5, 5, 5, 10], \"13553\": [1, 4, 4, 6, 12], \"13567\": [2, 5, 5, 5, 10], \"13577\": [2, 5, 5, 5, 10], \"13591\": [1, 2, 8, 8, 8], \"13597\": [3, 6, 6, 6, 6], \"13613\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"13619\": [1, 2, 8, 8, 8], \"13627\": [3, 12, 12], \"13633\": [1, 1, 5, 5, 5, 5, 5], \"13649\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"13669\": [2, 5, 5, 5, 10], \"13679\": [1, 1, 5, 5, 5, 5, 5], \"13681\": [9, 9, 9], \"13687\": [3, 12, 12], \"13691\": [1, 2, 8, 8, 8], \"13693\": [1, 4, 4, 6, 12], \"13697\": [3, 12, 12], \"13709\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"13711\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"13721\": [3, 6, 6, 6, 6], \"13723\": [3, 6, 6, 6, 6], \"13729\": [2, 5, 5, 5, 10], \"13751\": [1, 4, 4, 6, 12], \"13757\": [3, 6, 6, 6, 6], \"13759\": [1, 1, 5, 5, 5, 5, 5], \"13763\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"13781\": [3, 6, 6, 6, 6], \"13789\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"13799\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"13807\": [1, 1, 5, 5, 5, 5, 5], \"13829\": [2, 5, 5, 5, 10], \"13831\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"13841\": [1, 2, 8, 8, 8], \"13859\": [3, 6, 6, 6, 6], \"13873\": [3, 3, 3, 3, 3, 6, 6], \"13877\": [3, 12, 12], \"13879\": [2, 5, 5, 5, 10], \"13883\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"13901\": [1, 4, 4, 6, 12], \"13903\": [3, 12, 12], \"13907\": [3, 6, 6, 6, 6], \"13913\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"13921\": [3, 12, 12], \"13931\": [1, 2, 8, 8, 8], \"13933\": [1, 1, 5, 5, 5, 5, 5], \"13963\": [1, 2, 8, 8, 8], \"13967\": [3, 12, 12], \"13997\": [1, 4, 4, 6, 12], \"13999\": [3, 6, 6, 6, 6], \"14009\": [2, 5, 5, 5, 10], \"14011\": [1, 1, 5, 5, 5, 5, 5], \"14029\": [9, 9, 9], \"14033\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"14051\": [1, 1, 5, 5, 5, 5, 5], \"14057\": [1, 1, 5, 5, 5, 5, 5], \"14071\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"14081\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"14083\": [1, 2, 8, 8, 8], \"14087\": [9, 9, 9], \"14107\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"14143\": [3, 12, 12], \"14149\": [3, 6, 6, 6, 6], \"14153\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"14159\": [9, 9, 9], \"14173\": [1, 1, 5, 5, 5, 5, 5], \"14177\": [9, 9, 9], \"14197\": [9, 9, 9], \"14207\": [1, 2, 8, 8, 8], \"14221\": [9, 9, 9], \"14243\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"14249\": [1, 1, 5, 5, 5, 5, 5], \"14251\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"14281\": [1, 2, 8, 8, 8], \"14293\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"14303\": [1, 2, 8, 8, 8], \"14321\": [1, 4, 4, 6, 12], \"14323\": [1, 1, 5, 5, 5, 5, 5], \"14327\": [3, 6, 6, 6, 6], \"14341\": [3, 6, 6, 6, 6], \"14347\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"14369\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"14387\": [2, 5, 5, 5, 10], \"14389\": [1, 4, 4, 6, 12], \"14401\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"14407\": [9, 9, 9], \"14411\": [1, 2, 8, 8, 8], \"14419\": [1, 2, 8, 8, 8], \"14423\": [9, 9, 9], \"14431\": [2, 5, 5, 5, 10], \"14437\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"14447\": [2, 5, 5, 5, 10], \"14449\": [1, 1, 5, 5, 5, 5, 5], \"14461\": [1, 2, 8, 8, 8], \"14479\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"14489\": [2, 5, 5, 5, 10], \"14503\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"14519\": [1, 4, 4, 6, 12], \"14533\": [1, 1, 5, 5, 5, 5, 5], \"14537\": [1, 2, 8, 8, 8], \"14543\": [3, 12, 12], \"14549\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"14551\": [3, 6, 6, 6, 6], \"14557\": [9, 9, 9], \"14561\": [1, 4, 4, 6, 12], \"14563\": [1, 4, 4, 6, 12], \"14591\": [3, 6, 6, 6, 6], \"14593\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"14621\": [9, 9, 9], \"14627\": [1, 2, 8, 8, 8], \"14629\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"14633\": [1, 2, 8, 8, 8], \"14639\": [2, 5, 5, 5, 10], \"14653\": [1, 2, 8, 8, 8], \"14657\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"14669\": [3, 6, 6, 6, 6], \"14683\": [9, 9, 9], \"14699\": [9, 9, 9], \"14713\": [9, 9, 9], \"14717\": [9, 9, 9], \"14723\": [1, 1, 5, 5, 5, 5, 5], \"14731\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"14737\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"14741\": [3, 6, 6, 6, 6], \"14747\": [3, 6, 6, 6, 6], \"14753\": [9, 9, 9], \"14759\": [1, 1, 5, 5, 5, 5, 5], \"14767\": [1, 4, 4, 6, 12], \"14771\": [3, 6, 6, 6, 6], \"14779\": [3, 6, 6, 6, 6], \"14783\": [3, 6, 6, 6, 6], \"14797\": [1, 2, 8, 8, 8], \"14813\": [1, 1, 5, 5, 5, 5, 5], \"14821\": [9, 9, 9], \"14827\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"14831\": [1, 4, 4, 6, 12], \"14843\": [1, 4, 4, 6, 12], \"14851\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"14867\": [1, 2, 8, 8, 8], \"14869\": [2, 5, 5, 5, 10], \"14879\": [3, 12, 12], \"14887\": [3, 6, 6, 6, 6], \"14891\": [1, 4, 4, 6, 12], \"14897\": [3, 6, 6, 6, 6], \"14923\": [1, 4, 4, 6, 12], \"14929\": [1, 1, 5, 5, 5, 5, 5], \"14939\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"14947\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"14951\": [1, 4, 4, 6, 12], \"14957\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"14969\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"14983\": [3, 3, 3, 3, 3, 6, 6], \"15013\": [9, 9, 9], \"15017\": [1, 4, 4, 6, 12], \"15031\": [1, 2, 8, 8, 8], \"15053\": [9, 9, 9], \"15061\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"15073\": [9, 9, 9], \"15077\": [2, 5, 5, 5, 10], \"15083\": [2, 5, 5, 5, 10], \"15091\": [1, 2, 8, 8, 8], \"15101\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"15107\": [3, 3, 3, 3, 3, 6, 6], \"15121\": [3, 3, 3, 3, 3, 6, 6], \"15131\": [2, 5, 5, 5, 10], \"15137\": [2, 5, 5, 5, 10], \"15139\": [9, 9, 9], \"15149\": [1, 4, 4, 6, 12], \"15161\": [3, 12, 12], \"15173\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"15187\": [1, 2, 8, 8, 8], \"15193\": [1, 4, 4, 6, 12], \"15199\": [2, 5, 5, 5, 10], \"15217\": [1, 2, 8, 8, 8], \"15227\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"15233\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"15241\": [3, 6, 6, 6, 6], \"15259\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"15263\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"15269\": [1, 4, 4, 6, 12], \"15271\": [3, 12, 12], \"15277\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"15287\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"15289\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"15299\": [3, 6, 6, 6, 6], \"15307\": [9, 9, 9], \"15313\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"15319\": [1, 1, 5, 5, 5, 5, 5], \"15329\": [1, 2, 8, 8, 8], \"15331\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"15349\": [1, 4, 4, 6, 12], \"15359\": [9, 9, 9], \"15361\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"15373\": [3, 6, 6, 6, 6], \"15377\": [9, 9, 9], \"15383\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"15391\": [9, 9, 9], \"15401\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"15413\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"15427\": [9, 9, 9], \"15439\": [3, 3, 3, 3, 3, 6, 6], \"15443\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"15451\": [1, 2, 8, 8, 8], \"15461\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"15467\": [1, 1, 5, 5, 5, 5, 5], \"15473\": [9, 9, 9], \"15493\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"15497\": [2, 5, 5, 5, 10], \"15511\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"15527\": [2, 5, 5, 5, 10], \"15541\": [3, 3, 3, 3, 3, 6, 6], \"15551\": [3, 3, 3, 3, 3, 6, 6], \"15559\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"15569\": [9, 9, 9], \"15581\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"15583\": [3, 6, 6, 6, 6], \"15601\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"15607\": [3, 12, 12], \"15619\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"15629\": [1, 4, 4, 6, 12], \"15641\": [3, 12, 12], \"15643\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"15647\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"15649\": [9, 9, 9], \"15661\": [1, 2, 8, 8, 8], \"15667\": [3, 6, 6, 6, 6], \"15671\": [3, 12, 12], \"15679\": [1, 2, 8, 8, 8], \"15683\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"15727\": [2, 5, 5, 5, 10], \"15731\": [2, 5, 5, 5, 10], \"15733\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"15737\": [1, 1, 5, 5, 5, 5, 5], \"15739\": [1, 2, 8, 8, 8], \"15749\": [1, 1, 5, 5, 5, 5, 5], \"15761\": [3, 6, 6, 6, 6], \"15767\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"15773\": [1, 1, 5, 5, 5, 5, 5], \"15787\": [1, 2, 8, 8, 8], \"15791\": [1, 4, 4, 6, 12], \"15797\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"15803\": [9, 9, 9], \"15809\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"15817\": [1, 4, 4, 6, 12], \"15823\": [3, 12, 12], \"15859\": [1, 2, 8, 8, 8], \"15877\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"15881\": [9, 9, 9], \"15887\": [2, 5, 5, 5, 10], \"15889\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"15901\": [1, 1, 5, 5, 5, 5, 5], \"15907\": [3, 6, 6, 6, 6], \"15913\": [9, 9, 9], \"15919\": [1, 1, 5, 5, 5, 5, 5], \"15923\": [1, 1, 5, 5, 5, 5, 5], \"15937\": [1, 1, 5, 5, 5, 5, 5], \"15959\": [3, 12, 12], \"15971\": [3, 12, 12], \"15973\": [9, 9, 9], \"15991\": [1, 4, 4, 6, 12], \"16001\": [9, 9, 9], \"16007\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"16033\": [3, 3, 3, 3, 3, 6, 6], \"16057\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"16061\": [1, 1, 5, 5, 5, 5, 5], \"16063\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"16067\": [1, 2, 8, 8, 8], \"16069\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"16073\": [9, 9, 9], \"16087\": [3, 6, 6, 6, 6], \"16091\": [3, 3, 3, 3, 3, 6, 6], \"16097\": [1, 1, 5, 5, 5, 5, 5], \"16103\": [1, 2, 8, 8, 8], \"16111\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"16127\": [2, 5, 5, 5, 10], \"16139\": [1, 1, 5, 5, 5, 5, 5], \"16141\": [9, 9, 9], \"16183\": [1, 2, 8, 8, 8], \"16187\": [2, 5, 5, 5, 10], \"16189\": [1, 1, 5, 5, 5, 5, 5], \"16193\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"16217\": [1, 4, 4, 6, 12], \"16223\": [3, 6, 6, 6, 6], \"16229\": [9, 9, 9], \"16231\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"16249\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"16253\": [2, 5, 5, 5, 10], \"16267\": [1, 4, 4, 6, 12], \"16273\": [3, 6, 6, 6, 6], \"16301\": [3, 6, 6, 6, 6], \"16319\": [3, 12, 12], \"16333\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"16339\": [9, 9, 9], \"16349\": [1, 2, 8, 8, 8], \"16361\": [3, 3, 3, 3, 3, 6, 6], \"16363\": [9, 9, 9], \"16369\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"16381\": [9, 9, 9], \"16411\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"16417\": [3, 6, 6, 6, 6], \"16421\": [2, 5, 5, 5, 10], \"16427\": [2, 5, 5, 5, 10], \"16433\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"16447\": [1, 2, 8, 8, 8], \"16451\": [3, 3, 3, 3, 3, 6, 6], \"16453\": [3, 12, 12], \"16477\": [2, 5, 5, 5, 10], \"16481\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"16487\": [1, 4, 4, 6, 12], \"16493\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"16519\": [1, 2, 8, 8, 8], \"16529\": [9, 9, 9], \"16547\": [1, 2, 8, 8, 8], \"16553\": [1, 2, 8, 8, 8], \"16561\": [3, 6, 6, 6, 6], \"16567\": [2, 5, 5, 5, 10], \"16573\": [3, 6, 6, 6, 6], \"16603\": [3, 12, 12], \"16607\": [1, 2, 8, 8, 8], \"16619\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"16631\": [3, 6, 6, 6, 6], \"16633\": [9, 9, 9], \"16649\": [2, 5, 5, 5, 10], \"16651\": [9, 9, 9], \"16657\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"16661\": [2, 5, 5, 5, 10], \"16673\": [3, 12, 12], \"16691\": [3, 3, 3, 3, 3, 6, 6], \"16693\": [3, 6, 6, 6, 6], \"16699\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"16703\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"16729\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"16741\": [1, 1, 5, 5, 5, 5, 5], \"16747\": [1, 2, 8, 8, 8], \"16759\": [1, 2, 8, 8, 8], \"16763\": [1, 1, 5, 5, 5, 5, 5], \"16787\": [9, 9, 9], \"16811\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"16823\": [1, 4, 4, 6, 12], \"16829\": [3, 6, 6, 6, 6], \"16831\": [3, 6, 6, 6, 6], \"16843\": [9, 9, 9], \"16871\": [2, 5, 5, 5, 10], \"16879\": [3, 3, 3, 3, 3, 6, 6], \"16883\": [1, 2, 8, 8, 8], \"16889\": [3, 6, 6, 6, 6], \"16901\": [1, 4, 4, 6, 12], \"16903\": [2, 5, 5, 5, 10], \"16921\": [3, 6, 6, 6, 6], \"16927\": [1, 2, 8, 8, 8], \"16931\": [1, 2, 8, 8, 8], \"16937\": [3, 12, 12], \"16943\": [3, 12, 12], \"16963\": [3, 6, 6, 6, 6], \"16979\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"16981\": [3, 3, 3, 3, 3, 6, 6], \"16987\": [1, 4, 4, 6, 12], \"16993\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"17011\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"17021\": [1, 4, 4, 6, 12], \"17027\": [9, 9, 9], \"17029\": [9, 9, 9], \"17033\": [1, 1, 5, 5, 5, 5, 5], \"17041\": [1, 2, 8, 8, 8], \"17047\": [2, 5, 5, 5, 10], \"17053\": [1, 2, 8, 8, 8], \"17077\": [9, 9, 9], \"17093\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"17099\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"17107\": [1, 4, 4, 6, 12], \"17117\": [1, 2, 8, 8, 8], \"17123\": [3, 6, 6, 6, 6], \"17137\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"17159\": [2, 5, 5, 5, 10], \"17167\": [1, 1, 5, 5, 5, 5, 5], \"17183\": [9, 9, 9], \"17189\": [3, 12, 12], \"17191\": [1, 1, 5, 5, 5, 5, 5], \"17203\": [1, 4, 4, 6, 12], \"17207\": [3, 6, 6, 6, 6], \"17209\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"17231\": [1, 4, 4, 6, 12], \"17239\": [3, 6, 6, 6, 6], \"17257\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"17291\": [3, 6, 6, 6, 6], \"17293\": [3, 6, 6, 6, 6], \"17299\": [9, 9, 9], \"17317\": [1, 1, 5, 5, 5, 5, 5], \"17321\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"17327\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"17333\": [3, 12, 12], \"17341\": [2, 5, 5, 5, 10], \"17351\": [1, 1, 5, 5, 5, 5, 5], \"17359\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"17377\": [1, 1, 5, 5, 5, 5, 5], \"17383\": [9, 9, 9], \"17387\": [3, 6, 6, 6, 6], \"17389\": [2, 5, 5, 5, 10], \"17393\": [9, 9, 9], \"17401\": [1, 4, 4, 6, 12], \"17417\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"17419\": [9, 9, 9], \"17431\": [9, 9, 9], \"17443\": [9, 9, 9], \"17449\": [9, 9, 9], \"17467\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"17471\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"17477\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"17483\": [2, 5, 5, 5, 10], \"17489\": [1, 1, 5, 5, 5, 5, 5], \"17491\": [1, 1, 5, 5, 5, 5, 5], \"17497\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"17509\": [1, 4, 4, 6, 12], \"17519\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"17539\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"17551\": [3, 12, 12], \"17569\": [2, 5, 5, 5, 10], \"17573\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"17579\": [1, 4, 4, 6, 12], \"17581\": [3, 6, 6, 6, 6], \"17597\": [3, 6, 6, 6, 6], \"17599\": [1, 1, 5, 5, 5, 5, 5], \"17609\": [1, 1, 5, 5, 5, 5, 5], \"17623\": [3, 6, 6, 6, 6], \"17627\": [3, 6, 6, 6, 6], \"17657\": [1, 1, 5, 5, 5, 5, 5], \"17659\": [1, 2, 8, 8, 8], \"17669\": [3, 6, 6, 6, 6], \"17681\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"17683\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"17707\": [1, 1, 5, 5, 5, 5, 5], \"17713\": [9, 9, 9], \"17729\": [1, 4, 4, 6, 12], \"17737\": [3, 6, 6, 6, 6], \"17747\": [2, 5, 5, 5, 10], \"17749\": [2, 5, 5, 5, 10], \"17761\": [1, 2, 8, 8, 8], \"17783\": [1, 1, 5, 5, 5, 5, 5], \"17789\": [1, 4, 4, 6, 12], \"17791\": [3, 3, 3, 3, 3, 6, 6], \"17807\": [1, 2, 8, 8, 8], \"17827\": [9, 9, 9], \"17837\": [1, 2, 8, 8, 8], \"17839\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"17851\": [1, 2, 8, 8, 8], \"17863\": [1, 1, 5, 5, 5, 5, 5], \"17881\": [3, 3, 3, 3, 3, 6, 6], \"17891\": [9, 9, 9], \"17903\": [2, 5, 5, 5, 10], \"17909\": [1, 2, 8, 8, 8], \"17911\": [3, 6, 6, 6, 6], \"17921\": [1, 2, 8, 8, 8], \"17923\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"17929\": [3, 6, 6, 6, 6], \"17939\": [1, 2, 8, 8, 8], \"17957\": [3, 6, 6, 6, 6], \"17959\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"17971\": [1, 4, 4, 6, 12], \"17977\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"17981\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"17987\": [3, 6, 6, 6, 6], \"17989\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"18013\": [1, 1, 5, 5, 5, 5, 5], \"18041\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"18043\": [1, 4, 4, 6, 12], \"18047\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"18049\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"18059\": [3, 12, 12], \"18061\": [3, 6, 6, 6, 6], \"18077\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"18089\": [2, 5, 5, 5, 10], \"18097\": [9, 9, 9], \"18119\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"18121\": [9, 9, 9], \"18127\": [1, 4, 4, 6, 12], \"18131\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"18133\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"18143\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"18149\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"18169\": [1, 4, 4, 6, 12], \"18181\": [1, 2, 8, 8, 8], \"18191\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"18199\": [1, 2, 8, 8, 8], \"18211\": [3, 12, 12], \"18217\": [9, 9, 9], \"18223\": [1, 4, 4, 6, 12], \"18229\": [9, 9, 9], \"18233\": [2, 5, 5, 5, 10], \"18251\": [3, 6, 6, 6, 6], \"18253\": [1, 4, 4, 6, 12], \"18257\": [1, 1, 5, 5, 5, 5, 5], \"18269\": [9, 9, 9], \"18287\": [1, 4, 4, 6, 12], \"18289\": [9, 9, 9], \"18301\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"18307\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"18311\": [1, 1, 5, 5, 5, 5, 5], \"18313\": [3, 6, 6, 6, 6], \"18329\": [3, 3, 3, 3, 3, 6, 6], \"18341\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"18353\": [1, 2, 8, 8, 8], \"18367\": [2, 5, 5, 5, 10], \"18371\": [1, 2, 8, 8, 8], \"18379\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"18397\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"18401\": [3, 6, 6, 6, 6], \"18413\": [1, 4, 4, 6, 12], \"18427\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"18433\": [3, 6, 6, 6, 6], \"18439\": [9, 9, 9], \"18443\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"18451\": [1, 1, 5, 5, 5, 5, 5], \"18457\": [1, 1, 5, 5, 5, 5, 5], \"18461\": [3, 6, 6, 6, 6], \"18481\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"18493\": [1, 1, 5, 5, 5, 5, 5], \"18503\": [9, 9, 9], \"18517\": [9, 9, 9], \"18521\": [2, 5, 5, 5, 10], \"18523\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"18539\": [1, 1, 5, 5, 5, 5, 5], \"18541\": [1, 4, 4, 6, 12], \"18553\": [9, 9, 9], \"18583\": [1, 2, 8, 8, 8], \"18587\": [1, 2, 8, 8, 8], \"18593\": [9, 9, 9], \"18617\": [1, 2, 8, 8, 8], \"18637\": [3, 12, 12], \"18661\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"18671\": [2, 5, 5, 5, 10], \"18679\": [1, 2, 8, 8, 8], \"18691\": [3, 3, 3, 3, 3, 6, 6], \"18701\": [1, 1, 5, 5, 5, 5, 5], \"18713\": [3, 6, 6, 6, 6], \"18719\": [3, 6, 6, 6, 6], \"18731\": [2, 5, 5, 5, 10], \"18743\": [9, 9, 9], \"18749\": [2, 5, 5, 5, 10], \"18757\": [1, 4, 4, 6, 12], \"18773\": [3, 6, 6, 6, 6], \"18787\": [9, 9, 9], \"18793\": [3, 6, 6, 6, 6], \"18797\": [1, 2, 8, 8, 8], \"18803\": [1, 2, 8, 8, 8], \"18839\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"18859\": [9, 9, 9], \"18869\": [1, 2, 8, 8, 8], \"18899\": [2, 5, 5, 5, 10], \"18911\": [1, 4, 4, 6, 12], \"18913\": [3, 6, 6, 6, 6], \"18917\": [1, 1, 5, 5, 5, 5, 5], \"18919\": [1, 4, 4, 6, 12], \"18947\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"18959\": [3, 12, 12], \"18973\": [3, 3, 3, 3, 3, 6, 6], \"18979\": [1, 4, 4, 6, 12], \"19001\": [2, 5, 5, 5, 10], \"19009\": [9, 9, 9], \"19013\": [1, 2, 8, 8, 8], \"19031\": [3, 6, 6, 6, 6], \"19037\": [1, 2, 8, 8, 8], \"19051\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"19069\": [1, 2, 8, 8, 8], \"19073\": [1, 2, 8, 8, 8], \"19079\": [3, 12, 12], \"19081\": [3, 6, 6, 6, 6], \"19087\": [1, 2, 8, 8, 8], \"19121\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"19139\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"19141\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"19157\": [9, 9, 9], \"19163\": [9, 9, 9], \"19181\": [9, 9, 9], \"19183\": [3, 12, 12], \"19207\": [2, 5, 5, 5, 10], \"19211\": [3, 6, 6, 6, 6], \"19213\": [9, 9, 9], \"19219\": [3, 6, 6, 6, 6], \"19231\": [9, 9, 9], \"19237\": [2, 5, 5, 5, 10], \"19249\": [1, 2, 8, 8, 8], \"19259\": [3, 6, 6, 6, 6], \"19267\": [2, 5, 5, 5, 10], \"19273\": [2, 5, 5, 5, 10], \"19289\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"19301\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"19309\": [2, 5, 5, 5, 10], \"19319\": [2, 5, 5, 5, 10], \"19333\": [9, 9, 9], \"19373\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"19379\": [3, 3, 3, 3, 3, 6, 6], \"19381\": [9, 9, 9], \"19387\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"19391\": [1, 2, 8, 8, 8], \"19403\": [1, 2, 8, 8, 8], \"19417\": [3, 6, 6, 6, 6], \"19421\": [3, 6, 6, 6, 6], \"19423\": [2, 5, 5, 5, 10], \"19427\": [1, 4, 4, 6, 12], \"19429\": [2, 5, 5, 5, 10], \"19433\": [9, 9, 9], \"19441\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"19447\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"19457\": [9, 9, 9], \"19463\": [3, 12, 12], \"19469\": [9, 9, 9], \"19471\": [1, 4, 4, 6, 12], \"19477\": [3, 12, 12], \"19483\": [9, 9, 9], \"19489\": [3, 12, 12], \"19501\": [3, 3, 3, 3, 3, 6, 6], \"19507\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"19531\": [3, 12, 12], \"19541\": [3, 12, 12], \"19543\": [3, 3, 3, 3, 3, 6, 6], \"19553\": [9, 9, 9], \"19559\": [1, 2, 8, 8, 8], \"19571\": [2, 5, 5, 5, 10], \"19577\": [9, 9, 9], \"19583\": [3, 6, 6, 6, 6], \"19597\": [3, 12, 12], \"19603\": [1, 1, 5, 5, 5, 5, 5], \"19609\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"19661\": [1, 1, 5, 5, 5, 5, 5], \"19681\": [2, 5, 5, 5, 10], \"19687\": [1, 1, 5, 5, 5, 5, 5], \"19697\": [1, 2, 8, 8, 8], \"19699\": [1, 1, 5, 5, 5, 5, 5], \"19709\": [9, 9, 9], \"19717\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"19727\": [1, 1, 5, 5, 5, 5, 5], \"19739\": [1, 1, 5, 5, 5, 5, 5], \"19751\": [3, 12, 12], \"19753\": [2, 5, 5, 5, 10], \"19759\": [2, 5, 5, 5, 10], \"19763\": [3, 6, 6, 6, 6], \"19777\": [3, 12, 12], \"19793\": [2, 5, 5, 5, 10], \"19801\": [1, 1, 5, 5, 5, 5, 5], \"19813\": [9, 9, 9], \"19819\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"19841\": [3, 12, 12], \"19843\": [3, 6, 6, 6, 6], \"19853\": [3, 6, 6, 6, 6], \"19861\": [1, 2, 8, 8, 8], \"19867\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"19889\": [1, 2, 8, 8, 8], \"19891\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"19913\": [2, 5, 5, 5, 10], \"19919\": [1, 4, 4, 6, 12], \"19927\": [3, 6, 6, 6, 6], \"19937\": [3, 6, 6, 6, 6], \"19949\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"19961\": [1, 2, 8, 8, 8], \"19963\": [3, 6, 6, 6, 6], \"19973\": [9, 9, 9], \"19979\": [3, 3, 3, 3, 3, 6, 6], \"19991\": [3, 12, 12], \"19993\": [1, 2, 8, 8, 8], \"19997\": [3, 6, 6, 6, 6], \"20011\": [1, 4, 4, 6, 12], \"20021\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"20023\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"20029\": [2, 5, 5, 5, 10], \"20047\": [1, 2, 8, 8, 8], \"20051\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"20063\": [3, 6, 6, 6, 6], \"20071\": [1, 1, 5, 5, 5, 5, 5], \"20089\": [3, 3, 3, 3, 3, 6, 6], \"20101\": [3, 3, 3, 3, 3, 6, 6], \"20107\": [9, 9, 9], \"20113\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"20117\": [9, 9, 9], \"20123\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"20129\": [3, 12, 12], \"20143\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"20147\": [3, 3, 3, 3, 3, 6, 6], \"20149\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"20161\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2], \"20173\": [3, 12, 12], \"20177\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"20183\": [9, 9, 9], \"20201\": [1, 2, 8, 8, 8], \"20219\": [1, 2, 8, 8, 8], \"20231\": [1, 2, 8, 8, 8], \"20233\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"20249\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"20261\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"20269\": [3, 6, 6, 6, 6], \"20287\": [3, 6, 6, 6, 6], \"20297\": [1, 2, 8, 8, 8], \"20323\": [1, 2, 8, 8, 8], \"20327\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"20333\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"20341\": [1, 1, 5, 5, 5, 5, 5], \"20347\": [2, 5, 5, 5, 10], \"20353\": [2, 5, 5, 5, 10], \"20357\": [1, 2, 8, 8, 8], \"20359\": [3, 3, 3, 3, 3, 6, 6], \"20369\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"20389\": [3, 12, 12], \"20393\": [3, 6, 6, 6, 6], \"20399\": [1, 1, 5, 5, 5, 5, 5], \"20407\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"20411\": [1, 1, 5, 5, 5, 5, 5], \"20431\": [1, 4, 4, 6, 12], \"20441\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"20443\": [2, 5, 5, 5, 10], \"20477\": [2, 5, 5, 5, 10], \"20479\": [2, 5, 5, 5, 10], \"20483\": [2, 5, 5, 5, 10], \"20507\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"20509\": [3, 12, 12], \"20521\": [1, 2, 8, 8, 8], \"20533\": [3, 6, 6, 6, 6], \"20543\": [3, 12, 12], \"20549\": [2, 5, 5, 5, 10], \"20551\": [1, 4, 4, 6, 12], \"20563\": [3, 6, 6, 6, 6], \"20593\": [1, 1, 5, 5, 5, 5, 5], \"20599\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"20611\": [9, 9, 9], \"20627\": [1, 4, 4, 6, 12], \"20639\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"20641\": [2, 5, 5, 5, 10], \"20663\": [2, 5, 5, 5, 10], \"20681\": [3, 12, 12], \"20693\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"20707\": [3, 6, 6, 6, 6], \"20717\": [2, 5, 5, 5, 10], \"20719\": [3, 3, 3, 3, 3, 6, 6], \"20731\": [9, 9, 9], \"20743\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"20747\": [3, 12, 12], \"20749\": [1, 1, 5, 5, 5, 5, 5], \"20753\": [1, 4, 4, 6, 12], \"20759\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"20771\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"20773\": [2, 5, 5, 5, 10], \"20789\": [3, 6, 6, 6, 6], \"20807\": [9, 9, 9], \"20809\": [3, 12, 12], \"20849\": [3, 12, 12], \"20857\": [1, 1, 5, 5, 5, 5, 5], \"20873\": [3, 6, 6, 6, 6], \"20879\": [3, 6, 6, 6, 6], \"20887\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"20897\": [3, 6, 6, 6, 6], \"20899\": [2, 5, 5, 5, 10], \"20903\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"20921\": [3, 6, 6, 6, 6], \"20929\": [1, 2, 8, 8, 8], \"20939\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"20947\": [2, 5, 5, 5, 10], \"20959\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"20963\": [9, 9, 9], \"20981\": [1, 4, 4, 6, 12], \"20983\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"21001\": [1, 4, 4, 6, 12], \"21011\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"21013\": [1, 4, 4, 6, 12], \"21017\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"21019\": [1, 2, 8, 8, 8], \"21023\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"21031\": [3, 12, 12], \"21059\": [3, 6, 6, 6, 6], \"21061\": [1, 2, 8, 8, 8], \"21067\": [3, 6, 6, 6, 6], \"21089\": [3, 3, 3, 3, 3, 6, 6], \"21101\": [1, 4, 4, 6, 12], \"21107\": [3, 6, 6, 6, 6], \"21121\": [1, 4, 4, 6, 12], \"21139\": [1, 4, 4, 6, 12], \"21143\": [1, 2, 8, 8, 8], \"21149\": [2, 5, 5, 5, 10], \"21157\": [2, 5, 5, 5, 10], \"21163\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"21169\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"21179\": [1, 2, 8, 8, 8], \"21187\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"21191\": [2, 5, 5, 5, 10], \"21193\": [1, 2, 8, 8, 8], \"21211\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"21221\": [2, 5, 5, 5, 10], \"21227\": [3, 12, 12], \"21247\": [3, 12, 12], \"21269\": [1, 1, 5, 5, 5, 5, 5], \"21277\": [1, 2, 8, 8, 8], \"21283\": [2, 5, 5, 5, 10], \"21313\": [3, 12, 12], \"21317\": [2, 5, 5, 5, 10], \"21319\": [1, 2, 8, 8, 8], \"21323\": [1, 2, 8, 8, 8], \"21341\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"21347\": [1, 2, 8, 8, 8], \"21377\": [9, 9, 9], \"21379\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"21383\": [2, 5, 5, 5, 10], \"21391\": [3, 12, 12], \"21397\": [2, 5, 5, 5, 10], \"21401\": [3, 6, 6, 6, 6], \"21407\": [1, 1, 5, 5, 5, 5, 5], \"21419\": [3, 6, 6, 6, 6], \"21433\": [9, 9, 9], \"21467\": [3, 3, 3, 3, 3, 6, 6], \"21481\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"21487\": [1, 1, 5, 5, 5, 5, 5], \"21491\": [3, 12, 12], \"21493\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"21499\": [3, 6, 6, 6, 6], \"21503\": [1, 1, 5, 5, 5, 5, 5], \"21517\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"21521\": [1, 2, 8, 8, 8], \"21523\": [3, 6, 6, 6, 6], \"21529\": [1, 1, 5, 5, 5, 5, 5], \"21557\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"21559\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"21563\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"21569\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"21577\": [3, 6, 6, 6, 6], \"21587\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"21589\": [3, 12, 12], \"21599\": [9, 9, 9], \"21601\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"21611\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"21613\": [3, 12, 12], \"21617\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"21647\": [3, 6, 6, 6, 6], \"21649\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"21661\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"21673\": [2, 5, 5, 5, 10], \"21683\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"21701\": [9, 9, 9], \"21713\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"21727\": [1, 2, 8, 8, 8], \"21737\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"21739\": [3, 3, 3, 3, 3, 6, 6], \"21751\": [1, 4, 4, 6, 12], \"21757\": [1, 2, 8, 8, 8], \"21767\": [1, 4, 4, 6, 12], \"21773\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"21787\": [1, 4, 4, 6, 12], \"21799\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"21803\": [3, 12, 12], \"21817\": [1, 1, 5, 5, 5, 5, 5], \"21821\": [3, 6, 6, 6, 6], \"21839\": [1, 1, 5, 5, 5, 5, 5], \"21841\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"21851\": [9, 9, 9], \"21859\": [1, 2, 8, 8, 8], \"21863\": [2, 5, 5, 5, 10], \"21871\": [1, 2, 8, 8, 8], \"21881\": [1, 2, 8, 8, 8], \"21893\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"21911\": [2, 5, 5, 5, 10], \"21929\": [3, 3, 3, 3, 3, 6, 6], \"21937\": [1, 4, 4, 6, 12], \"21943\": [9, 9, 9], \"21961\": [1, 2, 8, 8, 8], \"21977\": [1, 4, 4, 6, 12], \"21991\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"21997\": [3, 6, 6, 6, 6], \"22003\": [1, 4, 4, 6, 12], \"22013\": [1, 4, 4, 6, 12], \"22027\": [2, 5, 5, 5, 10], \"22031\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"22037\": [2, 5, 5, 5, 10], \"22039\": [3, 12, 12], \"22051\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"22063\": [9, 9, 9], \"22067\": [9, 9, 9], \"22073\": [3, 12, 12], \"22079\": [1, 2, 8, 8, 8], \"22091\": [9, 9, 9], \"22093\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"22109\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"22111\": [9, 9, 9], \"22123\": [9, 9, 9], \"22129\": [1, 2, 8, 8, 8], \"22133\": [3, 6, 6, 6, 6], \"22147\": [1, 2, 8, 8, 8], \"22153\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"22157\": [1, 4, 4, 6, 12], \"22159\": [3, 6, 6, 6, 6], \"22171\": [2, 5, 5, 5, 10], \"22189\": [1, 2, 8, 8, 8], \"22193\": [9, 9, 9], \"22229\": [9, 9, 9], \"22247\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"22259\": [1, 4, 4, 6, 12], \"22271\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"22273\": [1, 1, 5, 5, 5, 5, 5], \"22277\": [1, 4, 4, 6, 12], \"22279\": [9, 9, 9], \"22283\": [9, 9, 9], \"22291\": [1, 4, 4, 6, 12], \"22303\": [3, 6, 6, 6, 6], \"22307\": [3, 6, 6, 6, 6], \"22343\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"22349\": [1, 1, 5, 5, 5, 5, 5], \"22367\": [1, 2, 8, 8, 8], \"22369\": [1, 4, 4, 6, 12], \"22381\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"22391\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"22397\": [2, 5, 5, 5, 10], \"22409\": [3, 6, 6, 6, 6], \"22433\": [3, 3, 3, 3, 3, 6, 6], \"22441\": [3, 6, 6, 6, 6], \"22447\": [9, 9, 9], \"22453\": [3, 3, 3, 3, 3, 6, 6], \"22469\": [3, 12, 12], \"22481\": [3, 6, 6, 6, 6], \"22483\": [9, 9, 9], \"22501\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"22511\": [1, 2, 8, 8, 8], \"22531\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"22541\": [1, 1, 5, 5, 5, 5, 5], \"22543\": [3, 6, 6, 6, 6], \"22549\": [9, 9, 9], \"22567\": [1, 4, 4, 6, 12], \"22571\": [3, 6, 6, 6, 6], \"22573\": [3, 12, 12], \"22613\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"22619\": [3, 12, 12], \"22621\": [2, 5, 5, 5, 10], \"22637\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"22639\": [1, 1, 5, 5, 5, 5, 5], \"22643\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"22651\": [1, 1, 5, 5, 5, 5, 5], \"22669\": [9, 9, 9], \"22679\": [1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 3], \"22691\": [9, 9, 9], \"22697\": [9, 9, 9], \"22699\": [9, 9, 9], \"22709\": [1, 2, 8, 8, 8], \"22717\": [3, 6, 6, 6, 6], \"22721\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"22727\": [9, 9, 9], \"22739\": [3, 12, 12], \"22741\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"22751\": [3, 12, 12], \"22769\": [3, 6, 6, 6, 6], \"22777\": [1, 4, 4, 6, 12], \"22783\": [1, 1, 5, 5, 5, 5, 5], \"22787\": [2, 5, 5, 5, 10], \"22807\": [3, 12, 12], \"22811\": [3, 6, 6, 6, 6], \"22817\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"22853\": [1, 1, 5, 5, 5, 5, 5], \"22859\": [2, 5, 5, 5, 10], \"22861\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"22871\": [2, 5, 5, 5, 10], \"22877\": [2, 5, 5, 5, 10], \"22901\": [1, 2, 8, 8, 8], \"22907\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"22921\": [3, 3, 3, 3, 3, 6, 6], \"22937\": [1, 4, 4, 6, 12], \"22943\": [2, 5, 5, 5, 10], \"22961\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"22963\": [9, 9, 9], \"22973\": [9, 9, 9], \"22993\": [3, 12, 12], \"23003\": [1, 2, 8, 8, 8], \"23011\": [9, 9, 9], \"23017\": [2, 5, 5, 5, 10], \"23021\": [3, 6, 6, 6, 6], \"23027\": [9, 9, 9], \"23029\": [3, 6, 6, 6, 6], \"23039\": [1, 1, 5, 5, 5, 5, 5], \"23041\": [2, 5, 5, 5, 10], \"23053\": [2, 5, 5, 5, 10], \"23057\": [1, 4, 4, 6, 12], \"23059\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"23063\": [3, 12, 12], \"23071\": [1, 2, 8, 8, 8], \"23081\": [3, 3, 3, 3, 3, 6, 6], \"23087\": [1, 4, 4, 6, 12], \"23099\": [1, 4, 4, 6, 12], \"23117\": [3, 6, 6, 6, 6], \"23131\": [3, 12, 12], \"23143\": [3, 6, 6, 6, 6], \"23159\": [3, 12, 12], \"23167\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"23173\": [3, 6, 6, 6, 6], \"23189\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"23197\": [3, 12, 12], \"23201\": [1, 1, 5, 5, 5, 5, 5], \"23203\": [2, 5, 5, 5, 10], \"23209\": [2, 5, 5, 5, 10], \"23227\": [2, 5, 5, 5, 10], \"23251\": [1, 2, 8, 8, 8], \"23269\": [3, 12, 12], \"23279\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"23291\": [3, 12, 12], \"23293\": [1, 1, 5, 5, 5, 5, 5], \"23297\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"23311\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"23321\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"23327\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"23333\": [3, 12, 12], \"23339\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"23357\": [1, 2, 8, 8, 8], \"23369\": [2, 5, 5, 5, 10], \"23371\": [3, 3, 3, 3, 3, 6, 6], \"23399\": [1, 2, 8, 8, 8], \"23417\": [1, 1, 5, 5, 5, 5, 5], \"23431\": [3, 6, 6, 6, 6], \"23447\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"23459\": [1, 4, 4, 6, 12], \"23473\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"23497\": [1, 4, 4, 6, 12], \"23509\": [9, 9, 9], \"23531\": [1, 4, 4, 6, 12], \"23537\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"23539\": [3, 12, 12], \"23549\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"23557\": [3, 12, 12], \"23561\": [3, 12, 12], \"23563\": [3, 3, 3, 3, 3, 6, 6], \"23567\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"23581\": [1, 1, 5, 5, 5, 5, 5], \"23593\": [9, 9, 9], \"23599\": [1, 2, 8, 8, 8], \"23603\": [1, 1, 5, 5, 5, 5, 5], \"23609\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"23623\": [1, 1, 5, 5, 5, 5, 5], \"23627\": [1, 1, 5, 5, 5, 5, 5], \"23629\": [3, 6, 6, 6, 6], \"23633\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"23663\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"23669\": [3, 6, 6, 6, 6], \"23671\": [1, 4, 4, 6, 12], \"23677\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"23687\": [1, 2, 8, 8, 8], \"23689\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"23719\": [2, 5, 5, 5, 10], \"23741\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"23743\": [9, 9, 9], \"23747\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"23753\": [1, 2, 8, 8, 8], \"23761\": [3, 6, 6, 6, 6], \"23767\": [3, 6, 6, 6, 6], \"23773\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"23789\": [1, 4, 4, 6, 12], \"23801\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"23813\": [1, 2, 8, 8, 8], \"23819\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"23827\": [3, 12, 12], \"23831\": [9, 9, 9], \"23833\": [1, 4, 4, 6, 12], \"23857\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"23869\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"23873\": [1, 2, 8, 8, 8], \"23879\": [1, 2, 8, 8, 8], \"23887\": [1, 2, 8, 8, 8], \"23893\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"23899\": [9, 9, 9], \"23909\": [1, 4, 4, 6, 12], \"23911\": [3, 3, 3, 3, 3, 6, 6], \"23917\": [3, 3, 3, 3, 3, 6, 6], \"23929\": [1, 2, 8, 8, 8], \"23957\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"23971\": [1, 1, 5, 5, 5, 5, 5], \"23977\": [3, 6, 6, 6, 6], \"23981\": [9, 9, 9], \"23993\": [1, 1, 5, 5, 5, 5, 5], \"24001\": [3, 6, 6, 6, 6], \"24007\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"24019\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"24023\": [9, 9, 9], \"24029\": [3, 6, 6, 6, 6], \"24043\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"24049\": [9, 9, 9], \"24061\": [3, 12, 12], \"24071\": [2, 5, 5, 5, 10], \"24077\": [9, 9, 9], \"24083\": [2, 5, 5, 5, 10], \"24091\": [1, 1, 5, 5, 5, 5, 5], \"24097\": [2, 5, 5, 5, 10], \"24103\": [1, 4, 4, 6, 12], \"24107\": [1, 2, 8, 8, 8], \"24109\": [1, 1, 5, 5, 5, 5, 5], \"24113\": [1, 1, 5, 5, 5, 5, 5], \"24121\": [3, 6, 6, 6, 6], \"24133\": [9, 9, 9], \"24137\": [1, 2, 8, 8, 8], \"24151\": [3, 3, 3, 3, 3, 6, 6], \"24169\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"24179\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"24181\": [9, 9, 9], \"24197\": [9, 9, 9], \"24203\": [3, 12, 12], \"24223\": [1, 1, 5, 5, 5, 5, 5], \"24229\": [3, 6, 6, 6, 6], \"24239\": [3, 12, 12], \"24247\": [3, 6, 6, 6, 6], \"24251\": [1, 1, 5, 5, 5, 5, 5], \"24281\": [1, 1, 5, 5, 5, 5, 5], \"24317\": [1, 2, 8, 8, 8], \"24329\": [1, 4, 4, 6, 12], \"24337\": [2, 5, 5, 5, 10], \"24359\": [3, 12, 12], \"24371\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"24373\": [3, 12, 12], \"24379\": [1, 2, 8, 8, 8], \"24391\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"24407\": [3, 6, 6, 6, 6], \"24413\": [9, 9, 9], \"24419\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"24421\": [1, 1, 1, 4, 4, 4, 4, 4, 4], \"24439\": [2, 5, 5, 5, 10], \"24443\": [9, 9, 9], \"24469\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"24473\": [2, 5, 5, 5, 10], \"24481\": [1, 1, 5, 5, 5, 5, 5], \"24499\": [3, 12, 12], \"24509\": [1, 2, 8, 8, 8], \"24517\": [1, 1, 5, 5, 5, 5, 5], \"24527\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"24533\": [3, 6, 6, 6, 6], \"24547\": [1, 2, 8, 8, 8], \"24551\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"24571\": [1, 1, 1, 2, 2, 2, 6, 6, 6], \"24593\": [9, 9, 9], \"24611\": [3, 6, 6, 6, 6], \"24623\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"24631\": [1, 4, 4, 6, 12], \"24659\": [1, 2, 8, 8, 8], \"24671\": [1, 1, 5, 5, 5, 5, 5], \"24677\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"24683\": [2, 5, 5, 5, 10], \"24691\": [1, 1, 1, 1, 1, 2, 4, 4, 4, 4, 4], \"24697\": [1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"24709\": [3, 6, 6, 6, 6], \"24733\": [2, 5, 5, 5, 10], \"24749\": [1, 4, 4, 6, 12], \"24763\": [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2], \"24767\": [1, 4, 4, 6, 12], \"24781\": [1, 2, 8, 8, 8], \"24793\": [1, 2, 2, 2, 2, 3, 3, 6, 6], \"24799\": [3, 3, 3, 3, 3, 3, 3, 3, 3], \"24809\": [3, 12, 12], \"24821\": [1, 1, 5, 5, 5, 5, 5], \"24841\": [1, 2, 8, 8, 8], \"24847\": [2, 5, 5, 5, 10], \"24851\": [9, 9, 9], \"24859\": [2, 5, 5, 5, 10], \"24877\": [1, 1, 5, 5, 5, 5, 5], \"24889\": [1, 2, 8, 8, 8], \"24907\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"24917\": [3, 6, 6, 6, 6], \"24919\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"24923\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"24943\": [1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 6], \"24953\": [1, 1, 5, 5, 5, 5, 5], \"24967\": [1, 2, 8, 8, 8], \"24971\": [3, 6, 6, 6, 6], \"24977\": [1, 2, 8, 8, 8], \"24979\": [1, 1, 5, 5, 5, 5, 5], \"24989\": [3, 6, 6, 6, 6], \"198839\": [1, 2, 2, 2, 4, 4, 4, 4, 4], \"652081\": [1, 5, 5, 5, 5]}"}, {"path":"v1/anc/code/1.3.8/classgroup/expected/bound.out","sha256":"878701bda7b4833c8cbec23b6e3efd8549870aaefc92e0ec2bbe95fadaf9a225","mode":420,"size":677,"encoding":"utf-8","text":"support R = 500000000 T = log R; principal bound C = 1000000\nprime ideals of norm < R: 26365548 (degree-one ideals over p > sqrt(R): 26360341; over small/bad p: 5207)\nsha256 of the root-count bytes: f1faf51bbcf2562ad0f2ffb8c095dd6855701a15a49c0f82644e582cd0cccbaa\nprime ideals of norm <= C (all proved principal by check_witnesses.py): 77813\nprime sums done in 28s\nC_inf = [-1.1614608353053368460 +/- 2.71e-20]\narchimedean part C_inf - int(1-f)W = [-1.215796113312597138688253 +/- 4.43e-25]\nprime part = [1.268980762763662101585279 +/- 1.73e-25]\nB^-(f) = [0.0531846494510649628970266145944 +/- 4.60e-32]\nB^-(f) > 0 RIGOROUSLY: True\n\nreal\t0m37.486s\nuser\t0m36.362s\nsys\t0m0.797s\n"}, {"path":"v1/anc/code/1.3.8/classgroup/expected/check_witnesses.log","sha256":"234d179b9733635789dd948a8f62212d1888c261ad85fb6f976c5ce54d11fd6b","mode":420,"size":500,"encoding":"utf-8","text":"checked up to p = 2 ideals 4 0s\nchecked up to p = 104743 ideals 10311 15s\nchecked up to p = 224743 ideals 20285 31s\nchecked up to p = 350381 ideals 30188 46s\nchecked up to p = 479939 ideals 40032 61s\nchecked up to p = 611957 ideals 50053 76s\nchecked up to p = 746777 ideals 59763 91s\nchecked up to p = 882389 ideals 69476 107s\nPARI 2.17.4: ALL 77813 PRIME IDEALS OF NORM <= 1000000 ARE PRINCIPAL (generators checked exactly); by degree {\"1\": 77583, \"2\": 193, \"3\": 18, \"5\": 15, \"6\": 3, \"10\": 1}; 120s\n"}, {"path":"v1/anc/code/1.3.8/classgroup/expected/check_witnesses_pari2.15.4.log","sha256":"14c35170d5acdcec4834c66b1248aad989fd49ccf9d1bd08b4e0750703423406","mode":420,"size":500,"encoding":"utf-8","text":"checked up to p = 2 ideals 4 0s\nchecked up to p = 104743 ideals 10311 15s\nchecked up to p = 224743 ideals 20285 31s\nchecked up to p = 350381 ideals 30188 46s\nchecked up to p = 479939 ideals 40032 61s\nchecked up to p = 611957 ideals 50053 76s\nchecked up to p = 746777 ideals 59763 92s\nchecked up to p = 882389 ideals 69476 107s\nPARI 2.15.4: ALL 77813 PRIME IDEALS OF NORM <= 1000000 ARE PRINCIPAL (generators checked exactly); by degree {\"1\": 77583, \"2\": 193, \"3\": 18, \"5\": 15, \"6\": 3, \"10\": 1}; 121s\n"}, {"path":"v1/anc/code/1.3.8/classgroup/expected/crosscheck_counts.out","sha256":"7af25d18c5cd99e31592b32279832250fd0373cf0f2a7634561fe7af96598871","mode":420,"size":97,"encoding":"utf-8","text":"root counts of nroots.c confirmed for 299996 primes with FLINT (5905 also with PARI polrootsmod)\n"}, {"path":"v1/anc/code/1.3.8/classgroup/expected/gen_witnesses.log","sha256":"fb57bbd8008ddbe5fcc2700b2fe5760ada021a7cdc94a892cb66a6d79d6cd298","mode":420,"size":1352,"encoding":"utf-8","text":"bnfinit (proposer only) 1.9s cyc []\nBLOCK 2 50001 ideals 5322 total_this_run 5322 elapsed 61s\nBLOCK 50002 100001 ideals 4598 total_this_run 9920 elapsed 116s\nBLOCK 100002 150001 ideals 4337 total_this_run 14257 elapsed 167s\nBLOCK 150002 200001 ideals 4122 total_this_run 18379 elapsed 217s\nBLOCK 200002 250001 ideals 3917 total_this_run 22296 elapsed 264s\nBLOCK 250002 300001 ideals 3781 total_this_run 26077 elapsed 310s\nBLOCK 300002 350001 ideals 4083 total_this_run 30160 elapsed 360s\nBLOCK 350002 400001 ideals 3665 total_this_run 33825 elapsed 405s\nBLOCK 400002 450001 ideals 3910 total_this_run 37735 elapsed 453s\nBLOCK 450002 500001 ideals 3883 total_this_run 41618 elapsed 501s\nBLOCK 500002 550001 ideals 3728 total_this_run 45346 elapsed 546s\nBLOCK 550002 600001 ideals 3794 total_this_run 49140 elapsed 594s\nBLOCK 600002 650001 ideals 3724 total_this_run 52864 elapsed 640s\nBLOCK 650002 700001 ideals 3554 total_this_run 56418 elapsed 684s\nBLOCK 700002 750001 ideals 3593 total_this_run 60011 elapsed 729s\nBLOCK 750002 800001 ideals 3619 total_this_run 63630 elapsed 774s\nBLOCK 800002 850001 ideals 3504 total_this_run 67134 elapsed 817s\nBLOCK 850002 900001 ideals 3588 total_this_run 70722 elapsed 862s\nBLOCK 900002 950001 ideals 3615 total_this_run 74337 elapsed 907s\nBLOCK 950002 1000000 ideals 3476 total_this_run 77813 elapsed 951s\nDONE\n"}, {"path":"v1/anc/code/1.3.8/classgroup/expected/nroots_100000001_200000000.out","sha256":"bd3dea41a80f28e263c309cd3d81850f48e1c242335c679f51ec608e8189548e","mode":420,"size":79,"encoding":"utf-8","text":"RANGE 100000001 200000000 PRIMES 5317482 SUMROOTS 5318663 FNV 02b9ba66e6678312\n"}, {"path":"v1/anc/code/1.3.8/classgroup/expected/nroots_200000001_300000000.out","sha256":"96cd5931090cd46f77bfa2fbb941e20f89a21025d06761197e0fff67e278f40b","mode":420,"size":79,"encoding":"utf-8","text":"RANGE 200000001 300000000 PRIMES 5173388 SUMROOTS 5174066 FNV 2e08df68f2d08d4e\n"}, {"path":"v1/anc/code/1.3.8/classgroup/expected/nroots_2_100000000.out","sha256":"f97395412bd705e1f9587fac0fb7d5a613a3accf2715e92dd495f02822b37281","mode":420,"size":71,"encoding":"utf-8","text":"RANGE 2 100000000 PRIMES 5761455 SUMROOTS 5757919 FNV 023369452f99ad80\n"}, {"path":"v1/anc/code/1.3.8/classgroup/expected/nroots_300000001_400000000.out","sha256":"0ad0a6895423d7ed47c846af30cc013310583e914c4455a506ab6b553f8af22e","mode":420,"size":79,"encoding":"utf-8","text":"RANGE 300000001 400000000 PRIMES 5084001 SUMROOTS 5088335 FNV 7a515e0134483289\n"}, {"path":"v1/anc/code/1.3.8/classgroup/expected/nroots_400000001_499999999.out","sha256":"8ec61a003ec6aaa5871cc195979da0f4075c36c15322357034d9a700a971e89a","mode":420,"size":79,"encoding":"utf-8","text":"RANGE 400000001 499999999 PRIMES 5019541 SUMROOTS 5023814 FNV b14b37bf2400f85b\n"}, {"path":"v1/anc/code/1.3.8/classgroup/gen_witnesses.py","sha256":"162e85cdbc05fb910e5dd274de78e4094cfac876b56426faca21377dadddbb90","mode":420,"size":2935,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Propose generators for all prime ideals of K of norm <= C (bnfinit/bnfisprincipal are only PROPOSERS;\nevery generator is re-checked exactly, without PARI's bnf, by check_witnesses.py).\n\n gen_witnesses.py C OUTDIR [--block 50000]\nResumable: rational primes are processed in blocks [lo, hi]; block files OUTDIR/w_lo_hi.jsonl.gz are\nwritten atomically and skipped when present. Record: {\"p\",\"f\",\"r\",\"g\"} with r = root of B mod p for\ndegree-one primes (p not dividing disc(B)); the proposed generator is stored independently of any\nintegral basis, as a polynomial in theta: g = (num[0] + num[1] theta + ... + num[26] theta^26) / den.\n\"\"\"\nimport argparse, gzip, json, os, sys, time\nsys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))\nimport kfield\nfrom flint import nmod_poly\n\nap = argparse.ArgumentParser()\nap.add_argument('C', type=int); ap.add_argument('outdir'); ap.add_argument('--block', type=int, default=50000)\na = ap.parse_args()\nos.makedirs(a.outdir, exist_ok=True)\nP = kfield.pari()\nnf = kfield.make_nf()\nP.setrand(1)\nt0 = time.time()\nbnf = P.bnfinit(nf, 1)\nprint('bnfinit (proposer only) %.1fs cyc %s' % (time.time() - t0, P('(b)->b.cyc')(bnf)), flush=True)\nbad = set(kfield.DISC_B_PRIMES)\nx = P('x')\n\n\ndef gen(ideal):\n res = P.bnfisprincipal(bnf, ideal, 1)\n assert all(int(c) == 0 for c in res[0]), 'not principal according to bnf?'\n g = P.lift(P('Mod(1, %s)' % kfield.B_STR) * P.nfbasistoalg(nf, res[1])) # polynomial in x = theta\n den = int(P.denominator(P.content(g))) if g.type() == 't_POL' else int(P.denominator(g))\n num = [int(P.polcoef(g * den, j)) for j in range(27)]\n assert any(num)\n return num, den\n\n\nC = a.C\nt0 = time.time(); total = 0\nfor lo in range(2, C + 1, a.block):\n hi = min(lo + a.block - 1, C)\n fn = os.path.join(a.outdir, 'w_%d_%d.jsonl.gz' % (lo, hi))\n if os.path.exists(fn):\n continue\n recs = []\n for pp in P.primes([lo, hi]):\n p = int(pp)\n if p in bad or p * p <= C:\n for pr in P.idealprimedec(nf, p):\n f = int(pr[3])\n if p ** f <= C:\n num, den = gen(pr)\n recs.append(dict(p=p, f=f, r=None, num=num, den=den))\n else:\n fl = nmod_poly(kfield.B_COEFFS, p)\n roots = sorted(int(r) for r, m in fl.roots())\n for r in roots:\n ideal = P.idealhnf(nf, p, P('x') - r)\n assert int(P.idealnorm(nf, ideal)) == p\n num, den = gen(ideal)\n recs.append(dict(p=p, f=1, r=r, num=num, den=den))\n tmp = fn + '.tmp'\n with gzip.open(tmp, 'wt') as fh:\n for rec in recs:\n fh.write(json.dumps(rec, separators=(',', ':')) + '\\n')\n os.replace(tmp, fn)\n total += len(recs)\n print('BLOCK %d %d ideals %d total_this_run %d elapsed %.0fs' % (lo, hi, len(recs), total, time.time() - t0), flush=True)\nprint('DONE', flush=True)\n"}, {"path":"v1/anc/code/1.3.8/classgroup/kfield.py","sha256":"48f5a59c9e8def9ce2db5358956484a208b863b6206d4bc353f482e13516bc1f","mode":420,"size":1839,"encoding":"utf-8","text":"\"\"\"The bitangent field K = Q(theta), B(theta) = 0, of T6-3, with its unconditionally certified maximal order.\n\nShared by gen_witnesses.py and check_witnesses.py. PARI is used for nfinit/nfcertify (maximal order)\nand idealprimedec (prime ideals over the few primes p <= sqrt(C) or p | disc(B)).\n\"\"\"\nimport cypari2\n\nB_STR = ('x^27 - 48*x^22 + 1344*x^18 + 144*x^17 - 3264*x^13 + 832*x^12 - 40704*x^9 - 4608*x^8'\n ' - 2560*x^7 - 39936*x^4 - 15360*x^3 - 1024*x^2 + 4096')\n# ascending integer coefficients of B\nB_COEFFS = [4096, 0, -1024, -15360, -39936, 0, 0, -2560, -4608, -40704, 0, 0, 832, -3264, 0, 0, 0,\n 144, 1344, 0, 0, 0, -48, 0, 0, 0, 0, 1]\nDISC_B_PRIMES = [2, 11, 41, 198839, 652081, 17743299257028546229859]\nDK = 2**34 * 11**6 * 652081**6\n\n_P = None\n\n\ndef pari():\n global _P\n if _P is None:\n _P = cypari2.Pari()\n _P.allocatemem(10**9, 4 * 10**9, silent=True)\n _P.default('factor_proven', 1)\n return _P\n\n\ndef make_nf():\n P = pari()\n B = P(B_STR)\n assert [int(P.polcoef(B, j)) for j in range(28)] == B_COEFFS\n assert P.polisirreducible(B)\n fa = P.factor(P.poldisc(B))\n assert [int(p) for p in fa[0]] == DISC_B_PRIMES and all(P.isprime(p) for p in fa[0])\n nf = P.nfinit([B, DISC_B_PRIMES])\n assert len(P.nfcertify(nf)) == 0 # maximal order proved\n assert int(nf[2]) == DK and [int(s) for s in nf[1]] == [3, 12]\n return nf\n\n\ndef basis_rows(nf):\n \"\"\"den, rows: den*omega_i = sum_j rows[i][j] theta^j (integers), omega_i = nf.zk[i].\"\"\"\n P = pari()\n zk = list(P('(nf)->nf.zk')(nf))\n raw = [[P.polcoef(z, j) for j in range(27)] for z in zk]\n import math\n den = math.lcm(*(int(c.denominator()) for row in raw for c in row))\n rows = [[int(c * den) for c in row] for row in raw]\n return den, rows, [str(z) for z in zk]\n"}, {"path":"v1/anc/code/1.3.8/classgroup/nroots.c","sha256":"f66ba2c0245941722817924fdb407fbcbab47f3e1940fb030d9e99880ff629cd","mode":420,"size":5956,"encoding":"utf-8","text":"/* nroots.c -- number of roots of the bitangent polynomial B mod p for all primes p in [lo, hi].\n *\n * nroots LO HI OUT writes OUT: one byte per prime p in [LO,HI] (increasing order), the number of\n * roots of B mod p (= number of prime ideals of K of norm p when p does not\n * divide disc(B)); bytes 255 mark primes dividing disc(B) (handled with PARI).\n * prints: count of primes, sum of roots, and a checksum.\n * Method: r(p) = deg gcd(B mod p, x^p - x mod (B, p)), x^p by square-and-multiply with\n * exact 128-bit lazy accumulation; all arithmetic is exact integer arithmetic (requires p < 2^32).\n * B = x^27 - 48x^22 + 1344x^18 + 144x^17 - 3264x^13 + 832x^12 - 40704x^9 - 4608x^8 - 2560x^7\n * - 39936x^4 - 15360x^3 - 1024x^2 + 4096 (the slope polynomial of Section 5.2 of the paper)\n * disc(B) = 2^318 11^6 41^2 198839^2 652081^6 17743299257028546229859^2.\n */\n#include \n#include \n#include \n#include \n#include \ntypedef unsigned __int128 u128;\ntypedef uint64_t u64;\n#define D 27\nstatic const long BC[D+1] = { /* ascending coefficients */\n 4096, 0, -1024, -15360, -39936, 0, 0, -2560, -4608, -40704, 0, 0, 832, -3264, 0, 0, 0, 144, 1344, 0, 0, 0, -48, 0, 0, 0, 0, 1};\nstatic u64 P, NF[D]; /* NF[i] = -B_i mod p */\nstatic u64 R64; /* 2^64 mod p */\nstatic inline u64 mod128(u128 c) { /* c < 2^127 */\n u64 hi = (u64)(c >> 64), lo = (u64)c;\n u64 r = lo % P;\n if (hi) { u128 t = (u128)(hi % P) * R64 + r; r = (u64)(t % P); }\n return r;\n}\nstatic void sqr_mod(u64 *a) { /* a <- a^2 mod (B, p), deg a <= 26 */\n u128 c[2*D-1];\n memset(c, 0, sizeof c);\n for (int i = 0; i < D; i++) { if (!a[i]) continue;\n for (int j = i+1; j < D; j++) c[i+j] += (u128)a[i]*a[j]; }\n for (int k = 0; k < 2*D-1; k++) c[k] <<= 1;\n for (int i = 0; i < D; i++) c[2*i] += (u128)a[i]*a[i];\n for (int k = 2*D-2; k >= D; k--) {\n u64 t = mod128(c[k]);\n if (!t) continue;\n for (int i = 0; i < D; i++) c[k-D+i] += (u128)t*NF[i];\n }\n for (int i = 0; i < D; i++) a[i] = mod128(c[i]);\n}\nstatic void mulx_mod(u64 *a) { /* a <- x*a mod (B, p) */\n u64 t = a[D-1];\n for (int i = D-1; i > 0; i--) a[i] = (u64)(((u128)t*NF[i] + a[i-1]) % P);\n a[0] = (u64)(((u128)t*NF[0]) % P);\n}\nstatic u64 inv(u64 a) { /* a^-1 mod P, a != 0 */\n long long t = 0, nt = 1; u64 r = P, nr = a;\n while (nr) { u64 q = r / nr; long long tmp = t - (long long)q*nt; t = nt; nt = tmp; u64 tr = r - q*nr; r = nr; nr = tr; }\n if (t < 0) t += P; return (u64)t;\n}\nstatic int gcd_deg(u64 *g, int dg) { /* deg gcd(B mod p, g), g of degree <= dg < 27 */\n u64 A[D+1], Bv[D+1]; int da = D, db = dg;\n for (int i = 0; i < D; i++) A[i] = (P - NF[i]) % P; A[D] = 1;\n for (int i = 0; i <= D; i++) Bv[i] = i <= dg ? g[i] : 0;\n while (db >= 0 && Bv[db] == 0) db--;\n u64 *a = A, *b = Bv;\n while (db >= 0) { /* a <- a mod b */\n u64 il = inv(b[db]);\n while (da >= db) {\n u64 q = (u64)(((u128)a[da]*il) % P);\n if (q) for (int i = 0; i <= db; i++) a[da-db+i] = (a[da-db+i] + (u128)(P - q)*b[i]) % P;\n da--; while (da >= 0 && a[da] == 0) da--;\n }\n u64 *t = a; a = b; b = t; int td = da; da = db; db = td;\n }\n return da; /* degree of last nonzero remainder */\n}\nstatic int nroots(u64 p) {\n P = p; R64 = (u64)(((u128)1 << 64) % p);\n for (int i = 0; i < D; i++) { long c = BC[i] % (long)p; if (c < 0) c += p; NF[i] = c ? p - c : 0; }\n u64 a[D]; memset(a, 0, sizeof a); a[1] = 1; /* a = x */\n int top = 63 - __builtin_clzll(p);\n for (int b = top-1; b >= 0; b--) { sqr_mod(a); if ((p >> b) & 1) mulx_mod(a); }\n a[1] = (a[1] + p - 1) % p; /* x^p - x */\n int dg = D-1; while (dg >= 0 && a[dg] == 0) dg--;\n if (dg < 0) return D; /* x^p = x mod B: B splits completely */\n return gcd_deg(a, dg);\n}\nstatic int bad(u64 p) { return p == 2 || p == 11 || p == 41 || p == 198839 || p == 652081; }\nint main(int argc, char **argv) {\n if (argc < 4) { fprintf(stderr, \"usage: nroots LO HI OUT\\n\"); return 1; }\n u64 lo = strtoull(argv[1], 0, 10), hi = strtoull(argv[2], 0, 10);\n if (hi >= (1ULL << 32) || lo < 2 || lo > hi) { fprintf(stderr, \"range\\n\"); return 1; }\n FILE *out = fopen(argv[3], \"wb\"); if (!out) return 1;\n u64 sq = (u64)sqrt((double)hi) + 2;\n char *small = calloc(sq + 1, 1); /* small primes for segmented sieve */\n for (u64 i = 2; i <= sq; i++) if (!small[i]) for (u64 j = i*i; j <= sq; j += i) small[j] = 1;\n u64 *sp = malloc(sizeof(u64) * (sq + 1)); int nsp = 0;\n for (u64 i = 2; i <= sq; i++) if (!small[i]) sp[nsp++] = i;\n const u64 SEG = 1 << 22; char *seg = malloc(SEG);\n unsigned char *buf = malloc(SEG);\n u64 nprimes = 0, sumr = 0, hash = 1469598103934665603ULL; /* FNV-1a over (p, r) */\n for (u64 s = lo; s <= hi; s += SEG) {\n u64 e = s + SEG - 1; if (e > hi) e = hi;\n memset(seg, 0, e - s + 1);\n for (int k = 0; k < nsp; k++) { u64 q = sp[k]; if (q*q > e) break;\n u64 st = (s + q - 1) / q * q; if (st < q*q) st = q*q;\n for (u64 j = st; j <= e; j += q) seg[j - s] = 1; }\n size_t nb = 0;\n for (u64 n = s; n <= e; n++) { if (n < 2 || seg[n - s]) continue;\n int r = bad(n) ? 255 : nroots(n);\n buf[nb++] = (unsigned char)r; nprimes++; if (r != 255) sumr += r;\n for (int t = 0; t < 8; t++) { hash ^= (n >> (8*t)) & 255; hash *= 1099511628211ULL; }\n hash ^= (u64)r; hash *= 1099511628211ULL; }\n fwrite(buf, 1, nb, out); fflush(out);\n fprintf(stderr, \"SEG %llu %llu primes %llu sumroots %llu\\n\", (unsigned long long)s, (unsigned long long)e,\n (unsigned long long)nprimes, (unsigned long long)sumr);\n }\n fclose(out);\n printf(\"RANGE %llu %llu PRIMES %llu SUMROOTS %llu FNV %016llx\\n\", (unsigned long long)lo, (unsigned long long)hi,\n (unsigned long long)nprimes, (unsigned long long)sumr, (unsigned long long)hash);\n return 0;\n}\n"}, {"path":"v1/anc/code/1.3.8/classgroup/run_counts.sh","sha256":"8937999770fa36cb1f17ca2918205e698c909d234d29400af923efbdbe2abec1","mode":420,"size":531,"encoding":"utf-8","text":"#!/bin/bash\n# Resumable root counting for all primes p < R = 5*10^8 in chunks (one worker).\ncd \"$(dirname \"$0\")\"\nOUT=../work/counts # i.e. code/1.3.8/work/counts\nmkdir -p $OUT\nfor lo in 2 100000001 200000001 300000001 400000001; do\n if [ $lo = 2 ]; then hi=100000000; else hi=$((lo + 99999999)); fi\n [ $hi -gt 499999999 ] && hi=499999999\n f=$OUT/r_${lo}_${hi}.bin\n if [ -f $f.done ]; then continue; fi\n ./nroots $lo $hi $f > $OUT/r_${lo}_${hi}.out 2> $OUT/r_${lo}_${hi}.log && touch $f.done\ndone\necho ALLDONE > $OUT/ALLDONE\n"}, {"path":"v1/anc/code/1.3.8/classgroup/run_witnesses.sh","sha256":"7bf35ad617e346267ef9b3b3329e63cbce0c8deb2e8abcb77f56b0ccf1c50147","mode":420,"size":189,"encoding":"utf-8","text":"#!/bin/bash\n# Resumable generator proposals for all prime ideals of norm <= C = 10^6 (one worker).\ncd \"$(dirname \"$0\")\"\n${PY:-python3} gen_witnesses.py 1000000 data/witnesses --block 50000\n"}, {"path":"v1/anc/code/1.3.8/classgroup/smallprimes.py","sha256":"a508c389a00298421a98db77d202bb47b0775b7ee9a8c11583806b76995529f1","mode":420,"size":1137,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"All prime ideals of K over the primes p <= X0 and over the primes dividing disc(B), from PARI's\nidealprimedec in the certified maximal order (nfcertify = []). Output: JSON {p: [f_1, f_2, ...]}.\n python3 smallprimes.py X0 OUT.json\n\"\"\"\nimport json, sys, cypari2\nP = cypari2.Pari(); P.allocatemem(10**9, silent=True)\nP.default('factor_proven', 1)\nB = P('x^27 - 48*x^22 + 1344*x^18 + 144*x^17 - 3264*x^13 + 832*x^12 - 40704*x^9 - 4608*x^8 - 2560*x^7 - 39936*x^4 - 15360*x^3 - 1024*x^2 + 4096')\nfa = P.factor(P.poldisc(B))\nbad = [int(p) for p in fa[0]]\nassert bad == [2, 11, 41, 198839, 652081, 17743299257028546229859], bad\nnf = P.nfinit([B, bad])\nassert len(P.nfcertify(nf)) == 0\nX0 = int(sys.argv[1])\nout = {}\nps = sorted(set(int(p) for p in P.primes([2, X0])) | set(bad[:-1]))\nfor p in ps:\n out[p] = sorted(int(pr[3]) for pr in P.idealprimedec(nf, p))\n assert sum(int(pr[2]) * int(pr[3]) for pr in P.idealprimedec(nf, p)) == 27\njson.dump(out, open(sys.argv[2], 'w'))\nprint('primes', len(out), 'prime ideals', sum(len(v) for v in out.values()),\n 'of degree 1', sum(v.count(1) for v in out.values()))\n"}, {"path":"v1/anc/code/1.3.8/curve/count_points.c","sha256":"7919a8b645ca7eaeeedb412a21d98482bd3214e3de8a641eeb4eb957f15d6d48","mode":420,"size":3044,"encoding":"utf-8","text":"/* count_points.c -- #C(F_{p^k}) for C: x^4 - y^3 z + x y z^2 + x z^3 = 0, by brute force.\n * F_q = F_p[t]/(m(t)) with m monic irreducible of degree k (found by search; k <= 3 so\n * irreducible <=> no root in F_p). Affine points (z = 1) are counted over all (x, y) in F_q^2;\n * the only point with z = 0 is (0:1:0). usage: count_points p k\n */\n#include \n#include \nstatic int p, k, q, m[4];\nstatic int *MUL; /* not used for large q */\nstatic int add(int a, int b) { int r = 0, pw = 1; for (int i = 0; i < k; i++) { r += ((a % p + b % p) % p) * pw; a /= p; b /= p; pw *= p; } return r; }\nstatic int mul(int a, int b) {\n int A[3] = {0}, Bv[3] = {0}, c[5] = {0};\n for (int i = 0; i < k; i++) { A[i] = a % p; a /= p; Bv[i] = b % p; b /= p; }\n for (int i = 0; i < k; i++) for (int j = 0; j < k; j++) c[i+j] = (c[i+j] + A[i]*Bv[j]) % p;\n for (int d = 2*k-2; d >= k; d--) { int t = c[d]; c[d] = 0; for (int i = 0; i < k; i++) c[d-k+i] = ((c[d-k+i] - t*m[i]) % p + p) % p; }\n int r = 0, pw = 1; for (int i = 0; i < k; i++) { r += c[i]*pw; pw *= p; } return r;\n}\nint main(int argc, char **argv) {\n p = atoi(argv[1]); k = atoi(argv[2]); q = 1; for (int i = 0; i < k; i++) q *= p;\n if (k > 1) { /* find monic irreducible m of degree k: no roots (k <= 3) */\n for (int c = 0; ; c++) { int cc = c; for (int i = 0; i < k; i++) { m[i] = cc % p; cc /= p; }\n int ok = 1; for (int x = 0; x < p && ok; x++) { long v = 1; for (int i = k-1; i >= 0; i--) v = (v*x + m[i]) % p; /* x^k + ... */\n long val = 1; for (int i = 0; i < k; i++) val = val * x % p; long s = 0, pw = 1; for (int i = 0; i < k; i++) { s = (s + m[i]*pw) % p; pw = pw*x % p; }\n if ((val + s) % p == 0) ok = 0; (void)v; }\n if (ok) break; }\n }\n /* exp/log tables w.r.t. a generator of F_q^* */\n int *lg = malloc(sizeof(int)*q), *ex = malloc(sizeof(int)*2*q);\n for (int g = 2; g < q || q == 2; g++) {\n int x = 1, n = 0; do { x = mul(x, g); n++; } while (x != 1 && n < q);\n if (n == q - 1) { x = 1; for (int i = 0; i < 2*(q-1); i++) { ex[i] = x; if (i < q-1) lg[x] = i; x = mul(x, g); } break; }\n }\n /* addition and negation tables by digits */\n int *neg = malloc(sizeof(int)*q); for (int a = 0; a < q; a++) { int r = 0, pw = 1, aa = a; for (int i = 0; i < k; i++) { r += ((p - aa % p) % p)*pw; aa /= p; pw *= p; } neg[a] = r; }\n #define MULT(a,b) (((a)==0||(b)==0)?0:ex[lg[a]+lg[b]])\n int *ADD = malloc(sizeof(int)*(size_t)q*q > 0 && q <= 30000 ? sizeof(int) : 1);\n (void)ADD;\n long N = 1; /* (0:1:0) */\n /* for each x: c(x) = x^4 + x; count y with y^3 - x y = c(x) <=> x^4 - y^3 + x y + x = 0 */\n int *val = malloc(sizeof(int)*q); int *cnt = calloc(q, sizeof(int));\n int *y3 = malloc(sizeof(int)*q); for (int y = 0; y < q; y++) y3[y] = MULT(y, MULT(y, y));\n for (int x = 0; x < q; x++) {\n int x2 = MULT(x, x), cx = add(MULT(x2, x2), x);\n long c = 0;\n for (int y = 0; y < q; y++) { int v = add(y3[y], neg[MULT(x, y)]); if (v == cx) c++; }\n N += c;\n }\n printf(\"p %d k %d q %d N %ld\\n\", p, k, q, N);\n return 0;\n}\n"}, {"path":"v1/anc/code/1.3.8/curve/curve.py","sha256":"c59436e19a0cc15b078be997f73963242bed1c6ef0ae17a97b5e80160e0f0fec","mode":420,"size":4627,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"T6-3, Section 1 checks: the curve C: G = x^4 - y^3 z + x y z^2 + x z^3 = 0.\n (a) points with a zero coordinate; (b) singular points over F_p-bar for all odd p (exact elimination);\n (c) the nodes at 11 and 652081: ordinary, and the plane model is regular there; (d) #C(F_{p^k}),\n L-polynomials and #J(F_p) for p = 3, 5, 7, 17, 29 (brute-force counts by count_points.c);\n (e) torsion: J(Q)[2] = 0 and #J(Q)_tors | 3; (f) C(F_3).\n\"\"\"\nimport subprocess, os, math\nfrom fractions import Fraction as Fr\nfrom sympy import symbols, expand, factorint, Poly, resultant, groebner, S\nx, y, z = symbols('x y z')\nG = x**4 - y**3*z + x*y*z**2 + x*z**3\nF = G.subs(z, 1) # affine chart z = 1\nFx, Fy, Fz = (expand(G.diff(v)) for v in (x, y, z))\nprint('(a) x=0:', expand(G.subs(x, 0)), '| y=0:', Poly(G.subs(y, 0), x).factor_list(), '| z=0:', expand(G.subs(z, 0)))\n# (b) singular points. z = 0 forces x = 0, i.e. (0:1:0), where dG/dz = -1: smooth for every p.\nassert expand(G.subs({x: 0, y: 1}).diff(z) if False else Fz.subs({x: 0, y: 1, z: 0})) == -1\n# affine (odd p: Euler's relation 4G = xGx + yGy + zGz makes F = Fx = Fy = 0 sufficient)\nfx, fy = expand(F.diff(x)), expand(F.diff(y))\nprint(' F_x =', fx, ' F_y =', fy)\n# p = 3: F_y = -3y^2 + x = x mod 3 ... done separately below by brute force over F_3-bar? use Groebner over GF(3)\nfor p in (3, 5):\n gb = groebner([F, fx, fy], x, y, modulus=p)\n print(' Groebner basis of (F, F_x, F_y) over F_%d:' % p, list(gb))\n assert list(gb) == [1]\n# p not in {2,3,5}: from F_y = 0, x = 3y^2; then (eliminating)\nY = symbols('Y')\ne1 = expand(fx.subs(x, 3*y**2)) # -108 y^6 - y - 1\ne2 = expand(F.subs(x, 3*y**2)) # -y^2 (81 y^6 + 2 y + 3)\nprint(' after x = 3y^2:', e1, '|', Poly(e2, y).factor_list())\nlin = expand(4*expand(-e2/y**2) - 3*(-e1))\nprint(' 4*(81y^6+2y+3) - 3*(108y^6+y+1) =', lin)\nval = Fr(108) * Fr(-9, 5)**6 + Fr(-9, 5) + 1\nprint(' 108y^6+y+1 at y=-9/5 =', val, '=', factorint(val.numerator), '/', factorint(val.denominator))\nassert val == Fr(57383128, 15625) and factorint(57383128) == {2: 3, 11: 1, 652081: 1}\n# (c) the node at p = 11, 652081\nfor p in (11, 652081):\n y0 = (-9 * pow(5, -1, p)) % p\n x0 = (3 * y0 * y0) % p\n vals = [int(expand(e).subs({x: x0, y: y0})) % p for e in (F, fx, fy)]\n H = (int((-12 * x0 * x0) % p) * int((6 * y0) % p) - 1) % p # F_xx F_yy - F_xy^2\n Fl = int(F.subs({x: x0, y: y0})) # integer lift\n print('(c) p=%d: singular point (x,y)=(%d,%d) mod p; F,Fx,Fy mod p = %s; Hessian det mod p = %d (nonzero: ordinary node);'\n ' F(lift) mod p^2 = %d (nonzero: plane model regular at the node)' % (p, x0, y0, vals, H, Fl % (p * p)))\n assert vals == [0, 0, 0] and H != 0 and Fl % (p * p) != 0\n# (d) point counts and L-polynomials\nhere = os.path.dirname(os.path.abspath(__file__))\ndef N(p, k):\n out = subprocess.run([os.path.join(here, 'count_points'), str(p), str(k)], capture_output=True, text=True).stdout\n return int(out.split()[-1])\norders = {}\nfor p in (3, 5, 7, 17, 29):\n Ns = [N(p, k) for k in (1, 2, 3)]\n s = [p**k + 1 - Ns[k - 1] for k in (1, 2, 3)] # power sums of Frobenius eigenvalues\n e1 = Fr(s[0]); e2 = (e1 * s[0] - s[1]) / 2; e3 = (e2 * s[0] - e1 * s[1] + s[2]) / 3\n a = [1, -e1, e2, -e3, p * e2, -p * p * e1, p**3]\n assert all(Fr(c).denominator == 1 for c in a)\n a = [int(c) for c in a]\n orders[p] = sum(a)\n print('(d) p=%2d N=%s L=%s #J(F_p)=%d = %s' % (p, Ns, a, orders[p], factorint(orders[p])))\ng = 0\nfor p in (5, 7, 17, 29): g = math.gcd(g, orders[p])\nprint('(e) #J(F_17) odd:', orders[17] % 2 == 1, '; gcd(#J(F_p), p=5,7,17,29) =', g)\nassert orders[17] % 2 == 1 and g == 3\n# (f) C(F_3)\npts = ['(0:1:0)'] + ['(%d:%d:1)' % (a_, b_) for a_ in range(3) for b_ in range(3) if (a_**4 - b_**3 + a_ * b_ + a_) % 3 == 0]\nprint('(f) C(F_3) =', pts)\nassert pts == ['(0:1:0)', '(0:0:1)', '(2:0:1)']\n# (g) C(R) is connected: disc_y(y^3 - x y - (x^4 + x)) = x^2 (4x - 27 (x^3+1)^2) <= 0 for all real x\nfrom sympy import discriminant, sturm, real_roots\ndsc = expand(discriminant(y**3 - x*y - (x**4 + x), y))\nassert expand(dsc - x**2 * (4*x - 27*(x**3 + 1)**2)) == 0\nq = Poly(4*x - 27*(x**3 + 1)**2, x)\nnreal = len(real_roots(q))\nprint('(g) disc_y =', dsc, '= x^2 (4x - 27(x^3+1)^2); real roots of the second factor:', nreal, '; value at 0:', q.eval(0))\nassert nreal == 0 and q.eval(0) < 0\nprint(' so for every real x the cubic in y has exactly one real root (a triple root 0 at x = 0): C(R) is connected')\nprint('ALL CURVE CHECKS PASSED')\n"}, {"path":"v1/anc/code/1.3.8/curve/expected/curve.out","sha256":"d160a881936ca1fd928859a278a25269059b991fb771a76857072f45104aac6d","mode":420,"size":1776,"encoding":"utf-8","text":"(a) x=0: -y**3*z | y=0: (1, [(Poly(x, x, domain='ZZ[z]'), 1), (Poly(x + z, x, domain='ZZ[z]'), 1), (Poly(x**2 - z*x + z**2, x, domain='ZZ[z]'), 1)]) | z=0: x**4\n F_x = 4*x**3 + y + 1 F_y = x - 3*y**2\n Groebner basis of (F, F_x, F_y) over F_3: [1]\n Groebner basis of (F, F_x, F_y) over F_5: [1]\n after x = 3y^2: 108*y**6 + y + 1 | (1, [(Poly(y, y, domain='ZZ'), 2), (Poly(81*y**6 + 2*y + 3, y, domain='ZZ'), 1)])\n 4*(81y^6+2y+3) - 3*(108y^6+y+1) = -5*y - 9\n 108y^6+y+1 at y=-9/5 = 57383128/15625 = {2: 3, 11: 1, 652081: 1} / {5: 6}\n(c) p=11: singular point (x,y)=(4,7) mod p; F,Fx,Fy mod p = [0, 0, 0]; Hessian det mod p = 9 (nonzero: ordinary node); F(lift) mod p^2 = 66 (nonzero: plane model regular at the node)\n(c) p=652081: singular point (x,y)=(573841,521663) mod p; F,Fx,Fy mod p = [0, 0, 0]; Hessian det mod p = 217362 (nonzero: ordinary node); F(lift) mod p^2 = 91909512788 (nonzero: plane model regular at the node)\n(d) p= 3 N=[3, 9, 27] L=[1, -1, 0, 0, 0, -9, 27] #J(F_p)=18 = {2: 1, 3: 2}\n(d) p= 5 N=[5, 29, 119] L=[1, -1, 2, -4, 10, -25, 125] #J(F_p)=108 = {2: 2, 3: 3}\n(d) p= 7 N=[7, 67, 352] L=[1, -1, 9, -6, 63, -49, 343] #J(F_p)=360 = {2: 3, 3: 2, 5: 1}\n(d) p=17 N=[29, 313, 4856] L=[1, 11, 72, 329, 1224, 3179, 4913] #J(F_p)=9729 = {3: 2, 23: 1, 47: 1}\n(d) p=29 N=[27, 871, 23904] L=[1, -3, 19, -210, 551, -2523, 24389] #J(F_p)=22224 = {2: 4, 3: 1, 463: 1}\n(e) #J(F_17) odd: True ; gcd(#J(F_p), p=5,7,17,29) = 3\n(f) C(F_3) = ['(0:1:0)', '(0:0:1)', '(2:0:1)']\n(g) disc_y = -27*x**8 - 54*x**5 + 4*x**3 - 27*x**2 = x^2 (4x - 27(x^3+1)^2); real roots of the second factor: 0 ; value at 0: -27\n so for every real x the cubic in y has exactly one real root (a triple root 0 at x = 0): C(R) is connected\nALL CURVE CHECKS PASSED\n"}, {"path":"v1/anc/code/1.3.8/descent/bitangents.gp","sha256":"5cb13def2f7eba6f23349872a92b2c37083f580b841ef5d8a1ca67624f08aa4f","mode":420,"size":2182,"encoding":"utf-8","text":"\\\\ T6-3: the 27 bitangents y = m x + k (z = 1) other than the hyperflex line z = 0.\n\\\\ G(x, m x + k, 1) = x^4 - (m x + k)^3 + x (m x + k) + x must equal (x^2 + u x + v)^2.\ndefault(parisize, 10^9);\nG(X,Y) = X^4 - Y^3 + X*Y + X;\n\\\\ generic slope m, intercept k: compare coefficients\nP = G('x, 'm*'x + 'k) ;\nc3 = polcoef(P,3,'x); c2 = polcoef(P,2,'x); c1 = polcoef(P,1,'x); c0 = polcoef(P,0,'x);\nu = c3/2; v = (c2 - u^2)/2;\nE1 = c1 - 2*u*v; E2 = c0 - v^2; \\\\ both must vanish\nR = polresultant(numerator(E1), numerator(E2), 'k);\nfa = factor(R); print(\"Res_k = \", fa);\nB = 'm^27 - 48*'m^22 + 1344*'m^18 + 144*'m^17 - 3264*'m^13 + 832*'m^12 - 40704*'m^9 - 4608*'m^8 - 2560*'m^7 - 39936*'m^4 - 15360*'m^3 - 1024*'m^2 + 4096;\nprint(\"B is a factor of Res_k: \", polresultant(B, R) == 0 && R % B == 0);\nprint(\"B irreducible: \", polisirreducible(B), \" squarefree: \", poldisc(B) != 0);\n\\\\ intercept k(theta) over K = Q[m]/B: gcd of E1, E2 as polynomials in k over K\nBt = subst(B, 'm, 't);\nE1t = subst(subst(numerator(E1), 'm, Mod('t, Bt)), 'k, 'y);\nE2t = subst(subst(numerator(E2), 'm, Mod('t, Bt)), 'k, 'y);\ng = gcd(E1t, E2t); print(\"deg gcd_k(E1,E2) over K = \", poldegree(g, 'y));\nkt = -polcoef(g,0,'y)/polcoef(g,1,'y); \\\\ k(theta) as Mod(.., B(t))\n\\\\ identity check in K[x]\nut = -Mod('t,Bt)^3/2; vt = (Mod('t,Bt) - 3*Mod('t,Bt)^2*kt - ut^2)/2;\nD = G('x, Mod('t,Bt)*'x + kt) - ('x^2 + ut*'x + vt)^2;\nprint(\"G(x, theta x + k(theta), 1) == (x^2+ux+v)^2 in K[x]: \", D == 0);\n\\\\ compare with the printed k(theta) of the paper (Appendix C.3), if supplied\nkpaper = read(\"k_paper.gp\");\nprint(\"k(theta) equals the paper's k(theta): \", kt == Mod(subst(kpaper, 'th, 't), Bt));\nprint(\"N(theta - k(theta)) = \", factor(norm(Mod('t,Bt) - kt)), \" N(-k(theta)) = \", factor(norm(-kt)));\nprint(\"issquare(N(theta-k)) \", issquare(norm(Mod('t,Bt) - kt)), \" issquare(N(-k)) \", issquare(norm(-kt)));\n\\\\ factorization of B over Q_2 and Frobenius cycle types\nprint(\"B over Q_2: degrees \", vecsort(apply(poldegree, factorpadic(Bt, 2, 200)[,1]~)));\nprint(\"B mod 3 degrees: \", vecsort(apply(poldegree, factormod(Bt, 3)[,1]~)), \" mod 113: \", vecsort(apply(poldegree, factormod(Bt, 113)[,1]~)));\nquit\n"}, {"path":"v1/anc/code/1.3.8/descent/expected/bitangents.out","sha256":"7e1bafcc970138bf4b01e57e347a905c5b1ada62764580f5cb4bc80c154a01d6","mode":420,"size":624,"encoding":"utf-8","text":"\u001b[0;31m *** Warning: new stack size = 1000000000 (953.674 Mbytes).\u001b[0m\nRes_k = Mat([m^27 - 48*m^22 + 1344*m^18 + 144*m^17 - 3264*m^13 + 832*m^12 - 40704*m^9 - 4608*m^8 - 2560*m^7 - 39936*m^4 - 15360*m^3 - 1024*m^2 + 4096, 1])\nB is a factor of Res_k: 1\nB irreducible: 1 squarefree: 1\ndeg gcd_k(E1,E2) over K = 1\nG(x, theta x + k(theta), 1) == (x^2+ux+v)^2 in K[x]: 1\nk(theta) equals the paper's k(theta): 1\nN(theta - k(theta)) = [2, -6; 11, 2; 47, 2] N(-k(theta)) = Mat([2, -6])\nissquare(N(theta-k)) 1 issquare(N(-k)) 1\nB over Q_2: degrees [2, 5, 10, 10]\nB mod 3 degrees: [2, 5, 5, 5, 10] mod 113: [1, 2, 8, 8, 8]\n"}, {"path":"v1/anc/code/1.3.8/descent/expected/paper_sunits.out","sha256":"dc9431bfd4c96c8c23a32e4f2b44eb9e8a924f40944fcb1631f5cc63af515b5a","mode":420,"size":193,"encoding":"utf-8","text":"printed norms confirmed exactly; all 19 elements integral, norms +-1, +-2, +-4 -> S-units\n19 printed elements independent mod squares (rank 19); u1u2u3u4 == theta - k(theta) mod squares: True\n"}, {"path":"v1/anc/code/1.3.8/descent/expected/selmer.out","sha256":"780390724a1d7a4791af1ed71b5bd7ca56ada689d570313a8b1364b1ffd301ca","mode":420,"size":1543,"encoding":"utf-8","text":"bitangent identity re-checked\nprimes above 2 (e,f): [(10, 1), (5, 1), (2, 1), (5, 2)]\n19 S-units checked exactly: units integral of norm +-1; S-units with norm +-2^k (after scaling by 2^m)\nrank of the 19 x 400 quadratic-character matrix over F_2: 19 (primes q <= 2791)\nreal signs (arb, = PARI nfeltsign) computed\nv | 2 with (e,f)=(10,1): (O/p^21)^x has 11 even cyclic factors = 1+[K_v:Q_2]\nv | 2 with (e,f)=(5,1): (O/p^11)^x has 6 even cyclic factors = 1+[K_v:Q_2]\nv | 2 with (e,f)=(2,1): (O/p^5)^x has 3 even cyclic factors = 1+[K_v:Q_2]\nv | 2 with (e,f)=(5,2): (O/p^11)^x has 11 even cyclic factors = 1+[K_v:Q_2]\nsquare-class coordinates agree with nfislocalpower on 12 random products x 4 primes\npoints of C(Q_2) with integer x in [-40,40] found: 47\nlocal image W_2 spanned by delta_2(P - oo) at P = (x, y mod 2^60): [(-40, 177036671367769442), (-39, 271477316397691054), (-37, 408928458825745180), (-35, 1073474074041454754)] dim 4\nall 51 sampled points of C(Q_2) (incl. the paper's x = -24,-23,-21,-19) have classes in W_2\ndim Sel_fake = 1 elements: [['-1', 'u1', 'u2', 'u3', 'u4']]\ndim without the norm condition: 1\ndim with the condition at 2 only (no sign, no norm condition): 1 elements: [['-1', 'u1', 'u2', 'u3', 'u4']]\ntheta - k(theta): primes outside S with odd valuation: []\ntheta - k(theta) == product of ['-1', 'u1', 'u2', 'u3', 'u4'] mod squares (characters agree at 399 primes)\nsigns of theta - k(theta): [0, 0, 0] local class in W_2: True\ndelta(T) = -k(theta) is a square in K: True\nSELMER CHECKS PASSED: rank J(Q) <= 1\n"}, {"path":"v1/anc/code/1.3.8/descent/expected/theta.out","sha256":"1e463bc5f6403b2d47915cef2d7584f30d43c1e23a700aff8dbfadd7bd9617ba","mode":420,"size":413,"encoding":"utf-8","text":"zeros of q: 28 (Arf invariant 1 <=> 28); nonzero singular vectors: 27\nweights of nonzero image vectors: {12: 36, 16: 27}\nsum of the 27 singular vectors: [0, 0, 0, 0, 0, 0]\npossible weights of orbit unions: [0, 2, 5, 7, 10, 12, 15, 17, 20, 22, 25, 27] ; intersection with {12,16}: [12]\nunions of weight 12: [[2, 10], [2, 10]] -> their sum has weight 20 not in {12,16}: dim J(Q_2)[2] <= 1\nTHETA MODEL CHECKS PASSED\n"}, {"path":"v1/anc/code/1.3.8/descent/k_paper.gp","sha256":"d31969850054412a7894dfdf94167bdbae5494e261ced1df3f9be3bd41a085d9","mode":420,"size":1851,"encoding":"utf-8","text":"-26951359201926579672372588105/592488264170292278295577730011136*th^26+8496081214743764150516921265/148122066042573069573894432502784*th^25-287622866848681413172661175/4628814563830408424184201015712*th^24+9678270027056704046146431225/148122066042573069573894432502784*th^23-1424240468696092889568906009/74061033021286534786947216251392*th^22+326427420042341244461302951725/148122066042573069573894432502784*th^21-102644777665974249342300051135/37030516510643267393473608125696*th^20+111197727131378584438626415575/37030516510643267393473608125696*th^19-116916731084799077369395389525/37030516510643267393473608125696*th^18-2229797248384386454343310155283/37030516510643267393473608125696*th^17+1287837684042312263232190002525/18515258255321633696736804062848*th^16-688316285422128063574436196645/9257629127660816848368402031424*th^15+360534722354806850939892351075/4628814563830408424184201015712*th^14-142494617551666198916076749505/9257629127660816848368402031424*th^13+1602701086983721272243848449629/9257629127660816848368402031424*th^12-2285101296890972479023166783215/9257629127660816848368402031424*th^11+159024433683809388367830737415/578601820478801053023025126964*th^10-671031131909504864680106410475/2314407281915204212092100507856*th^9+4539632299441199237072451067137/2314407281915204212092100507856*th^8-5137141619207878594271810122347/2314407281915204212092100507856*th^7+5704159238507976471075415935645/2314407281915204212092100507856*th^6-377573675196125230104209516655/144650455119700263255756281741*th^5+387162578608641222322582522631/578601820478801053023025126964*th^4+534051179908519027818666862863/578601820478801053023025126964*th^3-484670070054796829975946732141/578601820478801053023025126964*th^2+120601232696157484782966583425/144650455119700263255756281741*th-126446621433258556895339352500/144650455119700263255756281741\n"}, {"path":"v1/anc/code/1.3.8/descent/paper_sunits.json","sha256":"dc2dedcd88f544dfb83addf7380767d9d5e2b37e42e053132972653d1b391043","mode":420,"size":34319,"encoding":"utf-8","text":"[\n{\n\"name\": \"-1\",\n\"expr\": \"-1\",\n\"norm\": \"-1\"\n},\n{\n\"name\": \"u_1\",\n\"expr\": \"7063799615189737111786237449/296244132085146139147788865005568*th^26-37798033677787994234147905759/296244132085146139147788865005568*th^25+538111288814791189933718419/148122066042573069573894432502784*th^24+2120166343077307135513444831/148122066042573069573894432502784*th^23-24879031593038994401959681737/148122066042573069573894432502784*th^22-22956298210854143461906727361/18515258255321633696736804062848*th^21+461674812302844735115228239959/74061033021286534786947216251392*th^20-3433550871555115181967187695/37030516510643267393473608125696*th^19-6742525956824199254377301671/9257629127660816848368402031424*th^18+1494059062926821423832866471251/37030516510643267393473608125696*th^17-3025121919084327180676329373453/18515258255321633696736804062848*th^16-5423765081134094209144177297/289300910239400526511512563482*th^15+147315202541368735869829721767/9257629127660816848368402031424*th^14-1028206023667173031903046088791/4628814563830408424184201015712*th^13-1114697144804131086850946125999/4628814563830408424184201015712*th^12+163171693932315894713114943579/289300910239400526511512563482*th^11+51785478896322773374145980943/4628814563830408424184201015712*th^10-227234958295406002353672112343/2314407281915204212092100507856*th^9-74607263175902595643991602495/1157203640957602106046050253928*th^8+12418107200468898567568126804485/2314407281915204212092100507856*th^7+30264525731079519098978267649/1157203640957602106046050253928*th^6-694418882779177854915717659249/1157203640957602106046050253928*th^5+4013029279597068165802994496195/578601820478801053023025126964*th^4+1755849366030007468721543834543/578601820478801053023025126964*th^3-18420874892335954379618939497/578601820478801053023025126964*th^2+45481047011372636579155320623/289300910239400526511512563482*th-111713249739232474458592761517/144650455119700263255756281741\",\n\"norm\": \"1\"\n},\n{\n\"name\": \"u_2\",\n\"expr\": \"-77309916006530147855865376339/148122066042573069573894432502784*th^26+173301523821418182137034925363/148122066042573069573894432502784*th^25-79181536790347086622534595651/148122066042573069573894432502784*th^24+95380415583988018734450187801/148122066042573069573894432502784*th^23-67168663611383700078688380325/148122066042573069573894432502784*th^22+29403945554147049854244761145/1157203640957602106046050253928*th^21-1043803418037317644378517697687/18515258255321633696736804062848*th^20+240713134297275098478551308651/9257629127660816848368402031424*th^19-288092384364364655000586874939/9257629127660816848368402031424*th^18-25181877363663431467805184086443/37030516510643267393473608125696*th^17+27402567354426323771536304163901/18515258255321633696736804062848*th^16-4985698659396389702554237318445/9257629127660816848368402031424*th^15+7151941113741332096226533222031/9257629127660816848368402031424*th^14-1175746000231953391068724223547/2314407281915204212092100507856*th^13+9861029512467999057469880720853/4628814563830408424184201015712*th^12-648185811381473427603808305903/144650455119700263255756281741*th^11+7182635052003479176655816763423/2314407281915204212092100507856*th^10-6486498822324088485117180810029/2314407281915204212092100507856*th^9+13220870720804033584313943155423/578601820478801053023025126964*th^8-108669877293764440826838757457351/2314407281915204212092100507856*th^7+11620403614855265244554901348085/578601820478801053023025126964*th^6-15931403296368635354152831599255/578601820478801053023025126964*th^5+4583090419040059387448563494155/289300910239400526511512563482*th^4+2783375615240510022626460774641/578601820478801053023025126964*th^3-16270970182622831137777474193677/578601820478801053023025126964*th^2-1105423682908802765142646482617/289300910239400526511512563482*th-1554040119154223760386431656367/144650455119700263255756281741\",\n\"norm\": \"-1\"\n},\n{\n\"name\": \"u_3\",\n\"expr\": \"-1312773407951745843956231829/903183329527884570572527027456*th^26-5065067478193448973559834123/7225466636223076564580216219648*th^25-628708026230327362311834535/1806366659055769141145054054912*th^24-2764872906930212849712801/14112239523873196415195734804*th^23-277779736812795560411914799/3612733318111538282290108109824*th^22+31501385639019351352547486099/451591664763942285286263513728*th^21+60705475389702310190404632763/1806366659055769141145054054912*th^20+15023151899160308849632401975/903183329527884570572527027456*th^19+8448575241839263357849578303/903183329527884570572527027456*th^18-1760994617035890580600570804125/903183329527884570572527027456*th^17-32478156780837950649398971585/28224479047746392830391469608*th^16-127938177317906530652320558503/225795832381971142643131756864*th^15-70043202624309054958077807177/225795832381971142643131756864*th^14-14581532295177575603715263117/112897916190985571321565878432*th^13+266277716221150288755967366573/56448958095492785660782939216*th^12+114515811418760257339721671641/112897916190985571321565878432*th^11+50120458287160277530490299047/112897916190985571321565878432*th^10+15985656266145695938129529319/56448958095492785660782939216*th^9+3347580930728837656884241987949/56448958095492785660782939216*th^8+1998194577289188068804297745143/56448958095492785660782939216*th^7+600762798710410877461047617137/28224479047746392830391469608*th^6+313226686769035408609588458373/28224479047746392830391469608*th^5+33757501693183616289532519165/7056119761936598207597867402*th^4+213752189979126281010503575454/3528059880968299103798933701*th^3+757533815094867153589477527113/14112239523873196415195734804*th^2+98869883878281191270297206619/3528059880968299103798933701*th+45387404340040744764243013790/3528059880968299103798933701\",\n\"norm\": \"-1\"\n},\n{\n\"name\": \"u_4\",\n\"expr\": \"77292085744848497219771750513/296244132085146139147788865005568*th^26+3184073736209392096601230029/148122066042573069573894432502784*th^25+158160443024843657599500477/2314407281915204212092100507856*th^24-3706665141563443068757200601/74061033021286534786947216251392*th^23-9221146057473183984312372447/148122066042573069573894432502784*th^22-14379459763711771635968567951/1157203640957602106046050253928*th^21-37380987244625561050436702429/37030516510643267393473608125696*th^20-31206345840609917012929459747/9257629127660816848368402031424*th^19+87137710366437201741072217191/37030516510643267393473608125696*th^18+13104470753166463932967463802885/37030516510643267393473608125696*th^17+570122411349133511367991699315/9257629127660816848368402031424*th^16+434536154677801097683635683961/4628814563830408424184201015712*th^15-490055965264915201062346761771/9257629127660816848368402031424*th^14-411408469992900890887392687691/4628814563830408424184201015712*th^13-856373139079307996386733844219/1157203640957602106046050253928*th^12+920599657905788594610332150463/4628814563830408424184201015712*th^11-743170219766554751957835956915/2314407281915204212092100507856*th^10+291998305305478092456070360681/2314407281915204212092100507856*th^9-23399757410215729393927125191747/2314407281915204212092100507856*th^8-6389096218595248636503343302681/2314407281915204212092100507856*th^7-1967796011052808184115624973741/578601820478801053023025126964*th^6+1080055900860018953334643001609/578601820478801053023025126964*th^5+1612947241304195052700228414189/578601820478801053023025126964*th^4-4217760990699696515204093100631/289300910239400526511512563482*th^3-3661949201594807864023805275239/578601820478801053023025126964*th^2+273978397874170013071093600952/144650455119700263255756281741*th-58834557448573202711594780198/144650455119700263255756281741\",\n\"norm\": \"1\"\n},\n{\n\"name\": \"u_5\",\n\"expr\": \"-377988224344563215679498603441/592488264170292278295577730011136*th^26+33253182591239244498166782889/148122066042573069573894432502784*th^25+12902328705027242500907528717/296244132085146139147788865005568*th^24-1609430332511319298658821443/37030516510643267393473608125696*th^23-20725248145347610269078236013/148122066042573069573894432502784*th^22+4525197991588031150267407424287/148122066042573069573894432502784*th^21-200874741271432912576350549991/18515258255321633696736804062848*th^20-158936549277880292150738052745/74061033021286534786947216251392*th^19+9814659778628266203400011761/4628814563830408424184201015712*th^18-7872515697704731170469562980767/9257629127660816848368402031424*th^17+494688178997245303694609001201/2314407281915204212092100507856*th^16+874606229204040712763997564735/9257629127660816848368402031424*th^15-461061239163647476301546152059/9257629127660816848368402031424*th^14-1821013974760184004627455128495/9257629127660816848368402031424*th^13+18031449143199347058054409519761/9257629127660816848368402031424*th^12-12917441585996937957444415270813/9257629127660816848368402031424*th^11-211663594303814090318331813205/4628814563830408424184201015712*th^10+1111648028944522197509019741985/4628814563830408424184201015712*th^9+62191298037344995035012873055401/2314407281915204212092100507856*th^8-3119893100839348432204681045337/578601820478801053023025126964*th^7-1417089528258222487630436718853/2314407281915204212092100507856*th^6+785219585628560127229405035711/1157203640957602106046050253928*th^5+4657494743799314565723293972365/1157203640957602106046050253928*th^4+14768541796026806198109921527607/578601820478801053023025126964*th^3+224919049847611723791642162825/289300910239400526511512563482*th^2-444218426318515471141318143687/144650455119700263255756281741*th+475308474662184180451946802779/144650455119700263255756281741\",\n\"norm\": \"1\"\n},\n{\n\"name\": \"u_6\",\n\"expr\": \"259271334184579047008073075029/592488264170292278295577730011136*th^26+26999135479796008193481197581/148122066042573069573894432502784*th^25+2638269107438945196814859961/296244132085146139147788865005568*th^24+6570730036406608234431566135/74061033021286534786947216251392*th^23+1479866528807493116849674781/37030516510643267393473608125696*th^22-3118709106895510051374081055049/148122066042573069573894432502784*th^21-80927099158984448686062928661/9257629127660816848368402031424*th^20-26061825409065665300733332753/74061033021286534786947216251392*th^19-158657791668804971287925098985/37030516510643267393473608125696*th^18+21708466442946425685272207833049/37030516510643267393473608125696*th^17+2874450413701909246789551836851/9257629127660816848368402031424*th^16+349775423019533671081162221781/9257629127660816848368402031424*th^15+540754360183318658038474097511/4628814563830408424184201015712*th^14+618561499247712762348581951485/9257629127660816848368402031424*th^13-13789792893876361845642641530387/9257629127660816848368402031424*th^12-2153557372162972831556592185367/9257629127660816848368402031424*th^11+1034917768594533855932748403309/4628814563830408424184201015712*th^10-1304207722096854728192413140533/4628814563830408424184201015712*th^9-20665399693994835164636341602537/1157203640957602106046050253928*th^8-21089981152914115002466763992417/2314407281915204212092100507856*th^7-5670427352711841063717221394069/2314407281915204212092100507856*th^6-5491461697458383089844990463283/1157203640957602106046050253928*th^5-2626238991983279079433259284089/1157203640957602106046050253928*th^4-9074096285424246189013896802653/578601820478801053023025126964*th^3-8086347041108835458545009833901/578601820478801053023025126964*th^2-927964967861136252412292634964/144650455119700263255756281741*th-485302821401295477012837586070/144650455119700263255756281741\",\n\"norm\": \"1\"\n},\n{\n\"name\": \"u_7\",\n\"expr\": \"161556340865487915064645021653/592488264170292278295577730011136*th^26-25471664991808863037883330849/296244132085146139147788865005568*th^25+65223799867063453725443614547/148122066042573069573894432502784*th^24+9949629377941797005872093371/37030516510643267393473608125696*th^23+6438771651945310552141855279/74061033021286534786947216251392*th^22-1910011718643882372061460009915/148122066042573069573894432502784*th^21+78611802393814354241214759349/18515258255321633696736804062848*th^20-787962552442333257665811377147/37030516510643267393473608125696*th^19-246379759020536743922085711111/18515258255321633696736804062848*th^18+13397764470711628593581368379821/37030516510643267393473608125696*th^17-1590610234821459281925272944755/18515258255321633696736804062848*th^16+2656433527786567212351758093851/4628814563830408424184201015712*th^15+4001721576523410419848429952315/9257629127660816848368402031424*th^14+1640581644275191070288537028443/9257629127660816848368402031424*th^13-5470512502315919000535950295829/9257629127660816848368402031424*th^12+6579178353420000983990614942793/9257629127660816848368402031424*th^11-7858348019647481848440345839517/4628814563830408424184201015712*th^10-2617341922026743077274457761501/2314407281915204212092100507856*th^9-1732583324140618419559233686064/144650455119700263255756281741*th^8+2420902148659683353178635509113/2314407281915204212092100507856*th^7-42478946763024090584311350374775/2314407281915204212092100507856*th^6-6092469868381922286049458055763/578601820478801053023025126964*th^5-402895061748985658144770222601/289300910239400526511512563482*th^4-2219419432206670257070338713596/144650455119700263255756281741*th^3-3322620693633145668844758434391/578601820478801053023025126964*th^2-2597953278911592755385678364331/144650455119700263255756281741*th-2118415181696265482043439264850/144650455119700263255756281741\",\n\"norm\": \"1\"\n},\n{\n\"name\": \"u_8\",\n\"expr\": \"-182866899668357506350668310829/592488264170292278295577730011136*th^26-75334525417189555724831637697/296244132085146139147788865005568*th^25+1951530049170411942827696513/74061033021286534786947216251392*th^24-13629045017667534134075166351/148122066042573069573894432502784*th^23-3226794612849868149454629073/18515258255321633696736804062848*th^22+2238184731665603208340613331429/148122066042573069573894432502784*th^21+442294349875902968293887914109/37030516510643267393473608125696*th^20-13051199165949363505587509445/9257629127660816848368402031424*th^19+198202302379424810894395235979/37030516510643267393473608125696*th^18-15083431361332697594844200469253/37030516510643267393473608125696*th^17-116018274580957474662162888621/289300910239400526511512563482*th^16+124944972753711854849493100365/9257629127660816848368402031424*th^15-1063897803901040476253897650387/9257629127660816848368402031424*th^14-2711614371215047634868769258675/9257629127660816848368402031424*th^13+13204899938544920568609855206957/9257629127660816848368402031424*th^12+2621465777824362333774767578447/9257629127660816848368402031424*th^11-2901331043271226887558590905741/4628814563830408424184201015712*th^10+3874169214342720043266856186581/2314407281915204212092100507856*th^9+27797661785438071897294841648695/2314407281915204212092100507856*th^8+21928995669666456634814152457223/2314407281915204212092100507856*th^7+12105425221664016856147144480509/2314407281915204212092100507856*th^6+539579918869648929282176961847/289300910239400526511512563482*th^5+723795030109214868674603829775/289300910239400526511512563482*th^4+7374784228859829426037281416113/578601820478801053023025126964*th^3+7450952724297256117154642887677/578601820478801053023025126964*th^2+1806869167246336053753914786605/289300910239400526511512563482*th+514823414763931951697043183679/144650455119700263255756281741\",\n\"norm\": \"-1\"\n},\n{\n\"name\": \"u_9\",\n\"expr\": \"-612520719388650223615214421029/296244132085146139147788865005568*th^26+16874989782309050631087449447/148122066042573069573894432502784*th^25+12580766049500765529053305387/37030516510643267393473608125696*th^24-20538965432726877497716548597/148122066042573069573894432502784*th^23-5786579508453974923341159021/74061033021286534786947216251392*th^22+1842502722382199211375029059593/18515258255321633696736804062848*th^21-193333105359828709014983777443/37030516510643267393473608125696*th^20-74361434150483064293265498309/4628814563830408424184201015712*th^19+270536849073223443974159747905/37030516510643267393473608125696*th^18-12841165799393049760364258138611/4628814563830408424184201015712*th^17-2894515614603262711768964790223/18515258255321633696736804062848*th^16+4293247537327352778823681414427/9257629127660816848368402031424*th^15-674449990980058437268640443723/4628814563830408424184201015712*th^14-175135501765469525473938154825/1157203640957602106046050253928*th^13+32678142589552130450706380311947/4628814563830408424184201015712*th^12-8150852735187060733790269754625/4628814563830408424184201015712*th^11-1756684003858368993121492699165/2314407281915204212092100507856*th^10+3511286063562438968100889037593/2314407281915204212092100507856*th^9+197860298913115309139652218969195/2314407281915204212092100507856*th^8+6014188727872798706210716586209/1157203640957602106046050253928*th^7-3735138174190363221251023457569/578601820478801053023025126964*th^6+4285159625076435212338628972819/578601820478801053023025126964*th^5+3794475214353167920864118352703/578601820478801053023025126964*th^4+47031732573707272872745064183001/578601820478801053023025126964*th^3+8216500301998728617390697479511/289300910239400526511512563482*th^2-3016411842976269439239211250781/289300910239400526511512563482*th+609139658948634383035973945858/144650455119700263255756281741\",\n\"norm\": \"-1\"\n},\n{\n\"name\": \"u_10\",\n\"expr\": \"-105876688527873381935999299015/148122066042573069573894432502784*th^26-7030853974488431346908383535/37030516510643267393473608125696*th^25+66751662160666283471784602059/296244132085146139147788865005568*th^24+832976056281627917957513867/9257629127660816848368402031424*th^23-67199012646233082713216285671/148122066042573069573894432502784*th^22+1298987098885421076156963728249/37030516510643267393473608125696*th^21+654138876052027617424243656865/74061033021286534786947216251392*th^20-771552667652614046146381225863/74061033021286534786947216251392*th^19-85997448446012077888764247237/18515258255321633696736804062848*th^18-34740633923538648923502825245551/37030516510643267393473608125696*th^17-114613528427004645246286784719/289300910239400526511512563482*th^16+1332944886721559046093450587967/4628814563830408424184201015712*th^15+324287359845190629336110803109/2314407281915204212092100507856*th^14-1378173623940554902286382288291/2314407281915204212092100507856*th^13+15212112818553000372322136941809/4628814563830408424184201015712*th^12-951616410109879755764073928003/4628814563830408424184201015712*th^11-1592053411411188433661063345615/4628814563830408424184201015712*th^10-3474215186750560937933868606685/4628814563830408424184201015712*th^9+74649714788865636241802602447477/2314407281915204212092100507856*th^8+13248502624675449676338358183581/2314407281915204212092100507856*th^7-6533776073303143113781656834519/1157203640957602106046050253928*th^6+1088678932391591273079058051883/578601820478801053023025126964*th^5-786127996862710797350730033911/1157203640957602106046050253928*th^4+14439201041693813354420099241269/578601820478801053023025126964*th^3+3395754082724903658702450132671/578601820478801053023025126964*th^2-2637598308248862845465844749829/289300910239400526511512563482*th-44280269667999073528619951195/144650455119700263255756281741\",\n\"norm\": \"1\"\n},\n{\n\"name\": \"u_11\",\n\"expr\": \"-314846211101411208505076533879/592488264170292278295577730011136*th^26+54294853024344506078852013671/148122066042573069573894432502784*th^25-150537782374551854929574724647/296244132085146139147788865005568*th^24-45911937208625801671164691711/148122066042573069573894432502784*th^23+89388542494914462016942657/148122066042573069573894432502784*th^22+3779313778077650750421390094135/148122066042573069573894432502784*th^21-165669419467413016796294842511/9257629127660816848368402031424*th^20+1826712730754550150249122962113/74061033021286534786947216251392*th^19+571914333714246027846533537197/37030516510643267393473608125696*th^18-1652581205612746236886593032273/2314407281915204212092100507856*th^17+7695975960278897590346864773961/18515258255321633696736804062848*th^16-5702382144944408089728717827153/9257629127660816848368402031424*th^15-4658886273357599611165015171303/9257629127660816848368402031424*th^14-657536938374549386038678206101/9257629127660816848368402031424*th^13+16077640036239507502591065528823/9257629127660816848368402031424*th^12-18873482849291463882416512179163/9257629127660816848368402031424*th^11+10630610041153237239906691735207/4628814563830408424184201015712*th^10+6493300133302394922293174220727/4628814563830408424184201015712*th^9+25114194322091205068040142708149/1157203640957602106046050253928*th^8-14611362895328315326912147948309/1157203640957602106046050253928*th^7+48946080375025971783558976664123/2314407281915204212092100507856*th^6+14493371249243258180183795040759/1157203640957602106046050253928*th^5+1300202786606583236122110648689/1157203640957602106046050253928*th^4+3087453362250702645837008816896/144650455119700263255756281741*th^3+513964340351126696354807297552/144650455119700263255756281741*th^2+696043195635350195609301646075/289300910239400526511512563482*th-35682111523737597445429917364/144650455119700263255756281741\",\n\"norm\": \"-1\"\n},\n{\n\"name\": \"u_12\",\n\"expr\": \"-129734128761683313751709517401/74061033021286534786947216251392*th^26+84621357708102639744054665317/296244132085146139147788865005568*th^25+96659647445648858983059233091/148122066042573069573894432502784*th^24-15955946061625301334811341511/37030516510643267393473608125696*th^23-23265078685848210969115320379/148122066042573069573894432502784*th^22+6252827583755759818863878394805/74061033021286534786947216251392*th^21-1004810883391061449748512798877/74061033021286534786947216251392*th^20-74558438748694774360049121297/2314407281915204212092100507856*th^19+818894943656839184168563329013/37030516510643267393473608125696*th^18-86983641064269071093336098742683/37030516510643267393473608125696*th^17+2212901559859830303617761585399/18515258255321633696736804062848*th^16+8347472092664378981226628934205/9257629127660816848368402031424*th^15-3909808043508118964457545963423/9257629127660816848368402031424*th^14-442661113411746112258376378843/1157203640957602106046050253928*th^13+14690528802681055682267379230225/2314407281915204212092100507856*th^12-11701547694297870436962509413807/4628814563830408424184201015712*th^11-10484473377746069600387750902983/4628814563830408424184201015712*th^10+2413360288658556863702727739239/1157203640957602106046050253928*th^9+166819609715588760494222824386695/2314407281915204212092100507856*th^8-13987503125571968374412509497895/2314407281915204212092100507856*th^7-3160225760238804567285838385449/144650455119700263255756281741*th^6+15969204951971355251436402596797/1157203640957602106046050253928*th^5+4597888713507102016591872359013/578601820478801053023025126964*th^4+15135223794453349793374042187289/289300910239400526511512563482*th^3+11515182435459222509007160459297/578601820478801053023025126964*th^2-4540005137645365289998215217483/289300910239400526511512563482*th-618662566928919854542846147627/144650455119700263255756281741\",\n\"norm\": \"-1\"\n},\n{\n\"name\": \"u_13\",\n\"expr\": \"-366691046301948776676504615979/148122066042573069573894432502784*th^26+89941436376469395697976224715/148122066042573069573894432502784*th^25+38105194978291574782656025801/74061033021286534786947216251392*th^24-60730156900118682676369411661/148122066042573069573894432502784*th^23+16796885988204893405510521551/148122066042573069573894432502784*th^22+4409862542361399829677753378811/37030516510643267393473608125696*th^21-136165481572219027219103996953/4628814563830408424184201015712*th^20-930208689728647949816446090869/37030516510643267393473608125696*th^19+91318787442190429780839488297/4628814563830408424184201015712*th^18-123373251327175281277404675412983/37030516510643267393473608125696*th^17+8299133240751498490752566891371/18515258255321633696736804062848*th^16+7315682961330258884364097384061/9257629127660816848368402031424*th^15-4262753569506697645693923504307/9257629127660816848368402031424*th^14+215140436172488703474189553533/2314407281915204212092100507856*th^13+38915570165208653736115494778739/4628814563830408424184201015712*th^12-1277343374012496748122220102061/289300910239400526511512563482*th^11-995909316261089390097603243201/578601820478801053023025126964*th^10+2246848339395028846504409346461/1157203640957602106046050253928*th^9+29320451404944814601486695578133/289300910239400526511512563482*th^8-29952759353270081350146244380835/2314407281915204212092100507856*th^7-5375953987168893154427239004287/289300910239400526511512563482*th^6+1356199789755770393564819677085/144650455119700263255756281741*th^5-1066203424242986479235445838807/578601820478801053023025126964*th^4+56722939990358684829077371913057/578601820478801053023025126964*th^3+12129283225112309263217774152771/578601820478801053023025126964*th^2-9489863290126099408866353680403/289300910239400526511512563482*th+9311536468287685484795074389/144650455119700263255756281741\",\n\"norm\": \"1\"\n},\n{\n\"name\": \"u_14\",\n\"expr\": \"1097638783318910737291207479761/592488264170292278295577730011136*th^26+198925085359374728084208166183/74061033021286534786947216251392*th^25+101317278640627027968098257615/37030516510643267393473608125696*th^24+299283782719144512890715968545/148122066042573069573894432502784*th^23+18296576030291516484990128359/37030516510643267393473608125696*th^22-13352654801181715164592919300845/148122066042573069573894432502784*th^21-9758540034793014835538223285741/74061033021286534786947216251392*th^20-5012084871826714922246334316249/37030516510643267393473608125696*th^19-3727002279151552499714247121713/37030516510643267393473608125696*th^18+91206997057760979895025585212675/37030516510643267393473608125696*th^17+72869595104118562245593178483039/18515258255321633696736804062848*th^16+38911195427976470475706590535033/9257629127660816848368402031424*th^15+30649500756646647678499176357933/9257629127660816848368402031424*th^14+10573184818180481242565401389193/9257629127660816848368402031424*th^13-69042877056137028613483833757355/9257629127660816848368402031424*th^12-103885180743431616557132237044705/9257629127660816848368402031424*th^11-29309637190373284397199194660525/2314407281915204212092100507856*th^10-23677633954069834939108440104341/2314407281915204212092100507856*th^9-186741606009136396931115698395759/2314407281915204212092100507856*th^8-263799483205191930270272739400151/2314407281915204212092100507856*th^7-269940975762043259675401211337179/2314407281915204212092100507856*th^6-91021602966502692664673999548589/1157203640957602106046050253928*th^5-6036070153185465647681253835439/578601820478801053023025126964*th^4-4705352100808119720818483433859/578601820478801053023025126964*th^3-3928085306615079840073639149175/578601820478801053023025126964*th^2-391143482290185333639935135695/144650455119700263255756281741*th-600557767044585981622562841872/144650455119700263255756281741\",\n\"norm\": \"1\"\n},\n{\n\"name\": \"pi_1\",\n\"expr\": \"-266633807647029634545808970997/592488264170292278295577730011136*th^26+10040497027743614407651295993/37030516510643267393473608125696*th^25+25629554873786486278162056553/296244132085146139147788865005568*th^24-18390382114636756779282924743/148122066042573069573894432502784*th^23-2594318178396990474924896321/148122066042573069573894432502784*th^22+3208940764857584940060041056037/148122066042573069573894432502784*th^21-120537718255915084169380402225/9257629127660816848368402031424*th^20-308955276011602000711838206517/74061033021286534786947216251392*th^19+219336501079942944433611437521/37030516510643267393473608125696*th^18-5591072508629945338853805067431/9257629127660816848368402031424*th^17+5490756895298392497238789414027/18515258255321633696736804062848*th^16+90150374338081711165433351461/578601820478801053023025126964*th^15-1423156634448732729500383985069/9257629127660816848368402031424*th^14-376296831782678451563012909403/9257629127660816848368402031424*th^13+14344280193301436369765673151913/9257629127660816848368402031424*th^12-11615131020209991877600045842493/9257629127660816848368402031424*th^11-421605404672505789628694874729/4628814563830408424184201015712*th^10+2040550449538417120035915748063/4628814563830408424184201015712*th^9+21265822492866903038378907480533/1157203640957602106046050253928*th^8-10817515648088736295787284749497/1157203640957602106046050253928*th^7-8019988102331685222649609864123/2314407281915204212092100507856*th^6+4748128091422584293718792202331/1157203640957602106046050253928*th^5+1103668269313212924462908478271/1157203640957602106046050253928*th^4+2308441262427492654138548409819/144650455119700263255756281741*th^3-592889583768178780192547858960/144650455119700263255756281741*th^2-1684456858910229967840788289695/289300910239400526511512563482*th+445761977207677414113407223855/144650455119700263255756281741\",\n\"norm\": \"-2\"\n},\n{\n\"name\": \"pi_2\",\n\"expr\": \"470364233115917919426162677847/592488264170292278295577730011136*th^26+30346093346594052296247833109/74061033021286534786947216251392*th^25+30305150546653045789001287461/148122066042573069573894432502784*th^24+471188052484543709285004761/4628814563830408424184201015712*th^23+1659067458028261964277306591/148122066042573069573894432502784*th^22-5645876207101659259884177171745/148122066042573069573894432502784*th^21-1460320625326544270103850461693/74061033021286534786947216251392*th^20-364811007164573189795530740849/37030516510643267393473608125696*th^19-181197895249973434017829450185/37030516510643267393473608125696*th^18+19747017294624146508159407992939/18515258255321633696736804062848*th^17+6162198814919161711322571328487/9257629127660816848368402031424*th^16+1557028778835011672720001282967/4628814563830408424184201015712*th^15+388636224709758923482861605893/2314407281915204212092100507856*th^14+285989825083100449052562084803/9257629127660816848368402031424*th^13-24141725515970437373292630674447/9257629127660816848368402031424*th^12-6982431281268744863484192468247/9257629127660816848368402031424*th^11-860840172435940864443923443577/2314407281915204212092100507856*th^10-49701847678761425119320603063/289300910239400526511512563482*th^9-74527628883570960569594715146257/2314407281915204212092100507856*th^8-23297813349445350529419052854911/1157203640957602106046050253928*th^7-27488039615861700696391880963079/2314407281915204212092100507856*th^6-6824562408931176707188435746319/1157203640957602106046050253928*th^5-773386007149949714713444922495/578601820478801053023025126964*th^4-4552394403070413751581616769263/144650455119700263255756281741*th^3-7564531646765702132104587249663/289300910239400526511512563482*th^2-3909347705767424720307531797323/289300910239400526511512563482*th-929892625030082963336591642452/144650455119700263255756281741\",\n\"norm\": \"2\"\n},\n{\n\"name\": \"pi_3\",\n\"expr\": \"-18723602624054244847764878943/37030516510643267393473608125696*th^26-14378184648239964965374811717/37030516510643267393473608125696*th^25+45261312819838966673017613595/296244132085146139147788865005568*th^24-31998174058912159983387614259/148122066042573069573894432502784*th^23+22761835918771543757726280935/148122066042573069573894432502784*th^22+446841414987763982716493075437/18515258255321633696736804062848*th^21+1387451467277929049960232722827/74061033021286534786947216251392*th^20-561146156152092228270386893347/74061033021286534786947216251392*th^19+386336225558159308142794855971/37030516510643267393473608125696*th^18-25447841451438342993196300405947/37030516510643267393473608125696*th^17-10879981479143817416912786275957/18515258255321633696736804062848*th^16+670481002910716396251394247837/4628814563830408424184201015712*th^15-1183837744958280633049325686273/4628814563830408424184201015712*th^14+25011625569043579396996095897/144650455119700263255756281741*th^13+6952508355479646537581928937745/4628814563830408424184201015712*th^12+4323448970194181390843697257353/4628814563830408424184201015712*th^11-5279483122400778929890044239675/4628814563830408424184201015712*th^10+3898965718400869979732641235657/4628814563830408424184201015712*th^9+22571388224404431421406976821145/1157203640957602106046050253928*th^8+44827270759932531760094975282871/2314407281915204212092100507856*th^7-4027230521813595517366878005619/1157203640957602106046050253928*th^6+3284424149218833942537158769867/289300910239400526511512563482*th^5-6043717755546446529711206400965/1157203640957602106046050253928*th^4+3782707942744747296747621255040/144650455119700263255756281741*th^3+10603561255876357232530416896925/578601820478801053023025126964*th^2+836383889119068446678500691862/144650455119700263255756281741*th+735126002408630830307480995162/144650455119700263255756281741\",\n\"norm\": \"-2\"\n},\n{\n\"name\": \"pi_4\",\n\"expr\": \"6382828250648087263758980433/74061033021286534786947216251392*th^26-11980372247244349770403139819/296244132085146139147788865005568*th^25-51060446143309175596762616385/296244132085146139147788865005568*th^24+5763024023929532822026264775/148122066042573069573894432502784*th^23+50799829167446112486537210233/74061033021286534786947216251392*th^22-14272040503975385200576292191/4628814563830408424184201015712*th^21+15902611733081968002972536625/37030516510643267393473608125696*th^20-51385610182054312794830366751/74061033021286534786947216251392*th^19-13833321540086756746684476965/1157203640957602106046050253928*th^18+1035400008841274226087290950549/9257629127660816848368402031424*th^17+101769101710250806469255932035/4628814563830408424184201015712*th^16-419153501381458941561706453751/4628814563830408424184201015712*th^15-177122186682227858007691204405/9257629127660816848368402031424*th^14+143928403579553875366250352231/4628814563830408424184201015712*th^13-1623787244307666278358927849531/4628814563830408424184201015712*th^12+26803339782344803163215541289/2314407281915204212092100507856*th^11+59590666651149140377343240351/144650455119700263255756281741*th^10+1764882027939778505309072497235/4628814563830408424184201015712*th^9-8001540593945192399367095935763/2314407281915204212092100507856*th^8-256311548138226438857937256395/578601820478801053023025126964*th^7+1532041530059066112067318574355/578601820478801053023025126964*th^6+655196967623504961945539748221/1157203640957602106046050253928*th^5-187034518212493026582482545531/1157203640957602106046050253928*th^4-515204599145080640157306400645/289300910239400526511512563482*th^3-107182536862026482260425932967/144650455119700263255756281741*th^2+106179872070872870330373771003/289300910239400526511512563482*th+10914850817729526830812948278/144650455119700263255756281741\",\n\"norm\": \"-4\"\n}\n]"}, {"path":"v1/anc/code/1.3.8/descent/paper_sunits.py","sha256":"121a272eadb9af575f972685fedf16c8d51b26b2d63214b66f4cda0e3c8b358a","mode":420,"size":2192,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Cross-check of the paper's printed basis of K(2,S) (Appendix C.3): exact norms as printed, S-units,\nindependent mod squares, and the printed Selmer generator u1 u2 u3 u4 == theta - k(theta) mod squares.\"\"\"\nimport sys, os, json\nfrom fractions import Fraction\nfrom flint import fmpz_poly, nmod_poly\nsys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'classgroup'))\nimport kfield\nP = kfield.pari(); nf = kfield.make_nf()\nhere = os.path.dirname(os.path.abspath(__file__))\nels = json.load(open(os.path.join(here, 'paper_sunits.json')))\nBf = fmpz_poly(kfield.B_COEFFS)\ndef norm(a):\n a = P.lift(P('Mod(1,%s)' % kfield.B_STR) * a)\n if a.type() != 't_POL': return Fraction(int(a)) ** 27\n d = int(P.denominator(P.content(a)))\n return Fraction(int(Bf.resultant(fmpz_poly([int(P.polcoef(a * d, j)) for j in range(int(P.poldegree(a)) + 1)]))), d ** 27)\ngens = []\nfor e in els:\n a = P(e['expr'].replace('th', 'x'))\n N = norm(a)\n assert N == Fraction(e['norm']), (e['name'], N, e['norm'])\n c = P.nfalgtobasis(nf, a)\n assert all(P.denominator(x) == 1 for x in c), e['name'] # integral\n gens.append(a)\nprint('printed norms confirmed exactly; all 19 elements integral, norms +-1, +-2, +-4 -> S-units')\nk = P(open(os.path.join(here, 'k_paper.gp')).read().strip().replace('th', 'x'))\nd1 = P.lift(P('Mod(x - (%s), %s)' % (k, kfield.B_STR)))\ncpr = []\np = 3\nwhile len(cpr) < 450:\n p = int(P.nextprime(p + 1))\n if p in kfield.DISC_B_PRIMES: continue\n for r, m in nmod_poly(kfield.B_COEFFS, p).roots(): cpr.append((p, int(r)))\ndef ev(a, p, r):\n return int(P.lift(P.Mod(P.subst(a, 'x', r), p))) if a.type() == 't_POL' else int(a) % p\ncpr = [(p, r) for p, r in cpr if ev(d1, p, r) % p]\nchi = lambda a: [0 if pow(ev(a, p, r), (p - 1) // 2, p) == 1 else 1 for p, r in cpr]\nM = [chi(g) for g in gens]\nassert int(P.matrank(P.Mod(1, 2) * P.matrix(19, len(cpr), [x for r in M for x in r]))) == 19\nprod = [sum(M[i][j] for i in (1, 2, 3, 4)) % 2 for j in range(len(cpr))]\nprint('19 printed elements independent mod squares (rank 19); u1u2u3u4 == theta - k(theta) mod squares:', prod == chi(d1))\nassert prod == chi(d1)\n"}, {"path":"v1/anc/code/1.3.8/descent/selmer.py","sha256":"93697606d93dd6888beb164b8334f767b75212abc25a594263243dde0e62aff5","mode":420,"size":12816,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"T6-3 fake 2-Selmer group: dim Sel_fake = 1 (given Cl(K)[2] = 0, certified separately).\n\n 1. S-units: proposed by bnfinit/bnfsunit (GRH-dependent PROPOSERS only); accepted after exact checks:\n each u has 2^m u integral and |N(u)| a power of 2 (so (u) is supported above 2); the 19 elements\n -1, 14 units, 4 S-units are independent in K^x/K^x2 (quadratic characters at degree-1 primes, rank 19),\n hence a basis of O_{K,S}^x / squares (dimension r1+r2-1+#S+1 = 19).\n 2. Real signs at the 3 real places (FLINT arb, cross-checked with PARI nfeltsign).\n 3. Square classes in K_v (v | 2) via ideallog in (O_K/q)^x for a power q of each prime above 2 (as in the proof)\n (rank of the pairing matrix = 2 + [K_v:Q_2] proves spanning, by nondegeneracy).\n 4. Local image at 2 from points of C(Q_2): dimension 4 = upper bound 3 + dim J(Q_2)[2] <= 4.\n 5. Sel_fake = {a in K(2,S): a >> 0, N(a) in Q^x2, res_2(a) in W_2}: dimension 1, spanned by theta - k(theta).\n\"\"\"\nimport sys, os, json, random, time\nimport cypari2\nfrom flint import fmpz_poly, arb, acb, ctx\nsys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'classgroup'))\nimport kfield\nP = kfield.pari()\nnf = kfield.make_nf()\nth = P('Mod(x, %s)' % kfield.B_STR)\nkpaper = P(open(os.path.join(os.path.dirname(os.path.abspath(__file__)), 'k_paper.gp')).read().strip())\nk = P.subst(P.lift(kpaper) if False else kpaper, 'th', 'x')\nk = P('Mod(%s, %s)' % (k, kfield.B_STR))\n# k(theta) solves the bitangent equations (checked in bitangents.gp); recheck the identity here\nG = lambda X, Y: X**4 - Y**3 + X*Y + X\nu_ = -th**3 / 2; v_ = (th - 3 * th**2 * k - u_**2) / 2\nX = P('xx')\nassert G(X, th * X + k) - (X**2 + u_ * X + v_)**2 == 0\nprint('bitangent identity re-checked')\n\n# ---------------------------------------------------------------- 1. S-units\nP.setrand(1)\nbnf = P.bnfinit(nf, 1)\nS = P.idealprimedec(nf, 2)\nprint('primes above 2 (e,f):', [(int(pr[2]), int(pr[3])) for pr in S])\nsu = P.bnfsunit(bnf, S)\nfu = list(P('(b)->b.fu')(bnf))\nsus = list(su[0])\ngens = [P(-1)] + [P.lift(P.nfbasistoalg(nf, P.nfalgtobasis(nf, u))) for u in fu] + \\\n [P.lift(P.nfbasistoalg(nf, P.nfalgtobasis(nf, u))) for u in sus]\nnames = ['-1'] + ['u%d' % (i + 1) for i in range(len(fu))] + ['pi%d' % (i + 1) for i in range(len(sus))]\nassert len(gens) == 19, len(gens)\nBf = fmpz_poly(kfield.B_COEFFS)\n\n\ndef exact_norm(a):\n \"\"\"N_{K/Q}(a) for a in Q[x]/(B) (a polynomial of degree < 27 or a rational), via FLINT resultant.\"\"\"\n from fractions import Fraction\n a = P.lift(P('Mod(1, %s)' % kfield.B_STR) * a)\n if a.type() != 't_POL':\n return Fraction(int(P.numerator(a)), int(P.denominator(a))) ** 27\n d = int(P.denominator(P.content(a)))\n co = [int(P.polcoef(a * d, j)) for j in range(int(P.poldegree(a)) + 1)]\n return Fraction(int(Bf.resultant(fmpz_poly(co))), d ** 27)\n\n\nfor nm, g in zip(names, gens):\n c = P.nfalgtobasis(nf, g)\n m = 0\n while not all(P.denominator(ci * 2**m) == 1 for ci in c):\n m += 1\n N = exact_norm(g)\n num, den = abs(N.numerator), N.denominator\n pow2 = lambda t: t & (t - 1) == 0\n assert pow2(num) and pow2(den), (nm, N)\n if nm.startswith('u') or nm == '-1':\n assert m == 0 and abs(N) == 1, (nm, m, N)\nprint('19 S-units checked exactly: units integral of norm +-1; S-units with norm +-2^k (after scaling by 2^m)')\n\n# quadratic characters at degree-one primes l = (p, theta - r), p not dividing 2*disc(B)\ndef evalmod(a, r, p):\n a = P.lift(P('Mod(1,%s)' % kfield.B_STR) * a) if a.type() == 't_POL' or True else a\n return int(P.lift(P.Mod(P.subst(a, 'x', r), p))) if a.type() == 't_POL' else int(P.lift(P.Mod(a, p)))\n\n\ndef charvec(a, primes):\n out = []\n for p, r in primes:\n val = evalmod(a, r, p)\n assert val % p != 0\n out.append(0 if pow(val, (p - 1) // 2, p) == 1 else 1)\n return out\n\n\nfrom flint import nmod_poly\nbad = set(kfield.DISC_B_PRIMES)\ncprimes = []\np = 3\nwhile len(cprimes) < 400:\n p = int(P.nextprime(p + 1))\n if p in bad: continue\n for r, mlt in nmod_poly(kfield.B_COEFFS, p).roots():\n cprimes.append((p, int(r)))\ncprimes = cprimes[:400]\nM = P.matrix(19, 400, [x for g in gens for x in charvec(g, cprimes)])\nrk = int(P.matrank(P.Mod(1, 2) * M))\nprint('rank of the 19 x 400 quadratic-character matrix over F_2:', rk, '(primes q <= %d)' % cprimes[-1][0])\nassert rk == 19\n\n# ---------------------------------------------------------------- 2. real signs\nctx.prec = 300\n# rigorous isolating balls of all 27 roots; a ball meeting the real axis contains a real root (the\n# conjugate root lies in the conjugate ball, and the balls are disjoint); polsturm gives 3 real roots\nallr = [z for z, mlt in Bf.complex_roots()]\nassert len(allr) == 27 and int(P.polsturm(P(kfield.B_STR))) == 3\nreals = sorted([z.real for z in allr if z.imag.contains(0)], key=lambda t: float(t.mid()))\nassert len(reals) == 3\n\n\ndef signs(a):\n out = []\n a = P.lift(P('Mod(1,%s)' % kfield.B_STR) * a)\n co = [P.polcoef(a, j) for j in range(27)]\n for t in reals:\n s = arb(0)\n for c in reversed(co):\n s = s * t + arb(int(P.numerator(c))) / int(P.denominator(c))\n assert not s.contains(0)\n out.append(0 if s > 0 else 1)\n return out\n\n\nSG = [signs(g) for g in gens]\nfor g, sv in zip(gens, SG):\n ps = [0 if int(x) == 1 else 1 for x in P.nfeltsign(nf, g)]\n assert ps == sv\nprint('real signs (arb, = PARI nfeltsign) computed')\n\n# ---------------------------------------------------------------- 3. square-class coordinates at v | 2\n# K_v^x/K_v^x2 = x U_v/U_v^2 and U_v/U_v^2 = (O/p^(2e+1))^x / squares (a unit = 1 mod 4 pi is a square).\n# Coordinates: (v(a) mod 2, ideallog(a pi^-v(a)) mod 2 on the even cyclic factors). Cross-checked below\n# against PARI's nfislocalpower on random products.\nlocs = []\nfor pr in S:\n e_, f_ = int(pr[2]), int(pr[3])\n bid = P.idealstar(nf, P.idealpow(nf, pr, 2 * e_ + 1), 1)\n cyc = [int(c) for c in P('(b)->b.cyc')(bid)]\n even = [i for i, c in enumerate(cyc) if c % 2 == 0]\n assert len(even) == 1 + e_ * f_, (cyc, e_, f_)\n pi = P.lift(P.nfbasistoalg(nf, pr[1])) # pr = (2, pi): v_pr(pi) = 1 (checked)\n if int(P.nfeltval(nf, pi, pr)) != 1:\n pi = P.lift(P.nfbasistoalg(nf, P.idealtwoelt(nf, pr)[1] if False else pr[1])) + 2\n assert int(P.nfeltval(nf, pi, pr)) == 1\n locs.append((pr, bid, even, pi))\n print('v | 2 with (e,f)=(%d,%d): (O/p^%d)^x has %d even cyclic factors = 1+[K_v:Q_2]' % (e_, f_, 2 * e_ + 1, len(even)))\n\n\ndef loc2(a):\n out = []\n for pr, bid, even, pi in locs:\n w = int(P.nfeltval(nf, a, pr))\n u = P.lift(P('Mod(1,%s)' % kfield.B_STR) * a * pi ** (-w))\n lg = P.ideallog(nf, u, bid)\n out += [w % 2] + [int(lg[i]) % 2 for i in even]\n return out\n\n\nassert sum(1 + len(ev) for _, _, ev, _ in locs) == 35\n# cross-check against nfislocalpower on random products of the generators\nrandom.seed(5)\nfor trial in range(12):\n sel = [random.randint(0, 1) for _ in range(19)]\n a = P(1)\n for s_, g in zip(sel, gens):\n if s_: a = P.lift(P('Mod(1,%s)' % kfield.B_STR) * a * g)\n vec = loc2(a)\n off = 0\n for pr, bid, even, pi in locs:\n part = vec[off: off + 1 + len(even)]; off += 1 + len(even)\n assert (not any(part)) == bool(int(P.nfislocalpower(nf, pr, a, 2))), 'coordinate check failed'\nprint('square-class coordinates agree with nfislocalpower on 12 random products x 4 primes')\n\n# ---------------------------------------------------------------- 4. local image at 2 from points of C(Q_2)\nPREC = 80\npts = []\nfor x0 in list(range(-40, 41)):\n for yr in P.polrootspadic(P('yy^3 - (%d)*yy - (%d)' % (x0, x0**4 + x0)), 2, PREC):\n Y = int(P.truncate(P.lift(yr))) if yr.type() == 't_PADIC' else None\n if Y is None:\n continue\n pts.append((x0, Y))\nprint('points of C(Q_2) with integer x in [-40,40] found:', len(pts))\nW = []\nused = []\nfor x0, Y in pts:\n a = P.lift(Y - th * x0 - k)\n if a == 0: continue\n # precision: Y = y mod 2^PREC; need v_v(Y - y) - v_v(a) >= 2 e_v + 1 at each v | 2\n ok = all(PREC * int(pr[2]) - int(P.nfeltval(nf, a, pr)) >= 2 * int(pr[2]) + 1 for pr in S)\n assert ok\n vec = loc2(a)\n trial = W + [vec]\n if int(P.matrank(P.Mod(1, 2) * P.matrix(len(trial), 35, [x for r in trial for x in r]))) == len(trial):\n W.append(vec); used.append((x0, Y % 2**60))\n if len(W) == 4:\n break\nprint('local image W_2 spanned by delta_2(P - oo) at P = (x, y mod 2^60):', used, ' dim', len(W))\nassert len(W) == 4\n# consistency: every sampled point (and the four points used in the paper) has its class in W_2\nallpts = pts + [(x0, int(P.truncate(P.lift(yr)))) for x0 in (-24, -23, -21, -19)\n for yr in P.polrootspadic(P('yy^3 - (%d)*yy - (%d)' % (x0, x0**4 + x0)), 2, PREC)]\nrows_all = W + [loc2(P.lift(Y - th * x0 - k)) for x0, Y in allpts]\nassert int(P.matrank(P.Mod(1, 2) * P.matrix(len(rows_all), 35, [x for r in rows_all for x in r]))) == 4\nprint('all %d sampled points of C(Q_2) (incl. the paper\\'s x = -24,-23,-21,-19) have classes in W_2' % len(allpts))\n\n# ---------------------------------------------------------------- 5. the fake Selmer group\nL2 = [loc2(g) for g in gens]\n# unknowns s (19) and t (4): sum s_i L2(g_i) + sum t_j W_j = 0 ; sum s_i SG(g_i) = 0 ; norm square\nfrom fractions import Fraction\ndef v2norm_parity(g):\n N = exact_norm(g)\n e = (N.numerator & -N.numerator).bit_length() - 1 if N.numerator % 2 == 0 else 0\n e -= (N.denominator.bit_length() - 1)\n return e % 2, (0 if N > 0 else 1)\nNP = [v2norm_parity(g) for g in gens]\nrows = []\nfor j in range(35):\n rows.append([L2[i][j] for i in range(19)] + [W[t][j] for t in range(4)])\nfor j in range(3):\n rows.append([SG[i][j] for i in range(19)] + [0] * 4)\nrows.append([NP[i][0] for i in range(19)] + [0] * 4)\nrows.append([NP[i][1] for i in range(19)] + [0] * 4)\nA = P.Mod(1, 2) * P.matrix(len(rows), 23, [x for r in rows for x in r])\nK = P.matker(A)\nsols = set()\nncol = int(P.matsize(K)[1])\nimport itertools\nbasis = [[int(P.lift(K[i, j])) for i in range(23)] for j in range(ncol)]\nfor comb in itertools.product((0, 1), repeat=ncol):\n v = tuple(sum(c * b[i] for c, b in zip(comb, basis)) % 2 for i in range(19))\n sols.add(v)\ndimsel = len(sols).bit_length() - 1\nprint('dim Sel_fake =', dimsel, ' elements:', [[names[i] for i in range(19) if s[i]] for s in sols if any(s)])\nassert len(sols) == 2\n# without the norm condition\nsols2 = set()\nK2 = P.matker(P.Mod(1, 2) * P.matrix(len(rows) - 2, 23, [x for r in rows[:-2] for x in r]))\nb2 = [[int(P.lift(K2[i, j])) for i in range(23)] for j in range(int(P.matsize(K2)[1]))]\nfor comb in itertools.product((0, 1), repeat=len(b2)):\n sols2.add(tuple(sum(c * b[i] for c, b in zip(comb, b2)) % 2 for i in range(19)))\nprint('dim without the norm condition:', len(sols2).bit_length() - 1)\n# with the condition at 2 only (no sign and no norm condition)\nsols3 = set()\nK3 = P.matker(P.Mod(1, 2) * P.matrix(35, 23, [x for r in rows[:35] for x in r]))\nb3 = [[int(P.lift(K3[i, j])) for i in range(23)] for j in range(int(P.matsize(K3)[1]))]\nfor comb in itertools.product((0, 1), repeat=len(b3)):\n sols3.add(tuple(sum(c * b[i] for c, b in zip(comb, b3)) % 2 for i in range(19)))\nprint('dim with the condition at 2 only (no sign, no norm condition):', len(sols3).bit_length() - 1,\n ' elements:', [[names[i] for i in range(19) if s[i]] for s in sols3 if any(s)])\n# identify theta - k(theta) = delta(G_1) in K(2,S) and check it is the nonzero Selmer element\nd1 = P.lift(th - k)\nfa = P.idealfactor(nf, d1)\nodd_outside = [(int(fa[0][i][0]), int(fa[1][i])) for i in range(len(fa[0])) if int(fa[0][i][0]) != 2 and int(fa[1][i]) % 2]\nprint('theta - k(theta): primes outside S with odd valuation:', odd_outside)\nassert not odd_outside\ncpr1 = [(p_, r_) for p_, r_ in cprimes if evalmod(d1, r_, p_) % p_ != 0]\ncv = charvec(d1, cpr1)\nMg = [charvec(g, cpr1) for g in gens]\nassert int(P.matrank(P.Mod(1, 2) * P.matrix(19, len(cpr1), [x for r in Mg for x in r]))) == 19\nxs = P.matsolvemod(P.matrix(len(cpr1), 19, [Mg[i][j] for j in range(len(cpr1)) for i in range(19)]), 2, P.Col(cv))\nxs = [int(v) % 2 for v in xs]\nassert [sum(xs[i] * Mg[i][j] for i in range(19)) % 2 for j in range(len(cpr1))] == cv\nprint('theta - k(theta) == product of', [names[i] for i in range(19) if xs[i]], 'mod squares (characters agree at %d primes)' % len(cpr1))\nassert tuple(xs) in sols and any(xs)\nprint('signs of theta - k(theta):', signs(d1), ' local class in W_2:',\n int(P.matrank(P.Mod(1, 2) * P.matrix(5, 35, [x for r in W + [loc2(d1)] for x in r]))) == 4)\nmk = P.lift(-k)\nprint('delta(T) = -k(theta) is a square in K:', len(P.nfroots(nf, P.varhigher('w')**2 - mk)) > 0)\nprint('SELMER CHECKS PASSED: rank J(Q) <= 1')\n"}, {"path":"v1/anc/code/1.3.8/descent/theta.py","sha256":"9e09f3735570198151d441f30927fd676188a866a32a85d839baa69c050a3617","mode":420,"size":2496,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"J[2] as a submodule of the permutation module on the 27 bitangents other than the hyperflex line.\n\nModel: V = F_2^6 with the Weil pairing e, the odd theta characteristic theta_0 = 2*infinity (hyperflex) and its\nquadratic form q(w) = h^0(theta_0 + w) + h^0(theta_0) mod 2 (Riemann-Mumford), which has Arf invariant 1.\nAll Arf-1 forms on F_2^6 are equivalent, so we may take q = a1 b... (below). The other 27 bitangents are\ntheta_0 + w for the 27 nonzero w with q(w) = 0, and J[2] -> F_2^27, eps -> (e(eps, w))_w.\nChecks: 27 such w; the map is injective; nonzero image vectors have weights 12 (36 of them) and 16 (27);\nthe all-ones vector is not in the image; and with Galois orbits of sizes 2,5,10,10 (B over Q_2) the\ninvariant subspace has dimension <= 1.\n\"\"\"\nfrom itertools import product, combinations\ndef q(a): return (a[0]*a[1] + a[2]*a[3] + a[4]*a[4] + a[4]*a[5] + a[5]*a[5]) % 2\ndef e(a, b): return (q([(x + y) % 2 for x, y in zip(a, b)]) + q(a) + q(b)) % 2\nV = list(product((0, 1), repeat=6))\nzeros = [w for w in V if q(w) == 0]\nZ = [w for w in zeros if any(w)]\nprint('zeros of q:', len(zeros), '(Arf invariant 1 <=> 28); nonzero singular vectors:', len(Z))\nassert len(zeros) == 28 and len(Z) == 27\n# e is the symplectic polar form\nassert all(e(a, a) == 0 for a in V)\nimg = {v: tuple(e(v, w) for w in Z) for v in V}\nassert len(set(img.values())) == 64, 'not injective'\nwts = {}\nfor v in V:\n if any(v): wts[sum(img[v])] = wts.get(sum(img[v]), 0) + 1\nprint('weights of nonzero image vectors:', dict(sorted(wts.items())))\nassert wts == {12: 36, 16: 27}\nassert tuple([1] * 27) not in set(img.values())\n# the sum of the 27 vectors w is 0 (equivalently, the all-ones vector is orthogonal to... )\ns = [sum(w[i] for w in Z) % 2 for i in range(6)]\nprint('sum of the 27 singular vectors:', s)\nassert s == [0] * 6\n# J(Q_2)[2]: invariant vectors are constant on orbits of sizes 2,5,10,10 -> weight in subset sums\nsizes = [2, 5, 10, 10]\nsums = sorted(set(sum(c) for r in range(5) for c in combinations(sizes, r)))\nprint('possible weights of orbit unions:', sums, '; intersection with {12,16}:', [w for w in sums if w in (12, 16)])\nunions12 = [c for r in range(5) for c in combinations(range(4), r) if sum(sizes[i] for i in c) == 12]\nprint('unions of weight 12:', [[sizes[i] for i in c] for c in unions12],\n '-> their sum has weight', sum(sizes[i] for i in set(unions12[0]) ^ set(unions12[1])), 'not in {12,16}: dim J(Q_2)[2] <= 1')\nprint('THETA MODEL CHECKS PASSED')\n"}, {"path":"v1/anc/code/1.3.8/field/expected/field.out","sha256":"3b4b187b3badd440275a2a51cf7577fa8bf66e9990a69ebee81b940904733488","mode":420,"size":934,"encoding":"utf-8","text":"\u001b[0;31m *** Warning: new stack size = 2000000000 (1907.349 Mbytes).\u001b[0m\nirreducible: 1\nisprime(big) [1, 1, 1, 1, 1, 1]\ndisc(B) = [2, 318; 11, 6; 41, 2; 198839, 2; 652081, 6; 17743299257028546229859, 2]\nnfcertify: [] (0.082000000000000000000000000000000000000 s)\nd_K = [2, 34; 11, 6; 652081, 6] sign = [3, 12] index = [2, 142; 41, 1; 198839, 1; 17743299257028546229859, 1]\nprimes above 2 (e,f): [[2, 1], [10, 1], [5, 1], [5, 2]]\nprimes above 11: [[2, 1], [2, 5], [1, 5], [1, 5], [1, 5]]\nprimes above 652081: [[2, 1], [1, 5], [2, 5], [1, 5], [1, 5]]\nlog rd = 4.3808118582872716106685148858153892399 rd = 79.902876892443592223822549791803191368\npolredbest (0.066000000000000000000000000000000000000 s): x^27 - x^25 - 18*x^24 + 8*x^22 + 144*x^21 - 4*x^20 - 12*x^19 - 672*x^18 + 12*x^17 - 80*x^16 + 2012*x^15 + 16*x^14 + 400*x^13 - 4032*x^12 - 64*x^11 - 768*x^10 + 5376*x^9 + 704*x^7 - 4608*x^6 + 64*x^5 - 256*x^4 + 2304*x^3 - 512\n"}, {"path":"v1/anc/code/1.3.8/field/field.gp","sha256":"10101dc9b124bcecc3f0f2c0c346486bd2df68088046f052839a94b7bf3cb632","mode":420,"size":1076,"encoding":"utf-8","text":"\\\\ T6-3: bitangent polynomial, field K, maximal order (unconditional), primes above 2\ndefault(parisize, 2*10^9); default(factor_proven, 1);\nB = m^27 - 48*m^22 + 1344*m^18 + 144*m^17 - 3264*m^13 + 832*m^12 - 40704*m^9 - 4608*m^8 - 2560*m^7 - 39936*m^4 - 15360*m^3 - 1024*m^2 + 4096;\nB = subst(B, m, x);\nprint(\"irreducible: \", polisirreducible(B));\ndB = poldisc(B); fa = factor(dB); print(\"isprime(big) \", apply(isprime, fa[,1]~)); print(\"disc(B) = \", fa);\nt0 = getabstime();\nnf = nfinit([B, fa[,1]~]);\nprint(\"nfcertify: \", nfcertify(nf), \" (\", (getabstime()-t0)/1000., \" s)\");\nprint(\"d_K = \", factor(nf.disc), \" sign = \", nf.sign, \" index = \", factor(nf.index));\nprint(\"primes above 2 (e,f): \", apply(P->[P.e,P.f], idealprimedec(nf,2)));\nprint(\"primes above 11: \", apply(P->[P.e,P.f], idealprimedec(nf,11)));\nprint(\"primes above 652081: \", apply(P->[P.e,P.f], idealprimedec(nf,652081)));\nprint(\"log rd = \", log(abs(nf.disc))/27., \" rd = \", abs(nf.disc)^(1/27.));\nt0 = getabstime(); R = polredbest(B, 1); print(\"polredbest (\", (getabstime()-t0)/1000., \" s): \", R[1]);\nquit\n"}, {"path":"v1/anc/code/1.4.1/1.4.1a_fields.py","sha256":"4debcf7e28a6305a96ddc571cbdd2d45b060e499fa0dca48abdce62a1fecd9fb","mode":420,"size":4636,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.1a: the fields K = Q(s), s^2 = -23, and L = K(a), h(a) = a^3 - a + 1 = 0, and the\nautomorphism tau of Lemma lem:1.4.1-field. Standard library only.\n\nChecks:\n (1) h has no rational root (so it is irreducible over Q and over K), disc h = -23;\n (2) tau(a) = -(23a + s(6a^2+9a-4))/46 is a root of h in L, tau(a) != a, tau^2(a) := P_s(P_s(a))\n equals P_{-s}(a) (= tau(a) with s replaced by -s), tau^3(a) = a, a + tau(a) + tau^2(a) = 0;\n (3) splitting data: Legendre symbol (-23/p) and the roots of h mod p for the primes used;\n (4) at 23: h = (T-20)(T-13)^2 mod 23 and the value 3 = (20-13)^2 mod 23 is a unit;\n (5) at 3: in F_27 = F_3[T]/(h), P_2(T) = T^3 and P_{-2}(T) = P_1(T) = T^9 (Frobenius at w+ and w-);\n (6) the p-adic square roots of -23 modulo the moduli used in codes 1.4.1c-e;\n (7) (consistency only) for all p < 2000 with (-23/p) = 1, h mod p has 0 or 3 roots, and for\n (-23/p) = -1 exactly one root.\n\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parent))\nfrom common141 import L, A, S, ONE, ZERO, TAU_A, TAU2_A, subst_as, tau_poly, legendre\n\n\ndef h(x):\n return x * x * x - x + 1\n\n\ndef main():\n # (1)\n assert h(1) != 0 and h(-1) != 0\n disc = -4 * (-1) ** 3 - 27 * 1 ** 2\n assert disc == -23\n print('h = T^3 - T + 1: no rational root (+-1), disc h =', disc)\n\n # (2)\n assert h(TAU_A).iszero() and TAU_A != A\n assert TAU2_A == TAU_A.conj_s()\n tau3 = subst_as(TAU_A, TAU2_A, S)\n assert tau3 == A\n assert (A + TAU_A + TAU2_A).iszero()\n assert h(TAU2_A).iszero()\n print('tau(a) =', TAU_A)\n print('tau^2(a) =', TAU2_A, ' (= tau(a) with s -> -s)')\n print('PASS: tau(a) is a root of h, tau(a) != a, tau^2(a) = P_{-s}(a), tau^3(a) = a')\n\n # (3)\n for p in (2, 3, 7, 23, 29, 31, 59, 337, 9013):\n roots = [r for r in range(p) if h(r) % p == 0]\n if p == 2:\n lg = 1 if (-23) % 8 == 1 else -1 # -23 = 1 mod 8: 2 splits in K\n else:\n lg = legendre(-23, p)\n kind = {1: 'split', -1: 'inert', 0: 'ramified'}[lg]\n print('p = %4d: %-8s in K; roots of h mod p: %s' % (p, kind, roots))\n assert [r for r in range(2) if h(r) % 2 == 0] == [] and (-23) % 8 == 1\n for p in (3, 29, 31):\n assert legendre(-23, p) == 1 and all(h(r) % p for r in range(p))\n assert legendre(-23, 59) == 1 and [r for r in range(59) if h(r) % 59 == 0] == [17, 46, 55]\n for p in (7, 337, 9013):\n assert legendre(-23, p) == -1\n\n # (4)\n for T in range(23):\n assert h(T) % 23 == ((T - 20) * (T - 13) ** 2) % 23\n assert (20 - 13) ** 2 % 23 == 3\n print('mod 23: h = (T-20)(T-13)^2, and (20-13)^2 = 3 is a unit')\n\n # (5) F_27 = F_3[T]/(h): elements as lists of length 3\n def mul(u, v):\n r = [0] * 5\n for i in range(3):\n for j in range(3):\n r[i + j] += u[i] * v[j]\n r[2] += r[4]; r[1] -= r[4]; r[1] += r[3]; r[0] -= r[3]\n return [c % 3 for c in r[:3]]\n\n def pw(u, n):\n r = [1, 0, 0]\n for _ in range(n):\n r = mul(r, u)\n return r\n T = [0, 1, 0]\n inv46 = pow(46, -1, 3)\n for sig, name, expect in ((2, 'w+', pw(T, 3)), (1, 'w-', pw(T, 9))):\n img = [(4 * sig * inv46) % 3, (-(23 + 9 * sig) * inv46) % 3, (-6 * sig * inv46) % 3]\n assert img == expect\n print('at %s (s = %d mod 3): tau(T) = %s = T^%d in F_27' % (name, sig, img, 3 if sig == 2 else 9))\n print('PASS: Frob(w+) = tau, Frob(w-) = tau^2')\n\n # (6)\n def roots_mod(n, lift):\n rs = sorted({s % n for s in range(n * lift) if (s * s + 23) % (n * lift) == 0})\n return rs\n print('roots of s^2 = -23 that lift: mod 27', roots_mod(27, 3), ' mod 81', roots_mod(81, 3),\n ' mod 32', roots_mod(32, 4), ' mod 64', roots_mod(64, 4), ' mod 31', roots_mod(31, 31),\n ' mod 59', roots_mod(59, 59))\n assert roots_mod(27, 3) == [2, 25] and roots_mod(32, 4) == [13, 19] and roots_mod(31, 31) == [15, 16]\n\n # (7)\n def primes(n):\n sv = [True] * n\n sv[0] = sv[1] = False\n for i in range(2, n):\n if sv[i]:\n for j in range(i * i, n, i):\n sv[j] = False\n return [i for i in range(n) if sv[i]]\n for p in primes(2000):\n if p in (2, 23):\n continue\n k = len([r for r in range(p) if h(r) % p == 0])\n assert (k in (0, 3)) if legendre(-23, p) == 1 else (k == 1)\n print('consistency: for 3 <= p < 2000, p != 23, h mod p has 0 or 3 roots if (-23/p) = 1, one root if -1')\n print('PASS 1.4.1a')\n\n\nif __name__ == '__main__':\n main()\n"}, {"path":"v1/anc/code/1.4.1/1.4.1b_curve.py","sha256":"b7656c97b0e7832d399129243bc654e9869960b20783530dae7964873f9c8482","mode":420,"size":8784,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.1b: the twisted cubic C on S_L and the divisor of G (Lemma lem:1.4.1-curve).\nStandard library only. Input: data/cubic_a_quadrics.json (the coefficient tables of the three\nquadrics q0, q1, q2 printed in Appendix A of the source; read here as data and checked).\n\nChecks:\n (1) every monomial of q0 and q1 is divisible by x or y; on the plane (x, y) = (lam w, mu w),\n q_k = w * (A_k w + B_k z + C_k t) (k = 0, 1); (W, Z, T) = cross product of (A_0, B_0, C_0) and\n (A_1, B_1, C_1) has degrees (2, 3, 3); phi(lam:mu) = (lam W : mu W : Z : T);\n (2) phi^* q_k = 0 (k = 0, 1, 2), phi^* F = 0, phi^* G = 0 (identities in L[lam, mu]);\n (3) the four binary cubics lam W, mu W, Z, T are linearly independent (4x4 determinant != 0);\n (4) for j = 1, 2 and k = 0, 1, 2 the binary form q_k(tau^j phi) is not 0, so tau^j C is not\n contained in the quadric q_k = 0, while C is: C, tau C, tau^2 C are pairwise distinct;\n (5) C meets the line x = y = 0 exactly in P0 = (0:0:a:1) and P1 = (0:0:tau(a):1):\n Res(W, Z - a T) = Res(W, Z - tau(a) T) = 0, Res(W, Z - tau^2(a) T) != 0, Res(W, T) != 0;\n the values of q0, q1, q2 at P0, P1, P2 (P2 = (0:0:tau^2(a):1); q2(P2) as in the source);\n (6) the coefficient of x^3 is 1 in F and 0 in G; the coefficient of x y^2 in G is 288;\n (7) cross-checks of statements of the source that the proof does not use: the grevlex leading\n monomials x^2, xy, y^2 of q0, q1, q2 - c q1; the reductions of q0, q1, q2 at the prime above 59\n with a = 17, s = 6; phi mod that prime is again a twisted cubic on the reduced quadrics.\n\"\"\"\nimport json\nimport sys\nfrom fractions import Fraction as Fr\nfrom pathlib import Path\nHERE = Path(__file__).resolve().parent\nsys.path.insert(0, str(HERE))\nfrom common141 import (L, A, S, ZERO, ONE, TAU_A, TAU2_A, tau_j, padd, psub, pmul, pmapc, peval,\n psubst, F_L, G_L, G_INT, F_INT)\n\nMON = {'x^2': (2, 0, 0, 0), 'xy': (1, 1, 0, 0), 'xz': (1, 0, 1, 0), 'xt': (1, 0, 0, 1),\n 'y^2': (0, 2, 0, 0), 'yz': (0, 1, 1, 0), 'yt': (0, 1, 0, 1), 'z^2': (0, 0, 2, 0),\n 'zt': (0, 0, 1, 1), 't^2': (0, 0, 0, 2)}\n\n\ndef load_quadrics():\n data = json.loads((HERE / 'data' / 'cubic_a_quadrics.json').read_text())\n qs = []\n for row in data:\n d = row['denominator']\n qs.append({MON[k]: L(tuple(Fr(c, d) for c in cs)) for k, cs in row['coefficients'].items()})\n return qs\n\n\ndef bin_coeffs(p, d):\n return [p.get((d - j, j), ZERO) for j in range(d + 1)]\n\n\ndef det(m):\n n = len(m)\n if n == 1:\n return m[0][0]\n r = ZERO\n for j in range(n):\n if m[0][j].iszero():\n continue\n term = m[0][j] * det([row[:j] + row[j + 1:] for row in m[1:]])\n r = r + term if j % 2 == 0 else r - term\n return r\n\n\ndef resultant(f, g):\n \"\"\"resultant of binary forms given by coefficient lists (lam^d ... mu^d), Sylvester determinant\"\"\"\n m, n = len(f) - 1, len(g) - 1\n rows = [[ZERO] * i + f + [ZERO] * (n - 1 - i) for i in range(n)]\n rows += [[ZERO] * i + g + [ZERO] * (m - 1 - i) for i in range(m)]\n return det(rows)\n\n\ndef main():\n q = load_quadrics()\n # (1)\n for k in (0, 1):\n assert all(m[0] + m[1] >= 1 for m in q[k])\n parts = []\n for k in (0, 1):\n cw, cz, ct = {}, {}, {}\n for (ex, ey, ez, et), c in q[k].items():\n tgt = {(1, 0, 0): cw, (0, 1, 0): cz, (0, 0, 1): ct}[(ex + ey - 1, ez, et)]\n tgt[(ex, ey)] = tgt.get((ex, ey), ZERO) + c\n parts.append((cw, cz, ct))\n (a0, b0, c0), (a1, b1, c1) = parts\n W = psub(pmul(b0, c1), pmul(c0, b1))\n Z = psub(pmul(c0, a1), pmul(a0, c1))\n T = psub(pmul(a0, b1), pmul(b0, a1))\n assert {sum(m) for m in W} == {2} and {sum(m) for m in Z} == {3} and {sum(m) for m in T} == {3}\n X = pmul({(1, 0): ONE}, W)\n Y = pmul({(0, 1): ONE}, W)\n phi = [X, Y, Z, T]\n print('W =', ' ; '.join('[%s] %s' % (m, c) for m, c in sorted(W.items(), reverse=True)))\n print('Z =', ' ; '.join('[%s] %s' % (m, c) for m, c in sorted(Z.items(), reverse=True)))\n print('T =', ' ; '.join('[%s] %s' % (m, c) for m, c in sorted(T.items(), reverse=True)))\n\n # (2)\n for k in range(3):\n assert psubst(q[k], phi, 2) == {}\n assert psubst(F_L, phi, 2) == {} and psubst(G_L, phi, 2) == {}\n print('PASS: phi^*q0 = phi^*q1 = phi^*q2 = 0, phi^*F = 0, phi^*G = 0')\n\n # (3)\n d = det([bin_coeffs(c, 3) for c in phi])\n assert not d.iszero()\n print('PASS: det of the coefficients of lam W, mu W, Z, T is nonzero:', d)\n\n # (4)\n for j in (1, 2):\n phij = [pmapc(c, lambda e, j=j: tau_j(e, j)) for c in phi]\n for k in range(3):\n assert psubst(q[k], phij, 2) != {}\n print('PASS: q_k(tau^j phi) != 0 for j = 1, 2 and k = 0, 1, 2; C, tau C, tau^2 C pairwise distinct')\n\n # (5)\n w2 = bin_coeffs(W, 2)\n zc, tc = bin_coeffs(Z, 3), bin_coeffs(T, 3)\n res = []\n for r in (A, TAU_A, TAU2_A):\n res.append(resultant(w2, [u - r * v for u, v in zip(zc, tc)]).iszero())\n assert res == [True, True, False]\n assert not resultant(w2, tc).iszero()\n print('PASS: C meets x = y = 0 exactly in P0 = (0:0:a:1) and P1 = (0:0:tau(a):1)')\n vals = []\n for r in (A, TAU_A, TAU2_A):\n vals.append([peval(qk, (ZERO, ZERO, r, ONE), ZERO) for qk in q])\n assert all(v.iszero() for v in vals[0] + vals[1]) and vals[2][0].iszero() and vals[2][1].iszero()\n expect = A + 3 + S * (-6 * A * A + 4 - 9 * A) / 23\n assert vals[2][2] == expect and not expect.iszero()\n print('source cross-check: q_k(P0) = q_k(P1) = 0; q0(P2) = q1(P2) = 0, q2(P2) =', vals[2][2])\n\n # (6)\n assert F_INT[(3, 0, 0, 0)] == 1 and (3, 0, 0, 0) not in G_INT and G_INT[(1, 2, 0, 0)] == (288, 0)\n print('PASS: coefficient of x^3: 1 in F, 0 in G; coefficient of x y^2 in G: 288')\n\n # (7) cross-checks\n def grevlex_key(m): # larger key = larger monomial, degree 2 in (x,y,z,t)\n return (sum(m), tuple(-e for e in reversed(m)))\n lm = [max(qk, key=grevlex_key) for qk in q]\n c = q[2][(1, 1, 0, 0)] / q[1][(1, 1, 0, 0)]\n q2p = psub(q[2], pmapc(q[1], lambda e: e * c))\n lm[2] = max(q2p, key=grevlex_key)\n assert lm == [(2, 0, 0, 0), (1, 1, 0, 0), (0, 2, 0, 0)]\n print('source cross-check: grevlex leading monomials of q0, q1, q2 - c q1:', lm)\n p, ar, sr = 59, 17, 6\n assert (ar ** 3 - ar + 1) % p == 0 and (sr * sr + 23) % p == 0\n\n def red(e):\n tot = 0\n for cc, b in zip(e.c, (1, ar, ar * ar, sr, sr * ar, sr * ar * ar)):\n assert cc.denominator % p\n tot += cc.numerator * pow(cc.denominator, -1, p) * b\n return tot % p\n shown = [\n {(2, 0, 0, 0): 1, (1, 1, 0, 0): 47, (1, 0, 1, 0): 28, (1, 0, 0, 1): 5, (0, 2, 0, 0): 11, (0, 1, 1, 0): 14},\n {(1, 1, 0, 0): 21, (1, 0, 1, 0): 3, (1, 0, 0, 1): 13, (0, 2, 0, 0): 2, (0, 1, 1, 0): 27, (0, 1, 0, 1): 1},\n {(1, 1, 0, 0): 43, (1, 0, 1, 0): 57, (1, 0, 0, 1): 35, (0, 2, 0, 0): 7, (0, 1, 1, 0): 15,\n (0, 0, 2, 0): 13, (0, 0, 1, 1): 8, (0, 0, 0, 2): 1}]\n qbar = [{m: red(e) for m, e in qk.items() if red(e)} for qk in q]\n assert qbar == shown\n phibar = [{m: red(e) for m, e in cc.items() if red(e)} for cc in phi]\n\n def pmul_p(u, v):\n r = {}\n for m1, c1 in u.items():\n for m2, c2 in v.items():\n m = tuple(x + y for x, y in zip(m1, m2))\n r[m] = (r.get(m, 0) + c1 * c2) % p\n return {m: cc for m, cc in r.items() if cc}\n\n def subst_p(poly):\n tot = {}\n for m, cc in poly.items():\n t = {(0, 0): cc}\n for img, e in zip(phibar, m):\n for _ in range(e):\n t = pmul_p(t, img)\n for mm, v in t.items():\n tot[mm] = (tot.get(mm, 0) + v) % p\n return {m: v for m, v in tot.items() if v}\n assert all(subst_p(qb) == {} for qb in qbar)\n mat = [[cc.get((3 - j, j), 0) for j in range(4)] for cc in phibar]\n\n def det_p(m):\n m = [r[:] for r in m]\n n, dd = len(m), 1\n for i in range(n):\n piv = next((r for r in range(i, n) if m[r][i] % p), None)\n if piv is None:\n return 0\n if piv != i:\n m[i], m[piv] = m[piv], m[i]\n dd = -dd\n dd = dd * m[i][i] % p\n inv = pow(m[i][i], -1, p)\n for r in range(i + 1, n):\n f = m[r][i] * inv % p\n m[r] = [(x - f * y) % p for x, y in zip(m[r], m[i])]\n return dd % p\n assert det_p(mat) != 0\n print('source cross-check: q0, q1, q2 at (a, s) = (17, 6) mod 59 are the displayed quadrics;'\n ' phi mod 59 is a twisted cubic on them (det = %d mod 59)' % det_p(mat))\n print('PASS 1.4.1b')\n\n\nif __name__ == '__main__':\n main()\n"}, {"path":"v1/anc/code/1.4.1/1.4.1c_bad_primes.py","sha256":"ad184380d7a40607f7cfe10a2a5e58f80775d08ee43f554280252a8504b415e9","mode":420,"size":6410,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.1c: reduction of S modulo primes (Lemma lem:1.4.1-bad). Standard library only.\n\nChecks:\n (1) Macaulay matrices of the four partial derivatives of F in degree 5 (56 x 56): the column of a\n monomial m is the coefficient vector of (m / x_i^2) * dF/dx_i, i the first variable in the given\n order with x_i^2 | m. Determinants (Bareiss) for the orders (x,y,z,t) and (x,y,t,z), their\n factorizations and their gcd 2^6 3^17 23 31 59^2 9013^2;\n (2) the F_p-rank of the degree-5 map (g, g_1..g_4) -> g F + sum g_i dF/dx_i (g of degree 2, g_i of\n degree 3) for p = 2, 3, 23, 29, 31, 59, 9013: 56 (= all quintics) for p = 3, 29; 55 for\n p = 23, 31, 59, 9013; 50 for p = 2;\n (3) explicit singular points: modulo 23, 31, 59, 9013 an F_p-point where F and all partials vanish\n (for 31: P31 = (1:23:28:12)); modulo 2 the three points (1 : r^3 + r : r^5 : r) over F_8,\n r^3 + r^2 + 1 = 0;\n (4) G(P31) at s = 15 and s = 16 (the two square roots of -23 modulo 31) is 6 and 16 modulo 31;\n (5) (consistency) P31 is the only F_31-point of P^3 where F and its partials vanish.\n\"\"\"\nimport itertools\nimport math\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parent))\nfrom common141 import F_INT, F_val, F_grad, G_val, pdiff, factorint, fmt_factor\n\nPARTS = [pdiff(F_INT, i) for i in range(4)]\n\n\ndef monomials(d):\n return sorted((m for m in itertools.product(range(d + 1), repeat=4) if sum(m) == d), reverse=True)\n\n\ndef macaulay_det(order):\n mons = monomials(5)\n idx = {m: k for k, m in enumerate(mons)}\n cols = []\n for m in mons:\n i = next(i for i in order if m[i] >= 2)\n mult = list(m)\n mult[i] -= 2\n col = [0] * len(mons)\n for e, c in PARTS[i].items():\n col[idx[tuple(a + b for a, b in zip(mult, e))]] += c\n cols.append(col)\n mat = [[cols[j][i] for j in range(len(mons))] for i in range(len(mons))]\n # fraction-free Gaussian elimination (Bareiss)\n n, sign, prev = len(mat), 1, 1\n for k in range(n - 1):\n if mat[k][k] == 0:\n sw = next((r for r in range(k + 1, n) if mat[r][k]), None)\n if sw is None:\n return 0\n mat[k], mat[sw] = mat[sw], mat[k]\n sign = -sign\n for i in range(k + 1, n):\n for j in range(k + 1, n):\n mat[i][j] = (mat[i][j] * mat[k][k] - mat[i][k] * mat[k][j]) // prev\n prev = mat[k][k]\n return sign * mat[n - 1][n - 1]\n\n\ndef rank_mod(rows, p):\n rows = [[v % p for v in r] for r in rows]\n rk = 0\n for c in range(len(rows[0])):\n piv = next((i for i in range(rk, len(rows)) if rows[i][c]), None)\n if piv is None:\n continue\n rows[rk], rows[piv] = rows[piv], rows[rk]\n inv = pow(rows[rk][c], -1, p)\n rows[rk] = [v * inv % p for v in rows[rk]]\n for i in range(len(rows)):\n if i != rk and rows[i][c]:\n f = rows[i][c]\n rows[i] = [(u - f * v) % p for u, v in zip(rows[i], rows[rk])]\n rk += 1\n return rk\n\n\ndef degree5_rows():\n mons = monomials(5)\n idx = {m: k for k, m in enumerate(mons)}\n rows = []\n for g, dg in [(F_INT, 3)] + [(q, 2) for q in PARTS]:\n for m in monomials(5 - dg):\n r = [0] * len(mons)\n for e, c in g.items():\n r[idx[tuple(a + b for a, b in zip(m, e))]] += c\n rows.append(r)\n return rows, len(mons)\n\n\n# arithmetic in F_8 = F_2[r]/(r^3 + r^2 + 1), elements as 3-bit integers (bit i = coefficient of r^i)\ndef f8_mul(u, v):\n r = 0\n for i in range(3):\n if (v >> i) & 1:\n r ^= u << i\n for i in (4, 3):\n if (r >> i) & 1:\n r ^= 0b1101 << (i - 3)\n return r\n\n\ndef f8_pow(u, n):\n r = 1\n for _ in range(n):\n r = f8_mul(r, u)\n return r\n\n\ndef f8_eval(poly, pt):\n tot = 0\n for m, c in poly.items():\n if c % 2 == 0:\n continue\n t = 1\n for v, e in zip(pt, m):\n t = f8_mul(t, f8_pow(v, e))\n tot ^= t\n return tot\n\n\ndef main():\n d1 = macaulay_det((0, 1, 2, 3))\n d2 = macaulay_det((0, 1, 3, 2))\n g = math.gcd(d1, d2)\n print('det M1 (order x,y,z,t) = %d = %s%s' % (d1, '-' if d1 < 0 else '', fmt_factor(factorint(d1))))\n print('det M2 (order x,y,t,z) = %d = %s%s' % (d2, '-' if d2 < 0 else '', fmt_factor(factorint(d2))))\n print('gcd = %s' % fmt_factor(factorint(g)))\n assert factorint(d1) == {2: 6, 3: 17, 7: 1, 23: 1, 29: 1, 31: 1, 59: 2, 337: 1, 9013: 2}\n assert factorint(d2) == {2: 6, 3: 19, 23: 1, 31: 1, 59: 3, 73: 1, 9013: 2}\n assert factorint(g) == {2: 6, 3: 17, 23: 1, 31: 1, 59: 2, 9013: 2}\n\n rows, n5 = degree5_rows()\n ranks = {p: rank_mod(rows, p) for p in (2, 3, 23, 29, 31, 59, 9013)}\n print('degree-5 map (F, partials): %d x %d; ranks mod p:' % (len(rows), n5), ranks)\n assert ranks == {2: 50, 3: 56, 23: 55, 29: 56, 31: 55, 59: 55, 9013: 55}\n\n sing = {23: (1, 18, 3, 10), 31: (1, 23, 28, 12), 59: (1, 47, 12, 14), 9013: (1, 7636, 7996, 3944)}\n for p, pt in sing.items():\n assert F_val(*pt) % p == 0 and all(c % p == 0 for c in F_grad(*pt))\n print('singular F_p-points (F and all partials vanish):', sing)\n grads = [pdiff(F_INT, i) for i in range(4)]\n roots = [r for r in range(8) if f8_mul(f8_mul(r, r), r) ^ f8_mul(r, r) ^ 1 == 0]\n assert len(roots) == 3\n for r in roots:\n pt = (1, f8_pow(r, 3) ^ r, f8_pow(r, 5), r)\n assert f8_eval(F_INT, pt) == 0 and all(f8_eval(gr, pt) == 0 for gr in grads)\n print('mod 2: F and all partials vanish at (1 : r^3 + r : r^5 : r) for the 3 roots r of r^3+r^2+1 in F_8')\n\n v15, v16 = G_val((1, 23, 28, 12), 15) % 31, G_val((1, 23, 28, 12), 16) % 31\n assert ((15 * 15 + 23) % 31, (16 * 16 + 23) % 31) == (0, 0) and (v15, v16) == (6, 16)\n print('G(P31) mod 31 at s = 15, 16:', v15, v16)\n\n p = 31\n found = []\n for pt in itertools.product(range(p), repeat=4):\n first = next((c for c in pt if c), None)\n if first != 1:\n continue # one representative per projective point\n if F_val(*pt) % p == 0 and all(c % p == 0 for c in F_grad(*pt)):\n found.append(pt)\n assert found == [(1, 23, 28, 12)]\n print('consistency: singular F_31-points of S mod 31:', found)\n print('PASS 1.4.1c')\n\n\nif __name__ == '__main__':\n main()\n"}, {"path":"v1/anc/code/1.4.1/1.4.1f_local_points.py","sha256":"768df0eabdbd31cd49f4eaca2cc7c5dc4dd09b33f10146c9e2553254d0fb14e6","mode":420,"size":2069,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.1f: S has points over R and over every Q_p (Remark rem:1.4.1-adelic). Standard library.\n\nChecks:\n (1) at p = 2, 23, 31, 59, 9013 (the primes of bad reduction) the points of the source are zeros of\n F mod p at which some partial derivative is nonzero mod p (so they lift to Z_p by Hensel);\n (2) at p = 3 (good reduction, code 1.4.1c): S mod 3 has 7 points, and (1:0:0:1) is one of them\n with a nonzero partial derivative mod 3;\n (3) a real point: F(1,0,0,t) = t^3 + t^2 + 1 changes sign on [-2, -1];\n (4) (cross-check of the source) the 3-adic points with x = 0 exist: F(0,1,z,0) = z^3 + z + 1 has the\n simple root z = 1 mod 3.\nAt the other primes the reduction is a smooth cubic surface (code 1.4.1c), which has an F_p-point by\nthe Chevalley-Warning theorem; it lifts by Hensel's lemma.\n\"\"\"\nimport itertools\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parent))\nfrom common141 import F_val, F_grad\n\n\ndef main():\n pts = {2: (1, 0, 1, 1), 23: (1, 0, 0, 6), 31: (1, 0, 0, 20), 59: (1, 0, 1, 10), 9013: (1, 0, 0, 8363)}\n for p, pt in pts.items():\n assert F_val(*pt) % p == 0 and any(c % p for c in F_grad(*pt))\n print('p = %4d: %s, F = 0, gradient mod p = %s' % (p, pt, tuple(c % p for c in F_grad(*pt))))\n proj3 = [pt for pt in itertools.product(range(3), repeat=4)\n if next((c for c in pt if c), None) == 1 and F_val(*pt) % 3 == 0]\n assert len(proj3) == 7 and (1, 0, 0, 1) in proj3 and any(c % 3 for c in F_grad(1, 0, 0, 1))\n print('p = 3: %d points of S mod 3: %s; (1,0,0,1) has gradient %s mod 3'\n % (len(proj3), proj3, tuple(c % 3 for c in F_grad(1, 0, 0, 1))))\n assert F_val(1, 0, 0, -2) < 0 < F_val(1, 0, 0, -1)\n print('real point: F(1,0,0,-2) = %d < 0 < F(1,0,0,-1) = %d' % (F_val(1, 0, 0, -2), F_val(1, 0, 0, -1)))\n assert F_val(0, 1, 1, 0) % 3 == 0 and (3 * 1 + 1) % 3 != 0\n print('x = 0: F(0,1,z,0) = z^3 + z + 1, z = 1 is a simple root mod 3')\n print('PASS 1.4.1f')\n\n\nif __name__ == '__main__':\n main()\n"}, {"path":"v1/anc/code/1.4.1/README.md","sha256":"9dae3b349760abf1063b2540c43b720f048ded188debc23e7f57c53b4670e63f","mode":420,"size":6759,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Code for section 1.4.1: x^3+2x^2y+y^3+y^2z+xz^2+z^3+t^2x-t^2y-t^2z+tyz+t^3 = 0\n\nOnly the zero solution (the cubic surface S: F = 0 has no rational point), by an order-3 Brauer-Manin\nobstruction. Notation of the section: K = Q(s), s^2 = -23; h(T) = T^3 - T + 1; L = K(a), h(a) = 0;\ntau(a) = -(23a + s(6a^2+9a-4))/46; G = G0 + s*G1 the cubic form of the section (coefficient 288 at x y^2);\nfor a place w of K above a split prime p, sigma_w is the image of s in Z_p and G^(w) = G0 + sigma_w G1;\nw+ and w- are the places above 3 with sigma = 2 and sigma = -2 mod 27.\n\nThe fixed input `data/cubic_a_quadrics.json` contains the coefficient tables of\nq0, q1 and q2 over L used in the paper (SHA-256\n`4068055166c54e52e52c77b66286d557748e76113e8d26adf164617b03a0d128`).\nCertificate `1.4.1b_curve.py` reads these tables and checks the identities derived\nfrom them by exact arithmetic. No external working notes are required.\n\n## Requirements\n\nPython 3.10 or later, standard library only (no SymPy, PARI, Sage, Magma), and a C compiler (`cc`, or set\n`CC`) for `local_residues.c` (C library only). The Python scripts import `common141.py` from their own folder\nthemselves, so they run from any directory and under `python3 -I`. Do not use `python -O` (the checks are\n`assert`s; `local_residues` returns a nonzero exit status on failure).\n\n## Run\n\n`python3 run_all.py` runs every code id (about 2 seconds in total), compiles `local_residues.c` into a\ntemporary directory, and compares each output with `expected/.txt`; `python3 run_all.py 1.4.1c` runs\none id; `python3 run_all.py --write` regenerates `expected/`. The files in `expected/` were produced on\n17 October 2026 with Python 3.11.15 and GCC 13.3.0 (`python3 -I run_all.py --write`) and then checked again\n(all identical).\n\n| id | file | what it computes | command | time |\n|---|---|---|---|---|\n| 1.4.1a | `1.4.1a_fields.py` | field facts of Lemma lem:1.4.1-field | `python3 -I -B 1.4.1a_fields.py` | < 1 s |\n| 1.4.1b | `1.4.1b_curve.py`, `data/cubic_a_quadrics.json` | the twisted cubic C and div_S(G) (Lemma lem:1.4.1-curve) | `python3 -I -B 1.4.1b_curve.py` | < 1 s |\n| 1.4.1c | `1.4.1c_bad_primes.py` | reduction of S modulo primes (Lemma lem:1.4.1-bad) | `python3 -I -B 1.4.1c_bad_primes.py` | < 1 s |\n| 1.4.1d | `local_residues.c` | 2-adic valuations of G on S (Lemma lem:1.4.1-zero) | `cc -O2 -o local_residues local_residues.c && ./local_residues 2 5 && ./local_residues 2 6` | < 1 s |\n| 1.4.1e | `local_residues.c` | 3-adic valuations of G on S (Lemma lem:1.4.1-three) | `./local_residues 3 3 && ./local_residues 3 4` | < 1 s |\n| 1.4.1f | `1.4.1f_local_points.py` | local points of S (remark after the proof) | `python3 -I -B 1.4.1f_local_points.py` | < 1 s |\n\nHelper: `common141.py` (exact arithmetic in L = Q(a, s) as 6-tuples of Fractions, sparse multivariate\npolynomials, the forms F and G, integer factorization by trial division).\n\n\n## 1.4.1a - the fields\n`h(+-1) != 0`, `disc h = -23`; `tau(a)` is a root of h, `tau(a) != a`, `tau^2(a) := P(P(a,s),s)` equals\n`P(a,-s)` (tau(a) with s -> -s), `tau^3(a) = a`; splitting of p = 2, 3, 7, 23, 29, 31, 59, 337, 9013 in K\n(Legendre symbol, and -23 = 1 mod 8 for p = 2) and the roots of h mod p; `h = (T-20)(T-13)^2 mod 23`,\n`(20-13)^2 = 3 mod 23`; in F_27 = F_3[T]/(h): `P(T,2) = T^3` and `P(T,-2) = T^9`; the p-adic square roots of\n-23 modulo 27, 81, 32, 64, 31, 59; a consistency loop over p < 2000 (0 or 3 roots of h mod p if (-23/p) = 1,\none root if -1). Expected: `PASS 1.4.1a`, with the table\n`2, 3, 29, 31: split, h irreducible; 59: split, roots [17, 46, 55]; 7, 337, 9013: inert; 23: ramified`,\n`Frob(w+) = tau, Frob(w-) = tau^2`.\n\n## 1.4.1b - the twisted cubic\nEvery monomial of q0 and q1 contains x or y; on the plane (x,y) = (lam w, mu w), q_k = w (A_k w + B_k z + C_k t);\n(W, Z, T) = cross product of the coefficient vectors (degrees 2, 3, 3); phi = (lam W, mu W, Z, T) (printed).\nChecks: `phi^*q0 = phi^*q1 = phi^*q2 = phi^*F = phi^*G = 0`; the 4x4 coefficient determinant of the four binary\ncubics is nonzero (printed); `q_k(tau^j phi) != 0` for j = 1, 2 and all k; `Res(W, Z - aT) = Res(W, Z - tau(a)T) = 0`,\n`Res(W, Z - tau^2(a)T) != 0`, `Res(W, T) != 0`; x^3-coefficients 1 (F) and 0 (G), x y^2-coefficient 288 (G).\nAdditional checks not needed in the proof: q_k(P0) = q_k(P1) = 0 and\n`q2(P2) = a + 3 + s(4 - 9a - 6a^2)/23`; grevlex leading monomials x^2, xy, y^2 of q0, q1, q2 - c q1; the reductions\nof q0, q1, q2 at a = 17, s = 6 mod 59 agree with the fixed reference coefficients in `1.4.1b_curve.py`, and phi mod 59 is a twisted cubic\non them (determinant 40 mod 59). Expected: `PASS 1.4.1b`.\n\n## 1.4.1c - reduction modulo primes\nMacaulay matrices (56 x 56) of the partial derivatives of F in degree 5 for the variable orders (x,y,z,t) and\n(x,y,t,z), determinants by fraction-free elimination:\n`2^6 * 3^17 * 7 * 23 * 29 * 31 * 59^2 * 337 * 9013^2` and `2^6 * 3^19 * 23 * 31 * 59^3 * 73 * 9013^2`,\ngcd `2^6 * 3^17 * 23 * 31 * 59^2 * 9013^2`. Ranks modulo p of the 90 x 56 matrix of the degree-5 map\n(g0, ..., g4) -> g0 F + sum g_i dF/dv_i: `{2: 50, 3: 56, 23: 55, 29: 56, 31: 55, 59: 55, 9013: 55}`.\nSingular points: (1,18,3,10) mod 23, (1,23,28,12) mod 31, (1,47,12,14) mod 59, (1,7636,7996,3944) mod 9013,\nand (1 : r^3+r : r^5 : r) over F_8 (r^3+r^2+1 = 0) mod 2. `G(P31) = 6, 16 mod 31` at s = 15, 16. Consistency:\n(1,23,28,12) is the only singular F_31-point (exhaustive). No Groebner basis is used.\nExpected: `PASS 1.4.1c`.\n\n## 1.4.1d, 1.4.1e - 2-adic and 3-adic residues\n`local_residues p k` visits all primitive (x,y,z,t) mod p^k with F = 0 mod p^k and evaluates G at both\nsquare roots of -23 mod p^k (those that lift to Z_p). Expected:\n- `2 5`: 12288 solutions, `(v at s=13, v at s=19) = (1, 4)` for all (13 = 5 mod 8, 19 = 3 mod 8);\n- `2 6`: 98304 solutions, `(v at s=19, v at s=45) = (4, 1)` for all;\n- `3 3`: 10206 solutions, `(v at s=2, v at s=25) = (0, 1)` for all (s = 2 is w+);\n- `3 4`: 275562 solutions, `(v at s=25, v at s=56) = (1, 0)` for all.\nAll valuations are below k, hence they hold at every p-adic point of S.\n\n## 1.4.1f - local points\nThe points (1,0,1,1), (1,0,0,6), (1,0,0,20), (1,0,1,10), (1,0,0,8363) are zeros of F mod 2, 23, 31, 59, 9013\nwith a nonzero partial derivative; S mod 3 has 7 points, among them (1,0,0,1) (gradient (1,1,2,2)); a real\npoint on F(1,0,0,t) = t^3 + t^2 + 1; the 3-adic points with x = 0 from F(0,1,z,0) = z^3 + z + 1, z = 1 mod 3.\nExpected: `PASS 1.4.1f`.\n"}, {"path":"v1/anc/code/1.4.1/common141.py","sha256":"8588e3e1f2de93fb820e9c24a78b9bb510eb7e2b810bf75d289bca2b99feac15","mode":420,"size":7729,"encoding":"utf-8","text":"\"\"\"Shared helpers for the codes of Section 1.4.1 (standard library only).\n\n* class L: exact arithmetic in L = Q(a, s), a^3 = a - 1, s^2 = -23. An element is a 6-tuple of\n Fractions (c0, c1, c2, c3, c4, c5) = c0 + c1 a + c2 a^2 + s (c3 + c4 a + c5 a^2).\n* polynomials in several variables: dicts {exponent tuple: coefficient}.\n* the cubic forms F = F_A and G = G0 + s G1 of the section.\n\"\"\"\nfrom fractions import Fraction as Fr\n\n# ---------------------------------------------------------------- the field L\n\n\ndef _mul_a(p, q):\n \"\"\"product in Q[a]/(a^3 - a + 1) of coefficient lists of length 3\"\"\"\n r = [Fr(0)] * 5\n for i in range(3):\n if p[i]:\n for j in range(3):\n r[i + j] += p[i] * q[j]\n r[2] += r[4] # a^4 = a^2 - a\n r[1] -= r[4]\n r[1] += r[3] # a^3 = a - 1\n r[0] -= r[3]\n return r[:3]\n\n\nclass L:\n __slots__ = ('c',)\n\n def __init__(self, c=(0, 0, 0, 0, 0, 0)):\n self.c = tuple(Fr(x) for x in c)\n\n @staticmethod\n def rat(x):\n return L((x, 0, 0, 0, 0, 0))\n\n def __add__(self, o):\n o = _as_l(o)\n return L(tuple(x + y for x, y in zip(self.c, o.c)))\n __radd__ = __add__\n\n def __neg__(self):\n return L(tuple(-x for x in self.c))\n\n def __sub__(self, o):\n return self + (-_as_l(o))\n\n def __rsub__(self, o):\n return _as_l(o) - self\n\n def __mul__(self, o):\n o = _as_l(o)\n a1, b1, a2, b2 = list(self.c[:3]), list(self.c[3:]), list(o.c[:3]), list(o.c[3:])\n p, q, r, t = _mul_a(a1, a2), _mul_a(b1, b2), _mul_a(a1, b2), _mul_a(b1, a2)\n return L(tuple(p[i] - 23 * q[i] for i in range(3)) + tuple(r[i] + t[i] for i in range(3)))\n __rmul__ = __mul__\n\n def __eq__(self, o):\n return self.c == _as_l(o).c\n\n def __hash__(self):\n return hash(self.c)\n\n def iszero(self):\n return not any(self.c)\n\n def conj_s(self):\n \"\"\"the automorphism s -> -s, a -> a of L\"\"\"\n return L(self.c[:3] + tuple(-x for x in self.c[3:]))\n\n def __pow__(self, n):\n r, b = L.rat(1), self\n while n:\n if n & 1:\n r = r * b\n b = b * b\n n >>= 1\n return r\n\n def inv(self):\n \"\"\"inverse by solving a 6x6 linear system over Q\"\"\"\n cols = []\n for k in range(6):\n e = [0] * 6\n e[k] = 1\n cols.append((self * L(e)).c)\n m = [[cols[j][i] for j in range(6)] + [Fr(int(i == 0))] for i in range(6)]\n for i in range(6):\n piv = next(r for r in range(i, 6) if m[r][i] != 0)\n m[i], m[piv] = m[piv], m[i]\n pv = m[i][i]\n m[i] = [x / pv for x in m[i]]\n for r in range(6):\n if r != i and m[r][i] != 0:\n f = m[r][i]\n m[r] = [x - f * y for x, y in zip(m[r], m[i])]\n return L(tuple(m[i][6] for i in range(6)))\n\n def __truediv__(self, o):\n return self * _as_l(o).inv()\n\n def __repr__(self):\n names = ('', 'a', 'a^2', 's', 's*a', 's*a^2')\n terms = ['(%s)%s' % (c, ('*' + n) if n else '') for c, n in zip(self.c, names) if c]\n return ' + '.join(terms) if terms else '0'\n\n\ndef _as_l(o):\n return o if isinstance(o, L) else L.rat(o)\n\n\nZERO, ONE = L.rat(0), L.rat(1)\nA = L((0, 1, 0, 0, 0, 0))\nS = L((0, 0, 0, 1, 0, 0))\n\n\ndef subst_as(e, a_img, s_img):\n \"\"\"image of e under the Q-algebra homomorphism a -> a_img, s -> s_img\"\"\"\n c = e.c\n a2 = a_img * a_img\n return (c[0] + c[1] * a_img + c[2] * a2) + s_img * (c[3] + c[4] * a_img + c[5] * a2)\n\n\ndef tau_poly(a_img, s_img):\n \"\"\"P_s(a) = -(23 a + s (6 a^2 + 9 a - 4)) / 46, the image tau(a), as a function of (a, s)\"\"\"\n return -(23 * a_img + s_img * (6 * a_img * a_img + 9 * a_img - 4)) / 46\n\n\nTAU_A = tau_poly(A, S) # tau(a)\nTAU2_A = subst_as(TAU_A, TAU_A, S) # tau^2(a) = P_s(P_s(a))\n\n\ndef tau_j(e, j):\n \"\"\"tau^j(e) for e in L (tau fixes s)\"\"\"\n return subst_as(e, [A, TAU_A, TAU2_A][j % 3], S)\n\n# ---------------------------------------------------------------- polynomials\n\n\ndef _iszero(c):\n return c.iszero() if isinstance(c, L) else c == 0\n\n\ndef padd(p, q):\n r = dict(p)\n for m, c in q.items():\n r[m] = r[m] + c if m in r else c\n if _iszero(r[m]):\n del r[m]\n return r\n\n\ndef pneg(p):\n return {m: -c for m, c in p.items()}\n\n\ndef psub(p, q):\n return padd(p, pneg(q))\n\n\ndef pmul(p, q):\n r = {}\n for m1, c1 in p.items():\n for m2, c2 in q.items():\n m = tuple(x + y for x, y in zip(m1, m2))\n v = c1 * c2\n r[m] = r[m] + v if m in r else v\n return {m: c for m, c in r.items() if not _iszero(c)}\n\n\ndef pmapc(p, f):\n r = {m: f(c) for m, c in p.items()}\n return {m: c for m, c in r.items() if not _iszero(c)}\n\n\ndef peval(p, vals, zero=0):\n r = zero\n for m, c in p.items():\n t = c\n for v, e in zip(vals, m):\n for _ in range(e):\n t = t * v\n r = r + t\n return r\n\n\ndef psubst(p, images, nv):\n \"\"\"substitute polynomials in nv variables (dicts) for the variables of p\"\"\"\n r = {}\n for m, c in p.items():\n t = {tuple([0] * nv): c}\n for img, e in zip(images, m):\n for _ in range(e):\n t = pmul(t, img)\n r = padd(r, t)\n return r\n\n\ndef pdiff(p, i):\n r = {}\n for m, c in p.items():\n if m[i]:\n mm = list(m)\n mm[i] -= 1\n mm = tuple(mm)\n r[mm] = r.get(mm, 0) + c * m[i]\n return {m: c for m, c in r.items() if not _iszero(c)}\n\n# ---------------------------------------------------------------- the surface\n\n\n# exponents (x, y, z, t)\nF_INT = {(3, 0, 0, 0): 1, (2, 1, 0, 0): 2, (0, 3, 0, 0): 1, (0, 2, 1, 0): 1, (1, 0, 2, 0): 1,\n (0, 0, 3, 0): 1, (1, 0, 0, 2): 1, (0, 1, 0, 2): -1, (0, 0, 1, 2): -1, (0, 1, 1, 1): 1,\n (0, 0, 0, 3): 1}\n\n# G = sum (b + c s) * monomial ; entries monomial: (b, c)\nG_INT = {(2, 1, 0, 0): (102, -18), (2, 0, 1, 0): (-281, -13), (2, 0, 0, 1): (-119, -19),\n (1, 2, 0, 0): (288, 0), (1, 1, 1, 0): (124, -4), (1, 1, 0, 1): (-416, 32),\n (1, 0, 2, 0): (59, -89), (1, 0, 0, 2): (59, -89), (0, 3, 0, 0): (75, -9),\n (0, 2, 1, 0): (107, -41), (0, 2, 0, 1): (112, -16), (0, 1, 1, 1): (59, -89),\n (0, 1, 0, 2): (-59, 89), (0, 0, 3, 0): (59, -89), (0, 0, 1, 2): (-59, 89),\n (0, 0, 0, 3): (59, -89)}\n\nF_L = {m: L.rat(c) for m, c in F_INT.items()}\nG_L = {m: L((b, 0, 0, c, 0, 0)) for m, (b, c) in G_INT.items()}\n\n\ndef F_val(x, y, z, t):\n return (x**3 + 2 * x**2 * y + y**3 + y**2 * z + x * z**2 + z**3 + t**2 * x - t**2 * y\n - t**2 * z + t * y * z + t**3)\n\n\ndef F_grad(x, y, z, t):\n return (3 * x * x + 4 * x * y + z * z + t * t,\n 2 * x * x + 3 * y * y + 2 * y * z - t * t + t * z,\n y * y + 2 * x * z + 3 * z * z - t * t + t * y,\n 2 * t * x - 2 * t * y - 2 * t * z + y * z + 3 * t * t)\n\n\ndef G_val(pt, s):\n \"\"\"G(pt) with s replaced by the integer s (exact integer)\"\"\"\n r = 0\n for m, (b, c) in G_INT.items():\n v = b + c * s\n for xi, e in zip(pt, m):\n v *= xi ** e\n r += v\n return r\n\n\ndef factorint(n):\n n = abs(n)\n f, p = {}, 2\n while p * p <= n:\n while n % p == 0:\n f[p] = f.get(p, 0) + 1\n n //= p\n p += 1 if p == 2 else 2\n if n > 1:\n f[n] = f.get(n, 0) + 1\n return f\n\n\ndef fmt_factor(f):\n return ' * '.join('%d^%d' % (p, e) if e > 1 else str(p) for p, e in sorted(f.items()))\n\n\ndef legendre(a, p):\n a %= p\n if a == 0:\n return 0\n return 1 if pow(a, (p - 1) // 2, p) == 1 else -1\n"}, {"path":"v1/anc/code/1.4.1/data/cubic_a_quadrics.json","sha256":"4068055166c54e52e52c77b66286d557748e76113e8d26adf164617b03a0d128","mode":420,"size":2859,"encoding":"utf-8","text":"[\n {\n \"denominator\": 2319480586,\n \"coefficients\": {\n \"x^2\": [\n 2319480586,\n 0,\n 0,\n 0,\n 0,\n 0\n ],\n \"xy\": [\n 2562373949,\n -980796521,\n 1296774546,\n -481258053,\n 293309809,\n 463046080\n ],\n \"xz\": [\n -419668879,\n 50201318,\n 179630828,\n 37564515,\n -9567684,\n -12270642\n ],\n \"xt\": [\n -972817706,\n 1333651642,\n 715936916,\n 96483530,\n -184224174,\n 49628362\n ],\n \"y^2\": [\n -335847288,\n 808426632,\n 1035610144,\n -40097640,\n -431483928,\n 112293992\n ],\n \"yz\": [\n 195023348,\n 439309384,\n 714466848,\n -212907052,\n -159608896,\n 92963712\n ]\n }\n },\n {\n \"denominator\": 9277922344,\n \"coefficients\": {\n \"xy\": [\n 4039312739,\n -2075815251,\n -5129180343,\n 565609063,\n -1984866607,\n 517927453\n ],\n \"xz\": [\n 12167806288,\n -4434828605,\n -3632925440,\n -90839712,\n -1510081225,\n 93027480\n ],\n \"xt\": [\n -762274142,\n 5132391166,\n 2645833681,\n 14219514,\n 2108894566,\n -629495915\n ],\n \"y^2\": [\n -4094646760,\n -457702024,\n -2824225752,\n 7544848,\n 256425552,\n -279329096\n ],\n \"yz\": [\n -770316000,\n -519066760,\n -5973795336,\n -1075390904,\n 573921624,\n 1895289456\n ],\n \"yt\": [\n 9277922344,\n 0,\n 0,\n 0,\n 0,\n 0\n ]\n }\n },\n {\n \"denominator\": 9277922344,\n \"coefficients\": {\n \"xy\": [\n 3943053052,\n 1433829160,\n -6873216749,\n -200936020,\n -1656072400,\n 200619407\n ],\n \"xz\": [\n 6334199533,\n -309869997,\n 590819905,\n -143489807,\n -1940820697,\n 125897933\n ],\n \"xt\": [\n 3372941559,\n 4531777078,\n 4332364801,\n -626569733,\n 1585266822,\n 76053869\n ],\n \"y^2\": [\n -4041558688,\n 2142064144,\n -2080367424,\n 518251880,\n -35239840,\n -1014899000\n ],\n \"yz\": [\n 4256962124,\n 906279076,\n -6030572644,\n 56698692,\n 93775892,\n 410881388\n ],\n \"z^2\": [\n 0,\n 4638961172,\n 0,\n 806775856,\n -1815245676,\n -1210163784\n ],\n \"zt\": [\n -9277922344,\n 0,\n 4638961172,\n -1210163784,\n 403387928,\n 1815245676\n ],\n \"t^2\": [\n 9277922344,\n 0,\n 0,\n 0,\n 0,\n 0\n ]\n }\n }\n]"}, {"path":"v1/anc/code/1.4.1/expected/1.4.1a.txt","sha256":"8f3737772fd52d15c7ca8b12e842e3e67ab06446c528c6c2c6ea1062941a4420","mode":420,"size":1189,"encoding":"utf-8","text":"### python3 -I -B 1.4.1a_fields.py\nh = T^3 - T + 1: no rational root (+-1), disc h = -23\ntau(a) = (-1/2)*a + (2/23)*s + (-9/46)*s*a + (-3/23)*s*a^2\ntau^2(a) = (-1/2)*a + (-2/23)*s + (9/46)*s*a + (3/23)*s*a^2 (= tau(a) with s -> -s)\nPASS: tau(a) is a root of h, tau(a) != a, tau^2(a) = P_{-s}(a), tau^3(a) = a\np = 2: split in K; roots of h mod p: []\np = 3: split in K; roots of h mod p: []\np = 7: inert in K; roots of h mod p: [2]\np = 23: ramified in K; roots of h mod p: [13, 20]\np = 29: split in K; roots of h mod p: []\np = 31: split in K; roots of h mod p: []\np = 59: split in K; roots of h mod p: [17, 46, 55]\np = 337: inert in K; roots of h mod p: [7]\np = 9013: inert in K; roots of h mod p: [7229]\nmod 23: h = (T-20)(T-13)^2, and (20-13)^2 = 3 is a unit\nat w+ (s = 2 mod 3): tau(T) = [2, 1, 0] = T^3 in F_27\nat w- (s = 1 mod 3): tau(T) = [1, 1, 0] = T^9 in F_27\nPASS: Frob(w+) = tau, Frob(w-) = tau^2\nroots of s^2 = -23 that lift: mod 27 [2, 25] mod 81 [25, 56] mod 32 [13, 19] mod 64 [19, 45] mod 31 [15, 16] mod 59 [6, 53]\nconsistency: for 3 <= p < 2000, p != 23, h mod p has 0 or 3 roots if (-23/p) = 1, one root if -1\nPASS 1.4.1a\n"}, {"path":"v1/anc/code/1.4.1/expected/1.4.1b.txt","sha256":"7c16510c648bb2ee0fa15bcac8355df11a6bfd0b681406c602248e21bc6db36e","mode":420,"size":3126,"encoding":"utf-8","text":"### python3 -I -B 1.4.1b_curve.py\nW = [(2, 0)] (42451559/201693964) + (-433196895/403387928)*a + (59931349/403387928)*a^2 + (-444877895/4638961172)*s + (619115651/9277922344)*s*a + (646479159/9277922344)*s*a^2 ; [(1, 1)] (-14247822/50423491) + (33549779/100846982)*a + (66436227/100846982)*a^2 + (122335371/1159740293)*s + (-22167211/2319480586)*s*a + (37688639/2319480586)*s*a^2 ; [(0, 2)] (4239638/50423491) + (9550204/50423491)*a + (15531888/50423491)*a^2 + (-106453526/1159740293)*s + (-79804448/1159740293)*s*a + (46481856/1159740293)*s*a^2\nZ = [(3, 0)] (16571177/201693964) + (-111573721/201693964)*a + (-115036247/403387928)*a^2 + (-7109757/4638961172)*s + (-1054447283/4638961172)*s*a + (629495915/9277922344)*s*a^2 ; [(2, 1)] (-659722979/403387928) + (32734987/403387928)*a + (20588919/403387928)*a^2 + (109270377/403387928)*s + (-132263545/403387928)*s*a + (15619467/403387928)*s*a^2 ; [(1, 2)] (-87844825/100846982) + (20008722/50423491)*a + (-187354095/100846982)*a^2 + (521457281/2319480586)*s + (-134334278/1159740293)*s*a + (-385700801/2319480586)*s*a^2 ; [(0, 3)] (7301028/50423491) + (-17574492/50423491)*a + (-22513264/50423491)*a^2 + (20048820/1159740293)*s + (215741964/1159740293)*s*a + (-56146996/1159740293)*s*a^2\nT = [(3, 0)] (66129382/50423491) + (-192818635/403387928)*a + (-19744160/50423491)*a^2 + (-11354964/1159740293)*s + (-1510081225/9277922344)*s*a + (11628435/1159740293)*s*a^2 ; [(2, 1)] (304161869/403387928) + (-454505293/403387928)*a + (40713131/403387928)*a^2 + (-1545498057/9277922344)*s + (-295606015/9277922344)*s*a + (4656138217/9277922344)*s*a^2 ; [(1, 2)] (-11018724/50423491) + (171203839/100846982)*a + (-65529291/100846982)*a^2 + (58768296/1159740293)*s + (-451738903/2319480586)*s*a + (574999841/2319480586)*s*a^2 ; [(0, 3)] (-35317014/50423491) + (34620742/50423491)*a + (12814252/50423491)*a^2 + (-251044794/1159740293)*s + (49031730/1159740293)*s*a + (26276432/1159740293)*s*a^2\nPASS: phi^*q0 = phi^*q1 = phi^*q2 = 0, phi^*F = 0, phi^*G = 0\nPASS: det of the coefficients of lam W, mu W, Z, T is nonzero: (4914892178137949918250123172908/6464450891737803694777158580561) + (-15749033900165633142374786000689/12928901783475607389554317161122)*a + (17297219842143900375844220690307/12928901783475607389554317161122)*a^2 + (-13557558631108102253735002633960/148682370509969484979874647352903)*s + (34504367036449050563319831866581/297364741019938969959749294705806)*s*a + (-20277643603004824566761612961271/297364741019938969959749294705806)*s*a^2\nPASS: q_k(tau^j phi) != 0 for j = 1, 2 and k = 0, 1, 2; C, tau C, tau^2 C pairwise distinct\nPASS: C meets x = y = 0 exactly in P0 = (0:0:a:1) and P1 = (0:0:tau(a):1)\nsource cross-check: q_k(P0) = q_k(P1) = 0; q0(P2) = q1(P2) = 0, q2(P2) = (3) + (1)*a + (4/23)*s + (-9/23)*s*a + (-6/23)*s*a^2\nPASS: coefficient of x^3: 1 in F, 0 in G; coefficient of x y^2 in G: 288\nsource cross-check: grevlex leading monomials of q0, q1, q2 - c q1: [(2, 0, 0, 0), (1, 1, 0, 0), (0, 2, 0, 0)]\nsource cross-check: q0, q1, q2 at (a, s) = (17, 6) mod 59 are the displayed quadrics; phi mod 59 is a twisted cubic on them (det = 40 mod 59)\nPASS 1.4.1b\n"}, {"path":"v1/anc/code/1.4.1/expected/1.4.1c.txt","sha256":"c45f0db97fc13ec179fd73ee8d9e4240decd8c47d72e2cbc179d122d7dc131ba","mode":420,"size":748,"encoding":"utf-8","text":"### python3 -I -B 1.4.1c_bad_primes.py\ndet M1 (order x,y,z,t) = 113998605357213165583630246464 = 2^6 * 3^17 * 7 * 23 * 29 * 31 * 59^2 * 337 * 9013^2\ndet M2 (order x,y,t,z) = 64593821745942230599147202112 = 2^6 * 3^19 * 23 * 31 * 59^3 * 73 * 9013^2\ngcd = 2^6 * 3^17 * 23 * 31 * 59^2 * 9013^2\ndegree-5 map (F, partials): 90 x 56; ranks mod p: {2: 50, 3: 56, 23: 55, 29: 56, 31: 55, 59: 55, 9013: 55}\nsingular F_p-points (F and all partials vanish): {23: (1, 18, 3, 10), 31: (1, 23, 28, 12), 59: (1, 47, 12, 14), 9013: (1, 7636, 7996, 3944)}\nmod 2: F and all partials vanish at (1 : r^3 + r : r^5 : r) for the 3 roots r of r^3+r^2+1 in F_8\nG(P31) mod 31 at s = 15, 16: 6 16\nconsistency: singular F_31-points of S mod 31: [(1, 23, 28, 12)]\nPASS 1.4.1c\n"}, {"path":"v1/anc/code/1.4.1/expected/1.4.1d.txt","sha256":"1ef15693596baab77a7583d36c974760f08f917ec76f1fd0a2ec9a7bec6f66d9","mode":420,"size":516,"encoding":"utf-8","text":"### ./local_residues 2 5\np = 2, N = 32: square roots of -23 mod N: s = 13 (= 5 mod 8), s = 19 (= 3 mod 8)\nprimitive solutions of F = 0 mod N: 12288\n (v_p G at s = 13, v_p G at s = 19) = (1, 4): 12288 quadruples\nPASS: one valuation pair, determined modulo N\n### ./local_residues 2 6\np = 2, N = 64: square roots of -23 mod N: s = 19 (= 3 mod 8), s = 45 (= 5 mod 8)\nprimitive solutions of F = 0 mod N: 98304\n (v_p G at s = 19, v_p G at s = 45) = (4, 1): 98304 quadruples\nPASS: one valuation pair, determined modulo N\n"}, {"path":"v1/anc/code/1.4.1/expected/1.4.1e.txt","sha256":"79faa86eac58ed9e5e0ce3bcba8b2cd241b0f817d97ed2689f85f5584cac4a23","mode":420,"size":516,"encoding":"utf-8","text":"### ./local_residues 3 3\np = 3, N = 27: square roots of -23 mod N: s = 2 (= 2 mod 3), s = 25 (= 1 mod 3)\nprimitive solutions of F = 0 mod N: 10206\n (v_p G at s = 2, v_p G at s = 25) = (0, 1): 10206 quadruples\nPASS: one valuation pair, determined modulo N\n### ./local_residues 3 4\np = 3, N = 81: square roots of -23 mod N: s = 25 (= 1 mod 3), s = 56 (= 2 mod 3)\nprimitive solutions of F = 0 mod N: 275562\n (v_p G at s = 25, v_p G at s = 56) = (1, 0): 275562 quadruples\nPASS: one valuation pair, determined modulo N\n"}, {"path":"v1/anc/code/1.4.1/expected/1.4.1f.txt","sha256":"7d30068342e9653a70b0d61766694c48c882e2dd388a0e6e104f8bf9702443c0","mode":420,"size":667,"encoding":"utf-8","text":"### python3 -I -B 1.4.1f_local_points.py\np = 2: (1, 0, 1, 1), F = 0, gradient mod p = (1, 0, 0, 1)\np = 23: (1, 0, 0, 6), F = 0, gradient mod p = (16, 12, 10, 5)\np = 31: (1, 0, 0, 20), F = 0, gradient mod p = (0, 5, 3, 0)\np = 59: (1, 0, 1, 10), F = 0, gradient mod p = (45, 30, 23, 5)\np = 9013: (1, 0, 0, 8363), F = 0, gradient mod p = (7905, 1113, 1111, 4380)\np = 3: 7 points of S mod 3: [(0, 1, 1, 0), (0, 1, 1, 1), (1, 0, 0, 1), (1, 0, 1, 0), (1, 1, 0, 2), (1, 1, 2, 0), (1, 2, 2, 0)]; (1,0,0,1) has gradient (1, 1, 2, 2) mod 3\nreal point: F(1,0,0,-2) = -3 < 0 < F(1,0,0,-1) = 1\nx = 0: F(0,1,z,0) = z^3 + z + 1, z = 1 is a simple root mod 3\nPASS 1.4.1f\n"}, {"path":"v1/anc/code/1.4.1/local_residues.c","sha256":"09f7f4b1799e98b201c8aeaaa3387588ee804fede33d9fdafbb2b916df02bd8d","mode":420,"size":4237,"encoding":"utf-8","text":"/* Codes 1.4.1d (p = 2) and 1.4.1e (p = 3): exhaustive residue check of v_p(G) on S.\n *\n * Usage: ./local_residues p k (modulus N = p^k; used with (p,k) = (2,5), (2,6), (3,3), (3,4))\n *\n * Visits every quadruple (x,y,z,t) mod N that is primitive (not all coordinates divisible by p) and\n * satisfies F = 0 mod N, and evaluates G = G0 + s*G1 mod N at both p-adic square roots s of -23\n * (taken mod N; they are the residues mod N of the roots of s^2 + 23 modulo 4N for p = 2 and\n * modulo pN for p = 3). Prints the number of such quadruples and the histogram of the pair\n * (v_p of G at the first root, v_p of G at the second root); v = k means \"0 mod N\".\n * The roots are listed with their residue mod 3 (p = 3) or mod 8 (p = 2).\n * Exit status 1 unless exactly one pair occurs and both of its entries are < k (then the two\n * valuations are determined by the residues mod N, for every p-adic point of S).\n * C library only.\n */\n#include \n#include \n#include \n\ntypedef int64_t i64;\n\nstatic i64 md(i64 a, i64 n) { a %= n; return a < 0 ? a + n : a; }\n\nstatic i64 F(i64 x, i64 y, i64 z, i64 t) {\n return x*x*x + 2*x*x*y + y*y*y + y*y*z + x*z*z + z*z*z + t*t*x - t*t*y - t*t*z + t*y*z + t*t*t;\n}\n\nstatic void G(i64 x, i64 y, i64 z, i64 t, i64 *g0, i64 *g1) {\n *g0 = 102*x*x*y - 281*x*x*z - 119*x*x*t + 288*x*y*y + 124*x*y*z - 416*x*y*t + 59*x*z*z\n + 59*x*t*t + 75*y*y*y + 107*y*y*z + 112*y*y*t + 59*y*z*t - 59*y*t*t + 59*z*z*z\n - 59*z*t*t + 59*t*t*t;\n *g1 = -18*x*x*y - 13*x*x*z - 19*x*x*t - 4*x*y*z + 32*x*y*t - 89*x*z*z - 89*x*t*t\n - 9*y*y*y - 41*y*y*z - 16*y*y*t - 89*y*z*t + 89*y*t*t - 89*z*z*z + 89*z*t*t\n - 89*t*t*t;\n}\n\nstatic int val(i64 a, i64 p, int k) {\n int v = 0;\n if (a == 0) return k;\n while (a % p == 0) { a /= p; v++; }\n return v;\n}\n\nint main(int argc, char **argv) {\n if (argc != 3) { fprintf(stderr, \"usage: %s p k\\n\", argv[0]); return 2; }\n i64 p = atoll(argv[1]);\n int k = atoi(argv[2]);\n if ((p != 2 && p != 3) || k < 1 || k > 7) { fprintf(stderr, \"p must be 2 or 3, 1 <= k <= 7\\n\"); return 2; }\n i64 N = 1;\n for (int i = 0; i < k; i++) N *= p;\n i64 M = (p == 2) ? 4 * N : p * N;\n i64 r[4]; int nr = 0;\n for (i64 s = 0; s < M; s++)\n if (md(s * s + 23, M) == 0) {\n i64 sr = s % N; int dup = 0;\n for (int j = 0; j < nr; j++) if (r[j] == sr) dup = 1;\n if (!dup) { if (nr == 2) { printf(\"more than two roots\\n\"); return 1; } r[nr++] = sr; }\n }\n if (nr != 2) { printf(\"expected two roots, found %d\\n\", nr); return 1; }\n if (r[0] > r[1]) { i64 tmp = r[0]; r[0] = r[1]; r[1] = tmp; }\n long long hist[8][8] = {{0}};\n long long count = 0;\n for (i64 x = 0; x < N; x++)\n for (i64 y = 0; y < N; y++)\n for (i64 z = 0; z < N; z++)\n for (i64 t = 0; t < N; t++) {\n if (x % p == 0 && y % p == 0 && z % p == 0 && t % p == 0) continue;\n if (md(F(x, y, z, t), N) != 0) continue;\n count++;\n i64 g0, g1;\n G(x, y, z, t, &g0, &g1);\n g0 = md(g0, N); g1 = md(g1, N);\n hist[val(md(g0 + r[0] * g1, N), p, k)][val(md(g0 + r[1] * g1, N), p, k)]++;\n }\n i64 lab = (p == 2) ? 8 : 3;\n printf(\"p = %lld, N = %lld: square roots of -23 mod N: s = %lld (= %lld mod %lld), s = %lld (= %lld mod %lld)\\n\",\n (long long)p, (long long)N, (long long)r[0], (long long)(r[0] % lab), (long long)lab,\n (long long)r[1], (long long)(r[1] % lab), (long long)lab);\n printf(\"primitive solutions of F = 0 mod N: %lld\\n\", count);\n int pairs = 0, ok = 1;\n for (int i = 0; i < 8; i++)\n for (int j = 0; j < 8; j++)\n if (hist[i][j]) {\n pairs++;\n if (i >= k || j >= k) ok = 0;\n printf(\" (v_p G at s = %lld, v_p G at s = %lld) = (%d, %d): %lld quadruples\\n\",\n (long long)r[0], (long long)r[1], i, j, hist[i][j]);\n }\n if (pairs != 1 || !ok) { printf(\"FAIL: valuations not constant or not determined\\n\"); return 1; }\n printf(\"PASS: one valuation pair, determined modulo N\\n\");\n return 0;\n}\n"}, {"path":"v1/anc/code/1.4.1/run_all.py","sha256":"8903d8e53798665d8ef749503973504c31b8953031eb9c627570bf730444e4db","mode":420,"size":3025,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Run the checks of Section 1.4.1 and compare with expected/.txt.\n\nUsage: python3 run_all.py # every code id, compare with expected/\n python3 run_all.py 1.4.1c # only the listed id(s)\n python3 run_all.py --write # regenerate expected/.txt\nPython scripts run in a fresh `python3 -I` process; local_residues.c is compiled with the C compiler\n`cc` (or $CC) into a temporary directory. Do not use python -O (the checks are asserts).\n\"\"\"\nimport os\nimport subprocess\nimport sys\nimport tempfile\nfrom pathlib import Path\n\nHERE = Path(__file__).resolve().parent\nSTEPS = [\n ('1.4.1a', [['py', '1.4.1a_fields.py']]),\n ('1.4.1b', [['py', '1.4.1b_curve.py']]),\n ('1.4.1c', [['py', '1.4.1c_bad_primes.py']]),\n ('1.4.1d', [['c', '2', '5'], ['c', '2', '6']]),\n ('1.4.1e', [['c', '3', '3'], ['c', '3', '4']]),\n ('1.4.1f', [['py', '1.4.1f_local_points.py']]),\n]\n\n\ndef main():\n if not __debug__:\n raise SystemExit('Run without -O: the checks are assert statements.')\n args = sys.argv[1:]\n write = '--write' in args\n want = [a for a in args if a != '--write']\n known = [cid for cid, _ in STEPS]\n bad = [w for w in want if w not in known]\n if bad:\n raise SystemExit('unknown code id(s): %s; known: %s' % (bad, known))\n failures = []\n with tempfile.TemporaryDirectory() as tmp:\n exe = Path(tmp) / 'local_residues'\n cc = os.environ.get('CC', 'cc')\n subprocess.run([cc, '-O2', '-o', str(exe), str(HERE / 'local_residues.c')], check=True)\n for cid, jobs in STEPS:\n if want and cid not in want:\n continue\n out = []\n for job in jobs:\n if job[0] == 'py':\n cmd = [sys.executable, '-I', '-B', str(HERE / job[1])]\n label = 'python3 -I -B ' + job[1]\n else:\n cmd = [str(exe)] + job[1:]\n label = './local_residues ' + ' '.join(job[1:])\n r = subprocess.run(cmd, cwd=HERE, capture_output=True, text=True)\n out.append('### ' + label + '\\n' + r.stdout)\n if r.returncode:\n sys.stdout.write(''.join(out) + r.stderr)\n raise SystemExit('FAIL %s (%s)' % (cid, label))\n text = ''.join(out)\n sys.stdout.write('=== %s ===\\n%s' % (cid, text))\n exp = HERE / 'expected' / ('%s.txt' % cid)\n if write:\n exp.write_text(text)\n print('--> wrote', exp.relative_to(HERE))\n elif exp.exists():\n same = exp.read_text() == text\n print('--> %s: %s' % (exp.relative_to(HERE), 'identical' if same else 'DIFFERENT'))\n if not same:\n failures.append(cid)\n if failures:\n raise SystemExit('output differs from expected/ for: %s' % failures)\n print('PASS: all requested checks of Section 1.4.1')\n\n\nif __name__ == '__main__':\n main()\n"}, {"path":"v1/anc/code/1.4.10/1.4.10a_elementary.py","sha256":"26a6812c2c8d61b0b5bc84c3941324be4b4abbe12d2aea0d6d28191a4e4cfb45","mode":420,"size":2177,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.10a (Section 1.4.10, 4x^5 + 4y^5 + 11z^5 = 0): size H, the reduction z = 2w to\nx^5 + y^5 + 88w^5 = 0, hypotheses of Lemma lem:1.4:terms, the levels of Lemma lem:1.4:level, the points\nmodulo 3 and T_3 (Lemma lem:1.4.10-three), and (for the remark of the section) the sets modulo 25.\nWritten for the paper.\nRun: python3 -I 1.4.10a_elementary.py (< 1 s)\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'common' / 'frey_quintic'))\nfrom fq import grechuk_H, report_levels, projective_points, report_traces, fifth_powers_mod, \\\n fifth_power_witness, factor, frey_trace_count\n\nco = (4, 4, 11)\nH = grechuk_H(co)\nprint('4x^5 + 4y^5 + 11z^5 = 0: H = %d' % H)\nassert H == 608\nfor (a, b, nm) in ((4, 11, 'x = 0'), (4, 11, 'y = 0')):\n p = fifth_power_witness(a, b)\n print(' %s: -%d/%d is not a fifth power (v_%d)' % (nm, a, b, p))\nprint(' z = 0: x^5 = -y^5, so y = -x')\nassert all((11 * pow(z, 5, 4)) % 4 for z in (1, 3)) and (11 * 2 ** 5) % 4 == 0\nassert 11 * 2 ** 5 // 4 == 88 and factor(88) == {2: 3, 11: 1}\nprint('mod 4: 11z^5 = 0, so z = 2w and x^5 + y^5 + 88w^5 = 0 (88 = 2^3*11)')\nreport_levels(1, 1, 88, [22, 88], 'xyw')\n# modulo 3\npts = projective_points(1, 1, 88, 3)\nprint('projective points of x^5 + y^5 + 88w^5 = 0 over F_3: %s' % pts)\nassert sorted(pts) == [(0, 1, 2), (1, 0, 2), (1, 1, 1), (1, 2, 0)]\nfor s in (1, 2): # x = y = w = s mod 3, normalized pair u' = -x^5, v' = -88w^5\n u, v = (-s ** 5) % 3, (-88 * s ** 5) % 3\n assert (u, v) == ((-s) % 3, (-s) % 3)\n a3 = frey_trace_count(u, v, 3)\n print(' x = y = w = %d mod 3: reduced Frey curve Y^2 = X(X - %d)(X + %d) = X^3 - X, a_3 = %d' % (s, u, v, a3))\n assert a3 == 0\nreport_traces(1, 1, 88, {3: [0, 1, 4]})\n# remark: modulo 25\nS = sorted(t for t in fifth_powers_mod(25) if t)\nSS = sorted({(a + b) % 25 for a in S for b in S})\nm88 = sorted({(-88 * t) % 25 for t in S})\nprint('nonzero fifth powers mod 25 S = %s; S + S = %s; -88 S = %s' % (S, SS, m88))\nassert S == [1, 7, 18, 24] and not set(m88) & set(S) and not set(m88) & set(SS)\nprint(' -88 S is disjoint from S and from S + S')\nprint('PASS 1.4.10a')\n"}, {"path":"v1/anc/code/1.4.10/1.4.10b_newforms.gp","sha256":"a623e243fe083194a904fd210e3c093e06419e75fbbccdfc6f58b37c177ff979","mode":420,"size":1911,"encoding":"utf-8","text":"\\\\ Code 1.4.10b (Section 1.4.10, 4x^5 + 4y^5 + 11z^5 = 0, z = 2w). Written for the paper. PARI/GP 2.15+.\n\\\\ (1) The Frey curve of Lemma lem:1.4.10-frey at 2: (u, v, w') = (-x^5, -88w^5, -y^5) with x = 1 mod 4;\n\\\\ for x = 1, 5, ..., 61 and w = 1..64: f_2 = 3, v_2(Delta_min) = 10 (w odd) and f_2 = 1,\n\\\\ v_2(Delta_min) = 10 v_2(w) - 2 (w even), as in Lemma lem:1.4:frey.\n\\\\ (2) S_2(Gamma_0(22))^new = 0; S_2(Gamma_0(88))^new: dimension, Galois orbits, the minimal polynomials of\n\\\\ a_3, their values at 0, 1, 4 modulo 5, and the sieve of fqsieve.gp with T_3 = {0, 1, 4}.\n\\\\ Run: gp -q 1.4.10b_newforms.gp (< 1 s)\ndefault(parisizemax, 1000000000);\nread(\"../common/frey_quintic/fqsieve.gp\");\n{\n my(n = 0, M, B, P);\n forstep (x = 1, 61, 4, for (w = 1, 64, my(e = valuation(w, 2));\n fq_check2(-x^5, -88*w^5, if (e, 1, 3), if (e, 10*e - 2, 10)); n++));\n print(\"(1) Frey curve at 2: f_2 = 3, v_2(Delta_min) = 10 (w odd); f_2 = 1, v_2(Delta_min) = 10 v_2(w) - 2\",\n \" (w even): \", n, \" residue classes\");\n if (mfdim([22, 2], 0) != 0, error(\"level 22\"));\n print(\"(2) level 22: dim S_2^new = 0\");\n M = mfinit([88, 2], 0); B = mfeigenbasis(M);\n if ([mfdim(M), #B] != [3, 2], error(\"level 88\"));\n P = vector(#B, i, minpoly(mfcoef(B[i], 3)));\n if (P != [x + 3, x^2 - x - 4], error(\"minimal polynomials\"));\n print(\" level 88: dim S_2^new = 3, orbits of dimensions \", vector(#B, i, poldegree(mffields(M)[i])),\n \"; minimal polynomials of a_3: \", P);\n print(\" values at T = 0, 1, 4 modulo 5: \", vector(#P, i, vector(3, k, subst(P[i], x, [0,1,4][k]) % 5)));\n for (i = 1, #P, for (k = 1, 3, if (subst(P[i], x, [0,1,4][k]) % 5 == 0, error(\"root mod 5\"))));\n S = fq_sieve(88, [3], [[0,1,4]]); if (#fq_print(88, [3], [[0,1,4]], S), error(\"survivor at 88\"));\n print(\"PASS 1.4.10b: no newform of level 22; no newform of level 88 has a_3 in {0, 1, 4} modulo a prime above 5\");\n}\nquit\n"}, {"path":"v1/anc/code/1.4.10/README.md","sha256":"d32426a590d6528e7157b371164215ae969aa854f50cd7abc375b36f7a224f88","mode":420,"size":2658,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Code for Section 1.4.10: 4x^5 + 4y^5 + 11z^5 = 0\n\nInteger solutions exactly (n, \u2212n, 0). Proof: z = 2w, x^5 + y^5 + 88w^5 = 0; a zero coordinate forces w = 0; for\nxyw \u2260 0 the Frey curve (u, v, w') = \u03b5(x^5, 88w^5, y^5), \u03b5x \u2261 3 mod 4, has level 88 (w odd, type III^* at 2) or 22\n(w even); E[5] irreducible by Mazur's theorem; S_2(\u0393_0(22))^new = 0, and at level 88 the prime 3 (T_3 = {0,1,4})\nexcludes both orbits. Source: the original working notes (Section 11 of the consolidated document; original packet\n`target_quintic_proof.tex`).\n\nAll scripts were written for the paper; they use `../common/frey_quintic/fq.py` and `fqsieve.gp`. The solver's\ncertificates (`quintic_4411_2adic.gp`, `quintic_4411_newforms.gp`, `quintic_4411_trace_sets.py`,\n`verify_small_newforms.gp`) were read, not run.\n\n## Requirements\nPython 3.10+ (standard library); PARI/GP 2.15+ (run here with 2.15.4).\n\n## Codes\n| id | script | what it computes | command | time | run here |\n|---|---|---|---|---|---|\n| 1.4.10a | `1.4.10a_elementary.py` | H = 608; zero coordinates; 2 \u2223 z and the new equation; hypotheses of Lemma lem:1.4:terms; r = 3 + 5v_2(w); Tate data and N_5; the points over F_3, the trace of Y^2 = X^3 \u2212 X, T_3 (two implementations); the sets modulo 25 (remark) | `python3 -I 1.4.10a_elementary.py` | < 1 s | yes |\n| 1.4.10b | `1.4.10b_newforms.gp` | `elllocalred` on the Frey curve for x \u2261 1 mod 4 (\u03b5 = \u22121), all w mod 2^6; S_2(\u0393_0(22))^new and S_2(\u0393_0(88))^new, minimal polynomials of a_3 and their values at 0, 1, 4 mod 5; the sieve with T_3 | `gp -q 1.4.10b_newforms.gp` | < 1 s | yes |\n\n`python3 run_all.py` runs both (about 1 s) and compares with `expected/`. Run here on 17 October 2026.\n\nKey output:\n```\n1.4.10a even term 88w^5, v_2(w) = 0: r = 3, type III*, f_2 = 3, v_2(Delta_min) = 10; N_5 = 88\n even term 88w^5, v_2(w) = 1: r = 8, type I8, f_2 = 1, v_2(Delta_min) = 8; N_5 = 22\n q = 3: 4 points, 3 with a zero coordinate; traces {0}; T_q = {0,1,4}\n1.4.10b level 22: dim S_2^new = 0\n level 88: dim S_2^new = 3, orbits of dimensions [1, 2]; minimal polynomials of a_3: [x + 3, x^2 - x - 4]\n values at T = 0, 1, 4 modulo 5: [[3, 4, 2], [1, 1, 3]]\n```\n\n## Not used by the proof\n- The congruence modulo 25 (5 \u2223 w): printed by 1.4.10a for the remark of the section; the level does not depend on it.\n"}, {"path":"v1/anc/code/1.4.10/expected/1.4.10a.txt","sha256":"f8c86c580f96ab681d235f472a2f3faee71426075fbabdf0b6e8c3cbbdfdb501","mode":420,"size":1674,"encoding":"utf-8","text":"4x^5 + 4y^5 + 11z^5 = 0: H = 608\n x = 0: -4/11 is not a fifth power (v_2)\n y = 0: -4/11 is not a fifth power (v_2)\n z = 0: x^5 = -y^5, so y = -x\nmod 4: 11z^5 = 0, so z = 2w and x^5 + y^5 + 88w^5 = 0 (88 = 2^3*11)\nequation 1x^5 + 1y^5 + 88w^5 = 0: coefficients pairwise coprime, coefficient primes [2, 11], every exponent between 1 and 4; 2 coefficient(s) of absolute value 1\n p = 2: v_2(A, B, C) = [0, 0, 3]\n p = 11: v_p(A, B, C) = [0, 0, 1]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n even term 88w^5, v_2(w) = 0: r = 3, type III* f_2 = 3, v_2(Delta_min) = 10, 2 in N_5; N_5 = 88\n even term 88w^5, v_2(w) = 1: r = 8, type I8 f_2 = 1, v_2(Delta_min) = 8, 2 in N_5; N_5 = 22\n even term 88w^5, v_2(w) = 2: r = 13, type I18 f_2 = 1, v_2(Delta_min) = 18, 2 in N_5; N_5 = 22\n even term 88w^5, v_2(w) = 3 (and likewise for every e > 3): r = 18, type I28 f_2 = 1, v_2(Delta_min) = 28, 2 in N_5; N_5 = 22\n odd part of rad(ABC) = 11; the prime 5: removed (5 does not divide ABC: good reduction, or multiplicative with 5 | v_5(Delta_min))\n levels N_5: [22, 88]\nprojective points of x^5 + y^5 + 88w^5 = 0 over F_3: [(1, 0, 2), (1, 1, 1), (1, 2, 0), (0, 1, 2)]\n x = y = w = 1 mod 3: reduced Frey curve Y^2 = X(X - 2)(X + 2) = X^3 - X, a_3 = 0\n x = y = w = 2 mod 3: reduced Frey curve Y^2 = X(X - 1)(X + 1) = X^3 - X, a_3 = 0\n q = 3: 4 points, 3 with a zero coordinate (q+1 = 4 = 4 mod 5); traces a_q at the others: {0} T_q = {0,1,4}\nnonzero fifth powers mod 25 S = [1, 7, 18, 24]; S + S = [0, 2, 6, 8, 11, 14, 17, 19, 23]; -88 S = [9, 12, 13, 16]\n -88 S is disjoint from S and from S + S\nPASS 1.4.10a\n"}, {"path":"v1/anc/code/1.4.10/expected/1.4.10b.txt","sha256":"f8b949df42ff17c9a2ba0a616e5871c29faf7bd2e28f6465f97d5822d58a6a18","mode":420,"size":647,"encoding":"utf-8","text":"(1) Frey curve at 2: f_2 = 3, v_2(Delta_min) = 10 (w odd); f_2 = 1, v_2(Delta_min) = 10 v_2(w) - 2 (w even): 1024 residue classes\n(2) level 22: dim S_2^new = 0\n level 88: dim S_2^new = 3, orbits of dimensions [1, 2]; minimal polynomials of a_3: [x + 3, x^2 - x - 4]\n values at T = 0, 1, 4 modulo 5: [[3, 4, 2], [1, 1, 3]]\nlevel 88: dim S_2^new = 3, orbits = 2, field degrees = [1, 2]\n orbit 1: P=y [e,f]=[1,1] killed at q=3 (a_q=-3)\n orbit 2: P=y^2 - y - 4 [e,f]=[1,2] killed at q=3 (a_q=y)\n pairs (orbit, lambda): 2; after q=3: 0\nPASS 1.4.10b: no newform of level 22; no newform of level 88 has a_3 in {0, 1, 4} modulo a prime above 5\n"}, {"path":"v1/anc/code/1.4.10/run_all.py","sha256":"cdcbd1e37b3fb85dfe02e7721c43c4f3ff805debdd084e9f749e95d894440408","mode":420,"size":793,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Run the codes of Section 1.4.10 (4x^5 + 4y^5 + 11z^5 = 0) and compare with expected/.\n\nUsage: python3 run_all.py # all codes of this folder\n python3 run_all.py ... # only the listed code ids\n python3 run_all.py --update # rewrite expected/ from this run\nRequires Python 3 (standard library) and PARI/GP (gp on the PATH, or $GP); see README.md.\n\"\"\"\nimport sys\nfrom pathlib import Path\nHERE = Path(__file__).resolve().parent\nsys.path.insert(0, str(HERE.parent / 'common' / 'frey_quintic'))\nfrom runner import run_steps, table_consistency\n\nSTEPS = [\n ('1.4.10a', 'py', '1.4.10a_elementary.py'),\n ('1.4.10b', 'gp', '1.4.10b_newforms.gp'),\n]\nCHECKS = []\n\nif __name__ == '__main__':\n run_steps(HERE, STEPS, sys.argv[1:], CHECKS)\n"}, {"path":"v1/anc/code/1.4.2/1.4.2a_fields.py","sha256":"394246877450692290f55e936a445a00bbd1840eb63800cc8a0e701f399d0728","mode":420,"size":3226,"encoding":"utf-8","text":"\"\"\"Code 1.4.2a (Section 1.4.2, Lemma lem:1.4.2-field): the fields K = Q(sqrt(-23)) and L = K(q), h(q) = q^3 - q + 1.\n\nWritten for this bundle (not the source's verifiers). Python 3 with SymPy (discriminant, resultant).\nChecks:\n * h has no rational root (so it is irreducible over Q), disc(h) = -23 (squarefree, so Z[q] is the ring of\n integers of Q(q));\n * h mod 23 = (q-13)^2 (q-20) (a simple root 20); h has no root modulo 2 and modulo 3;\n * 2 and 3 split in K (-23 = 1 mod 8 and mod 3); the 2-adic root s2 = 1 (mod 4) of s^2 = -23 is 45 mod 256,\n the 3-adic root s3 = 1 (mod 3) is 25 mod 81 and 187 mod 243;\n * N(3q^2 - 1) = Res(h, h') = 23 (the denominator 4(3q^2-1) of the plane-section identity);\n * confirmation of the case distinction of the lemma for all primes p < 3000: if p is inert in K, h has exactly\n one root mod p, and it is simple; if p splits, h has 0 or 3 roots mod p;\n * the reduced forms of discriminant -23 are (1,1,6), (2,1,3), (2,-1,3) (class number 3; used only in a remark).\n\"\"\"\nimport os\nimport sys\nfrom pathlib import Path\nos.environ.setdefault('SYMPY_GROUND_TYPES', 'python')\nsys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'common' / 'cyclic_cubic'))\nimport sympy as sp\nfrom restree import primes_upto, roots_mod_p, sqrt_2adic, sqrt_padic, legendre\n\nq = sp.symbols('q')\nh = q**3 - q + 1\nH = [1, 0, -1, 1]\nD = -23\n\nassert all(h.subs(q, r) != 0 for r in (1, -1))\ndisc = sp.discriminant(h, q)\nassert disc == -23 and sp.factorint(23) == {23: 1}\nprint('h = q^3 - q + 1: no rational root; disc(h) =', disc, '(squarefree)')\n\nr23 = roots_mod_p(H, 23)\nassert r23 == [13, 20]\nassert all(c % 23 == 0 for c in sp.Poly(sp.expand((q - 13)**2 * (q - 20) - h), q).all_coeffs())\nhp = lambda r: 3 * r * r - 1\nassert hp(13) % 23 == 0 and hp(20) % 23 != 0\nprint('h mod 23 = (q-13)^2 (q-20); simple root 20')\nassert roots_mod_p(H, 2) == [] and roots_mod_p(H, 3) == []\nprint('h has no root mod 2 and mod 3 (irreducible there)')\n\nassert D % 8 == 1 and D % 3 == 1\ns2 = sqrt_2adic(D, 20)\nassert s2 % 256 == 45\ns3 = sqrt_padic(D, 3, 10, 1)\nassert s3 % 81 == 25 and s3 % 243 == 187\nprint('2 and 3 split in K; s2 = %d mod 2^20 (= 45 mod 256), s3 = %d mod 3^10 (= 25 mod 81, 187 mod 243)' % (s2, s3))\n\nres = sp.resultant(h, 3 * q**2 - 1, q)\nassert res == 23\nprint('Res(h, 3q^2-1) = N(3q^2-1) =', res)\n\nstats = {}\nfor p in primes_upto(3000):\n if p in (2, 23):\n continue\n r = roots_mod_p(H, p)\n assert all(hp(a) % p for a in r) # p does not divide disc, so the roots are simple\n kind = 'inert' if legendre(D, p) == -1 else 'split'\n if kind == 'inert':\n assert len(r) == 1\n else:\n assert len(r) in (0, 3)\n stats[(kind, len(r))] = stats.get((kind, len(r)), 0) + 1\nprint('primes 3 <= p < 3000, p != 23: (behaviour in K, number of roots of h) ->', sorted(stats.items()))\n\nforms = []\nfor a in range(1, 4):\n for b in range(-a + 1, a + 1):\n if (b * b - D) % (4 * a) == 0:\n c = (b * b - D) // (4 * a)\n if c >= a and not (b < 0 and (a == c)):\n forms.append((a, b, c))\nassert sorted(forms) == [(1, 1, 6), (2, -1, 3), (2, 1, 3)]\nprint('reduced forms of discriminant -23:', sorted(forms))\nprint('PASS 1.4.2a')\n"}, {"path":"v1/anc/code/1.4.2/1.4.2b_plane.py","sha256":"7058f8647c50c62066bd1f20b355556b55dfce5180849e707ea95fa364d2a738","mode":420,"size":3023,"encoding":"utf-8","text":"\"\"\"Code 1.4.2b (Section 1.4.2, Lemmas lem:1.4.2-plane and lem:1.4.2-nonzero): the plane section l_+ = 0.\n\nWritten for this bundle (not the source's verifiers). Python 3 with SymPy.\nL = K(q), K = Q(s), s^2 = -23, h(q) = q^3 - q + 1; tau(q) = (-q + s/h'(q))/2 (disc h = -23 = D*1^2).\nChecks, as polynomial identities over the ring Q[q,s]/(h(q), s^2+23):\n * tau(q) = -q/2 + s(-6q^2 - 9q + 4)/46 is a root of h and tau has order 3;\n * p = -((s-1)q^2 + 8)/(4(3q^2-1)) and F(x, (1-s)x/4, z, t) = -prod_{i=0}^{2} (t - tau^i(p) x - tau^i(q) z);\n * the same identity again through a resultant, without tau: 64*23*F(x,(1-s)x/4,z,t) = -Res_q(h, N),\n N = 4(3q^2-1)(t - qz) + ((s-1)q^2 + 8)x;\n * det [(-tau^i(p), -tau^i(q), 1)]_{i=0,1,2} = (s-1)/2, of norm 6;\n * 4(3q^2-1) p = (1-s)q^2 - 8 (integral);\n * F(0,0,z,t) = -(z^3 - z^2 t + t^3) and r^3 - r^2 + 1 has no rational root;\n * H = sum |coefficient| * 2^3 = 96.\n\"\"\"\nimport os\nimport sys\nfrom pathlib import Path\nos.environ.setdefault('SYMPY_GROUND_TYPES', 'python')\nsys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'common' / 'cyclic_cubic'))\nimport sympy as sp\nfrom cubicfield import CubicOverQuadratic, u, s\n\nx, y, z, t, r = sp.symbols('x y z t r')\nF = 2*x**3 + x**2*y + x*y**2 + y**3 + y**2*z - 2*x*z**2 - z**3 + t**2*y + t*z**2 - t**3\nh = u**3 - u + 1 # u plays the role of q\nL = CubicOverQuadratic(h, -23, 1)\nq = u\nprint('tau(q) =', L.tau_u)\nassert L.tau_u == L.red(-q/2 + s*(-6*q**2 - 9*q + 4)/46)\n\ninv = L.inverse(3*q**2 - 1)\np = L.red(-((s - 1)*q**2 + 8) * inv / 4)\nprint('p =', p)\nP = L.orbit(p)\nQo = L.orbit(q)\nprod = sp.Integer(1)\nfor i in range(3):\n prod = L.red(sp.expand(prod * (t - P[i]*x - Qo[i]*z)))\nlhs = L.red(F.subs(y, (1 - s)*x/4))\nassert L.red(lhs + prod) == 0\nprint('F(x,(1-s)x/4,z,t) = -prod_i (t - tau^i(p) x - tau^i(q) z): verified')\n\nN = 4*(3*q**2 - 1)*(t - q*z) + ((s - 1)*q**2 + 8)*x\nR = sp.resultant(h, N, u)\nassert sp.expand(sp.rem(sp.Poly(sp.expand(64*23*F.subs(y, (1 - s)*x/4) + R), s), sp.Poly(s**2 + 23, s)).as_expr()) == 0\nprint('resultant form of the identity: verified')\n\nM = sp.Matrix([[-P[i], -Qo[i], 1] for i in range(3)])\nd = L.red(M.det())\nassert d == L.red((s - 1)/2)\nnd = L.norm_K_Q(d)\nassert nd == 6\nprint('det =', d, ' N(det) =', nd)\n\nnum = L.red(4*(3*q**2 - 1)*p)\nassert num == L.red((1 - s)*q**2 - 8)\nprint('4(3q^2-1)p =', num, '(integral)')\n\n# conjugate plane, for completeness: s -> -s\nlhs2 = L.red(F.subs(y, (1 + s)*x/4))\nprod2 = sp.Integer(1)\npc = L.conj(p)\nfor i in range(3):\n prod2 = L.red(sp.expand(prod2 * (t - L.orbit(pc)[i]*x - Qo[i]*z)))\nassert L.red(lhs2 + prod2) == 0\nprint('conjugate identity (s -> -s): verified')\n\nF00 = sp.expand(F.subs({x: 0, y: 0}))\nassert sp.expand(F00 + (z**3 - z**2*t + t**3)) == 0\nc = r**3 - r**2 + 1\nassert all(c.subs(r, v) != 0 for v in (1, -1))\nprint('F(0,0,z,t) =', F00, '; r^3 - r^2 + 1 has no rational root')\nHval = sum(abs(c) * 2**3 for c in sp.Poly(F, x, y, z, t).coeffs())\nassert Hval == 96\nprint('H =', Hval)\nprint('PASS 1.4.2b')\n"}, {"path":"v1/anc/code/1.4.2/1.4.2c_residues.py","sha256":"11fc947473798ef848c056fa3a6f0844c18f26c9e0e5e7388a13565e9d9f1913","mode":420,"size":5182,"encoding":"utf-8","text":"\"\"\"Code 1.4.2c (Section 1.4.2, Lemmas lem:1.4.2-two and lem:1.4.2-three): all primitive 2-adic and 3-adic points.\n\nWritten for this bundle (not the source's verifiers). Pure Python (standard library).\nl_+ = (-1+s)x + 4y, l_- = (-1-s)x + 4y, with s = s2 = 45 (mod 256) in Z_2 and s = s3 = 187 (mod 243) in Z_3\n(the roots of s^2 = -23 that are 1 mod 4, resp. 1 mod 3; see code 1.4.2a).\n * complete residue trees (normalized primitive points, see restree.py) modulo 2^8 and 3^5; the pair\n (v(l_+), v(l_-)) is determined (smaller than the precision) on every class, and the pairs are\n (2,1), (5,1), (2,4) at 2 and (0,0), (3,0) at 3, each according to the residue class mod p;\n * the precision at which every pair is first determined (2^6 and 3^4);\n * the facts used in the proofs by hand: the points mod 2 and mod 3; mod 16, y = 13x if x,y,z,t are odd, and\n x = 6y if x is even and y,z,t are odd (all primitive solutions mod 16); at the point (1,0,0,-1) mod 3, every\n solution mod 3^4 with x = 1 has y = 3Y with Y = 7 or 16 (mod 27), and the three reduction steps of the text;\n * a direct enumeration of ALL primitive solutions mod 2^6 and mod 3^4 (no normalization, no tree) is done by\n the C program ../common/cyclic_cubic/brute_residues.c (case B), run by run_all.py.\n\"\"\"\nimport sys\nfrom itertools import product\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'common' / 'cyclic_cubic'))\nfrom restree import tree, level1, val_mod\n\n\ndef F(x, y, z, t):\n return 2*x**3 + x*x*y + x*y*y + y**3 + y*y*z - 2*x*z*z - z**3 + t*t*y + t*z*z - t**3\n\n\ndef lp(P, s0):\n x, y, z, t = P\n return (-1 + s0)*x + 4*y\n\n\ndef lm(P, s0):\n x, y, z, t = P\n return (-1 - s0)*x + 4*y\n\n\ndef pairs(p, k, s0):\n sol, m, sizes = tree(F, p, k)\n assert (s0*s0 + 23) % m == 0\n dist = {}\n by_res = {}\n undetermined = 0\n for (i, P) in sol:\n a, b = val_mod(lp(P, s0), p, m), val_mod(lm(P, s0), p, m)\n if a is None or b is None:\n undetermined += 1\n dist[(a, b)] = dist.get((a, b), 0) + 1\n by_res.setdefault(tuple(c % p for c in P), set()).add((a, b))\n return sizes, dist, by_res, undetermined\n\n\nassert [P for _, P in level1(F, 2)] == [(1, 0, 0, 0), (1, 1, 1, 1), (0, 1, 1, 1)]\nsizes, dist, by_res, und = pairs(2, 8, 45)\nprint('p=2, mod 2^8: level sizes', sizes, ' pairs', sorted(dist.items()))\nassert und == 0 and set(dist) == {(2, 1), (5, 1), (2, 4)}\nassert by_res == {(1, 0, 0, 0): {(2, 1)}, (1, 1, 1, 1): {(5, 1)}, (0, 1, 1, 1): {(2, 4)}}\nassert all((a - b) % 3 == 1 for a, b in dist)\nprint(' by residue mod 2:', {k: sorted(v) for k, v in by_res.items()}, ' v(l_+) - v(l_-) = 1 mod 3 on all classes')\nfirst = [k for k in range(1, 9) if pairs(2, k, 45)[3] == 0][0]\nassert first == 6\nprint(' every pair determined from 2^%d on' % first)\n\nassert [P for _, P in level1(F, 3)] == [(1, 0, 0, 2), (1, 1, 1, 0), (1, 1, 2, 0), (0, 1, 0, 2)]\nsizes, dist, by_res, und = pairs(3, 5, 187)\nprint('p=3, mod 3^5: level sizes', sizes, ' pairs', sorted(dist.items()))\nassert und == 0 and set(dist) == {(0, 0), (3, 0)}\nassert by_res[(1, 0, 0, 2)] == {(3, 0)} and all(v == {(0, 0)} for k, v in by_res.items() if k != (1, 0, 0, 2))\nassert all((a - b) % 3 == 0 for a, b in dist)\nprint(' by residue mod 3:', {k: sorted(v) for k, v in by_res.items()}, ' v(l_+) - v(l_-) = 0 mod 3 on all classes')\nfirst = [k for k in range(1, 6) if pairs(3, k, 187)[3] == 0][0]\nassert first == 4\nprint(' every pair determined from 3^%d on' % first)\n\n# facts for the proofs by hand\nodd = set()\nxeven = set()\nfor P in product(range(16), repeat=4):\n if all(c % 2 == 0 for c in P) or F(*P) % 16:\n continue\n x, y, z, t = P\n if all(c % 2 for c in P):\n odd.add((y - 13*x) % 16)\n if x % 2 == 0 and y % 2 and z % 2 and t % 2:\n xeven.add((x - 6*y) % 16)\nassert odd == {0} and xeven == {0}\nprint('mod 16: x,y,z,t odd => y = 13x; x even, y,z,t odd => x = 6y')\nsol, m, _ = tree(F, 3, 4)\nYs = sorted({(P[1] // 3) % 27 for (i, P) in sol if tuple(c % 3 for c in P) == (1, 0, 0, 2)})\nassert Ys == [7, 16]\nprint('at (1,0,0,-1) mod 3, x = 1: y = 3Y with Y mod 27 in', Ys)\n# the reduction steps of the proof by hand at (1,0,0,-1): F(1,3Y,3Z,-1+3T)/3 modulo 3, 9, 27\nG = lambda Y, Z, T: F(1, 3*Y, 3*Z, -1 + 3*T)\nassert all(G(Y, Z, T) % 3 == 0 for Y in range(27) for Z in range(27) for T in range(27))\nassert {Y % 3 for Y in range(3) for Z in range(3) for T in range(3) if (G(Y, Z, T)//3) % 3 == 0} == {1}\nassert all(((G(1 + 3*Y1, Z, T)//3) - 6*(1 + Y1)) % 9 == 0 for Y1 in range(3) for Z in range(9) for T in range(9))\nassert all(((G(7 + 9*Y2, Z, T)//3) - 9*(2*Y2 + 1 + 2*T*T + T*Z*Z - Z*Z)) % 27 == 0\n for Y2 in range(3) for Z in range(9) for T in range(9))\nassert {(2*T*T + T*Z*Z + 2*Z*Z) % 3 for T in range(3) for Z in range(3)} == {0, 2}\nprint('hand reduction at (1,0,0,-1): F/3 = 1+2Y (mod 3), = 6(1+Y1) (mod 9) for Y = 1+3Y1,')\nprint(' = 9(2Y2+1+2T^2+TZ^2-Z^2) (mod 27) for Y = 7+9Y2; 2T^2+TZ^2+2Z^2 mod 3 in {0,2}')\nassert ((45 - 1) // 4) % 64 == 11 and ((45 + 1) // 2) % 128 == 23 and 187 % 81 == 25\nprint('(s2-1)/4 = 11 mod 64, (s2+1)/2 = 23 mod 128, s3 = 25 mod 81')\nprint('PASS 1.4.2c')\n"}, {"path":"v1/anc/code/1.4.2/1.4.2d_split_primes.py","sha256":"519ffa3cb87decaa0272508a54992fa8ec10792c53b8b2a1d30a2f327ef1a858","mode":420,"size":1597,"encoding":"utf-8","text":"\"\"\"Code 1.4.2d (Section 1.4.2, after Lemma lem:1.4.2-good; a confirmation, not used in the proof).\n\nWritten for this bundle. Pure Python (standard library).\nFor every prime 5 <= p < 500 that splits in K = Q(sqrt(-23)) and modulo which h = q^3 - q + 1 has no root, and\nfor both square roots s0 of -23 modulo p, the plane cubic F(x, (1-s0)x/4, z, t) has no zero in P^2(F_p). This\nis the reduction modulo w of the statement of Lemma lem:1.4.2-good (no point of S over Z_p with l_+ = 0 mod w),\nwhich the lemma proves for all such p by the determinant argument.\n\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'common' / 'cyclic_cubic'))\nfrom restree import primes_upto, roots_mod_p, legendre\n\n\ndef F(x, y, z, t):\n return 2*x**3 + x*x*y + x*y*y + y**3 + y*y*z - 2*x*z*z - z**3 + t*t*y + t*z*z - t**3\n\n\ndef plane_zeros(p, s0):\n c = (1 - s0) * pow(4, -1, p) % p\n pts = [(1, b, d) for b in range(p) for d in range(p)] + [(0, 1, d) for d in range(p)] + [(0, 0, 1)]\n return [(X, Z, T) for (X, Z, T) in pts if F(X, c * X % p, Z, T) % p == 0]\n\n\ntested = []\nfor p in primes_upto(500):\n if p < 5 or legendre(-23, p) != 1 or roots_mod_p([1, 0, -1, 1], p):\n continue\n s0 = next(a for a in range(p) if (a * a + 23) % p == 0)\n for sg in (s0, p - s0):\n assert plane_zeros(p, sg) == [], (p, sg)\n tested.append(p)\nprint('split primes with h irreducible, 5 <= p < 500:', len(tested), 'primes, from', tested[0], 'to', tested[-1])\nprint('no zero of the plane section mod p for either root of s^2 = -23')\nprint('PASS 1.4.2d')\n"}, {"path":"v1/anc/code/1.4.2/README.md","sha256":"927630005ce91f9224edbe45fc2b13ed945938b6738f4bdf86156d5e1caaf14a","mode":420,"size":5385,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Code for section 1.4.2: 2x^3 + x^2y + xy^2 + y^3 + y^2z \u2212 2xz^2 \u2212 z^3 + t^2y + tz^2 \u2212 t^3 = 0\n\nOnly the zero solution. Proof: the cyclic cubic extension L = K(q), K = Q(\u221a\u221223), h(q) = q^3 \u2212 q + 1; the\nplane section \u2113_+ = (\u22121+s)x + 4y = 0 splits into three lines over L; for a rational point the local invariants of\n\u03c8 = \u2113_+/\u2113_\u2212 vanish except at the two places above 2, where they are equal and nonzero (reciprocity, Theorem AC).\n\nAll scripts were written for this bundle (agent S2, 17 Oct 2026). The source's certificate scripts\n(`verify_tritangent_factors.py`, `verify_fields.gp`, `local_residue_b.py`, `verify_local_points_bc.py`,\n`steiner_exact_bc.py`, `fano_*.py` in the section 8.7 reproducibility archive) were read as references and were\nNOT run. No PARI/GP, Magma or Sage is used: the source's PARI field checks (`verify_fields.gp`) are replaced by\nthe elementary arguments of Lemma 1.4.2-field and code 1.4.2a.\n\nNotation: `p` in the scripts (as in the source) is the element \u03c1 = \u2212((s\u22121)q^2 + 8)/(4(3q^2\u22121)) of the text;\nthe scripts write u for q.\n\nRequirements: Python 3.10+; SymPy 1.14 (codes a, b; the scripts set `SYMPY_GROUND_TYPES=python`); a C99\ncompiler (`cc`, or `$CC`) for the C part of 1.4.2c. Shared helpers: `../common/cyclic_cubic/` (`cubicfield.py`,\n`restree.py`, `brute_residues.c`). Do not use `python -O` (the checks are `assert`s).\n\nRun everything: `python3 run_all.py` (about 7 s); one id: `python3 run_all.py 1.4.2c`.\n\"Run here\" = run on 17 Oct 2026 with Python 3.11.15, SymPy 1.14.0, gcc 13.3 (`python3 -I run_all.py `, started\nfrom another directory); the output is in `expected/.txt`.\n\n| id | script(s) | what it computes | command | time | run here |\n|---|---|---|---|---|---|\n| 1.4.2a | `1.4.2a_fields.py` | h: rational roots, disc = \u221223; h mod 23 = (q\u221213)^2(q\u221220); no root mod 2, 3; 2, 3 split in K; s2 = 45 mod 256, s3 = 25 mod 81 (187 mod 243); N(3q^2\u22121) = 23; the case distinction of Lemma 1.4.2-field for all p < 3000; reduced forms of disc \u221223 | `python3 run_all.py 1.4.2a` | 0.5 s | yes |\n| 1.4.2b | `1.4.2b_plane.py` | \u03c4(q) = (\u2212q + s/h'(q))/2 has order 3; F(x,(1\u2212s)x/4,z,t) = \u2212\u220f(t \u2212 \u03c4^i(p)x \u2212 \u03c4^i(q)z) (directly and by a resultant); det = (s\u22121)/2, norm 6; the conjugate identity; F(0,0,z,t) | `python3 run_all.py 1.4.2b` | 1.1 s | yes |\n| 1.4.2c | `1.4.2c_residues.py`, `../common/cyclic_cubic/brute_residues.c` (case B) | complete residue trees mod 2^8 and 3^5, the valuation pairs and the precision at which they are determined; the congruences of the proofs by hand; direct enumeration of all primitive solutions mod 2^6 and 3^4 | `python3 run_all.py 1.4.2c` | 2.9 s | yes |\n| 1.4.2d | `1.4.2d_split_primes.py` | confirmation of Lemma 1.4.2-good for the 32 primes 5 \u2264 p < 500 that split in K with h irreducible mod p: the plane cubic has no F_p-point | `python3 run_all.py 1.4.2d` | 2.6 s | yes |\n\n## Expected key lines\n1.4.2a:\n```\nh = q^3 - q + 1: no rational root; disc(h) = -23 (squarefree)\nh mod 23 = (q-13)^2 (q-20); simple root 20\n2 and 3 split in K; s2 = 617517 mod 2^20 (= 45 mod 256), s3 = 8935 mod 3^10 (= 25 mod 81, 187 mod 243)\nRes(h, 3q^2-1) = N(3q^2-1) = 23\nprimes 3 <= p < 3000, p != 23: (behaviour in K, number of roots of h) -> [(('inert', 1), 217), (('split', 0), 144), (('split', 3), 67)]\nreduced forms of discriminant -23: [(1, 1, 6), (2, -1, 3), (2, 1, 3)]\nPASS 1.4.2a\n```\n1.4.2b:\n```\ntau(q) = -3*s*u**2/23 - 9*s*u/46 + 2*s/23 - u/2\nF(x,(1-s)x/4,z,t) = -prod_i (t - tau^i(p) x - tau^i(q) z): verified\nresultant form of the identity: verified\ndet = s/2 - 1/2 N(det) = 6\nPASS 1.4.2b\n```\n(u stands for q in the printed expressions.)\n1.4.2c:\n```\np=2, mod 2^8: level sizes [3, 12, 48, 192, 768, 3072, 12288, 49152] pairs [((2, 1), 16384), ((2, 4), 16384), ((5, 1), 16384)]\n every pair determined from 2^6 on\np=3, mod 3^5: level sizes [4, 36, 324, 2916, 26244] pairs [((0, 0), 19683), ((3, 0), 6561)]\n every pair determined from 3^4 on\nat (1,0,0,-1) mod 3, x = 1: y = 3Y with Y mod 27 in [7, 16]\nB mod 2^6 (s=45): 98304 primitive solutions; pairs (v(l+),v(l-)):count (2,1):32768 (2,4):32768 (5,1):32768\nB mod 3^4 (s=25): 157464 primitive solutions; pairs (v(l+),v(l-)):count (0,0):118098 (3,0):39366\nPASS brute_residues B\n```\n1.4.2d: `split primes with h irreducible, 5 <= p < 500: 32 primes, from 13 to 499`, `PASS 1.4.2d`.\n\n## Correspondence with the source's checks\n- `verify_tritangent_factors.py` (identity and determinant by Gr\u00f6bner reduction) \u2194 1.4.2b (explicit generator \u03c4\n and a resultant; the Cayley\u2013Salmon norm identities of the original packet are not needed and not checked).\n- `verify_fields.gp` (PARI `nfdisc`, factorization mod 2, 3) \u2194 1.4.2a (root tests, the case distinction).\n- `local_residue_b.py` (trees mod 2^8, 3^5) \u2194 1.4.2c (own tree, plus a direct enumeration in C and the steps of\n the proofs by hand).\n- `verify_local_points_bc.py`, `steiner_exact_bc.py`, `fano_*.py`, `surface_discriminant.py` (local solubility,\n Steiner trihedra, 27 lines, bad primes): not needed by the proof; not reproduced.\n"}, {"path":"v1/anc/code/1.4.2/expected/1.4.2a.txt","sha256":"4c0db8b8339bff79e30bf0ac2bbe7b236d12c0563dc9ddd02b134f3730a58b93","mode":420,"size":585,"encoding":"utf-8","text":"=== 1.4.2a: 1.4.2a_fields.py ===\nh = q^3 - q + 1: no rational root; disc(h) = -23 (squarefree)\nh mod 23 = (q-13)^2 (q-20); simple root 20\nh has no root mod 2 and mod 3 (irreducible there)\n2 and 3 split in K; s2 = 617517 mod 2^20 (= 45 mod 256), s3 = 8935 mod 3^10 (= 25 mod 81, 187 mod 243)\nRes(h, 3q^2-1) = N(3q^2-1) = 23\nprimes 3 <= p < 3000, p != 23: (behaviour in K, number of roots of h) -> [(('inert', 1), 217), (('split', 0), 144), (('split', 3), 67)]\nreduced forms of discriminant -23: [(1, 1, 6), (2, -1, 3), (2, 1, 3)]\nPASS 1.4.2a\nPASS: all requested checks of section 1.4.2\n"}, {"path":"v1/anc/code/1.4.2/expected/1.4.2b.txt","sha256":"55048bef2138a9940e97d2b0cd21c83382d0d4b5fa22e2780e2be493c3a4ecf7","mode":420,"size":491,"encoding":"utf-8","text":"=== 1.4.2b: 1.4.2b_plane.py ===\ntau(q) = -3*s*u**2/23 - 9*s*u/46 + 2*s/23 - u/2\np = s*u**2/46 + 3*s*u/92 - 9*s/92 + u**2/2 + 3*u/4 - 1/4\nF(x,(1-s)x/4,z,t) = -prod_i (t - tau^i(p) x - tau^i(q) z): verified\nresultant form of the identity: verified\ndet = s/2 - 1/2 N(det) = 6\n4(3q^2-1)p = -s*u**2 + u**2 - 8 (integral)\nconjugate identity (s -> -s): verified\nF(0,0,z,t) = -t**3 + t*z**2 - z**3 ; r^3 - r^2 + 1 has no rational root\nH = 96\nPASS 1.4.2b\nPASS: all requested checks of section 1.4.2\n"}, {"path":"v1/anc/code/1.4.2/expected/1.4.2c.txt","sha256":"5e5b17dbc0138e6556f32fcad8a38e967f0e2c90b92e576490440f20b7055364","mode":420,"size":1277,"encoding":"utf-8","text":"=== 1.4.2c: 1.4.2c_residues.py ===\np=2, mod 2^8: level sizes [3, 12, 48, 192, 768, 3072, 12288, 49152] pairs [((2, 1), 16384), ((2, 4), 16384), ((5, 1), 16384)]\n by residue mod 2: {(1, 0, 0, 0): [(2, 1)], (1, 1, 1, 1): [(5, 1)], (0, 1, 1, 1): [(2, 4)]} v(l_+) - v(l_-) = 1 mod 3 on all classes\n every pair determined from 2^6 on\np=3, mod 3^5: level sizes [4, 36, 324, 2916, 26244] pairs [((0, 0), 19683), ((3, 0), 6561)]\n by residue mod 3: {(1, 0, 0, 2): [(3, 0)], (1, 1, 1, 0): [(0, 0)], (1, 1, 2, 0): [(0, 0)], (0, 1, 0, 2): [(0, 0)]} v(l_+) - v(l_-) = 0 mod 3 on all classes\n every pair determined from 3^4 on\nmod 16: x,y,z,t odd => y = 13x; x even, y,z,t odd => x = 6y\nat (1,0,0,-1) mod 3, x = 1: y = 3Y with Y mod 27 in [7, 16]\nhand reduction at (1,0,0,-1): F/3 = 1+2Y (mod 3), = 6(1+Y1) (mod 9) for Y = 1+3Y1,\n = 9(2Y2+1+2T^2+TZ^2-Z^2) (mod 27) for Y = 7+9Y2; 2T^2+TZ^2+2Z^2 mod 3 in {0,2}\n(s2-1)/4 = 11 mod 64, (s2+1)/2 = 23 mod 128, s3 = 25 mod 81\nPASS 1.4.2c\n=== C: brute_residues.c B ===\nB mod 2^6 (s=45): 98304 primitive solutions; pairs (v(l+),v(l-)):count (2,1):32768 (2,4):32768 (5,1):32768\nB mod 3^4 (s=25): 157464 primitive solutions; pairs (v(l+),v(l-)):count (0,0):118098 (3,0):39366\nPASS brute_residues B\nPASS: all requested checks of section 1.4.2\n"}, {"path":"v1/anc/code/1.4.2/expected/1.4.2d.txt","sha256":"ccecdd3ba1847334304c79c6e0d17c6a5cbfc005879177777047b34eff6771d5","mode":420,"size":232,"encoding":"utf-8","text":"=== 1.4.2d: 1.4.2d_split_primes.py ===\nsplit primes with h irreducible, 5 <= p < 500: 32 primes, from 13 to 499\nno zero of the plane section mod p for either root of s^2 = -23\nPASS 1.4.2d\nPASS: all requested checks of section 1.4.2\n"}, {"path":"v1/anc/code/1.4.2/run_all.py","sha256":"8d35851193ef03a198a58215f40eababa87dbcdf0e94cc3d22e7e0a9371830c3","mode":420,"size":2209,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Run the checks of Section 1.4.2 (2x^3+x^2y+xy^2+y^3+y^2z-2xz^2-z^3+t^2y+tz^2-t^3 = 0).\n\nUsage: python3 run_all.py # every code id, in order\n python3 run_all.py 1.4.2c # only the listed id(s)\nEach Python script runs in a fresh `python3 -I -B` process; the C program ../common/cyclic_cubic/brute_residues.c\nis compiled into a temporary directory with $CC (default: cc) and run with the argument B.\nDo not use python -O (the checks are asserts). Written for this bundle.\n\"\"\"\nimport os\nimport subprocess\nimport sys\nimport tempfile\nfrom pathlib import Path\n\nHERE = Path(__file__).resolve().parent\nCOMMON = HERE.parent / 'common' / 'cyclic_cubic'\nSTEPS = [\n ('1.4.2a', [('py', '1.4.2a_fields.py')]),\n ('1.4.2b', [('py', '1.4.2b_plane.py')]),\n ('1.4.2c', [('py', '1.4.2c_residues.py'), ('c', 'brute_residues.c', 'B')]),\n ('1.4.2d', [('py', '1.4.2d_split_primes.py')]),\n]\n\n\ndef run_c(src, arg, tmp):\n exe = Path(tmp) / src.replace('.c', '')\n cc = os.environ.get('CC', 'cc')\n subprocess.run([cc, '-O2', '-std=c99', '-o', str(exe), str(COMMON / src)], check=True)\n print('=== C: %s %s ===' % (src, arg), flush=True)\n return subprocess.run([str(exe), arg]).returncode\n\n\ndef main():\n if not __debug__:\n raise SystemExit('Run without -O: the checks are assert statements.')\n want = sys.argv[1:]\n known = [cid for cid, _ in STEPS]\n bad = [w for w in want if w not in known]\n if bad:\n raise SystemExit('unknown code id(s): %s; known: %s' % (bad, known))\n with tempfile.TemporaryDirectory() as tmp:\n for cid, items in STEPS:\n if want and cid not in want:\n continue\n for item in items:\n if item[0] == 'py':\n print('=== %s: %s ===' % (cid, item[1]), flush=True)\n rc = subprocess.run([sys.executable, '-I', '-B', str(HERE / item[1])], cwd=HERE).returncode\n else:\n rc = run_c(item[1], item[2], tmp)\n if rc:\n raise SystemExit('FAIL %s (%s)' % (cid, item[1]))\n print('PASS: all requested checks of section 1.4.2')\n\n\nif __name__ == '__main__':\n main()\n"}, {"path":"v1/anc/code/1.4.3/1.4.3a_fields.py","sha256":"1598436ab2a4c9fe331fc724d65121d64df6afd4f8b4de58a8240f11c5990979","mode":420,"size":3528,"encoding":"utf-8","text":"\"\"\"Code 1.4.3a (Section 1.4.3, Lemma lem:1.4.3-field): K = Q(sqrt(-11)) and L = K(u), g(u) = u^3 - 4u - 4.\n\nWritten for this bundle (not the source's verifiers). Python 3 with SymPy (discriminants, resultants, remainders).\nChecks:\n * g has no rational root (irreducible over Q), disc(g) = -176 = -2^4*11; h_C(v) = v^3 - v^2 - v - 1 has\n disc -44 = -2^2*11, u = v^2 - 1 and v = u^2/2 - 1 are inverse maps between the roots (so Q(u) = Q(v)), and\n h_C(v+1) = v^3 + 2v^2 - 2 is Eisenstein at 2 (so Z[v] is the ring of integers and the field discriminant is\n -44; used only in a remark);\n * q = u/2 satisfies 2q^3 - 2q - 1 = 0;\n * g mod 11 = (u-4)^2 (u-3) (a simple root 3); g has no root modulo 3;\n * 3 splits in K (-11 = 1 mod 3), the root s3 = 1 (mod 3) of s^2 = -11 is 31 mod 81; 2 is inert in K\n (-11 = 5 mod 8), and with w = (1+s)/2 (w^2 - w + 3 = 0) we have 2 + s = 1 + 2w, 2 - s = 3 - 2w;\n * N(3u^2 - 4) = Res(g, g') = 176;\n * confirmation of the case distinction for all primes 3 <= p < 3000, p != 11: if p is inert in K, g has exactly\n one root mod p, and it is simple; if p splits, g has 0 or 3 roots mod p.\n\"\"\"\nimport os\nimport sys\nfrom pathlib import Path\nos.environ.setdefault('SYMPY_GROUND_TYPES', 'python')\nsys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'common' / 'cyclic_cubic'))\nimport sympy as sp\nfrom restree import primes_upto, roots_mod_p, sqrt_padic, legendre\n\nu, v, qq, w = sp.symbols('u v q w')\ng = u**3 - 4*u - 4\nG = [1, 0, -4, -4]\nhC = v**3 - v**2 - v - 1\nD = -11\n\nassert all(g.subs(u, r) != 0 for r in (1, -1, 2, -2, 4, -4))\ndg = sp.discriminant(g, u)\ndh = sp.discriminant(hC, v)\nassert dg == -176 and dh == -44\nprint('g = u^3 - 4u - 4: no rational root; disc(g) =', dg, '= -2^4*11; disc(h_C) =', dh)\nassert sp.rem(sp.expand(g.subs(u, v**2 - 1)), hC, v) == 0\nassert sp.rem(sp.expand(hC.subs(v, u**2/2 - 1)), g, u) == 0\nassert sp.rem(sp.expand((v**2 - 1)**2/2 - 1 - v), hC, v) == 0\nprint('u = v^2 - 1, v = u^2/2 - 1: inverse maps between the roots of h_C and g')\ne = sp.Poly(sp.expand(hC.subs(v, v + 1)), v)\nassert e.as_expr() == v**3 + 2*v**2 - 2\nprint('h_C(v+1) =', e.as_expr(), '(Eisenstein at 2)')\nassert sp.expand(2*(u/2)**3 - 2*(u/2) - 1 - g/4) == 0\nprint('q = u/2: 2q^3 - 2q - 1 = g(u)/4')\n\nassert roots_mod_p(G, 11) == [3, 4]\nassert all(c % 11 == 0 for c in sp.Poly(sp.expand((u - 4)**2*(u - 3) - g), u).all_coeffs())\ngp = lambda r: 3*r*r - 4\nassert gp(4) % 11 == 0 and gp(3) % 11 != 0\nprint('g mod 11 = (u-4)^2 (u-3); simple root 3')\nassert roots_mod_p(G, 3) == []\nprint('g has no root mod 3')\nassert D % 3 == 1 and D % 8 == 5\ns3 = sqrt_padic(D, 3, 8, 1)\nassert s3 % 81 == 31\nprint('3 splits in K, s3 = %d mod 3^8 (= 31 mod 81); 2 is inert in K' % s3)\nww = (1 + sp.sqrt(-11))/2\nassert sp.expand(ww**2 - ww + 3) == 0\nassert sp.expand(2 + sp.sqrt(-11) - (1 + 2*ww)) == 0 and sp.expand(2 - sp.sqrt(-11) - (3 - 2*ww)) == 0\nprint('w = (1+s)/2: w^2 - w + 3 = 0, 2+s = 1+2w, 2-s = 3-2w')\nres = sp.resultant(g, 3*u**2 - 4, u)\nassert res == 176\nprint('Res(g, 3u^2-4) = N(3u^2-4) =', res)\n\nstats = {}\nfor p in primes_upto(3000):\n if p in (2, 11):\n continue\n r = roots_mod_p(G, p)\n assert all(gp(a) % p for a in r)\n kind = 'inert' if legendre(D, p) == -1 else 'split'\n if kind == 'inert':\n assert len(r) == 1\n else:\n assert len(r) in (0, 3)\n stats[(kind, len(r))] = stats.get((kind, len(r)), 0) + 1\nprint('primes 3 <= p < 3000, p != 11: (behaviour in K, number of roots of g) ->', sorted(stats.items()))\nprint('PASS 1.4.3a')\n"}, {"path":"v1/anc/code/1.4.3/1.4.3b_plane.py","sha256":"110eb8ee560cc2c38a2dfa26302a32aff5a82efa1926ad48020cddd568117f1b","mode":420,"size":3134,"encoding":"utf-8","text":"\"\"\"Code 1.4.3b (Section 1.4.3, Lemmas lem:1.4.3-plane and lem:1.4.3-nonzero): the plane section l_+ = 0.\n\nWritten for this bundle (not the source's verifiers). Python 3 with SymPy.\nL = K(u), K = Q(s), s^2 = -11, g(u) = u^3 - 4u - 4, q = u/2; disc(g) = -176 = -11*4^2, so\ntau(u) = (-u + 4s/g'(u))/2. Checks, over the ring Q[u,s]/(g(u), s^2+11):\n * tau(u) = -u/2 + s(-6u^2 + 9u + 16)/22 is a root of g and tau has order 3;\n * p = (s + 2 - 6q^2)/(6(3q^2-1)) and F(x, y, z, -(2+s)y/3) = 2 prod_{i=0}^{2} (x - tau^i(p) y - tau^i(q) z);\n * the same identity through a resultant, without tau;\n * det [(1, -tau^i(p), -tau^i(q))]_{i=0,1,2} = 2;\n * 3q^2 - 1 = (3u^2 - 4)/4, so the denominators of p and q are 6(3u^2-4)/4 and 2;\n * F(x,0,z,0) = 2x^3 - 2xz^2 - z^3 and r^3 + 2r^2 - 2 has no rational root;\n * H = sum |coefficient| * 2^3 = 96.\n\"\"\"\nimport os\nimport sys\nfrom pathlib import Path\nos.environ.setdefault('SYMPY_GROUND_TYPES', 'python')\nsys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'common' / 'cyclic_cubic'))\nimport sympy as sp\nfrom cubicfield import CubicOverQuadratic, u, s\n\nx, y, z, t, r = sp.symbols('x y z t r')\nF = 2*x**3 + 2*x**2*y + 2*y**3 + y**2*z - 2*x*z**2 - z**3 + t*z**2 - t**3\ng = u**3 - 4*u - 4\nL = CubicOverQuadratic(g, -11, 4)\nprint('tau(u) =', L.tau_u)\nassert L.tau_u == L.red(-u/2 + s*(-6*u**2 + 9*u + 16)/22)\n\nq = u/2\ninv = L.inverse(3*u**2 - 4) # 1/(3q^2-1) = 4/(3u^2-4)\np = L.red((s + 2 - 6*q**2) * 4 * inv / 6)\nprint('p =', p)\nP = L.orbit(p)\nQo = L.orbit(q)\nprod = sp.Integer(1)\nfor i in range(3):\n prod = L.red(sp.expand(prod * (x - P[i]*y - Qo[i]*z)))\nlhs = L.red(F.subs(t, -(2 + s)*y/3))\nassert L.red(lhs - 2*prod) == 0\nprint('F(x,y,z,-(2+s)y/3) = 2 prod_i (x - tau^i(p) y - tau^i(q) z): verified')\n\n# resultant form: prod over roots theta of g of (x - p(theta) y - (theta/2) z), p = (s+2-3u^2/2)/(6(3u^2-4)/4)\nNm = 6*(3*u**2 - 4)*(x - u*z/2) - 4*(s + 2 - sp.Rational(3, 2)*u**2)*y\nR = sp.resultant(g, Nm, u) # = prod_theta Nm(theta)\nden = 6**3 * sp.resultant(g, 3*u**2 - 4, u)\nassert sp.expand(sp.rem(sp.Poly(sp.expand(den*F.subs(t, -(2 + s)*y/3) - 2*R), s), sp.Poly(s**2 + 11, s)).as_expr()) == 0\nprint('resultant form of the identity: verified (denominator 6^3*176)')\n\nM = sp.Matrix([[1, -P[i], -Qo[i]] for i in range(3)])\nd = L.red(M.det())\nassert d == 2\nprint('det =', d)\nassert sp.expand(3*q**2 - 1 - (3*u**2 - 4)/4) == 0\nprint('3q^2 - 1 = (3u^2 - 4)/4, N(3u^2 - 4) = 176')\n\nlhs2 = L.red(F.subs(t, -(2 - s)*y/3))\npc = L.conj(p)\nPc = L.orbit(pc)\nprod2 = sp.Integer(1)\nfor i in range(3):\n prod2 = L.red(sp.expand(prod2 * (x - Pc[i]*y - Qo[i]*z)))\nassert L.red(lhs2 - 2*prod2) == 0\nprint('conjugate identity (s -> -s): verified')\n\nF0 = sp.expand(F.subs({y: 0, t: 0}))\nassert F0 == 2*x**3 - 2*x*z**2 - z**3\nc = r**3 + 2*r**2 - 2\nassert all(c.subs(r, a) != 0 for a in (1, -1, 2, -2))\nassert sp.expand(F0.subs({x: 1, z: r}) + c) == 0\nprint('F(x,0,z,0) =', F0, '; with r = z/x it is -(r^3 + 2r^2 - 2), no rational root')\nHval = sum(abs(c) * 2**3 for c in sp.Poly(F, x, y, z, t).coeffs())\nassert Hval == 96\nprint('H =', Hval)\nprint('PASS 1.4.3b')\n"}, {"path":"v1/anc/code/1.4.3/1.4.3c_residues.py","sha256":"fa22a75a48e9d94dcf147df7fa7096341525f8e01a60b6f16503620e16c825b9","mode":420,"size":5241,"encoding":"utf-8","text":"\"\"\"Code 1.4.3c (Section 1.4.3, Lemmas lem:1.4.3-three and lem:1.4.3-two): all primitive 3-adic and 2-adic points.\n\nWritten for this bundle (not the source's verifiers). Pure Python (standard library).\nl_+ = (2+s)y + 3t, l_- = (2-s)y + 3t, s = s3 = 31 (mod 81) in Z_3 (code 1.4.3a).\n * complete residue tree (normalized primitive points, see restree.py) modulo 3^4: the pair (v(l_+), v(l_-))\n is determined on every class and is (1,0) or (1,3); it is determined from 3^4 on;\n * facts for the proof by hand: the points mod 3 are (1,0,0,-1), (1,1,0,0), (1,-1,0,1), (0,1,0,-1); at the\n point (-1,0,0,1) (scaled so that t = 1), every solution mod 3^4 with t = 1 has y = 3Y, Y = 5 or 23 (mod 27);\n * at 2: every primitive solution modulo 8 (all 8^4 tuples) has y odd and t even; the seven points mod 2;\n the congruences of the proof by hand (for y,z,t odd, F = 2(x^3+x^2y+y-x) mod 8; F = 2 mod 4 in the class\n (1,0,0,0)); for y odd and t even, l_+ = l_- = y + t = 1 modulo 2 O_K (2+s = 1+2w, 2-s = 3-2w, code 1.4.3a);\n * a direct enumeration of ALL primitive solutions mod 3^4 and mod 8 (no normalization, no tree) is done by the\n C program ../common/cyclic_cubic/brute_residues.c (case C), run by run_all.py.\n\"\"\"\nimport sys\nfrom itertools import product\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'common' / 'cyclic_cubic'))\nfrom restree import tree, level1, val_mod\n\n\ndef F(x, y, z, t):\n return 2*x**3 + 2*x*x*y + 2*y**3 + y*y*z - 2*x*z*z - z**3 + t*z*z - t**3\n\n\ndef pairs(k, s0=31):\n sol, m, sizes = tree(F, 3, k)\n assert (s0*s0 + 11) % m == 0\n dist, by_res, und = {}, {}, 0\n for (i, P) in sol:\n x, y, z, t = P\n a, b = val_mod((2 + s0)*y + 3*t, 3, m), val_mod((2 - s0)*y + 3*t, 3, m)\n if a is None or b is None:\n und += 1\n dist[(a, b)] = dist.get((a, b), 0) + 1\n by_res.setdefault(tuple(c % 3 for c in P), set()).add((a, b))\n return sol, sizes, dist, by_res, und\n\n\nassert [P for _, P in level1(F, 3)] == [(1, 0, 0, 2), (1, 1, 0, 0), (1, 2, 0, 1), (0, 1, 0, 2)]\nsol, sizes, dist, by_res, und = pairs(4)\nprint('p=3, mod 3^4: level sizes', sizes, ' pairs', sorted(dist.items()))\nassert und == 0 and set(dist) == {(1, 0), (1, 3)}\nassert by_res[(1, 0, 0, 2)] == {(1, 3)} and all(v == {(1, 0)} for k, v in by_res.items() if k != (1, 0, 0, 2))\nassert all((a - b) % 3 == 1 for a, b in dist)\nprint(' by residue mod 3:', {k: sorted(v) for k, v in by_res.items()}, ' v(l_+) - v(l_-) = 1 mod 3 on all classes')\nfirst = [k for k in range(1, 5) if pairs(k)[4] == 0][0]\nassert first == 4\nprint(' every pair determined from 3^%d on' % first)\n\n# hand proof: scale the class of (1,0,0,-1) so that t = 1, i.e. (x,y,z,t) = (-1+3X, 3Y, 3Z, 1)\nYs = set()\nfor (i, P) in sol:\n if tuple(c % 3 for c in P) != (1, 0, 0, 2):\n continue\n x, y, z, t = P\n lam = pow(t, -1, 81) # t is a unit; multiply the point by 1/t\n yy = (y * lam) % 81\n assert (x * lam) % 3 == 2 and (z * lam) % 3 == 0 and yy % 3 == 0\n Ys.add((yy // 3) % 27)\nassert sorted(Ys) == [5, 23]\nassert all(val_mod(1 - 29*Y, 3, 27) == 2 and val_mod(33*Y + 1, 3, 27) == 0 for Y in Ys)\nprint('class of (-1,0,0,1), t = 1: y = 3Y with Y mod 27 in', sorted(Ys), '; v(1-29Y) = 2, v(33Y+1) = 0')\n# the reduction steps of the proof by hand: G = F(-1+3X, 3Y, 3Z, 1)/3\nG = lambda X, Y, Z: F(-1 + 3*X, 3*Y, 3*Z, 1)\nassert all(G(X, Y, Z) % 3 == 0 for X in range(9) for Y in range(9) for Z in range(9))\nassert {Y % 9 for X in range(9) for Y in range(9) for Z in range(9) if (G(X, Y, Z)//3) % 9 == 0} == {5}\nfor X in range(3):\n for Z in range(3):\n allowed = {Y2 for Y2 in range(3) if all((G(X + 3*a, 5 + 9*Y2, Z + 3*b)//3) % 27 == 0\n for a in range(3) for b in range(3))}\n assert allowed == {(Z*Z*(X + 1) - X*X - X - 1) % 3}\nassert {(Z*Z*(X + 1) - X*X - X - 1) % 3 for X in range(3) for Z in range(3)} == {0, 2}\nprint('hand reduction at (-1,0,0,1): Y = 5 mod 9; Y = 5+9Y2 with Y2 = Z^2(X+1)-X^2-X-1 in {0,2} mod 3')\n\n# p = 2\nassert [P for _, P in level1(F, 2)] == [(1, 0, 0, 0), (1, 1, 0, 0), (1, 1, 1, 0), (1, 1, 1, 1),\n (0, 1, 0, 0), (0, 1, 1, 0), (0, 1, 1, 1)]\npat = set()\nn = 0\nfor P in product(range(8), repeat=4):\n if all(c % 2 == 0 for c in P) or F(*P) % 8:\n continue\n n += 1\n pat.add((P[1] % 2, P[3] % 2))\nassert pat == {(1, 0)}\nprint('mod 8: %d primitive solutions, all with y odd and t even' % n)\nfor Pm in [(1, 0, 0, 0)]:\n assert all(F(*[a + 2*b for a, b in zip(Pm, e)]) % 4 for e in product(range(2), repeat=4))\nassert all((F(x, y, z, t) - 2*(x**3 + x*x*y + y - x)) % 8 == 0\n for x in range(8) for y in range(1, 8, 2) for z in range(1, 8, 2) for t in range(1, 8, 2))\nassert all(F(x, y, z, t) % 4 == 2 for x in range(1, 4, 2) for y in range(0, 4, 2) for z in range(0, 4, 2) for t in range(0, 4, 2))\nprint('mod 4: no solution in the class (1,0,0,0) mod 2 (F = 2 mod 4 there); mod 8: none with y,z,t odd')\nprint(' (for y,z,t odd, F = 2(x^3 + x^2 y + y - x) mod 8)')\nassert all(F(x, y, z, t) % 8 for x in range(8) for y in range(1, 8, 2) for z in range(1, 8, 2) for t in range(1, 8, 2))\nprint('PASS 1.4.3c')\n"}, {"path":"v1/anc/code/1.4.3/1.4.3d_split_primes.py","sha256":"d9c4b243c8f9ffac9c39336324cc31e03325dd89551d54932d48387e241c5528","mode":420,"size":1556,"encoding":"utf-8","text":"\"\"\"Code 1.4.3d (Section 1.4.3, after Lemma lem:1.4.3-good; a confirmation, not used in the proof).\n\nWritten for this bundle. Pure Python (standard library).\nFor every prime 5 <= p < 500 that splits in K = Q(sqrt(-11)) and modulo which g = u^3 - 4u - 4 has no root, and\nfor both square roots s0 of -11 modulo p, the plane cubic F(x, y, z, -(2+s0)y/3) has no zero in P^2(F_p) (the\nreduction of the statement of Lemma lem:1.4.3-good). The source's own check at 5, 31, 59 is contained in this.\n\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'common' / 'cyclic_cubic'))\nfrom restree import primes_upto, roots_mod_p, legendre\n\n\ndef F(x, y, z, t):\n return 2*x**3 + 2*x*x*y + 2*y**3 + y*y*z - 2*x*z*z - z**3 + t*z*z - t**3\n\n\ndef plane_zeros(p, s0):\n c = (-(2 + s0) * pow(3, -1, p)) % p\n pts = [(1, b, d) for b in range(p) for d in range(p)] + [(0, 1, d) for d in range(p)] + [(0, 0, 1)]\n return [(X, Y, Z) for (X, Y, Z) in pts if F(X, Y, Z, c * Y % p) % p == 0]\n\n\ntested = []\nfor p in primes_upto(500):\n if p < 5 or legendre(-11, p) != 1 or roots_mod_p([1, 0, -4, -4], p):\n continue\n s0 = next(a for a in range(p) if (a * a + 11) % p == 0)\n for sg in (s0, p - s0):\n assert plane_zeros(p, sg) == [], (p, sg)\n tested.append(p)\nassert {5, 31, 59} <= set(tested)\nprint('split primes with g irreducible, 5 <= p < 500:', len(tested), 'primes, from', tested[0], 'to', tested[-1])\nprint('no zero of the plane section mod p for either root of s^2 = -11')\nprint('PASS 1.4.3d')\n"}, {"path":"v1/anc/code/1.4.3/README.md","sha256":"0a249d3341ec0e8a8d668a49f2143f2e454ee52fd33d3f17f883a44ec7f12205","mode":420,"size":4503,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Code for section 1.4.3: 2x^3 + 2x^2y + 2y^3 + y^2z \u2212 2xz^2 \u2212 z^3 + tz^2 \u2212 t^3 = 0\n\nOnly the zero solution. Proof as in 1.4.2 with K = Q(\u221a\u221211), L = K(u), g(u) = u^3 \u2212 4u \u2212 4 (u = 2q,\n2q^3 \u2212 2q \u2212 1 = 0; the same field as h_C(v) = v^3 \u2212 v^2 \u2212 v \u2212 1), the plane \u2113_+ = (2+s)y + 3t = 0, and the\ndecisive places above 3.\n\nAll scripts were written for this bundle (agent S2, 17 Oct 2026). The source's certificate scripts\n(`verify_tritangent_factors.py`, `verify_fields.gp`, `local_residue_c.py`, `verify_additional_checks.py`,\n`verify_local_points_bc.py`, `steiner_exact_bc.py`, `fano_*.py`) were read as references and were NOT run. No\nPARI/GP, Magma or Sage is used.\n\nNotation: `p` in the scripts (as in the source) is the element \u03c1 = (s + 2 \u2212 6q^2)/(6(3q^2\u22121)) of the text, q = u/2.\n\nRequirements: Python 3.10+; SymPy 1.14 (codes a, b); a C99 compiler (`cc`, or `$CC`) for the C part of 1.4.3c.\nShared helpers: `../common/cyclic_cubic/`. Do not use `python -O`.\n\nRun everything: `python3 run_all.py` (about 5 s); one id: `python3 run_all.py 1.4.3c`.\n\"Run here\" = run on 17 Oct 2026 with Python 3.11.15, SymPy 1.14.0, gcc 13.3; output in `expected/.txt`.\n\n| id | script(s) | what it computes | command | time | run here |\n|---|---|---|---|---|---|\n| 1.4.3a | `1.4.3a_fields.py` | g: rational roots, disc(g) = \u2212176, disc(h_C) = \u221244, u = v^2 \u2212 1 and v = u^2/2 \u2212 1, h_C(v+1) = v^3 + 2v^2 \u2212 2 (Eisenstein at 2); g mod 11 = (u\u22124)^2(u\u22123); no root mod 3; 3 split, 2 inert in K; s3 = 31 mod 81; \u03c9 = (1+s)/2; N(3u^2\u22124) = 176; the case distinction for all p < 3000 | `python3 run_all.py 1.4.3a` | 0.5 s | yes |\n| 1.4.3b | `1.4.3b_plane.py` | \u03c4(u) = (\u2212u + 4s/g'(u))/2 has order 3; F(x,y,z,\u2212(2+s)y/3) = 2\u220f(x \u2212 \u03c4^i(p)y \u2212 \u03c4^i(q)z) (directly and by a resultant); det = 2; the conjugate identity; F(x,0,z,0) | `python3 run_all.py 1.4.3b` | 0.9 s | yes |\n| 1.4.3c | `1.4.3c_residues.py`, `../common/cyclic_cubic/brute_residues.c` (case C) | complete residue tree mod 3^4 with the valuation pairs; all primitive solutions mod 8; the congruences of the proofs by hand; direct enumeration of all primitive solutions mod 3^4 and mod 8 | `python3 run_all.py 1.4.3c` | 1.4 s | yes |\n| 1.4.3d | `1.4.3d_split_primes.py` | confirmation of Lemma 1.4.3-good for the 32 primes 5 \u2264 p < 500 that split in K with g irreducible mod p (including the source's 5, 31, 59) | `python3 run_all.py 1.4.3d` | 2.5 s | yes |\n\n## Expected key lines\n1.4.3a:\n```\ng = u^3 - 4u - 4: no rational root; disc(g) = -176 = -2^4*11; disc(h_C) = -44\nh_C(v+1) = v**3 + 2*v**2 - 2 (Eisenstein at 2)\ng mod 11 = (u-4)^2 (u-3); simple root 3\n3 splits in K, s3 = 3190 mod 3^8 (= 31 mod 81); 2 is inert in K\nRes(g, 3u^2-4) = N(3u^2-4) = 176\nprimes 3 <= p < 3000, p != 11: (behaviour in K, number of roots of g) -> [(('inert', 1), 219), (('split', 0), 144), (('split', 3), 65)]\nPASS 1.4.3a\n```\n1.4.3b:\n```\ntau(u) = -3*s*u**2/11 + 9*s*u/22 + 8*s/11 - u/2\np = -s*u**2/11 + 3*s*u/22 + 8*s/33 - 1/3\nF(x,y,z,-(2+s)y/3) = 2 prod_i (x - tau^i(p) y - tau^i(q) z): verified\ndet = 2\nPASS 1.4.3b\n```\n1.4.3c:\n```\np=3, mod 3^4: level sizes [4, 36, 324, 2916] pairs [((1, 0), 2187), ((1, 3), 729)]\nclass of (-1,0,0,1), t = 1: y = 3Y with Y mod 27 in [5, 23] ; v(1-29Y) = 2, v(33Y+1) = 0\nmod 8: 256 primitive solutions, all with y odd and t even\nC mod 3^4 (s=31): 157464 primitive solutions; pairs (v(l+),v(l-)):count (1,0):118098 (1,3):39366\nC mod 8: 256 primitive solutions, 0 with y even or t odd\nPASS brute_residues C\n```\n1.4.3d: `split primes with g irreducible, 5 <= p < 500: 32 primes, from 5 to 487`, `PASS 1.4.3d`.\n\n## Correspondence with the source's checks\n- `verify_tritangent_factors.py` \u2194 1.4.3b; `verify_fields.gp` (`nfdisc` = \u221244, irreducibility mod 3) \u2194 1.4.3a.\n- `local_residue_c.py` (tree mod 3^4; no F_p-point on the planes at 5, 31, 59) \u2194 1.4.3c and 1.4.3d.\n- `verify_additional_checks.py`, part \"cubic C\" (y odd and t even mod 8) \u2194 1.4.3c.\n- The tame criterion at 2 (unit norms in a tamely totally ramified cubic extension) is not needed: \u03c8 \u2261 1 mod 2 is\n a cube by Hensel's lemma (Lemma 1.4.3-two); the Eisenstein shift is checked in 1.4.3a for the remark only.\n"}, {"path":"v1/anc/code/1.4.3/expected/1.4.3a.txt","sha256":"e3cb4fb83bdde24ff1ffe1ca6d9fc3ea71f117782913c3c791c6d7e2b84bb5e4","mode":420,"size":665,"encoding":"utf-8","text":"=== 1.4.3a: 1.4.3a_fields.py ===\ng = u^3 - 4u - 4: no rational root; disc(g) = -176 = -2^4*11; disc(h_C) = -44\nu = v^2 - 1, v = u^2/2 - 1: inverse maps between the roots of h_C and g\nh_C(v+1) = v**3 + 2*v**2 - 2 (Eisenstein at 2)\nq = u/2: 2q^3 - 2q - 1 = g(u)/4\ng mod 11 = (u-4)^2 (u-3); simple root 3\ng has no root mod 3\n3 splits in K, s3 = 3190 mod 3^8 (= 31 mod 81); 2 is inert in K\nw = (1+s)/2: w^2 - w + 3 = 0, 2+s = 1+2w, 2-s = 3-2w\nRes(g, 3u^2-4) = N(3u^2-4) = 176\nprimes 3 <= p < 3000, p != 11: (behaviour in K, number of roots of g) -> [(('inert', 1), 219), (('split', 0), 144), (('split', 3), 65)]\nPASS 1.4.3a\nPASS: all requested checks of section 1.4.3\n"}, {"path":"v1/anc/code/1.4.3/expected/1.4.3b.txt","sha256":"aaf8cb087a2e7b01f45edb772e96560ba0f897b127309fd2a7c91bdfa07cbfd6","mode":420,"size":502,"encoding":"utf-8","text":"=== 1.4.3b: 1.4.3b_plane.py ===\ntau(u) = -3*s*u**2/11 + 9*s*u/22 + 8*s/11 - u/2\np = -s*u**2/11 + 3*s*u/22 + 8*s/33 - 1/3\nF(x,y,z,-(2+s)y/3) = 2 prod_i (x - tau^i(p) y - tau^i(q) z): verified\nresultant form of the identity: verified (denominator 6^3*176)\ndet = 2\n3q^2 - 1 = (3u^2 - 4)/4, N(3u^2 - 4) = 176\nconjugate identity (s -> -s): verified\nF(x,0,z,0) = 2*x**3 - 2*x*z**2 - z**3 ; with r = z/x it is -(r^3 + 2r^2 - 2), no rational root\nH = 96\nPASS 1.4.3b\nPASS: all requested checks of section 1.4.3\n"}, {"path":"v1/anc/code/1.4.3/expected/1.4.3c.txt","sha256":"d869ad967827168ffcd8047391952d9e6efef8d4c6802a4a1f1f6be1745439c2","mode":420,"size":967,"encoding":"utf-8","text":"=== 1.4.3c: 1.4.3c_residues.py ===\np=3, mod 3^4: level sizes [4, 36, 324, 2916] pairs [((1, 0), 2187), ((1, 3), 729)]\n by residue mod 3: {(1, 0, 0, 2): [(1, 3)], (1, 1, 0, 0): [(1, 0)], (1, 2, 0, 1): [(1, 0)], (0, 1, 0, 2): [(1, 0)]} v(l_+) - v(l_-) = 1 mod 3 on all classes\n every pair determined from 3^4 on\nclass of (-1,0,0,1), t = 1: y = 3Y with Y mod 27 in [5, 23] ; v(1-29Y) = 2, v(33Y+1) = 0\nhand reduction at (-1,0,0,1): Y = 5 mod 9; Y = 5+9Y2 with Y2 = Z^2(X+1)-X^2-X-1 in {0,2} mod 3\nmod 8: 256 primitive solutions, all with y odd and t even\nmod 4: no solution in the class (1,0,0,0) mod 2 (F = 2 mod 4 there); mod 8: none with y,z,t odd\n (for y,z,t odd, F = 2(x^3 + x^2 y + y - x) mod 8)\nPASS 1.4.3c\n=== C: brute_residues.c C ===\nC mod 3^4 (s=31): 157464 primitive solutions; pairs (v(l+),v(l-)):count (1,0):118098 (1,3):39366\nC mod 8: 256 primitive solutions, 0 with y even or t odd\nPASS brute_residues C\nPASS: all requested checks of section 1.4.3\n"}, {"path":"v1/anc/code/1.4.3/expected/1.4.3d.txt","sha256":"f07612f65a3c4f6bf2bfc74426e88ec6305f13ed3f4ca89aa3898472a0351e20","mode":420,"size":231,"encoding":"utf-8","text":"=== 1.4.3d: 1.4.3d_split_primes.py ===\nsplit primes with g irreducible, 5 <= p < 500: 32 primes, from 5 to 487\nno zero of the plane section mod p for either root of s^2 = -11\nPASS 1.4.3d\nPASS: all requested checks of section 1.4.3\n"}, {"path":"v1/anc/code/1.4.3/run_all.py","sha256":"e062407a3631f2eb1426942fecc40fc42c14ab6e8b06cf94f399d47d4b77fc39","mode":420,"size":2201,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Run the checks of Section 1.4.3 (2x^3+2x^2y+2y^3+y^2z-2xz^2-z^3+tz^2-t^3 = 0).\n\nUsage: python3 run_all.py # every code id, in order\n python3 run_all.py 1.4.3c # only the listed id(s)\nEach Python script runs in a fresh `python3 -I -B` process; the C program ../common/cyclic_cubic/brute_residues.c\nis compiled into a temporary directory with $CC (default: cc) and run with the argument C.\nDo not use python -O (the checks are asserts). Written for this bundle.\n\"\"\"\nimport os\nimport subprocess\nimport sys\nimport tempfile\nfrom pathlib import Path\n\nHERE = Path(__file__).resolve().parent\nCOMMON = HERE.parent / 'common' / 'cyclic_cubic'\nSTEPS = [\n ('1.4.3a', [('py', '1.4.3a_fields.py')]),\n ('1.4.3b', [('py', '1.4.3b_plane.py')]),\n ('1.4.3c', [('py', '1.4.3c_residues.py'), ('c', 'brute_residues.c', 'C')]),\n ('1.4.3d', [('py', '1.4.3d_split_primes.py')]),\n]\n\n\ndef run_c(src, arg, tmp):\n exe = Path(tmp) / src.replace('.c', '')\n cc = os.environ.get('CC', 'cc')\n subprocess.run([cc, '-O2', '-std=c99', '-o', str(exe), str(COMMON / src)], check=True)\n print('=== C: %s %s ===' % (src, arg), flush=True)\n return subprocess.run([str(exe), arg]).returncode\n\n\ndef main():\n if not __debug__:\n raise SystemExit('Run without -O: the checks are assert statements.')\n want = sys.argv[1:]\n known = [cid for cid, _ in STEPS]\n bad = [w for w in want if w not in known]\n if bad:\n raise SystemExit('unknown code id(s): %s; known: %s' % (bad, known))\n with tempfile.TemporaryDirectory() as tmp:\n for cid, items in STEPS:\n if want and cid not in want:\n continue\n for item in items:\n if item[0] == 'py':\n print('=== %s: %s ===' % (cid, item[1]), flush=True)\n rc = subprocess.run([sys.executable, '-I', '-B', str(HERE / item[1])], cwd=HERE).returncode\n else:\n rc = run_c(item[1], item[2], tmp)\n if rc:\n raise SystemExit('FAIL %s (%s)' % (cid, item[1]))\n print('PASS: all requested checks of section 1.4.3')\n\n\nif __name__ == '__main__':\n main()\n"}, {"path":"v1/anc/code/1.4.4/1.4.4a_identities.py","sha256":"06367f1be093840c9d409e5135fd1bb19a1cbf8e93cb8f5d0e3f167184ed1001","mode":420,"size":1966,"encoding":"utf-8","text":"\"\"\"Code 1.4.4a (Section 1.4.4, Lemma lem:1.4.4-id): the identities for 8x^4 + 7y^4 + 2z^4 - t^4 = 0.\n\nWritten for this bundle (not the source's verifiers). Python 3 with SymPy (polynomial expansion only).\nWith Q = 8x^4 + 7y^4 + 2z^4 - t^4, f = 7y^2 + 2z^2 - 3t^2, g = 7y^2 + 2z^2 + 3t^2, A_pm = 2x^2 pm 2xz + z^2:\n -f g - 72x^4 - 14(y^2 - z^2)^2 = -9 Q,\n 72x^4 + 14(y^2 - z^2)^2 = 2 N(6x^2 + (y^2 - z^2) sqrt(-7)),\n t^4 - 7y^4 - 2 A_+ A_- = -Q, A_+ A_- = 4x^4 + z^4, t^4 - 7y^4 = N(t^2 + y^2 sqrt 7),\n A_+ = x^2 + (x+z)^2, A_+ - A_- = 4xz, A_+ + A_- = 4x^2 + 2z^2, g - f = 6t^2,\n f = 9y^2 (mod t, mod y^2 - z^2) [i.e. f - 9y^2 = 2(z^2 - y^2) - 3t^2],\nand H = 2^4 (8 + 7 + 2 + 1) = 288.\n\"\"\"\nimport os\nos.environ.setdefault('SYMPY_GROUND_TYPES', 'python')\nimport sympy as sp\n\nx, y, z, t = sp.symbols('x y z t')\nr7, rm7 = sp.sqrt(7), sp.sqrt(-7)\nQ = 8*x**4 + 7*y**4 + 2*z**4 - t**4\nf = 7*y**2 + 2*z**2 - 3*t**2\ng = 7*y**2 + 2*z**2 + 3*t**2\nAp = 2*x**2 + 2*x*z + z**2\nAm = 2*x**2 - 2*x*z + z**2\nE = sp.expand\nchecks = [\n ('-fg - 72x^4 - 14(y^2-z^2)^2 = -9Q', E(-f*g - 72*x**4 - 14*(y**2 - z**2)**2 + 9*Q)),\n ('72x^4 + 14(y^2-z^2)^2 = 2N(6x^2+(y^2-z^2)sqrt(-7))',\n E(72*x**4 + 14*(y**2 - z**2)**2 - 2*(6*x**2 + (y**2 - z**2)*rm7)*(6*x**2 - (y**2 - z**2)*rm7))),\n ('t^4 - 7y^4 - 2A+A- = -Q', E(t**4 - 7*y**4 - 2*Ap*Am + Q)),\n ('A+A- = 4x^4 + z^4', E(Ap*Am - 4*x**4 - z**4)),\n ('t^4 - 7y^4 = N(t^2 + y^2 sqrt7)', E(t**4 - 7*y**4 - (t**2 + y**2*r7)*(t**2 - y**2*r7))),\n ('A+ = x^2 + (x+z)^2', E(Ap - x**2 - (x + z)**2)),\n ('A+ - A- = 4xz', E(Ap - Am - 4*x*z)),\n ('A+ + A- = 4x^2 + 2z^2', E(Ap + Am - 4*x**2 - 2*z**2)),\n ('g - f = 6t^2', E(g - f - 6*t**2)),\n ('f - 9y^2 = 2(z^2-y^2) - 3t^2', E(f - 9*y**2 - 2*(z**2 - y**2) + 3*t**2)),\n]\nfor name, val in checks:\n assert val == 0, name\n print('identity', name, ': ok')\nH = sum(abs(c) * 2**4 for c in (8, 7, 2, -1))\nassert H == 288\nprint('H =', H)\nprint('PASS 1.4.4a')\n"}, {"path":"v1/anc/code/1.4.4/1.4.4b_residues.py","sha256":"a8dc91769c1b7b210a9ae034225dd566a48f632ef2b1d5603a08fd1f212c13a9","mode":420,"size":3108,"encoding":"utf-8","text":"\"\"\"Code 1.4.4b (Section 1.4.4, Lemmas lem:1.4.4-three, lem:1.4.4-two, lem:1.4.4-seven): exhaustive residue checks.\n\nWritten for this bundle (not the source's verifiers). Pure Python (standard library).\nQ = 8x^4 + 7y^4 + 2z^4 - t^4, f = 7y^2 + 2z^2 - 3t^2, A_+ = 2x^2 + 2xz + z^2.\n * mod 16: every solution with x, y, z, t not all even has x, y, z, t odd (all 16^4 tuples);\n * for odd x, z: A_+ = 1 or 5 (mod 8); for odd y, z, t: f = 6 (mod 8);\n * mod 3: the solutions with f = 0 (mod 3) are exactly those with x = t = 0 and y, z units (all 3^4 tuples);\n * mod 81: if w is a 3-adic unit with 7 + 2w^4 = 0 (mod 81), then w^2 = 1 (mod 3) and v_3(7 + 2w^2) = 2;\n * mod 7: x^4 + 2z^4 = t^4 with (x,z,t) != 0: the table of the text (r = x/z, s = t/z), A_+ and f are units\n with the same quadratic character (all 7^3 tuples);\n * the values (2/7) = 1, (-1/7) = -1, (-7/3) = -1, (7/3) = 1, and -7 = 1 (mod 8).\n\"\"\"\nfrom itertools import product\n\n\ndef Q(x, y, z, t):\n return 8*x**4 + 7*y**4 + 2*z**4 - t**4\n\n\ndef leg(a, p):\n a %= p\n return 0 if a == 0 else (1 if pow(a, (p - 1)//2, p) == 1 else -1)\n\n\npats = set()\nfor P in product(range(16), repeat=4):\n if all(c % 2 == 0 for c in P) or Q(*P) % 16:\n continue\n pats.add(tuple(c % 2 for c in P))\nassert pats == {(1, 1, 1, 1)}\nprint('mod 16: primitive solutions have parity pattern', sorted(pats))\nAvals = {(2*a*a + 2*a*c + c*c) % 8 for a in range(1, 8, 2) for c in range(1, 8, 2)}\nfvals = {(7*b*b + 2*c*c - 3*d*d) % 8 for b in range(1, 8, 2) for c in range(1, 8, 2) for d in range(1, 8, 2)}\nassert Avals == {1, 5} and fvals == {6}\nprint('x, z odd: A_+ mod 8 in', sorted(Avals), '; y, z, t odd: f mod 8 in', sorted(fvals))\n\nzero3 = sorted(P for P in product(range(3), repeat=4)\n if P != (0, 0, 0, 0) and Q(*P) % 3 == 0 and (7*P[1]**2 + 2*P[2]**2 - 3*P[3]**2) % 3 == 0)\nassert zero3 == [(0, 1, 1, 0), (0, 1, 2, 0), (0, 2, 1, 0), (0, 2, 2, 0)]\nprint('mod 3: Q = f = 0 only at', zero3)\nvals81 = set()\nfor w in range(81):\n if w % 3 and (7 + 2*w**4) % 81 == 0:\n e, v = (7 + 2*w*w) % 81, 0\n assert e != 0\n while e % 3 == 0:\n e //= 3\n v += 1\n vals81.add((w*w % 3, v))\nassert vals81 == {(1, 2)}\nprint('mod 81: units w with 7 + 2w^4 = 0 have w^2 = 1 mod 3 and v_3(7 + 2w^2) = 2')\n\nrows = set()\nfor a, c, d in product(range(7), repeat=3):\n if (a, c, d) == (0, 0, 0) or (a**4 + 2*c**4 - d**4) % 7:\n continue\n A = (2*a*a + 2*a*c + c*c) % 7\n f7 = (2*c*c - 3*d*d) % 7\n assert A and f7 and leg(A, 7) == leg(f7, 7)\n if c:\n ic = pow(c, -1, 7)\n rows.add(((a*ic) % 7, (d*ic) % 7, (A*ic*ic) % 7, (f7*ic*ic) % 7))\n else:\n assert leg(A, 7) == leg(f7, 7) == 1\nassert rows == {(0, 2, 1, 4), (0, 5, 1, 4), (2, 3, 6, 3), (2, 4, 6, 3), (5, 3, 5, 3), (5, 4, 5, 3)}\nprint('mod 7 (z != 0): (r, s, A_+/z^2, f/z^2) in', sorted(rows), '; for z = 0 both are squares')\nassert leg(2, 7) == 1 and leg(-1, 7) == -1 and leg(-7, 3) == -1 and leg(7, 3) == 1 and (-7) % 8 == 1\nprint('(2/7) = 1, (-1/7) = -1, (-7/3) = -1, (7/3) = 1, -7 = 1 mod 8')\nprint('PASS 1.4.4b')\n"}, {"path":"v1/anc/code/1.4.4/1.4.4c_symbols.py","sha256":"7b3a1bc4c52a1716764148f62e69907c34fe586d11cc8e72f11f487d2cc3647e","mode":420,"size":3192,"encoding":"utf-8","text":"\"\"\"Code 1.4.4c (Section 1.4.4, Step 6; an independent check of Lemmas lem:1.4.4-three, -two, -seven).\n\nWritten for this bundle. Pure Python (standard library).\nFor p = 2, 3, 7 the program builds the complete residue tree of normalized primitive points of\nQ = 8x^4 + 7y^4 + 2z^4 - t^4 = 0 over Z_p (see ../common/cyclic_cubic/restree.py) to the precision 2^5, 3^4, 7^2,\nand on every class evaluates the Hilbert symbols (-7, f)_p and (7, A_+)_p by the formulas of Serre\n(A Course in Arithmetic, Ch. III, Theorem 1) from the valuation and the unit residue of f and A_+; it checks that\nthese data are determined on every class (except v_3(A_+), which is not needed since 7 is a square in Q_3) and\nthat both symbols are 1 (p = 2, 3), that v_3(f) is 0 or 2, and that the product of the two symbols is 1\n(p = 7). This repeats, for all p-adic points, the conclusions c_2 = c_3 = c_7 = 1 of the text.\n\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parent.parent / 'common' / 'cyclic_cubic'))\nfrom restree import tree, legendre\n\n\ndef Q(x, y, z, t):\n return 8*x**4 + 7*y**4 + 2*z**4 - t**4\n\n\ndef split(a, p, m):\n \"\"\"(valuation, unit part mod m/p^v) of a modulo m, or None if a = 0 mod m.\"\"\"\n a %= m\n if a == 0:\n return None\n v = 0\n while a % p == 0:\n a //= p\n m //= p\n v += 1\n return v, a % m, m\n\n\ndef hilbert(a, b, p):\n \"\"\"(a, b)_p for a = (alpha, u, mu), b = (beta, v, nu) given as valuation and unit residue mod mu, nu.\"\"\"\n (al, uu, mu), (be, vv, nu) = a, b\n if p != 2:\n assert mu % p == 0 and nu % p == 0\n sign = (-1) ** (al * be * ((p - 1) // 2))\n return sign * legendre(uu, p) ** be * legendre(vv, p) ** al\n assert mu % 8 == 0 and nu % 8 == 0, 'unit part not known modulo 8'\n eps = lambda w: ((w % 8) - 1) // 2 % 2\n om = lambda w: (((w % 8) ** 2 - 1) // 8) % 2\n return (-1) ** (eps(uu) * eps(vv) + al * om(vv) + be * om(uu))\n\n\ndef run(p, k):\n sol, m, sizes = tree(Q, p, k)\n seen = {}\n for (i, P) in sol:\n x, y, z, t = P\n f = split(7*y*y + 2*z*z - 3*t*t, p, m)\n A = split(2*x*x + 2*x*z + z*z, p, m)\n assert f is not None\n m7 = split(-7, p, p**10)\n p7 = split(7, p, p**10)\n h1 = hilbert(m7, f, p)\n if A is None:\n # only at p = 3, where 7 is a unit and a square mod 3, so (7, b)_3 = (7/3)^{v_3(b)} = 1 for every b\n assert p == 3 and legendre(7, 3) == 1\n h2, vA = 1, '>=%d' % k\n else:\n h2, vA = hilbert(p7, A, p), A[0]\n key = (f[0], vA, h1, h2)\n seen[key] = seen.get(key, 0) + 1\n return sizes, seen\n\n\nfor p, k in ((2, 5), (3, 4), (7, 2)):\n sizes, seen = run(p, k)\n print('p=%d, mod %d^%d: level sizes %s' % (p, p, k, sizes))\n print(' (v_p(f), v_p(A_+), (-7,f)_p, (7,A_+)_p): classes', sorted(seen.items(), key=str))\n if p in (2, 3):\n assert all(h1 == 1 and h2 == 1 for (_, _, h1, h2) in seen)\n else:\n assert all(h1 * h2 == 1 for (_, _, h1, h2) in seen)\n assert {(a, b) for (a, b, _, _) in seen} == {(0, 0)}\n if p == 3:\n assert {a for (a, _, _, _) in seen} == {0, 2}\nprint('PASS 1.4.4c')\n"}, {"path":"v1/anc/code/1.4.4/README.md","sha256":"e7d96f5c8f332cc56e1aed773a21b95672b3a138c4388981607facb6300524c6","mode":420,"size":3357,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Code for section 1.4.4: 8x^4 + 7y^4 + 2z^4 \u2212 t^4 = 0\n\nOnly the zero solution. Proof: for a primitive solution, f = 7y^2 + 2z^2 \u2212 3t^2 and A_+ = 2x^2 + 2xz + z^2 satisfy\n(\u22127, f)_p (7, A_+)_p = 1 at every prime p and = \u22121 at \u221e, contradicting Hilbert's product formula (Section 1.4.4).\n\nAll scripts were written for this bundle (agent S2, 17 Oct 2026). The source's script `verify_additional_checks.py`\n(part \"quartic\") was read as a reference and NOT run. No PARI/GP, Magma or Sage.\n\nRequirements: Python 3.10+; SymPy 1.14 (code 1.4.4a only); a C99 compiler for the C part of 1.4.4c. Shared\nhelpers: `../common/cyclic_cubic/` (`restree.py`, `brute_residues.c`). Do not use `python -O`.\n\nRun everything: `python3 run_all.py` (about 1 s). \"Run here\" = run on 17 Oct 2026 with Python 3.11.15,\nSymPy 1.14.0, gcc 13.3; output in `expected/.txt`.\n\n| id | script(s) | what it computes | command | time | run here |\n|---|---|---|---|---|---|\n| 1.4.4a | `1.4.4a_identities.py` | \u2212fg \u2212 72x^4 \u2212 14(y^2\u2212z^2)^2 = \u22129Q, t^4 \u2212 7y^4 \u2212 2A_+A_\u2212 = \u2212Q, A_+A_\u2212 = 4x^4 + z^4, the two norm forms, A_+ = x^2 + (x+z)^2, A_+ \u00b1 A_\u2212, g \u2212 f = 6t^2; H = 288 | `python3 run_all.py 1.4.4a` | 0.4 s | yes |\n| 1.4.4b | `1.4.4b_residues.py` | all tuples mod 16 (only x,y,z,t odd); A_+ mod 8 \u2208 {1,5}, f \u2261 6 mod 8; mod 3 (f \u2261 0 only for x \u2261 t \u2261 0); units w mod 81 with 7 + 2w^4 \u2261 0: v_3(7+2w^2) = 2; all (x,z,t) mod 7: the table of Lemma 1.4.4-seven; the Legendre symbols used | `python3 run_all.py 1.4.4b` | 0.1 s | yes |\n| 1.4.4c | `1.4.4c_symbols.py`, `../common/cyclic_cubic/brute_residues.c` (case Q) | the two Hilbert symbols (Serre's formulas) on the complete residue trees of primitive points over Z_2, Z_3, Z_7 (mod 2^5, 3^4, 7^2); direct enumeration of all primitive solutions mod 3^4 (v_3(f)) and 7^2 ((f/7)(A_+/7)) | `python3 run_all.py 1.4.4c` | 0.4 s | yes |\n\n## Expected key lines\n```\nidentity -fg - 72x^4 - 14(y^2-z^2)^2 = -9Q : ok\nidentity t^4 - 7y^4 - 2A+A- = -Q : ok\nH = 288\nmod 16: primitive solutions have parity pattern [(1, 1, 1, 1)]\nx, z odd: A_+ mod 8 in [1, 5] ; y, z, t odd: f mod 8 in [6]\nmod 3: Q = f = 0 only at [(0, 1, 1, 0), (0, 1, 2, 0), (0, 2, 1, 0), (0, 2, 2, 0)]\nmod 81: units w with 7 + 2w^4 = 0 have w^2 = 1 mod 3 and v_3(7 + 2w^2) = 2\nmod 7 (z != 0): (r, s, A_+/z^2, f/z^2) in [(0, 2, 1, 4), (0, 5, 1, 4), (2, 3, 6, 3), (2, 4, 6, 3), (5, 3, 5, 3), (5, 4, 5, 3)] ; for z = 0 both are squares\np=2, mod 2^5: ... classes [((1, 0, 1, 1), 2048)]\np=3, mod 3^4: ... classes [((0, '>=4', 1, 1), 162), ((0, 0, 1, 1), 4374), ((0, 2, 1, 1), 1296), ((2, 0, 1, 1), 1458)]\np=7, mod 7^2: ... classes [((0, 0, -1, -1), 1372), ((0, 0, 1, 1), 1372)]\nQ mod 3^4: 393660 primitive solutions; v_3(f):count 0:314928 2:78732\nQ mod 7^2: 115248 primitive solutions; f, A+ units at 7 with (f/7)(A+/7) = 1: 115248, = -1: 0, f or A+ divisible by 7: 0\n```\n(In 1.4.4c the tuple is (v_p(f), v_p(A_+), (\u22127,f)_p, (7,A_+)_p); `'>=4'`: A_+ \u2261 0 mod 3^4 on that class, which does\nnot matter because 7 is a square in Q_3.)\n\n"}, {"path":"v1/anc/code/1.4.4/expected/1.4.4a.txt","sha256":"3e0f1a113f4020dd16696b99445d787eda661aec79d89c0ef20e6c2cbc83c7a6","mode":420,"size":497,"encoding":"utf-8","text":"=== 1.4.4a: 1.4.4a_identities.py ===\nidentity -fg - 72x^4 - 14(y^2-z^2)^2 = -9Q : ok\nidentity 72x^4 + 14(y^2-z^2)^2 = 2N(6x^2+(y^2-z^2)sqrt(-7)) : ok\nidentity t^4 - 7y^4 - 2A+A- = -Q : ok\nidentity A+A- = 4x^4 + z^4 : ok\nidentity t^4 - 7y^4 = N(t^2 + y^2 sqrt7) : ok\nidentity A+ = x^2 + (x+z)^2 : ok\nidentity A+ - A- = 4xz : ok\nidentity A+ + A- = 4x^2 + 2z^2 : ok\nidentity g - f = 6t^2 : ok\nidentity f - 9y^2 = 2(z^2-y^2) - 3t^2 : ok\nH = 288\nPASS 1.4.4a\nPASS: all requested checks of section 1.4.4\n"}, {"path":"v1/anc/code/1.4.4/expected/1.4.4b.txt","sha256":"7d783c4b3272f3005e3b47c8039113247f5881006b5dc21f10420859397da913","mode":420,"size":589,"encoding":"utf-8","text":"=== 1.4.4b: 1.4.4b_residues.py ===\nmod 16: primitive solutions have parity pattern [(1, 1, 1, 1)]\nx, z odd: A_+ mod 8 in [1, 5] ; y, z, t odd: f mod 8 in [6]\nmod 3: Q = f = 0 only at [(0, 1, 1, 0), (0, 1, 2, 0), (0, 2, 1, 0), (0, 2, 2, 0)]\nmod 81: units w with 7 + 2w^4 = 0 have w^2 = 1 mod 3 and v_3(7 + 2w^2) = 2\nmod 7 (z != 0): (r, s, A_+/z^2, f/z^2) in [(0, 2, 1, 4), (0, 5, 1, 4), (2, 3, 6, 3), (2, 4, 6, 3), (5, 3, 5, 3), (5, 4, 5, 3)] ; for z = 0 both are squares\n(2/7) = 1, (-1/7) = -1, (-7/3) = -1, (7/3) = 1, -7 = 1 mod 8\nPASS 1.4.4b\nPASS: all requested checks of section 1.4.4\n"}, {"path":"v1/anc/code/1.4.4/expected/1.4.4c.txt","sha256":"7a7b63b37450014abfcb79afb0ea4b9cad2ecb88043ee98b0aec864d1cf96247","mode":420,"size":780,"encoding":"utf-8","text":"=== 1.4.4c: 1.4.4c_symbols.py ===\np=2, mod 2^5: level sizes [7, 24, 192, 512, 2048]\n (v_p(f), v_p(A_+), (-7,f)_p, (7,A_+)_p): classes [((1, 0, 1, 1), 2048)]\np=3, mod 3^4: level sizes [10, 90, 810, 7290]\n (v_p(f), v_p(A_+), (-7,f)_p, (7,A_+)_p): classes [((0, '>=4', 1, 1), 162), ((0, 0, 1, 1), 4374), ((0, 2, 1, 1), 1296), ((2, 0, 1, 1), 1458)]\np=7, mod 7^2: level sizes [57, 2744]\n (v_p(f), v_p(A_+), (-7,f)_p, (7,A_+)_p): classes [((0, 0, -1, -1), 1372), ((0, 0, 1, 1), 1372)]\nPASS 1.4.4c\n=== C: brute_residues.c Q ===\nQ mod 3^4: 393660 primitive solutions; v_3(f):count 0:314928 2:78732\nQ mod 7^2: 115248 primitive solutions; f, A+ units at 7 with (f/7)(A+/7) = 1: 115248, = -1: 0, f or A+ divisible by 7: 0\nPASS brute_residues Q\nPASS: all requested checks of section 1.4.4\n"}, {"path":"v1/anc/code/1.4.4/run_all.py","sha256":"c4f3b0a11dfea80cd024ee011b69a6904e0965785d4cfa0bb59bee21a2cf412c","mode":420,"size":2140,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Run the checks of Section 1.4.4 (8x^4 + 7y^4 + 2z^4 - t^4 = 0).\n\nUsage: python3 run_all.py # every code id, in order\n python3 run_all.py 1.4.4c # only the listed id(s)\nEach Python script runs in a fresh `python3 -I -B` process; the C program ../common/cyclic_cubic/brute_residues.c\nis compiled into a temporary directory with $CC (default: cc) and run with the argument Q.\nDo not use python -O (the checks are asserts). Written for this bundle.\n\"\"\"\nimport os\nimport subprocess\nimport sys\nimport tempfile\nfrom pathlib import Path\n\nHERE = Path(__file__).resolve().parent\nCOMMON = HERE.parent / 'common' / 'cyclic_cubic'\nSTEPS = [\n ('1.4.4a', [('py', '1.4.4a_identities.py')]),\n ('1.4.4b', [('py', '1.4.4b_residues.py')]),\n ('1.4.4c', [('py', '1.4.4c_symbols.py'), ('c', 'brute_residues.c', 'Q')]),\n]\n\n\ndef run_c(src, arg, tmp):\n exe = Path(tmp) / src.replace('.c', '')\n cc = os.environ.get('CC', 'cc')\n subprocess.run([cc, '-O2', '-std=c99', '-o', str(exe), str(COMMON / src)], check=True)\n print('=== C: %s %s ===' % (src, arg), flush=True)\n return subprocess.run([str(exe), arg]).returncode\n\n\ndef main():\n if not __debug__:\n raise SystemExit('Run without -O: the checks are assert statements.')\n want = sys.argv[1:]\n known = [cid for cid, _ in STEPS]\n bad = [w for w in want if w not in known]\n if bad:\n raise SystemExit('unknown code id(s): %s; known: %s' % (bad, known))\n with tempfile.TemporaryDirectory() as tmp:\n for cid, items in STEPS:\n if want and cid not in want:\n continue\n for item in items:\n if item[0] == 'py':\n print('=== %s: %s ===' % (cid, item[1]), flush=True)\n rc = subprocess.run([sys.executable, '-I', '-B', str(HERE / item[1])], cwd=HERE).returncode\n else:\n rc = run_c(item[1], item[2], tmp)\n if rc:\n raise SystemExit('FAIL %s (%s)' % (cid, item[1]))\n print('PASS: all requested checks of section 1.4.4')\n\n\nif __name__ == '__main__':\n main()\n"}, {"path":"v1/anc/code/1.4.5/1.4.5a_elementary.py","sha256":"b3aa9be8142be3ecc4ea458295c45956974f87e04e97584e5576db8e18a30107","mode":420,"size":639,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.5a (Section 1.4.5, 14x^5 + 5y^5 + 3z^5 = 0): size H, zero coordinates, hypotheses of\nLemma lem:1.4:terms, the even term, and the levels of Lemma lem:1.4:level. Written for the paper.\nRun: python3 -I 1.4.5a_elementary.py (< 1 s)\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'common' / 'frey_quintic'))\nfrom fq import grechuk_H, zero_coordinate_report, report_levels\n\nco = (14, 5, 3)\nH = grechuk_H(co)\nprint('14x^5 + 5y^5 + 3z^5 = 0: H = %d' % H)\nassert H == 704\nzero_coordinate_report(co)\nreport_levels(14, 5, 3, [210, 3360])\nprint('PASS 1.4.5a')\n"}, {"path":"v1/anc/code/1.4.5/1.4.5b_traces.py","sha256":"3a8d5fd100f6c42c8c3dfa7d9bab5e4777adad1cfdbd40408a2752da313a834e","mode":420,"size":803,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.5b (Section 1.4.5): the trace sets T_q of Lemma lem:1.4:sieve for 14x^5 + 5y^5 + 3z^5 = 0,\nby two implementations (character sums for (u, v) = (14a^5, 5b^5); point counting for all twelve signed\norderings of the three terms and all scalings). Written for the paper.\nRun: python3 -I 1.4.5b_traces.py (about 25 s)\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'common' / 'frey_quintic'))\nfrom fq import report_traces\n\nF5x = [1, 2, 3, 4]\nTABLE = {11: [0, 2, 3], 13: F5x, 17: F5x, 31: [0, 1, 4], 41: F5x, 61: F5x, 71: [2, 3], 101: F5x,\n 131: [0, 2, 3], 151: F5x, 181: F5x, 191: F5x}\nprint('T_q for 14x^5 + 5y^5 + 3z^5 = 0:')\nreport_traces(14, 5, 3, TABLE)\nprint('PASS 1.4.5b: the twelve sets of the table')\n"}, {"path":"v1/anc/code/1.4.5/1.4.5c_sieve.gp","sha256":"10a52a54aecac173edd3413a5de34eda743021521e27a28af207bdbc6c599e41","mode":420,"size":1997,"encoding":"utf-8","text":"\\\\ Code 1.4.5c (Section 1.4.5, 14x^5 + 5y^5 + 3z^5 = 0). Written for the paper. PARI/GP 2.15 or later.\n\\\\ (1) The Frey curve of Lemma lem:1.4.5-frey at 2: (u, v, w) = eps (3z^5, 14x^5, 5y^5), eps = +-1 with\n\\\\ u = -1 mod 4; for all odd z mod 2^6 and all x = 1..64 (v_2(x) = 0..6), elllocalred gives f_2 and\n\\\\ v_2(Delta_min) as in Lemma lem:1.4:frey (f_2 = 5, 6 if x is odd; f_2 = 1, 10 v_2(x) - 6 if x is even).\n\\\\ (2) The newform sieve of Lemma lem:1.4.5-sieve at the levels 210 and 3360 with the sets T_q of code 1.4.5b.\n\\\\ Run: gp -q 1.4.5c_sieve.gp (about 10 s, 0.3 GB)\ndefault(parisizemax, 1500000000);\nread(\"../common/frey_quintic/fqsieve.gp\");\n{\n my(n = 0);\n forstep (z = 1, 63, 2, for (x = 1, 64,\n my(eps = if ((3*z^5) % 4 == 3, 1, -1), u = eps*3*z^5, v = eps*14*x^5, E, lr, d, e = valuation(x, 2));\n E = ellinit([0, v - u, 0, -u*v, 0]); lr = elllocalred(E, 2);\n d = valuation(E.disc, 2) - 12*valuation(lr[3][1], 2);\n if (u % 4 != 3, error(\"normalization\"));\n if ([lr[1], d] != if (e == 0, [5, 6], [1, 10*e - 6]), error(\"2-adic data \", [x, z, lr, d]));\n n++));\n print(\"(1) Frey curve at 2: f_2 = 5, v_2(Delta_min) = 6 (x odd); f_2 = 1, v_2(Delta_min) = 10 v_2(x) - 6\",\n \" (x even): \", n, \" residue classes\");\n}\nQ = [11, 13, 17, 31, 41, 61, 71, 101, 131, 151, 181, 191];\nF5x = [1, 2, 3, 4];\nT = [[0,2,3], F5x, F5x, [0,1,4], F5x, F5x, [2,3], F5x, [0,2,3], F5x, F5x, F5x];\n{\n print(\"(2) test primes q = \", Q);\n S = fq_sieve(210, Q, T); s210 = fq_print(210, Q, T, S);\n if (#s210 != 0, error(\"survivor at 210\"));\n S = fq_sieve(3360, Q, T); s3360 = fq_print(3360, Q, T, S);\n if (#s3360 != 2, error(\"expected two survivors at 3360\"));\n for (k = 1, 2, my(i = s3360[k][1]); if (poldegree(S[3][i][2]) != 1, error(\"non-rational survivor\"));\n print(\" survivor: orbit \", i, \" (rational), a_q for q in Q: \", vector(#Q, j, mfcoef(S[2][i], Q[j]))));\n print(\"PASS 1.4.5c: level 210: no survivor; level 3360: exactly two rational orbits survive\");\n}\nquit\n"}, {"path":"v1/anc/code/1.4.5/1.4.5d_survivors.gp","sha256":"c486a4015528d442125246dd64438edfa1ac869232c8181d0e03075cfa39393b","mode":420,"size":3626,"encoding":"utf-8","text":"\\\\ Code 1.4.5d (Section 1.4.5): the two surviving newforms of level 3360 (Lemma lem:1.4.5-pairing).\n\\\\ Written for the paper. PARI/GP 2.15 or later.\n\\\\ (1) The sieve of code 1.4.5c is repeated at level 3360 to get the two surviving orbits.\n\\\\ (2) G+ = [0,1,0,-890,-10200] and G- = [0,-1,0,-890,10200] (G- is the twist of G+ by -1): conductor\n\\\\ 3360 (Tate's algorithm, ellglobalred), minimal discriminant, multiplicative reduction at 3 and 5.\n\\\\ (3) Sturm bound for weight 2 and Gamma_0(3360): (2/12)[SL_2(Z):Gamma_0(3360)] = 1536; the q-expansion\n\\\\ coefficients a_0..a_1536 of each survivor equal those of exactly one of G+, G- (ellan).\n\\\\ (4) The square classes used in the pairing argument: v_3, v_5 of Delta_min(G+-) and of Delta_min(E)\n\\\\ (E: 2 + 10k at 3 and at 5, code 1.4.5a); and, as a check, v_3/v_5 for all curves isogenous to G+.\n\\\\ Run: gp -q 1.4.5d_survivors.gp (about 10 s)\ndefault(parisizemax, 1500000000);\nread(\"../common/frey_quintic/fqsieve.gp\");\nQ = [11, 13, 17, 31, 41, 61, 71, 101, 131, 151, 181, 191];\nF5x = [1, 2, 3, 4];\nT = [[0,2,3], F5x, F5x, [0,1,4], F5x, F5x, [2,3], F5x, [0,2,3], F5x, F5x, F5x];\n{\n S = fq_sieve(3360, Q, T);\n my(B = S[2], rep = S[3], surv = [], G, N = 3360, mu, bd, ok = [0, 0]);\n for (i = 1, #rep, for (k = 1, #rep[i][3], if (rep[i][3][k][2] == 0, surv = concat(surv, i))));\n print(\"(1) surviving orbits at level 3360: \", surv);\n G = [ellinit([0, 1, 0, -890, -10200]), ellinit([0, -1, 0, -890, 10200])];\n if (ellinit(ellminimalmodel(elltwist(G[1], -4)))[1..5] != G[2][1..5], error(\"twist\"));\n for (j = 1, 2,\n my(E = G[j], gr = ellglobalred(E), l3 = elllocalred(E, 3), l5 = elllocalred(E, 5));\n if (gr[1] != N || ellminimalmodel(E)[1..5] != E[1..5], error(\"conductor/minimality\"));\n if (gcd(E.c4, 15) != 1 || l3[1] != 1 || l5[1] != 1, error(\"not multiplicative at 3, 5\"));\n print(\"(2) G\", if (j == 1, \"+\", \"-\"), \" = \", E[1..5], \": conductor \", gr[1], \", Delta_min = \",\n factor(E.disc), \", gcd(c4, 15) = 1, Kodaira types at 3, 5: I\", l3[2] - 4, \", I\", l5[2] - 4));\n mu = N * prod(i = 1, #factor(N)~, 1 + 1/factor(N)[i, 1]); bd = 2*mu/12;\n print(\"(3) index of Gamma_0(3360) = \", mu, \", Sturm bound = \", bd);\n for (k = 1, #surv,\n my(A = mfcoefs(B[surv[k]], bd), m = []);\n for (j = 1, 2, if (A == concat([0], ellan(G[j], bd)), m = concat(m, j)));\n if (#m != 1, error(\"no unique match\"));\n ok[m[1]]++;\n print(\" orbit \", surv[k], \": a_0..a_\", bd, \" equal those of G\", if (m[1] == 1, \"+\", \"-\")));\n if (ok != [1, 1], error(\"matching\"));\n my(d3 = valuation(G[1].disc, 3), d5 = valuation(G[1].disc, 5), r3 = Mod(d3, 5)/Mod(2, 5), r5 = Mod(d5, 5)/Mod(2, 5));\n if (valuation(G[2].disc, 3) != d3 || valuation(G[2].disc, 5) != d5, error(\"G-\"));\n print(\"(4) v_3(Delta_G) = \", d3, \", v_5(Delta_G) = \", d5, \"; v_3(Delta_E) = v_5(Delta_E) = 2 mod 5;\");\n print(\" ratio at 3: \", d3, \"/2 = \", lift(r3), \" mod 5, square: \", issquare(r3),\n \"; ratio at 5: \", d5, \"/2 = \", lift(r5), \" mod 5, square: \", issquare(r5));\n if (issquare(r3) || !issquare(r5), error(\"square classes\"));\n my(C = ellisomat(G[1])[1], V = vector(#C, i, my(Ei = ellminimalmodel(ellinit(C[i][1])));\n [valuation(Ei.disc, 3), valuation(Ei.disc, 5)]));\n if (prod(i = 1, #V, !issquare(Mod(V[i][1], 5)/Mod(V[i][2], 5))) != 1, error(\"isogeny class\"));\n print(\" isogeny class of G+ (\", #C, \" curves): (v_3, v_5)(Delta_min) = \", V,\n \"; v_3/v_5 is a nonsquare mod 5 for all of them\");\n print(\"PASS 1.4.5d: the survivors are the newforms of G+ and G-; ratios 3 (nonsquare) at 3 and 1 (square) at 5\");\n}\nquit\n"}, {"path":"v1/anc/code/1.4.5/README.md","sha256":"18c24d0a5e720f04482b88a924272a9f917481aec4926247de8eb343ffaa581f","mode":420,"size":3580,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Code for Section 1.4.5: 14x^5 + 5y^5 + 3z^5 = 0\n\nOnly integer solution (0, 0, 0). Proof: Frey curve E = E_{u,v}, (u, v, w) = \u03b5(3z^5, 14x^5, 5y^5) with\nu \u2261 \u22121 mod 4; E[5] irreducible (T_31 = {0,1,4}); level 210 (x even) or 3360 (x odd); newform sieve at twelve\nprimes; two rational survivors at level 3360 = the newforms of G\u00b1 = [0,\u00b11,0,\u2212890,\u221310200], excluded by the\nTate\u2013Kummer pairing at 3 and 5. Source: the original working notes (Section 6 of the consolidated document; original\npacket `table9_problem5_solutions_standalone_corrected.tex`).\n\nAll scripts were written for the paper; they use the libraries `fq.py` and `fqsieve.gp` of\n`../common/frey_quintic/` (see its README). The solver's certificates (`verify_quintic_sieves.gp`,\n`table9_pair12_trace_sets.py`, `verify_trace_assertions.py`, `verify_tate_models.gp`) were read, not run.\n\n## Requirements\nPython 3.10+ (standard library); PARI/GP 2.15+ (`gp`; run here with 2.15.4). Peak memory about 0.3 GB.\n\n## Codes\n| id | script | what it computes | command | time | run here |\n|---|---|---|---|---|---|\n| 1.4.5a | `1.4.5a_elementary.py` | H = 704; zero coordinates; hypotheses of Lemma lem:1.4:terms; even term 14x^5, r = 1 + 5v_2(x); Tate data and N_5 (Lemmas lem:1.4:frey, lem:1.4:level) | `python3 -I 1.4.5a_elementary.py` | < 1 s | yes |\n| 1.4.5b | `1.4.5b_traces.py` | T_q(14,5,3) for q = 11, 13, 17, 31, 41, 61, 71, 101, 131, 151, 181, 191, two implementations | `python3 -I 1.4.5b_traces.py` | 18 s | yes |\n| 1.4.5c | `1.4.5c_sieve.gp` | `elllocalred` on the Frey curve for all x, odd z mod 2^6; the sieve at levels 210 and 3360 | `gp -q 1.4.5c_sieve.gp` | 30 s | yes |\n| 1.4.5d | `1.4.5d_survivors.gp` | the two survivors = newforms of G\u00b1 (Sturm bound 1536); conductor, \u0394_min, c_4, types at 3, 5; square classes; isogeny class | `gp -q 1.4.5d_survivors.gp` | 43 s | yes |\n\n`python3 run_all.py` runs all four (about 1.5 min), compares with `expected/` (timing lines ignored) and checks that\nthe sets T_q hard-coded in `1.4.5c_sieve.gp` are those asserted by `1.4.5b_traces.py`. \"Run here\" = run on\n17 October 2026 (Python 3.12, GP 2.15.4, `nice -n 10`).\n\nKey output:\n```\n1.4.5a even term 14x^5, v_2(x) = 0: r = 1, type III f_2 = 5, v_2(Delta_min) = 6, 2 in N_5; N_5 = 3360\n even term 14x^5, v_2(x) = 1: r = 6, type I4 f_2 = 1, v_2(Delta_min) = 4, 2 in N_5; N_5 = 210\n1.4.5b q = 31: 50 points, 0 with a zero coordinate ...; traces a_q at the others: {-4,0,4} T_q = {0,1,4}\n1.4.5c level 210: dim S_2^new = 5, orbits = 5 ... after q=11: 2; ... after q=61: 1; after q=71: 0\n level 3360: dim S_2^new = 48, orbits = 36 ... pairs (orbit, lambda): 38; after q=11: 12; after q=13: 8;\n after q=17: 6; after q=31: 2; ... survivors: orbits 3 and 12 (rational)\n1.4.5d orbit 3: a_0..a_1536 equal those of G+; orbit 12: a_0..a_1536 equal those of G-\n Delta_min(G+-) = 2^6 3^6 5^2 7^4; ratio at 3: 6/2 = 3 mod 5 (nonsquare); ratio at 5: 2/2 = 1 (square)\n```\nThe orbit numbers are those of GP 2.15.4 (`mfeigenbasis`); other versions may order the orbits differently.\n\n## Not used by the proof\n- The solver's original proof also used the level 1680 (another sign normalization); with u \u2261 \u22121 mod 4 it does\n not occur, and it is not computed here.\n"}, {"path":"v1/anc/code/1.4.5/expected/1.4.5a.txt","sha256":"6d7d235555390272ef3e9607cc672b5a833e4381e0aedeb3203a2ba29be8e70d","mode":420,"size":1274,"encoding":"utf-8","text":"14x^5 + 5y^5 + 3z^5 = 0: H = 704\n x = 0: -5/3 is not a fifth power (v_3)\n y = 0: -14/3 is not a fifth power (v_2)\n z = 0: -14/5 is not a fifth power (v_2)\nequation 14x^5 + 5y^5 + 3z^5 = 0: coefficients pairwise coprime, coefficient primes [2, 3, 5, 7], every exponent between 1 and 4; 0 coefficient(s) of absolute value 1\n p = 2: v_2(A, B, C) = [1, 0, 0]\n p = 3: v_p(A, B, C) = [0, 0, 1]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n p = 5: v_p(A, B, C) = [0, 1, 0]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n p = 7: v_p(A, B, C) = [1, 0, 0]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n even term 14x^5, v_2(x) = 0: r = 1, type III f_2 = 5, v_2(Delta_min) = 6, 2 in N_5; N_5 = 3360\n even term 14x^5, v_2(x) = 1: r = 6, type I4 f_2 = 1, v_2(Delta_min) = 4, 2 in N_5; N_5 = 210\n even term 14x^5, v_2(x) = 2: r = 11, type I14 f_2 = 1, v_2(Delta_min) = 14, 2 in N_5; N_5 = 210\n even term 14x^5, v_2(x) = 3 (and likewise for every e > 3): r = 16, type I24 f_2 = 1, v_2(Delta_min) = 24, 2 in N_5; N_5 = 210\n odd part of rad(ABC) = 105; the prime 5: kept (5 | ABC, multiplicative, 5 does not divide v_5(Delta_min))\n levels N_5: [210, 3360]\nPASS 1.4.5a\n"}, {"path":"v1/anc/code/1.4.5/expected/1.4.5b.txt","sha256":"67c977e3a6eb4b6ba0f27b8bcc74eae926d132d7b43010b72b20bf8bbf1b3809","mode":420,"size":1702,"encoding":"utf-8","text":"T_q for 14x^5 + 5y^5 + 3z^5 = 0:\n q = 11: 30 points, 5 with a zero coordinate (q+1 = 12 = 2 mod 5); traces a_q at the others: {0} T_q = {0,2,3}\n q = 13: 14 points, 3 with a zero coordinate (q+1 = 14 = 4 mod 5); traces a_q at the others: {-6,-2,2,6} T_q = {1,2,3,4}\n q = 17: 18 points, 3 with a zero coordinate (q+1 = 18 = 3 mod 5); traces a_q at the others: {-6,-2,2,6} T_q = {1,2,3,4}\n q = 31: 50 points, 0 with a zero coordinate (q+1 = 32 = 2 mod 5); traces a_q at the others: {-4,0,4} T_q = {0,1,4}\n q = 41: 55 points, 5 with a zero coordinate (q+1 = 42 = 2 mod 5); traces a_q at the others: {-6,6} T_q = {1,2,3,4}\n q = 61: 50 points, 0 with a zero coordinate (q+1 = 62 = 2 mod 5); traces a_q at the others: {-6,-2,2,6} T_q = {1,2,3,4}\n q = 71: 50 points, 0 with a zero coordinate (q+1 = 72 = 2 mod 5); traces a_q at the others: {-12,-8,8,12} T_q = {2,3}\n q = 101: 80 points, 5 with a zero coordinate (q+1 = 102 = 2 mod 5); traces a_q at the others: {-6,-2,2,6} T_q = {1,2,3,4}\n q = 131: 105 points, 5 with a zero coordinate (q+1 = 132 = 2 mod 5); traces a_q at the others: {-12,0,12} T_q = {0,2,3}\n q = 151: 105 points, 5 with a zero coordinate (q+1 = 152 = 2 mod 5); traces a_q at the others: {-8,-4,4,8} T_q = {1,2,3,4}\n q = 181: 215 points, 15 with a zero coordinate (q+1 = 182 = 2 mod 5); traces a_q at the others: {-26,-22,22,26} T_q = {1,2,3,4}\n q = 191: 205 points, 5 with a zero coordinate (q+1 = 192 = 2 mod 5); traces a_q at the others: {-24,-12,-8,8,12,24} T_q = {1,2,3,4}\nPASS 1.4.5b: the twelve sets of the table\n"}, {"path":"v1/anc/code/1.4.5/expected/1.4.5c.txt","sha256":"9a55d2ea53405062880210517803df78be2c9bddbfd6bfc6a74ddc4c2fcc58eb","mode":420,"size":3478,"encoding":"utf-8","text":"(1) Frey curve at 2: f_2 = 5, v_2(Delta_min) = 6 (x odd); f_2 = 1, v_2(Delta_min) = 10 v_2(x) - 6 (x even): 2048 residue classes\n(2) test primes q = [11, 13, 17, 31, 41, 61, 71, 101, 131, 151, 181, 191]\nlevel 210: dim S_2^new = 5, orbits = 5, field degrees = [1, 1, 1, 1, 1]\n orbit 1: P=y [e,f]=[1,1] killed at q=11 (a_q=4)\n orbit 2: P=y [e,f]=[1,1] killed at q=61 (a_q=-10)\n orbit 3: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 4: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 5: P=y [e,f]=[1,1] killed at q=71 (a_q=0)\n pairs (orbit, lambda): 5; after q=11: 2; after q=13: 2; after q=17: 2; after q=31: 2; after q=41: 2; after q=61: 1; after q=71: 0; after q=101: 0; after q=131: 0; after q=151: 0; after q=181: 0; after q=191: 0\nlevel 3360: dim S_2^new = 48, orbits = 36, field degrees = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3]\n orbit 1: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 2: P=y [e,f]=[1,1] killed at q=31 (a_q=2)\n orbit 3: P=y [e,f]=[1,1] SURVIVES\n orbit 4: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 5: P=y [e,f]=[1,1] killed at q=11 (a_q=-6)\n orbit 6: P=y [e,f]=[1,1] killed at q=11 (a_q=4)\n orbit 7: P=y [e,f]=[1,1] killed at q=13 (a_q=0)\n orbit 8: P=y [e,f]=[1,1] killed at q=31 (a_q=-8)\n orbit 9: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 10: P=y [e,f]=[1,1] killed at q=11 (a_q=6)\n orbit 11: P=y [e,f]=[1,1] killed at q=11 (a_q=4)\n orbit 12: P=y [e,f]=[1,1] SURVIVES\n orbit 13: P=y [e,f]=[1,1] killed at q=31 (a_q=-2)\n orbit 14: P=y [e,f]=[1,1] killed at q=11 (a_q=4)\n orbit 15: P=y [e,f]=[1,1] killed at q=11 (a_q=4)\n orbit 16: P=y [e,f]=[1,1] killed at q=31 (a_q=8)\n orbit 17: P=y [e,f]=[1,1] killed at q=13 (a_q=0)\n orbit 18: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 19: P=y [e,f]=[1,1] killed at q=11 (a_q=4)\n orbit 20: P=y [e,f]=[1,1] killed at q=11 (a_q=4)\n orbit 21: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 22: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 23: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 24: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 25: P=y [e,f]=[1,1] killed at q=11 (a_q=4)\n orbit 26: P=y [e,f]=[1,1] killed at q=11 (a_q=4)\n orbit 27: P=y^2 - y - 4 [e,f]=[1,2] killed at q=11 (a_q=2*y)\n orbit 28: P=y^2 - 3 [e,f]=[1,2] killed at q=11 (a_q=2*y + 2)\n orbit 29: P=y^2 - 2 [e,f]=[1,2] killed at q=11 (a_q=2*y)\n orbit 30: P=y^2 - 2 [e,f]=[1,2] killed at q=11 (a_q=2*y)\n orbit 31: P=y^2 - 3 [e,f]=[1,2] killed at q=11 (a_q=2*y - 2)\n orbit 32: P=y^2 - y - 4 [e,f]=[1,2] killed at q=11 (a_q=-2*y)\n orbit 33: P=y^2 - y - 1 [e,f]=[2,1] killed at q=13 (a_q=-4*y + 2)\n orbit 34: P=y^2 - y - 1 [e,f]=[2,1] killed at q=13 (a_q=-4*y + 2)\n orbit 35: P=y^3 - y^2 - 3*y + 1 [e,f]=[1,1] killed at q=17 (a_q=-4*y + 2) [e,f]=[1,2] killed at q=11 (a_q=-2*y^2 + 6)\n orbit 36: P=y^3 - y^2 - 3*y + 1 [e,f]=[1,1] killed at q=17 (a_q=-4*y + 2) [e,f]=[1,2] killed at q=11 (a_q=2*y^2 - 6)\n pairs (orbit, lambda): 38; after q=11: 12; after q=13: 8; after q=17: 6; after q=31: 2; after q=41: 2; after q=61: 2; after q=71: 2; after q=101: 2; after q=131: 2; after q=151: 2; after q=181: 2; after q=191: 2\n survivor: orbit 3 (rational), a_q for q in Q: [0, 2, -2, 4, -6, 6, 8, 6, 0, 12, 6, -8]\n survivor: orbit 12 (rational), a_q for q in Q: [0, 2, -2, -4, -6, 6, -8, 6, 0, -12, 6, 8]\nPASS 1.4.5c: level 210: no survivor; level 3360: exactly two rational orbits survive\n"}, {"path":"v1/anc/code/1.4.5/expected/1.4.5d.txt","sha256":"1a73ada474ab94f34de3cc1902f602f67c50e8b09b0993d4d98fb200560d3516","mode":420,"size":857,"encoding":"utf-8","text":"(1) surviving orbits at level 3360: [3, 12]\n(2) G+ = [0, 1, 0, -890, -10200]: conductor 3360, Delta_min = [2, 6; 3, 6; 5, 2; 7, 4], gcd(c4, 15) = 1, Kodaira types at 3, 5: I6, I2\n(2) G- = [0, -1, 0, -890, 10200]: conductor 3360, Delta_min = [2, 6; 3, 6; 5, 2; 7, 4], gcd(c4, 15) = 1, Kodaira types at 3, 5: I6, I2\n(3) index of Gamma_0(3360) = 9216, Sturm bound = 1536\n orbit 3: a_0..a_1536 equal those of G+\n orbit 12: a_0..a_1536 equal those of G-\n(4) v_3(Delta_G) = 6, v_5(Delta_G) = 2; v_3(Delta_E) = v_5(Delta_E) = 2 mod 5;\n ratio at 3: 6/2 = 3 mod 5, square: 0; ratio at 5: 2/2 = 1 mod 5, square: 1\n isogeny class of G+ (4 curves): (v_3, v_5)(Delta_min) = [[6, 2], [3, 1], [12, 1], [3, 4]]; v_3/v_5 is a nonsquare mod 5 for all of them\nPASS 1.4.5d: the survivors are the newforms of G+ and G-; ratios 3 (nonsquare) at 3 and 1 (square) at 5\n"}, {"path":"v1/anc/code/1.4.5/run_all.py","sha256":"08242fe1264e02b3e191ebc33096b754d421e5805c92cd7d7d34acde2efb6a4e","mode":420,"size":928,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Run the codes of Section 1.4.5 (14x^5 + 5y^5 + 3z^5 = 0) and compare with expected/.\n\nUsage: python3 run_all.py # all codes of this folder\n python3 run_all.py ... # only the listed code ids\n python3 run_all.py --update # rewrite expected/ from this run\nRequires Python 3 (standard library) and PARI/GP (gp on the PATH, or $GP); see README.md.\n\"\"\"\nimport sys\nfrom pathlib import Path\nHERE = Path(__file__).resolve().parent\nsys.path.insert(0, str(HERE.parent / 'common' / 'frey_quintic'))\nfrom runner import run_steps, table_consistency\n\nSTEPS = [\n ('1.4.5a', 'py', '1.4.5a_elementary.py'),\n ('1.4.5b', 'py', '1.4.5b_traces.py'),\n ('1.4.5c', 'gp', '1.4.5c_sieve.gp'),\n ('1.4.5d', 'gp', '1.4.5d_survivors.gp'),\n]\nCHECKS = [table_consistency('1.4.5b_traces.py', '1.4.5c_sieve.gp')]\n\nif __name__ == '__main__':\n run_steps(HERE, STEPS, sys.argv[1:], CHECKS)\n"}, {"path":"v1/anc/code/1.4.6/1.4.6a_elementary.py","sha256":"b220842aa2dc4d56c0fac80aa50adcdab61f8411e8079f01249efbc8ee213b88","mode":420,"size":638,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.6a (Section 1.4.6, 21x^5 + 5y^5 + 4z^5 = 0): size H, zero coordinates, hypotheses of\nLemma lem:1.4:terms, the even term, and the levels of Lemma lem:1.4:level. Written for the paper.\nRun: python3 -I 1.4.6a_elementary.py (< 1 s)\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'common' / 'frey_quintic'))\nfrom fq import grechuk_H, zero_coordinate_report, report_levels\n\nco = (21, 5, 4)\nH = grechuk_H(co)\nprint('21x^5 + 5y^5 + 4z^5 = 0: H = %d' % H)\nassert H == 960\nzero_coordinate_report(co)\nreport_levels(21, 5, 4, [210, 840])\nprint('PASS 1.4.6a')\n"}, {"path":"v1/anc/code/1.4.6/1.4.6b_traces.py","sha256":"e7137b32681cbc10978accdd3dbaca233c7079f8250e329ce46a3711bb32552c","mode":420,"size":686,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.6b (Section 1.4.6): the trace sets T_q of Lemma lem:1.4:sieve for 21x^5 + 5y^5 + 4z^5 = 0,\nby two implementations (as in code 1.4.5b). Written for the paper.\nRun: python3 -I 1.4.6b_traces.py (about 25 s)\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'common' / 'frey_quintic'))\nfrom fq import report_traces\n\nF5x = [1, 2, 3, 4]\nTABLE = {11: [1, 4], 13: F5x, 17: F5x, 31: [0, 1, 4], 41: F5x, 61: [2, 3], 101: F5x, 131: F5x,\n 151: [0, 2, 3], 181: [2, 3], 211: F5x}\nprint('T_q for 21x^5 + 5y^5 + 4z^5 = 0:')\nreport_traces(21, 5, 4, TABLE)\nprint('PASS 1.4.6b: the eleven sets of the table')\n"}, {"path":"v1/anc/code/1.4.6/1.4.6c_sieve.gp","sha256":"ca6b142874415af45816fa619f4be6329e28781ddebb0f3ed750c9b3752cedb2","mode":420,"size":1356,"encoding":"utf-8","text":"\\\\ Code 1.4.6c (Section 1.4.6, 21x^5 + 5y^5 + 4z^5 = 0). Written for the paper. PARI/GP 2.15 or later.\n\\\\ (1) The Frey curve of Lemma lem:1.4.6-frey at 2: (u, v, w) = (21x^5, 4z^5, 5y^5) with x = 3 mod 4;\n\\\\ for x = 3, 7, ..., 63 and z = 1..64, elllocalred gives f_2 = 3, v_2(Delta_min) = 8 (z odd) and\n\\\\ f_2 = 1, v_2(Delta_min) = 10 v_2(z) - 4 (z even), as in Lemma lem:1.4:frey.\n\\\\ (2) The newform sieve of Lemma lem:1.4.6-sieve at the levels 210 and 840 with the sets of code 1.4.6b.\n\\\\ Run: gp -q 1.4.6c_sieve.gp (about 3 s)\ndefault(parisizemax, 1000000000);\nread(\"../common/frey_quintic/fqsieve.gp\");\n{\n my(n = 0);\n forstep (x = 3, 63, 4, for (z = 1, 64, my(e = valuation(z, 2));\n fq_check2(21*x^5, 4*z^5, if (e, 1, 3), if (e, 10*e - 4, 8)); n++));\n print(\"(1) Frey curve at 2: f_2 = 3, v_2(Delta_min) = 8 (z odd); f_2 = 1, v_2(Delta_min) = 10 v_2(z) - 4\",\n \" (z even): \", n, \" residue classes\");\n Q = [11, 13, 17, 31, 41, 61, 101, 131, 151, 181, 211];\n F5x = [1, 2, 3, 4];\n T = [[1,4], F5x, F5x, [0,1,4], F5x, [2,3], F5x, F5x, [0,2,3], [2,3], F5x];\n print(\"(2) test primes q = \", Q);\n S = fq_sieve(210, Q, T); if (#fq_print(210, Q, T, S), error(\"survivor at 210\"));\n S = fq_sieve(840, Q, T); if (#fq_print(840, Q, T, S), error(\"survivor at 840\"));\n print(\"PASS 1.4.6c: no survivor at the levels 210 and 840\");\n}\nquit\n"}, {"path":"v1/anc/code/1.4.6/README.md","sha256":"689e804accbbe02249a9c2deb19f0c93cb39f61138c2ea827c0c5d2db7c3e15a","mode":420,"size":2234,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Code for Section 1.4.6: 21x^5 + 5y^5 + 4z^5 = 0\n\nOnly integer solution (0, 0, 0). Proof: Frey curve (u, v, w) = \u03b5(21x^5, 4z^5, 5y^5), \u03b5x \u2261 3 mod 4; E[5]\nirreducible (T_31); level 840 (z odd, type I_1^* at 2) or 210 (z even); the sieve excludes every newform.\nSource: the original working notes (Section 7 of the consolidated document; original packet\n`table9_problem5_solutions_standalone_corrected.tex`).\n\nAll scripts were written for the paper; they use `../common/frey_quintic/fq.py` and `fqsieve.gp`. The solver's\ncertificates were read, not run.\n\n## Requirements\nPython 3.10+ (standard library); PARI/GP 2.15+ (run here with 2.15.4).\n\n## Codes\n| id | script | what it computes | command | time | run here |\n|---|---|---|---|---|---|\n| 1.4.6a | `1.4.6a_elementary.py` | H = 960; zero coordinates; hypotheses of Lemma lem:1.4:terms; r = 2 + 5v_2(z); Tate data and N_5 | `python3 -I 1.4.6a_elementary.py` | < 1 s | yes |\n| 1.4.6b | `1.4.6b_traces.py` | T_q(21,5,4) for q = 11, 13, 17, 31, 41, 61, 101, 131, 151, 181, 211, two implementations | `python3 -I 1.4.6b_traces.py` | 16 s | yes |\n| 1.4.6c | `1.4.6c_sieve.gp` | `elllocalred` on the Frey curve for x \u2261 3 mod 4, all z mod 2^6; the sieve at levels 210 and 840 | `gp -q 1.4.6c_sieve.gp` | 2 s | yes |\n\n`python3 run_all.py` runs all three (about 20 s) and compares with `expected/`. Run here on 17 October 2026.\n\nKey output:\n```\n1.4.6a even term 4z^5, v_2(z) = 0: r = 2, type I1*, f_2 = 3, v_2(Delta_min) = 8; N_5 = 840\n even term 4z^5, v_2(z) = 1: r = 7, type I6, f_2 = 1, v_2(Delta_min) = 6; N_5 = 210\n1.4.6c level 210: ... after q=11: 3; ... after q=31: 1; after q=41: 1; after q=61: 0\n level 840: dim 12, orbits 11 (field degrees 1 x 10, 2) ... after q=11: 6; after q=31: 5; after q=41: 3; after q=61: 0\n```\n\n## Not used by the proof\n- The level 1680 of the solver's original normalization (it does not occur with u \u2261 \u22121 mod 4).\n"}, {"path":"v1/anc/code/1.4.6/expected/1.4.6a.txt","sha256":"478946f40ff4683c884630d81bf19649d4005cdf73c3f70b74b6b4f145f8da10","mode":420,"size":1272,"encoding":"utf-8","text":"21x^5 + 5y^5 + 4z^5 = 0: H = 960\n x = 0: -5/4 is not a fifth power (v_2)\n y = 0: -21/4 is not a fifth power (v_2)\n z = 0: -21/5 is not a fifth power (v_3)\nequation 21x^5 + 5y^5 + 4z^5 = 0: coefficients pairwise coprime, coefficient primes [2, 3, 5, 7], every exponent between 1 and 4; 0 coefficient(s) of absolute value 1\n p = 2: v_2(A, B, C) = [0, 0, 2]\n p = 3: v_p(A, B, C) = [1, 0, 0]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n p = 5: v_p(A, B, C) = [0, 1, 0]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n p = 7: v_p(A, B, C) = [1, 0, 0]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n even term 4z^5, v_2(z) = 0: r = 2, type I1* f_2 = 3, v_2(Delta_min) = 8, 2 in N_5; N_5 = 840\n even term 4z^5, v_2(z) = 1: r = 7, type I6 f_2 = 1, v_2(Delta_min) = 6, 2 in N_5; N_5 = 210\n even term 4z^5, v_2(z) = 2: r = 12, type I16 f_2 = 1, v_2(Delta_min) = 16, 2 in N_5; N_5 = 210\n even term 4z^5, v_2(z) = 3 (and likewise for every e > 3): r = 17, type I26 f_2 = 1, v_2(Delta_min) = 26, 2 in N_5; N_5 = 210\n odd part of rad(ABC) = 105; the prime 5: kept (5 | ABC, multiplicative, 5 does not divide v_5(Delta_min))\n levels N_5: [210, 840]\nPASS 1.4.6a\n"}, {"path":"v1/anc/code/1.4.6/expected/1.4.6b.txt","sha256":"0b32867a1d5b5ab37f2ced3d2b8c7a86094a3766c6d733541659981e1d41f1e8","mode":420,"size":1560,"encoding":"utf-8","text":"T_q for 21x^5 + 5y^5 + 4z^5 = 0:\n q = 11: 25 points, 0 with a zero coordinate (q+1 = 12 = 2 mod 5); traces a_q at the others: {-4,4} T_q = {1,4}\n q = 13: 14 points, 3 with a zero coordinate (q+1 = 14 = 4 mod 5); traces a_q at the others: {-6,-2,2,6} T_q = {1,2,3,4}\n q = 17: 18 points, 3 with a zero coordinate (q+1 = 18 = 3 mod 5); traces a_q at the others: {-6,-2,2,6} T_q = {1,2,3,4}\n q = 31: 50 points, 0 with a zero coordinate (q+1 = 32 = 2 mod 5); traces a_q at the others: {-4,0,4} T_q = {0,1,4}\n q = 41: 55 points, 5 with a zero coordinate (q+1 = 42 = 2 mod 5); traces a_q at the others: {-6,6} T_q = {1,2,3,4}\n q = 61: 105 points, 5 with a zero coordinate (q+1 = 62 = 2 mod 5); traces a_q at the others: {-2,2} T_q = {2,3}\n q = 101: 100 points, 0 with a zero coordinate (q+1 = 102 = 2 mod 5); traces a_q at the others: {-6,-2,2,6} T_q = {1,2,3,4}\n q = 131: 150 points, 0 with a zero coordinate (q+1 = 132 = 2 mod 5); traces a_q at the others: {-16,-12,-4,4,12,16} T_q = {1,2,3,4}\n q = 151: 100 points, 0 with a zero coordinate (q+1 = 152 = 2 mod 5); traces a_q at the others: {-8,0,8} T_q = {0,2,3}\n q = 181: 80 points, 5 with a zero coordinate (q+1 = 182 = 2 mod 5); traces a_q at the others: {-22,-18,18,22} T_q = {2,3}\n q = 211: 215 points, 15 with a zero coordinate (q+1 = 212 = 2 mod 5); traces a_q at the others: {-16,-4,4,16} T_q = {1,2,3,4}\nPASS 1.4.6b: the eleven sets of the table\n"}, {"path":"v1/anc/code/1.4.6/expected/1.4.6c.txt","sha256":"ba807da74743b09ead7eea0200e6cf12483417230e87969a5a126d45f280aa56","mode":420,"size":1643,"encoding":"utf-8","text":"(1) Frey curve at 2: f_2 = 3, v_2(Delta_min) = 8 (z odd); f_2 = 1, v_2(Delta_min) = 10 v_2(z) - 4 (z even): 1024 residue classes\n(2) test primes q = [11, 13, 17, 31, 41, 61, 101, 131, 151, 181, 211]\nlevel 210: dim S_2^new = 5, orbits = 5, field degrees = [1, 1, 1, 1, 1]\n orbit 1: P=y [e,f]=[1,1] killed at q=31 (a_q=-8)\n orbit 2: P=y [e,f]=[1,1] killed at q=11 (a_q=0)\n orbit 3: P=y [e,f]=[1,1] killed at q=31 (a_q=-8)\n orbit 4: P=y [e,f]=[1,1] killed at q=61 (a_q=14)\n orbit 5: P=y [e,f]=[1,1] killed at q=11 (a_q=0)\n pairs (orbit, lambda): 5; after q=11: 3; after q=13: 3; after q=17: 3; after q=31: 1; after q=41: 1; after q=61: 0; after q=101: 0; after q=131: 0; after q=151: 0; after q=181: 0; after q=211: 0\nlevel 840: dim S_2^new = 12, orbits = 11, field degrees = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2]\n orbit 1: P=y [e,f]=[1,1] killed at q=31 (a_q=8)\n orbit 2: P=y [e,f]=[1,1] killed at q=11 (a_q=0)\n orbit 3: P=y [e,f]=[1,1] killed at q=41 (a_q=10)\n orbit 4: P=y [e,f]=[1,1] killed at q=41 (a_q=-10)\n orbit 5: P=y [e,f]=[1,1] killed at q=11 (a_q=0)\n orbit 6: P=y [e,f]=[1,1] killed at q=61 (a_q=6)\n orbit 7: P=y [e,f]=[1,1] killed at q=11 (a_q=0)\n orbit 8: P=y [e,f]=[1,1] killed at q=61 (a_q=-10)\n orbit 9: P=y [e,f]=[1,1] killed at q=11 (a_q=0)\n orbit 10: P=y [e,f]=[1,1] killed at q=61 (a_q=6)\n orbit 11: P=y^2 - 2 [e,f]=[1,2] killed at q=11 (a_q=4*y)\n pairs (orbit, lambda): 11; after q=11: 6; after q=13: 6; after q=17: 6; after q=31: 5; after q=41: 3; after q=61: 0; after q=101: 0; after q=131: 0; after q=151: 0; after q=181: 0; after q=211: 0\nPASS 1.4.6c: no survivor at the levels 210 and 840\n"}, {"path":"v1/anc/code/1.4.6/run_all.py","sha256":"0ae1d391cb6f3663101bd43f4d9f28dc618e24d28d8b04291ed654fb7c0ab8f2","mode":420,"size":883,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Run the codes of Section 1.4.6 (21x^5 + 5y^5 + 4z^5 = 0) and compare with expected/.\n\nUsage: python3 run_all.py # all codes of this folder\n python3 run_all.py ... # only the listed code ids\n python3 run_all.py --update # rewrite expected/ from this run\nRequires Python 3 (standard library) and PARI/GP (gp on the PATH, or $GP); see README.md.\n\"\"\"\nimport sys\nfrom pathlib import Path\nHERE = Path(__file__).resolve().parent\nsys.path.insert(0, str(HERE.parent / 'common' / 'frey_quintic'))\nfrom runner import run_steps, table_consistency\n\nSTEPS = [\n ('1.4.6a', 'py', '1.4.6a_elementary.py'),\n ('1.4.6b', 'py', '1.4.6b_traces.py'),\n ('1.4.6c', 'gp', '1.4.6c_sieve.gp'),\n]\nCHECKS = [table_consistency('1.4.6b_traces.py', '1.4.6c_sieve.gp')]\n\nif __name__ == '__main__':\n run_steps(HERE, STEPS, sys.argv[1:], CHECKS)\n"}, {"path":"v1/anc/code/1.4.7/1.4.7a_elementary.py","sha256":"0cd9792b86ae85017ebfb1f294d8c5b27fb2fd2b55da8bf3e98523e3d91855f5","mode":420,"size":1606,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.7a (Section 1.4.7, 17x^5 + 6y^5 + 3z^5 = 0): size H, zero coordinates, the reduction\nx = 3X to 1377X^5 + 2y^5 + z^5 = 0, hypotheses of Lemma lem:1.4:terms, the levels of Lemma lem:1.4:level,\nand (for the remark of the section) the solutions of 2X^5 + 2y^5 + z^5 = 0 modulo 25. Written for the paper.\nRun: python3 -I 1.4.7a_elementary.py (< 1 s)\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'common' / 'frey_quintic'))\nfrom fq import grechuk_H, zero_coordinate_report, report_levels, factor, fifth_powers_mod\n\nco = (17, 6, 3)\nH = grechuk_H(co)\nprint('17x^5 + 6y^5 + 3z^5 = 0: H = %d' % H)\nassert H == 832\nzero_coordinate_report(co)\n# modulo 3 the equation is 2x^5 = 0\nassert all((17 * pow(x, 5, 3)) % 3 != 0 for x in (1, 2))\nassert 17 * 3 ** 5 // 3 == 1377 and factor(1377) == {3: 4, 17: 1}\nprint('mod 3: 17x^5 + 6y^5 + 3z^5 = 2x^5, so x = 3X and 1377X^5 + 2y^5 + z^5 = 0 (1377 = 3^4*17)')\nreport_levels(1377, 2, 1, [102, 1632], 'Xyz')\n# remark: modulo 25 (fifth powers mod 25 depend only on the residue mod 5)\nassert all(pow(a + 5 * t, 5, 25) == pow(a, 5, 25) for a in range(5) for t in range(5))\nprint('fifth powers mod 25: %s; 1377 = %d mod 25' % (fifth_powers_mod(25), 1377 % 25))\nsols = sorted((X, y, z) for X in range(5) for y in range(5) for z in range(5)\n if (1377 * X ** 5 + 2 * y ** 5 + z ** 5) % 25 == 0)\nassert sols == sorted([(0, 0, 0)] + [(a, (-a) % 5, 0) for a in range(1, 5)]), sols\nprint('solutions (X, y, z) mod 5 of 1377X^5 + 2y^5 + z^5 = 0 mod 25: %s' % sols)\nprint('PASS 1.4.7a')\n"}, {"path":"v1/anc/code/1.4.7/1.4.7b_traces.py","sha256":"71c8fbc74f804ed0211a76e2bd37d0f3f0ea623dae1c7dd5ac776f3823c60675","mode":420,"size":603,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.7b (Section 1.4.7): the trace sets T_q of Lemma lem:1.4:sieve for 1377X^5 + 2y^5 + z^5 = 0,\nby two implementations (as in code 1.4.5b). Written for the paper.\nRun: python3 -I 1.4.7b_traces.py (about 15 s)\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'common' / 'frey_quintic'))\nfrom fq import report_traces\n\nTABLE = {11: [2, 3], 31: [0, 1, 4], 41: [0], 131: [0, 2, 3], 241: [0, 2, 3]}\nprint('T_q for 1377X^5 + 2y^5 + z^5 = 0:')\nreport_traces(1377, 2, 1, TABLE)\nprint('PASS 1.4.7b: the five sets of the table')\n"}, {"path":"v1/anc/code/1.4.7/1.4.7c_sieve.gp","sha256":"c27a2e05f7b82fb18c44b76ee270497bbabbaaa4cc1ed01b1bd6d2824e22c3d6","mode":420,"size":1587,"encoding":"utf-8","text":"\\\\ Code 1.4.7c (Section 1.4.7, 17x^5 + 6y^5 + 3z^5 = 0, x = 3X). Written for the paper. PARI/GP 2.15+.\n\\\\ (1) The Frey curve of Lemma lem:1.4.7-frey at 2: (u, v, w) = (1377X^5, 2y^5, z^5) with X = 3 mod 4;\n\\\\ for X = 3, 7, ..., 63 and y = 1..64: f_2 = 5, v_2(Delta_min) = 6 (y odd) and f_2 = 1,\n\\\\ v_2(Delta_min) = 10 v_2(y) - 6 (y even), as in Lemma lem:1.4:frey.\n\\\\ (2) The newform sieve of Lemma lem:1.4.7-sieve at the levels 102 and 1632, test primes in the order\n\\\\ 41, 11, 131 (then 31, 241, which remove nothing more), with the sets of code 1.4.7b.\n\\\\ Run: gp -q 1.4.7c_sieve.gp (about 3 s)\ndefault(parisizemax, 1000000000);\nread(\"../common/frey_quintic/fqsieve.gp\");\n{\n my(n = 0);\n forstep (X = 3, 63, 4, for (y = 1, 64, my(e = valuation(y, 2));\n fq_check2(1377*X^5, 2*y^5, if (e, 1, 5), if (e, 10*e - 6, 6)); n++));\n print(\"(1) Frey curve at 2: f_2 = 5, v_2(Delta_min) = 6 (y odd); f_2 = 1, v_2(Delta_min) = 10 v_2(y) - 6\",\n \" (y even): \", n, \" residue classes\");\n Q = [41, 11, 131, 31, 241];\n T = [[0], [2,3], [0,2,3], [0,1,4], [0,2,3]];\n print(\"(2) test primes q = \", Q);\n S = fq_sieve(102, Q, T); if (#fq_print(102, Q, T, S), error(\"survivor at 102\"));\n S = fq_sieve(1632, Q, T); if (#fq_print(1632, Q, T, S), error(\"survivor at 1632\"));\n my(rep = S[3]);\n for (i = 1, #rep, if (rep[i][3][1][2] == 3,\n print(\" orbit \", i, \" (degree \", poldegree(rep[i][2]), \"): (a_41, a_11, a_131) = \",\n [mfcoef(S[2][i], 41), mfcoef(S[2][i], 11), mfcoef(S[2][i], 131)])));\n print(\"PASS 1.4.7c: no survivor at the levels 102 and 1632\");\n}\nquit\n"}, {"path":"v1/anc/code/1.4.7/README.md","sha256":"4c3b3820a72a61dbe8a4542950785d9b2148cc39554bb7bd68799603692f0447","mode":420,"size":2579,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Code for Section 1.4.7: 17x^5 + 6y^5 + 3z^5 = 0\n\nOnly integer solution (0, 0, 0). Proof: x = 3X, 1377X^5 + 2y^5 + z^5 = 0 (1377 = 3^4\u00b717); Frey curve\n(u, v, w) = \u03b5(1377X^5, 2y^5, z^5), \u03b5X \u2261 3 mod 4; E[5] irreducible (T_31, also T_41); level 1632 (y odd) or 102\n(y even); the primes 41, 11, 131 exclude every newform. Source: the original working notes (Section 8 of the\nconsolidated document; original packet `table9_problem5_solutions_standalone_corrected.tex`).\n\nAll scripts were written for the paper; they use `../common/frey_quintic/fq.py` and `fqsieve.gp`. The solver's\ncertificates (`table9_e3_newforms.gp`, `table9_pair34_trace_sets.py`, `table9_pair34_tate2.gp`) were read, not run.\n\n## Requirements\nPython 3.10+ (standard library); PARI/GP 2.15+ (run here with 2.15.4).\n\n## Codes\n| id | script | what it computes | command | time | run here |\n|---|---|---|---|---|---|\n| 1.4.7a | `1.4.7a_elementary.py` | H = 832; zero coordinates; 3 \u2223 x and the new equation; hypotheses of Lemma lem:1.4:terms; r = 1 + 5v_2(y); Tate data and N_5; solutions modulo 25 (remark) | `python3 -I 1.4.7a_elementary.py` | < 1 s | yes |\n| 1.4.7b | `1.4.7b_traces.py` | T_q(1377,2,1) for q = 11, 31, 41, 131, 241, two implementations | `python3 -I 1.4.7b_traces.py` | 9 s | yes |\n| 1.4.7c | `1.4.7c_sieve.gp` | `elllocalred` on the Frey curve for X \u2261 3 mod 4, all y mod 2^6; the sieve at levels 102 and 1632 (order 41, 11, 131, 31, 241) | `gp -q 1.4.7c_sieve.gp` | 4 s | yes |\n\n`python3 run_all.py` runs all three (about 15 s) and compares with `expected/`. Run here on 17 October 2026.\n\nKey output:\n```\n1.4.7a solutions (X, y, z) mod 5 of 1377X^5 + 2y^5 + z^5 = 0 mod 25: [(0,0,0), (1,4,0), (2,3,0), (3,2,0), (4,1,0)]\n1.4.7b q = 41: 25 points, 0 with a zero coordinate; traces {-10,10}; T_q = {0}\n1.4.7c level 102: ... after q=41: 2; after q=11: 0\n level 1632: dim 32, orbits 20, pairs 20; after q=41: 8; after q=11: 2; after q=131: 0\n orbit 4: (a_41, a_11, a_131) = [-5, 3, 9]; orbit 8: [-5, -3, -9]\n```\n\n## Not used by the proof\n- The level 816 of the solver's original normalization (it does not occur with u \u2261 \u22121 mod 4).\n- The congruence modulo 25 (5 \u2223 z): printed by 1.4.7a for the remark of the section; the level does not depend on it.\n"}, {"path":"v1/anc/code/1.4.7/expected/1.4.7a.txt","sha256":"fbb97d62bb0b225e80b35a8f2d234a27f0652d893db7078a1cbb8f47e57f63fd","mode":420,"size":1451,"encoding":"utf-8","text":"17x^5 + 6y^5 + 3z^5 = 0: H = 832\n x = 0: -6/3 is not a fifth power (v_2)\n y = 0: -17/3 is not a fifth power (v_3)\n z = 0: -17/6 is not a fifth power (v_2)\nmod 3: 17x^5 + 6y^5 + 3z^5 = 2x^5, so x = 3X and 1377X^5 + 2y^5 + z^5 = 0 (1377 = 3^4*17)\nequation 1377X^5 + 2y^5 + 1z^5 = 0: coefficients pairwise coprime, coefficient primes [2, 3, 17], every exponent between 1 and 4; 1 coefficient(s) of absolute value 1\n p = 2: v_2(A, B, C) = [0, 1, 0]\n p = 3: v_p(A, B, C) = [4, 0, 0]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 8 + 10k (mod 5: 3)\n p = 17: v_p(A, B, C) = [1, 0, 0]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n even term 2y^5, v_2(y) = 0: r = 1, type III f_2 = 5, v_2(Delta_min) = 6, 2 in N_5; N_5 = 1632\n even term 2y^5, v_2(y) = 1: r = 6, type I4 f_2 = 1, v_2(Delta_min) = 4, 2 in N_5; N_5 = 102\n even term 2y^5, v_2(y) = 2: r = 11, type I14 f_2 = 1, v_2(Delta_min) = 14, 2 in N_5; N_5 = 102\n even term 2y^5, v_2(y) = 3 (and likewise for every e > 3): r = 16, type I24 f_2 = 1, v_2(Delta_min) = 24, 2 in N_5; N_5 = 102\n odd part of rad(ABC) = 51; the prime 5: removed (5 does not divide ABC: good reduction, or multiplicative with 5 | v_5(Delta_min))\n levels N_5: [102, 1632]\nfifth powers mod 25: [0, 1, 7, 18, 24]; 1377 = 2 mod 25\nsolutions (X, y, z) mod 5 of 1377X^5 + 2y^5 + z^5 = 0 mod 25: [(0, 0, 0), (1, 4, 0), (2, 3, 0), (3, 2, 0), (4, 1, 0)]\nPASS 1.4.7a\n"}, {"path":"v1/anc/code/1.4.7/expected/1.4.7b.txt","sha256":"850a5149b2b0be6345b4fe50ca237be255563467e7798b7a546add3b0c329511","mode":420,"size":740,"encoding":"utf-8","text":"T_q for 1377X^5 + 2y^5 + z^5 = 0:\n q = 11: 5 points, 5 with a zero coordinate (q+1 = 12 = 2 mod 5); traces a_q at the others: {} T_q = {2,3}\n q = 31: 50 points, 0 with a zero coordinate (q+1 = 32 = 2 mod 5); traces a_q at the others: {-4,0,4} T_q = {0,1,4}\n q = 41: 25 points, 0 with a zero coordinate (q+1 = 42 = 2 mod 5); traces a_q at the others: {-10,10} T_q = {0}\n q = 131: 105 points, 5 with a zero coordinate (q+1 = 132 = 2 mod 5); traces a_q at the others: {-12,0,12} T_q = {0,2,3}\n q = 241: 155 points, 5 with a zero coordinate (q+1 = 242 = 2 mod 5); traces a_q at the others: {-18,-10,10,18} T_q = {0,2,3}\nPASS 1.4.7b: the five sets of the table\n"}, {"path":"v1/anc/code/1.4.7/expected/1.4.7c.txt","sha256":"c81cae0fef3ec81d92bf5664b84709906139e8bb16074f0c007942cccdce2e3f","mode":420,"size":2098,"encoding":"utf-8","text":"(1) Frey curve at 2: f_2 = 5, v_2(Delta_min) = 6 (y odd); f_2 = 1, v_2(Delta_min) = 10 v_2(y) - 6 (y even): 1024 residue classes\n(2) test primes q = [41, 11, 131, 31, 241]\nlevel 102: dim S_2^new = 3, orbits = 3, field degrees = [1, 1, 1]\n orbit 1: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 2: P=y [e,f]=[1,1] killed at q=41 (a_q=6)\n orbit 3: P=y [e,f]=[1,1] killed at q=11 (a_q=0)\n pairs (orbit, lambda): 3; after q=41: 2; after q=11: 0; after q=131: 0; after q=31: 0; after q=241: 0\nlevel 1632: dim S_2^new = 32, orbits = 20, field degrees = [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3]\n orbit 1: P=y [e,f]=[1,1] killed at q=11 (a_q=4)\n orbit 2: P=y [e,f]=[1,1] killed at q=11 (a_q=-5)\n orbit 3: P=y [e,f]=[1,1] killed at q=41 (a_q=-2)\n orbit 4: P=y [e,f]=[1,1] killed at q=131 (a_q=9)\n orbit 5: P=y [e,f]=[1,1] killed at q=11 (a_q=-4)\n orbit 6: P=y [e,f]=[1,1] killed at q=11 (a_q=5)\n orbit 7: P=y [e,f]=[1,1] killed at q=41 (a_q=-2)\n orbit 8: P=y [e,f]=[1,1] killed at q=131 (a_q=-9)\n orbit 9: P=y [e,f]=[1,1] killed at q=41 (a_q=-7)\n orbit 10: P=y [e,f]=[1,1] killed at q=11 (a_q=-1)\n orbit 11: P=y [e,f]=[1,1] killed at q=11 (a_q=1)\n orbit 12: P=y [e,f]=[1,1] killed at q=41 (a_q=-7)\n orbit 13: P=y^2 - y - 8 [e,f]=[1,2] killed at q=41 (a_q=y + 6)\n orbit 14: P=y^2 - y - 4 [e,f]=[1,2] killed at q=41 (a_q=y - 11)\n orbit 15: P=y^2 - y - 8 [e,f]=[1,2] killed at q=41 (a_q=y + 6)\n orbit 16: P=y^2 - y - 4 [e,f]=[1,2] killed at q=41 (a_q=y - 11)\n orbit 17: P=y^3 - y^2 - 4*y + 2 [e,f]=[1,3] killed at q=41 (a_q=3*y^2 - 2*y - 8)\n orbit 18: P=y^3 - 4*y - 1 [e,f]=[1,3] killed at q=41 (a_q=-y^2 + 3*y + 1)\n orbit 19: P=y^3 - y^2 - 4*y + 2 [e,f]=[1,3] killed at q=41 (a_q=3*y^2 - 2*y - 8)\n orbit 20: P=y^3 - 4*y - 1 [e,f]=[1,3] killed at q=41 (a_q=-y^2 + 3*y + 1)\n pairs (orbit, lambda): 20; after q=41: 8; after q=11: 2; after q=131: 0; after q=31: 0; after q=241: 0\n orbit 4 (degree 1): (a_41, a_11, a_131) = [-5, 3, 9]\n orbit 8 (degree 1): (a_41, a_11, a_131) = [-5, -3, -9]\nPASS 1.4.7c: no survivor at the levels 102 and 1632\n"}, {"path":"v1/anc/code/1.4.7/run_all.py","sha256":"0a3a9c029e986b438f75ad3f8803e1a42c9709be10ab5159002b15b9b59a9c6c","mode":420,"size":883,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Run the codes of Section 1.4.7 (17x^5 + 6y^5 + 3z^5 = 0) and compare with expected/.\n\nUsage: python3 run_all.py # all codes of this folder\n python3 run_all.py ... # only the listed code ids\n python3 run_all.py --update # rewrite expected/ from this run\nRequires Python 3 (standard library) and PARI/GP (gp on the PATH, or $GP); see README.md.\n\"\"\"\nimport sys\nfrom pathlib import Path\nHERE = Path(__file__).resolve().parent\nsys.path.insert(0, str(HERE.parent / 'common' / 'frey_quintic'))\nfrom runner import run_steps, table_consistency\n\nSTEPS = [\n ('1.4.7a', 'py', '1.4.7a_elementary.py'),\n ('1.4.7b', 'py', '1.4.7b_traces.py'),\n ('1.4.7c', 'gp', '1.4.7c_sieve.gp'),\n]\nCHECKS = [table_consistency('1.4.7b_traces.py', '1.4.7c_sieve.gp')]\n\nif __name__ == '__main__':\n run_steps(HERE, STEPS, sys.argv[1:], CHECKS)\n"}, {"path":"v1/anc/code/1.4.8/1.4.8a_elementary.py","sha256":"8e7f7d1e8cf6ebc9472343523676d1b337fd97518f371185fcab14fa02383564","mode":420,"size":648,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.8a (Section 1.4.8, 17x^5 + 9y^5 + 5z^5 = 0): size H, zero coordinates, hypotheses of\nLemma lem:1.4:terms, the three possible even terms, and the level of Lemma lem:1.4:level. Written for the paper.\nRun: python3 -I 1.4.8a_elementary.py (< 1 s)\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'common' / 'frey_quintic'))\nfrom fq import grechuk_H, zero_coordinate_report, report_levels\n\nco = (17, 9, 5)\nH = grechuk_H(co)\nprint('17x^5 + 9y^5 + 5z^5 = 0: H = %d' % H)\nassert H == 992\nzero_coordinate_report(co)\nreport_levels(17, 9, 5, [510])\nprint('PASS 1.4.8a')\n"}, {"path":"v1/anc/code/1.4.8/1.4.8b_traces.py","sha256":"5b1d4fefebe7bd2665d7d4959e882e830025baf3ffe6ffc81e30e4eb2b46b2d1","mode":420,"size":575,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.8b (Section 1.4.8): the trace sets T_q of Lemma lem:1.4:sieve for 17x^5 + 9y^5 + 5z^5 = 0,\nby two implementations (as in code 1.4.5b). Written for the paper.\nRun: python3 -I 1.4.8b_traces.py (about 3 s)\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'common' / 'frey_quintic'))\nfrom fq import report_traces\n\nTABLE = {11: [2, 3], 31: [2, 3], 41: [0], 71: [2, 3]}\nprint('T_q for 17x^5 + 9y^5 + 5z^5 = 0:')\nreport_traces(17, 9, 5, TABLE)\nprint('PASS 1.4.8b: the four sets of the table')\n"}, {"path":"v1/anc/code/1.4.8/1.4.8c_sieve.gp","sha256":"88091e8c809f2ec5b83ec5814d18935b15033fdd714de149713efe243e1a2ade","mode":420,"size":1402,"encoding":"utf-8","text":"\\\\ Code 1.4.8c (Section 1.4.8, 17x^5 + 9y^5 + 5z^5 = 0). Written for the paper. PARI/GP 2.15 or later.\n\\\\ (1) The Frey curve of Lemma lem:1.4.8-frey at 2: v = the even term, u = the first odd term, both\n\\\\ multiplied by eps = +-1 so that u = -1 mod 4; for each choice of the even variable t = 2..64 (even) and\n\\\\ the odd variables (odd residues mod 2^6): f_2 = 1, v_2(Delta_min) = 10 v_2(t) - 8, as in Lemma lem:1.4:frey.\n\\\\ (2) The newform sieve of Lemma lem:1.4.8-sieve at the level 510, test primes in the order 41, 11\n\\\\ (then 31, 71, which remove nothing more), with the sets of code 1.4.8b.\n\\\\ Run: gp -q 1.4.8c_sieve.gp (about 2 s)\ndefault(parisizemax, 1000000000);\nread(\"../common/frey_quintic/fqsieve.gp\");\n{\n my(n = 0, C = [17, 9, 5]);\n for (j = 1, 3,\n my(io = if (j == 1, 2, 1));\n forstep (t = 2, 64, 2, forstep (s = 1, 63, 2,\n my(e = valuation(t, 2), eps = if ((C[io]*s^5) % 4 == 3, 1, -1));\n fq_check2(eps*C[io]*s^5, eps*C[j]*t^5, 1, 10*e - 8); n++)));\n print(\"(1) Frey curve at 2: f_2 = 1, v_2(Delta_min) = 10e - 8 (e = v_2 of the even variable): \", n,\n \" residue classes (three choices of the even term)\");\n Q = [41, 11, 31, 71];\n T = [[0], [2,3], [2,3], [2,3]];\n print(\"(2) test primes q = \", Q);\n S = fq_sieve(510, Q, T); if (#fq_print(510, Q, T, S), error(\"survivor at 510\"));\n print(\"PASS 1.4.8c: no survivor at the level 510\");\n}\nquit\n"}, {"path":"v1/anc/code/1.4.8/README.md","sha256":"ef5ceec7e7140b1e32efbd71d4c5ebaf96343d1c24af6d307f73487f3df1aa99","mode":420,"size":2308,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Code for Section 1.4.8: 17x^5 + 9y^5 + 5z^5 = 0\n\nOnly integer solution (0, 0, 0). Proof: exactly one variable even; Frey curve with v the even term and u the first\nodd term (order 17x^5, 9y^5, 5z^5), u \u2261 \u22121 mod 4; E semistable, level 510 only; E[5] irreducible (T_41 = {0});\nthe primes 41 and 11 exclude every newform. Source: the original working notes (Section 9 of the consolidated document;\noriginal packet `table9_problem5_solutions_standalone_corrected.tex`).\n\nAll scripts were written for the paper; they use `../common/frey_quintic/fq.py` and `fqsieve.gp`. The solver's\ncertificates (`table9_e4_newforms.gp`, `table9_pair34_trace_sets.py`, `table9_pair34_tate2.gp`) were read, not run.\n\n## Requirements\nPython 3.10+ (standard library); PARI/GP 2.15+ (run here with 2.15.4).\n\n## Codes\n| id | script | what it computes | command | time | run here |\n|---|---|---|---|---|---|\n| 1.4.8a | `1.4.8a_elementary.py` | H = 992; zero coordinates; hypotheses of Lemma lem:1.4:terms; the three possible even terms, r = 5v_2; Tate data and N_5 = 510 | `python3 -I 1.4.8a_elementary.py` | < 1 s | yes |\n| 1.4.8b | `1.4.8b_traces.py` | T_q(17,9,5) for q = 11, 31, 41, 71, two implementations | `python3 -I 1.4.8b_traces.py` | < 1 s | yes |\n| 1.4.8c | `1.4.8c_sieve.gp` | `elllocalred` on the Frey curve for each choice of the even variable (3072 classes); the sieve at level 510 (order 41, 11, 31, 71) | `gp -q 1.4.8c_sieve.gp` | < 1 s | yes |\n\n`python3 run_all.py` runs all three (about 2 s) and compares with `expected/`. Run here on 17 October 2026.\n\nKey output:\n```\n1.4.8b q = 41: 25 points, 0 with a zero coordinate; traces {-10,10}; T_q = {0}\n1.4.8c level 510: dim 9, orbits 8 (field degrees 1 x 7, 2), pairs 9; after q=41: 3; after q=11: 0\n (survivors of q=41: orbits 2, 3 with a_11 = 0, 4, and orbit 8 (y^2 - 6) at one prime above 5 with a_11 = 0)\n```\n\n## Not used by the proof\n- The level 4080 of the solver's original normalization (it does not occur with u \u2261 \u22121 mod 4).\n"}, {"path":"v1/anc/code/1.4.8/expected/1.4.8a.txt","sha256":"2ceb43be8a15ee2bba10c9d659e4fcf09c8157b58dd00dab0c7e6abe7932137a","mode":420,"size":1792,"encoding":"utf-8","text":"17x^5 + 9y^5 + 5z^5 = 0: H = 992\n x = 0: -9/5 is not a fifth power (v_3)\n y = 0: -17/5 is not a fifth power (v_5)\n z = 0: -17/9 is not a fifth power (v_3)\nequation 17x^5 + 9y^5 + 5z^5 = 0: coefficients pairwise coprime, coefficient primes [3, 5, 17], every exponent between 1 and 4; 0 coefficient(s) of absolute value 1\n p = 3: v_p(A, B, C) = [0, 2, 0]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 4 + 10k (mod 5: 4)\n p = 5: v_p(A, B, C) = [0, 0, 1]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n p = 17: v_p(A, B, C) = [1, 0, 0]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n even term 17x^5, v_2(x) = 1: r = 5, type I2 f_2 = 1, v_2(Delta_min) = 2, 2 in N_5; N_5 = 510\n even term 17x^5, v_2(x) = 2: r = 10, type I12 f_2 = 1, v_2(Delta_min) = 12, 2 in N_5; N_5 = 510\n even term 17x^5, v_2(x) = 3 (and likewise for every e > 3): r = 15, type I22 f_2 = 1, v_2(Delta_min) = 22, 2 in N_5; N_5 = 510\n even term 9y^5, v_2(y) = 1: r = 5, type I2 f_2 = 1, v_2(Delta_min) = 2, 2 in N_5; N_5 = 510\n even term 9y^5, v_2(y) = 2: r = 10, type I12 f_2 = 1, v_2(Delta_min) = 12, 2 in N_5; N_5 = 510\n even term 9y^5, v_2(y) = 3 (and likewise for every e > 3): r = 15, type I22 f_2 = 1, v_2(Delta_min) = 22, 2 in N_5; N_5 = 510\n even term 5z^5, v_2(z) = 1: r = 5, type I2 f_2 = 1, v_2(Delta_min) = 2, 2 in N_5; N_5 = 510\n even term 5z^5, v_2(z) = 2: r = 10, type I12 f_2 = 1, v_2(Delta_min) = 12, 2 in N_5; N_5 = 510\n even term 5z^5, v_2(z) = 3 (and likewise for every e > 3): r = 15, type I22 f_2 = 1, v_2(Delta_min) = 22, 2 in N_5; N_5 = 510\n odd part of rad(ABC) = 255; the prime 5: kept (5 | ABC, multiplicative, 5 does not divide v_5(Delta_min))\n levels N_5: [510]\nPASS 1.4.8a\n"}, {"path":"v1/anc/code/1.4.8/expected/1.4.8b.txt","sha256":"6ada7c4b3e4e015ad189807a27f19ed88155c2bd130b4c46691eebdcc1774cd3","mode":420,"size":599,"encoding":"utf-8","text":"T_q for 17x^5 + 9y^5 + 5z^5 = 0:\n q = 11: 5 points, 5 with a zero coordinate (q+1 = 12 = 2 mod 5); traces a_q at the others: {} T_q = {2,3}\n q = 31: 55 points, 5 with a zero coordinate (q+1 = 32 = 2 mod 5); traces a_q at the others: {-8,8} T_q = {2,3}\n q = 41: 25 points, 0 with a zero coordinate (q+1 = 42 = 2 mod 5); traces a_q at the others: {-10,10} T_q = {0}\n q = 71: 50 points, 0 with a zero coordinate (q+1 = 72 = 2 mod 5); traces a_q at the others: {-12,-8,8,12} T_q = {2,3}\nPASS 1.4.8b: the four sets of the table\n"}, {"path":"v1/anc/code/1.4.8/expected/1.4.8c.txt","sha256":"199c5283b527af845ea6980966ad3afa77e53c76a593654d73f8c67f4edf577f","mode":420,"size":846,"encoding":"utf-8","text":"(1) Frey curve at 2: f_2 = 1, v_2(Delta_min) = 10e - 8 (e = v_2 of the even variable): 3072 residue classes (three choices of the even term)\n(2) test primes q = [41, 11, 31, 71]\nlevel 510: dim S_2^new = 9, orbits = 8, field degrees = [1, 1, 1, 1, 1, 1, 1, 2]\n orbit 1: P=y [e,f]=[1,1] killed at q=41 (a_q=8)\n orbit 2: P=y [e,f]=[1,1] killed at q=11 (a_q=0)\n orbit 3: P=y [e,f]=[1,1] killed at q=11 (a_q=4)\n orbit 4: P=y [e,f]=[1,1] killed at q=41 (a_q=-6)\n orbit 5: P=y [e,f]=[1,1] killed at q=41 (a_q=8)\n orbit 6: P=y [e,f]=[1,1] killed at q=41 (a_q=-4)\n orbit 7: P=y [e,f]=[1,1] killed at q=41 (a_q=2)\n orbit 8: P=y^2 - 6 [e,f]=[1,1] killed at q=41 (a_q=2*y + 2) [e,f]=[1,1] killed at q=11 (a_q=0)\n pairs (orbit, lambda): 9; after q=41: 3; after q=11: 0; after q=31: 0; after q=71: 0\nPASS 1.4.8c: no survivor at the level 510\n"}, {"path":"v1/anc/code/1.4.8/run_all.py","sha256":"9f5fe9980628a4fcc0228b6fc460c03ac02bb1c5906096617afcf5a8b6e83a76","mode":420,"size":883,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Run the codes of Section 1.4.8 (17x^5 + 9y^5 + 5z^5 = 0) and compare with expected/.\n\nUsage: python3 run_all.py # all codes of this folder\n python3 run_all.py ... # only the listed code ids\n python3 run_all.py --update # rewrite expected/ from this run\nRequires Python 3 (standard library) and PARI/GP (gp on the PATH, or $GP); see README.md.\n\"\"\"\nimport sys\nfrom pathlib import Path\nHERE = Path(__file__).resolve().parent\nsys.path.insert(0, str(HERE.parent / 'common' / 'frey_quintic'))\nfrom runner import run_steps, table_consistency\n\nSTEPS = [\n ('1.4.8a', 'py', '1.4.8a_elementary.py'),\n ('1.4.8b', 'py', '1.4.8b_traces.py'),\n ('1.4.8c', 'gp', '1.4.8c_sieve.gp'),\n]\nCHECKS = [table_consistency('1.4.8b_traces.py', '1.4.8c_sieve.gp')]\n\nif __name__ == '__main__':\n run_steps(HERE, STEPS, sys.argv[1:], CHECKS)\n"}, {"path":"v1/anc/code/1.4.9/1.4.9a_elementary.py","sha256":"884043a0275321aefcf4417275507aad46cc845fd5661032734e4bc84c8f772f","mode":420,"size":1321,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4.9a (Section 1.4.9, 14x^5 + 13y^5 + 2z^5 = 0): size H, zero coordinates, the reduction\ny = 2Y to 7x^5 + 208Y^5 + z^5 = 0, hypotheses of Lemma lem:1.4:terms, the level of Lemma lem:1.4:level,\nand the projective points modulo 11 (Lemma lem:1.4.9-eleven), with T_11. Written for the paper.\nRun: python3 -I 1.4.9a_elementary.py (< 1 s)\"\"\"\nimport sys\nfrom pathlib import Path\nsys.path.insert(0, str(Path(__file__).resolve().parents[1] / 'common' / 'frey_quintic'))\nfrom fq import grechuk_H, zero_coordinate_report, report_levels, projective_points, report_traces, \\\n fifth_powers_mod, factor\n\nco = (14, 13, 2)\nH = grechuk_H(co)\nprint('14x^5 + 13y^5 + 2z^5 = 0: H = %d' % H)\nassert H == 928\nzero_coordinate_report(co)\nassert 13 * 2 ** 5 // 2 == 208 and factor(208) == {2: 4, 13: 1}\nprint('mod 2: 14x^5 + 13y^5 + 2z^5 = y^5, so y = 2Y and 7x^5 + 208Y^5 + z^5 = 0 (208 = 2^4*13)')\nreport_levels(7, 208, 1, [91], 'xYz')\nprint('fifth powers mod 11: %s; 208 = %d mod 11' % (fifth_powers_mod(11), 208 % 11))\npts = projective_points(7, 208, 1, 11)\nassert all(p[0] == 0 and p[1] * p[2] % 11 for p in pts), pts\nprint('projective points of 7x^5 + 208Y^5 + z^5 = 0 over F_11 (%d): %s; all have x = 0 and Yz != 0'\n % (len(pts), pts))\nreport_traces(7, 208, 1, {11: [2, 3]})\nprint('PASS 1.4.9a')\n"}, {"path":"v1/anc/code/1.4.9/1.4.9b_newforms.gp","sha256":"53d699d6cf3f1c37f78b6ea8b5a6855664c375917cd2c5d80df706cd5d23e7e8","mode":420,"size":1753,"encoding":"utf-8","text":"\\\\ Code 1.4.9b (Section 1.4.9, 14x^5 + 13y^5 + 2z^5 = 0, y = 2Y). Written for the paper. PARI/GP 2.15+.\n\\\\ (1) The Frey curve of Lemma lem:1.4.9-frey at 2: (u, v, w) = (7x^5, 208Y^5, z^5) with x = 1 mod 4;\n\\\\ for x = 1, 5, ..., 61 and Y = 1..64: good reduction (f_2 = 0, v_2(Delta_min) = 0) if Y is odd,\n\\\\ f_2 = 1 and v_2(Delta_min) = 10 v_2(Y) if Y is even, as in Lemma lem:1.4:frey.\n\\\\ (2) S_2(Gamma_0(91))^new: dimension, Galois orbits, the minimal polynomials of a_11, their values at 2\n\\\\ and 3 modulo 5, and the sieve of fqsieve.gp with T_11 = {2, 3}.\n\\\\ Run: gp -q 1.4.9b_newforms.gp (< 1 s)\ndefault(parisizemax, 1000000000);\nread(\"../common/frey_quintic/fqsieve.gp\");\n{\n my(n = 0, M, B, P);\n forstep (x = 1, 61, 4, for (Y = 1, 64, my(e = valuation(Y, 2));\n fq_check2(7*x^5, 208*Y^5, if (e, 1, 0), 10*e); n++));\n print(\"(1) Frey curve at 2: good if Y is odd; f_2 = 1, v_2(Delta_min) = 10 v_2(Y) if Y is even: \", n,\n \" residue classes\");\n M = mfinit([91, 2], 0); B = mfeigenbasis(M);\n if ([mfdim(M), #B] != [7, 4], error(\"level 91\"));\n P = vector(#B, i, minpoly(mfcoef(B[i], 11)));\n if (P != [x, x + 6, x^2 - 18, x^3 - 2*x^2 - 6*x + 8], error(\"minimal polynomials\"));\n print(\"(2) level 91: dim S_2^new = 7, orbits of dimensions \", vector(#B, i, poldegree(mffields(M)[i])),\n \"; minimal polynomials of a_11: \", P);\n print(\" values at T = 2, 3 modulo 5: \", vector(#P, i, [subst(P[i], x, 2) % 5, subst(P[i], x, 3) % 5]));\n for (i = 1, #P, for (t = 2, 3, if (subst(P[i], x, t) % 5 == 0, error(\"root mod 5\"))));\n S = fq_sieve(91, [11], [[2,3]]); if (#fq_print(91, [11], [[2,3]], S), error(\"survivor at 91\"));\n print(\"PASS 1.4.9b: no newform of level 91 has a_11 = 2 or 3 modulo a prime above 5\");\n}\nquit\n"}, {"path":"v1/anc/code/1.4.9/README.md","sha256":"0aa2d40e274e89b496237c1b5a9b22ec6936657903621742e7fde7b9c63f41db","mode":420,"size":2302,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Code for Section 1.4.9: 14x^5 + 13y^5 + 2z^5 = 0\n\nOnly integer solution (0, 0, 0). Proof: y = 2Y, 7x^5 + 208Y^5 + z^5 = 0 (208 = 2^4\u00b713); Frey curve\n(u, v, w) = \u03b5(7x^5, 208Y^5, z^5), \u03b5x \u2261 1 mod 4; good or multiplicative at 2 with 5 \u2223 v_2(\u0394_min), level 91;\nE[5] irreducible by Mazur's theorem; modulo 11 every point has x = 0, so a_11(f) \u2261 \u00b112 is required, and no\nnewform of level 91 has it. Source: the original working notes (Section 10 of the consolidated document; original packet\n`table9_problem5_solutions_standalone_corrected.tex`).\n\nAll scripts were written for the paper; they use `../common/frey_quintic/fq.py` and `fqsieve.gp`. The solver's\ncertificates (`table9_e5_newforms.gp`, `verify_small_newforms.gp`) were read, not run.\n\n## Requirements\nPython 3.10+ (standard library); PARI/GP 2.15+ (run here with 2.15.4).\n\n## Codes\n| id | script | what it computes | command | time | run here |\n|---|---|---|---|---|---|\n| 1.4.9a | `1.4.9a_elementary.py` | H = 928; zero coordinates; 2 \u2223 y and the new equation; hypotheses of Lemma lem:1.4:terms; r = 4 + 5v_2(Y); Tate data and N_5 = 91; the points over F_11 and T_11 (two implementations) | `python3 -I 1.4.9a_elementary.py` | < 1 s | yes |\n| 1.4.9b | `1.4.9b_newforms.gp` | `elllocalred` on the Frey curve for x \u2261 1 mod 4, all Y mod 2^6; S_2(\u0393_0(91))^new, minimal polynomials of a_11 and their values at 2, 3 mod 5; the sieve with T_11 = {2, 3} | `gp -q 1.4.9b_newforms.gp` | < 1 s | yes |\n\n`python3 run_all.py` runs both (about 1 s) and compares with `expected/`. Run here on 17 October 2026.\n\nKey output:\n```\n1.4.9a projective points of 7x^5 + 208Y^5 + z^5 = 0 over F_11 (5): (0,1,1), (0,1,3), (0,1,4), (0,1,5), (0,1,9)\n q = 11: 5 points, 5 with a zero coordinate; T_q = {2,3}\n1.4.9b level 91: dim S_2^new = 7, orbits of dimensions [1, 1, 2, 3];\n minimal polynomials of a_11: [x, x + 6, x^2 - 18, x^3 - 2*x^2 - 6*x + 8]\n values at T = 2, 3 modulo 5: [[2, 3], [3, 4], [1, 1], [1, 4]]\n```\n"}, {"path":"v1/anc/code/1.4.9/expected/1.4.9a.txt","sha256":"93ac094451f5ff9c7215515b14172eba51b91ece28fa2fb857e337aabdfb0be7","mode":420,"size":1606,"encoding":"utf-8","text":"14x^5 + 13y^5 + 2z^5 = 0: H = 928\n x = 0: -13/2 is not a fifth power (v_2)\n y = 0: -14/2 is not a fifth power (v_7)\n z = 0: -14/13 is not a fifth power (v_2)\nmod 2: 14x^5 + 13y^5 + 2z^5 = y^5, so y = 2Y and 7x^5 + 208Y^5 + z^5 = 0 (208 = 2^4*13)\nequation 7x^5 + 208Y^5 + 1z^5 = 0: coefficients pairwise coprime, coefficient primes [2, 7, 13], every exponent between 1 and 4; 1 coefficient(s) of absolute value 1\n p = 2: v_2(A, B, C) = [0, 4, 0]\n p = 7: v_p(A, B, C) = [1, 0, 0]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n p = 13: v_p(A, B, C) = [0, 1, 0]; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = 2 + 10k (mod 5: 2)\n even term 208Y^5, v_2(Y) = 0: r = 4, type I0 f_2 = 0, v_2(Delta_min) = 0, 2 not in N_5; N_5 = 91\n even term 208Y^5, v_2(Y) = 1: r = 9, type I10 f_2 = 1, v_2(Delta_min) = 10, 2 not in N_5; N_5 = 91\n even term 208Y^5, v_2(Y) = 2: r = 14, type I20 f_2 = 1, v_2(Delta_min) = 20, 2 not in N_5; N_5 = 91\n even term 208Y^5, v_2(Y) = 3 (and likewise for every e > 3): r = 19, type I30 f_2 = 1, v_2(Delta_min) = 30, 2 not in N_5; N_5 = 91\n odd part of rad(ABC) = 91; the prime 5: removed (5 does not divide ABC: good reduction, or multiplicative with 5 | v_5(Delta_min))\n levels N_5: [91]\nfifth powers mod 11: [0, 1, 10]; 208 = 10 mod 11\nprojective points of 7x^5 + 208Y^5 + z^5 = 0 over F_11 (5): [(0, 1, 1), (0, 1, 3), (0, 1, 4), (0, 1, 5), (0, 1, 9)]; all have x = 0 and Yz != 0\n q = 11: 5 points, 5 with a zero coordinate (q+1 = 12 = 2 mod 5); traces a_q at the others: {} T_q = {2,3}\nPASS 1.4.9a\n"}, {"path":"v1/anc/code/1.4.9/expected/1.4.9b.txt","sha256":"473aa3f21df15dd368eea209fd420d182342e1da0d1418173a86f6c029773361","mode":420,"size":744,"encoding":"utf-8","text":"(1) Frey curve at 2: good if Y is odd; f_2 = 1, v_2(Delta_min) = 10 v_2(Y) if Y is even: 1024 residue classes\n(2) level 91: dim S_2^new = 7, orbits of dimensions [1, 1, 2, 3]; minimal polynomials of a_11: [x, x + 6, x^2 - 18, x^3 - 2*x^2 - 6*x + 8]\n values at T = 2, 3 modulo 5: [[2, 3], [3, 4], [1, 1], [1, 4]]\nlevel 91: dim S_2^new = 7, orbits = 4, field degrees = [1, 1, 2, 3]\n orbit 1: P=y [e,f]=[1,1] killed at q=11 (a_q=0)\n orbit 2: P=y [e,f]=[1,1] killed at q=11 (a_q=-6)\n orbit 3: P=y^2 - 2 [e,f]=[1,2] killed at q=11 (a_q=-3*y)\n orbit 4: P=y^3 - y^2 - 4*y + 2 [e,f]=[1,3] killed at q=11 (a_q=y^2 - y - 2)\n pairs (orbit, lambda): 4; after q=11: 0\nPASS 1.4.9b: no newform of level 91 has a_11 = 2 or 3 modulo a prime above 5\n"}, {"path":"v1/anc/code/1.4.9/run_all.py","sha256":"4ce5d2c698378345fbaabf1925d61b2a4b6ecafa2c03d0a7f8178acc4e6f2e98","mode":420,"size":789,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Run the codes of Section 1.4.9 (14x^5 + 13y^5 + 2z^5 = 0) and compare with expected/.\n\nUsage: python3 run_all.py # all codes of this folder\n python3 run_all.py ... # only the listed code ids\n python3 run_all.py --update # rewrite expected/ from this run\nRequires Python 3 (standard library) and PARI/GP (gp on the PATH, or $GP); see README.md.\n\"\"\"\nimport sys\nfrom pathlib import Path\nHERE = Path(__file__).resolve().parent\nsys.path.insert(0, str(HERE.parent / 'common' / 'frey_quintic'))\nfrom runner import run_steps, table_consistency\n\nSTEPS = [\n ('1.4.9a', 'py', '1.4.9a_elementary.py'),\n ('1.4.9b', 'gp', '1.4.9b_newforms.gp'),\n]\nCHECKS = []\n\nif __name__ == '__main__':\n run_steps(HERE, STEPS, sys.argv[1:], CHECKS)\n"}, {"path":"v1/anc/code/common/cyclic_cubic/README.md","sha256":"727eec51fe24b03070a595d2fda71472f7097d3f9c11e5099ede4b74d85954e4","mode":420,"size":2325,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Shared helpers for Sections 1.4.2, 1.4.3, 1.4.4 (cubic surfaces B, C and the diagonal quartic Q)\n\nWritten for this bundle (agent S2, 17 Oct 2026). These files have no code id of their own; they are used by the\ncodes 1.4.2a\u2013d, 1.4.3a\u2013d and 1.4.4c (see the READMEs of `../../1.4.2/`, `../../1.4.3/`, `../../1.4.4/`).\nNo PARI/GP, Magma or Sage. The scripts that use them add this folder to `sys.path` themselves.\n\n| file | language | what it provides |\n|---|---|---|\n| `cubicfield.py` | Python 3 + SymPy | exact arithmetic in Q[u,s]/(g(u), s^2 \u2212 D) for a monic cubic g with disc(g) = D\u00b7m^2: normal forms, inverses, the generator \u03c4(u) = (\u2212u + m\u00b7s/g'(u))/2 of Gal(L/K) (checked: g(\u03c4(u)) = 0, \u03c4^3 = id, \u03c4 \u2260 id), orbits, norms |\n| `restree.py` | Python 3 (standard library) | complete residue trees of normalized primitive p-adic points of F = 0 (the first coordinate prime to p is 1; level k+1 = all p^3 digit extensions of level k that satisfy F \u2261 0 mod p^(k+1)), valuations modulo p^k, 2-adic and p-adic square roots, roots modulo p, Legendre symbols |\n| `brute_residues.c` | C99, C library only | direct enumeration of ALL primitive tuples modulo p^k (no normalization, no tree): case `B` (mod 2^6, 3^4), `C` (mod 3^4, 8), `Q` (mod 3^4, 7^2); it checks the expected sets of valuation pairs / symbols and prints `PASS brute_residues ` |\n\nWhy the trees are complete: every primitive point over Z_p, divided by its first coordinate that is a p-adic unit,\nis a normalized primitive point, and its reduction modulo p^k satisfies the conditions defining level k. The\nvaluation of a linear form on a class of level k is determined when it is smaller than k; the scripts assert\nthat this is the case on every class of the last level.\n\n`brute_residues.c` is compiled by the `run_all.py` of each section into a temporary directory\n(`$CC -O2 -std=c99`, default `cc`); by hand: `cc -O2 -std=c99 -o brute brute_residues.c && ./brute B`.\nRun times here (2 cores, nice 10): B 1.8 s, C 1.1 s, Q 0.2 s.\n"}, {"path":"v1/anc/code/common/cyclic_cubic/brute_residues.c","sha256":"b703e7b2fe897d498c3b95364965167ad9ba32d11a11b12c4070ba5a4de122ea","mode":420,"size":5646,"encoding":"utf-8","text":"/* brute_residues.c -- direct enumeration of ALL primitive solutions modulo p^k (no normalization, no tree).\n *\n * Part of codes 1.4.2c, 1.4.3c, 1.4.4c (Sections 1.4.2-1.4.4). Written for this bundle. C99, C library only.\n * Usage: brute_residues B | C | Q\n * B: F_B mod 2^6 and mod 3^4, pairs (v(l+), v(l-)), l+- = (-1 +- s)x + 4y, s = 45 (2-adic), 187 (3-adic);\n * C: F_C mod 3^4, pairs for l+- = (2 +- s)y + 3t, s = 31; and mod 8: the parities of (y, t);\n * Q: 8x^4+7y^4+2z^4-t^4 mod 3^4: v_3(f), f = 7y^2+2z^2-3t^2 (values >= 4 reported as 4);\n * mod 7^2: the product of the Legendre symbols (f/7)(A+/7), A+ = 2x^2+2xz+z^2, and v_7(f), v_7(A+).\n * A tuple mod p^k is primitive if not all four coordinates are divisible by p. Valuations are those of the\n * residue mod p^k (\"k\" means: divisible by p^k, i.e. not determined at this precision).\n */\n#include \n#include \n#include \n\ntypedef long long ll;\n\nstatic ll md(ll a, ll m) { a %= m; return a < 0 ? a + m : a; }\n\nstatic int val(ll a, ll p, ll m, int k) {\n a = md(a, m);\n if (a == 0) return k;\n int v = 0;\n while (a % p == 0) { a /= p; v++; }\n return v;\n}\n\nstatic ll FB(ll x, ll y, ll z, ll t, ll m) {\n ll r = 2*x*x%m*x + x*x%m*y + x*y%m*y + y*y%m*y + y*y%m*z - 2*x*z%m*z - z*z%m*z + t*t%m*y + t*z%m*z - t*t%m*t;\n return md(r, m);\n}\nstatic ll FC(ll x, ll y, ll z, ll t, ll m) {\n ll r = 2*x*x%m*x + 2*x*x%m*y + 2*y*y%m*y + y*y%m*z - 2*x*z%m*z - z*z%m*z + t*z%m*z - t*t%m*t;\n return md(r, m);\n}\nstatic ll FQ(ll x, ll y, ll z, ll t, ll m) {\n ll x2 = x*x%m, y2 = y*y%m, z2 = z*z%m, t2 = t*t%m;\n ll r = 8*(x2*x2%m) + 7*(y2*y2%m) + 2*(z2*z2%m) - t2*t2%m;\n return md(r, m);\n}\n\nstatic int leg7(ll a) { a = md(a, 7); if (!a) return 0; return (a == 1 || a == 2 || a == 4) ? 1 : -1; }\n\nstatic int fails = 0;\nstatic void check(int ok, const char *what) { if (!ok) { printf(\"FAIL: %s\\n\", what); fails++; } }\n\n/* returns the set of pairs as a bit mask: bit (8a+b) for the pair (a,b) */\nstatic unsigned long long pairs_BC(char which, ll p, int k, ll s) {\n ll m = 1; for (int i = 0; i < k; i++) m *= p;\n static ll cnt[8][8]; memset(cnt, 0, sizeof cnt);\n ll nsol = 0;\n for (ll x = 0; x < m; x++) for (ll y = 0; y < m; y++) for (ll z = 0; z < m; z++) for (ll t = 0; t < m; t++) {\n if (x % p == 0 && y % p == 0 && z % p == 0 && t % p == 0) continue;\n ll f = which == 'B' ? FB(x, y, z, t, m) : FC(x, y, z, t, m);\n if (f) continue;\n nsol++;\n int a, b;\n if (which == 'B') { a = val((-1 + s)*x + 4*y, p, m, k); b = val((-1 - s)*x + 4*y, p, m, k); }\n else { a = val((2 + s)*y + 3*t, p, m, k); b = val((2 - s)*y + 3*t, p, m, k); }\n cnt[a][b]++;\n }\n printf(\"%c mod %lld^%d (s=%lld): %lld primitive solutions; pairs (v(l+),v(l-)):count\", which, p, k, s, nsol);\n unsigned long long mask = 0;\n for (int a = 0; a <= k; a++) for (int b = 0; b <= k; b++) if (cnt[a][b]) {\n printf(\" (%d,%d):%lld\", a, b, cnt[a][b]);\n mask |= 1ULL << (8*a + b);\n }\n printf(\"\\n\");\n return mask;\n}\n#define PAIR(a, b) (1ULL << (8*(a) + (b)))\n\nint main(int argc, char **argv) {\n if (argc != 2) { fprintf(stderr, \"usage: %s B|C|Q\\n\", argv[0]); return 2; }\n char w = argv[1][0];\n if (w == 'B') {\n check(pairs_BC('B', 2, 6, 45) == (PAIR(2,1) | PAIR(5,1) | PAIR(2,4)), \"B at 2\");\n check(pairs_BC('B', 3, 4, 187 % 81) == (PAIR(0,0) | PAIR(3,0)), \"B at 3\");\n } else if (w == 'C') {\n check(pairs_BC('C', 3, 4, 31) == (PAIR(1,0) | PAIR(1,3)), \"C at 3\");\n ll m = 8, n = 0, bad = 0;\n for (ll x = 0; x < m; x++) for (ll y = 0; y < m; y++) for (ll z = 0; z < m; z++) for (ll t = 0; t < m; t++) {\n if (x % 2 == 0 && y % 2 == 0 && z % 2 == 0 && t % 2 == 0) continue;\n if (FC(x, y, z, t, m)) continue;\n n++;\n if (!(y % 2 == 1 && t % 2 == 0)) bad++;\n }\n printf(\"C mod 8: %lld primitive solutions, %lld with y even or t odd\\n\", n, bad);\n check(bad == 0 && n > 0, \"C at 2\");\n } else if (w == 'Q') {\n ll m = 81, n = 0; ll cv[5] = {0};\n for (ll x = 0; x < m; x++) for (ll y = 0; y < m; y++) for (ll z = 0; z < m; z++) for (ll t = 0; t < m; t++) {\n if (x % 3 == 0 && y % 3 == 0 && z % 3 == 0 && t % 3 == 0) continue;\n if (FQ(x, y, z, t, m)) continue;\n n++;\n cv[val(7*y*y + 2*z*z - 3*t*t, 3, m, 4)]++;\n }\n printf(\"Q mod 3^4: %lld primitive solutions; v_3(f):count\", n);\n for (int v = 0; v <= 4; v++) if (cv[v]) printf(\" %d:%lld\", v, cv[v]);\n printf(\"\\n\");\n check(cv[1] == 0 && cv[3] == 0 && cv[4] == 0 && cv[0] > 0 && cv[2] > 0, \"Q at 3\");\n m = 49; n = 0; ll plus = 0, minus = 0, nonunit = 0;\n for (ll x = 0; x < m; x++) for (ll y = 0; y < m; y++) for (ll z = 0; z < m; z++) for (ll t = 0; t < m; t++) {\n if (x % 7 == 0 && y % 7 == 0 && z % 7 == 0 && t % 7 == 0) continue;\n if (FQ(x, y, z, t, m)) continue;\n n++;\n ll f = 7*y*y + 2*z*z - 3*t*t, A = 2*x*x + 2*x*z + z*z;\n if (md(f, 7) == 0 || md(A, 7) == 0) { nonunit++; continue; }\n if (leg7(f) * leg7(A) == 1) plus++; else minus++;\n }\n printf(\"Q mod 7^2: %lld primitive solutions; f, A+ units at 7 with (f/7)(A+/7) = 1: %lld, = -1: %lld, \"\n \"f or A+ divisible by 7: %lld\\n\", n, plus, minus, nonunit);\n check(minus == 0 && nonunit == 0 && plus == n && n > 0, \"Q at 7\");\n } else { fprintf(stderr, \"unknown case\\n\"); return 2; }\n if (fails) return 1;\n printf(\"PASS brute_residues %c\\n\", w);\n return 0;\n}\n"}, {"path":"v1/anc/code/common/cyclic_cubic/cubicfield.py","sha256":"d31121e5d7dd9358acf5043f605cc4dee7f48295b88c968fcc8b40974874b869","mode":420,"size":2798,"encoding":"utf-8","text":"\"\"\"Exact arithmetic in L = K(u), K = Q(s), s^2 = D, u a root of a monic cubic g in Z[u].\n\nHelper for codes 1.4.2a, 1.4.2b, 1.4.3a, 1.4.3b (Sections 1.4.2, 1.4.3). Written for this bundle.\nElements of L are SymPy expressions in u and s with rational coefficients, kept in the normal form\n sum_{i<3, j<2} c_ij u^i s^j\nby reduction modulo g(u) and s^2 - D. If disc(g) = D*m^2 (m rational), then the second root of g is\n tau(u) = (-u + m*s/g'(u)) / 2,\nbecause (u-u')(u-u'') = g'(u) and (u'-u'')^2 = disc(g)/g'(u)^2; the program checks g(tau(u)) = 0 and\ntau^3 = id, so tau is a generator of Gal(L/K) for this choice of the sign of s.\n\"\"\"\nimport os\nos.environ.setdefault('SYMPY_GROUND_TYPES', 'python')\nimport sympy as sp\n\nu, s = sp.symbols('u s')\n\n\nclass CubicOverQuadratic:\n def __init__(self, g, D, m):\n self.g = sp.Poly(g, u)\n assert self.g.is_monic and self.g.degree() == 3\n self.D = sp.Integer(D)\n self.m = sp.Rational(m)\n disc = sp.discriminant(self.g.as_expr(), u)\n assert disc == self.D * self.m**2, (disc, D, m)\n self.disc = disc\n gp = sp.diff(self.g.as_expr(), u)\n self.inv_gp = self.inverse(gp)\n self.tau_u = self.red((-u + self.m * s * self.inv_gp) / 2)\n assert self.red(self.g.as_expr().subs(u, self.tau_u)) == 0\n t2 = self.tau(self.tau_u)\n assert t2 != u and self.tau_u != u\n assert self.tau(t2) == u\n\n def red(self, e):\n \"\"\"Normal form modulo g(u), s^2 - D.\"\"\"\n e = sp.expand(e)\n e = sp.rem(sp.Poly(e, u), self.g).as_expr()\n e = sp.expand(e)\n e = sp.rem(sp.Poly(e, s), sp.Poly(s**2 - self.D, s)).as_expr()\n return sp.expand(e)\n\n def inverse(self, e):\n \"\"\"Inverse of an element of Q(u) (no s) modulo g.\"\"\"\n r = sp.invert(sp.expand(e), self.g.as_expr(), u)\n assert self.red(r * e) == 1\n return sp.expand(r)\n\n def tau(self, e):\n return self.red(sp.expand(e).subs(u, self.tau_u))\n\n def conj(self, e):\n \"\"\"The automorphism s -> -s, u -> u of the ring Q[u,s]/(g, s^2-D) (not K-linear).\"\"\"\n return self.red(sp.expand(e).subs(s, -s))\n\n def orbit(self, e):\n e0 = self.red(e)\n e1 = self.tau(e0)\n e2 = self.tau(e1)\n assert self.tau(e2) == e0\n return [e0, e1, e2]\n\n def in_K(self, e):\n \"\"\"True if the normal form has no u.\"\"\"\n return sp.Poly(self.red(e), u).degree() <= 0\n\n def norm_K_Q(self, e):\n \"\"\"Norm from K to Q of an element of K.\"\"\"\n assert self.in_K(e)\n return sp.expand(self.red(e * e.subs(s, -s)))\n\n def norm_L_K_poly(self, e):\n \"\"\"Product of the three Gal(L/K)-conjugates (for an element of L, as a K-expression).\"\"\"\n o = self.orbit(e)\n return self.red(o[0] * o[1] * o[2])\n"}, {"path":"v1/anc/code/common/cyclic_cubic/restree.py","sha256":"c0875a5e9bc078091351f3951b617a6ba3a5eecad8ff571b3ea6513362dab7e0","mode":420,"size":3506,"encoding":"utf-8","text":"\"\"\"Complete residue trees for primitive p-adic points of a projective hypersurface, and small p-adic utilities.\n\nHelper for codes 1.4.2c, 1.4.3c, 1.4.4c (Sections 1.4.2--1.4.4). Pure Python, standard library only.\nWritten for this bundle.\n\nNormalization. Every primitive point P of the cone F = 0 over Z_p (coordinates in Z_p, not all in pZ_p) has a\nfirst coordinate (in the order x, y, z, t, ...) that is a p-adic unit; dividing P by it gives a primitive point\nwith that coordinate equal to 1 and with the same projective point. Level k of the tree is the list of all\ntuples (c_0, ..., c_{n-1}) with 0 <= c_j < p^k, c_i = 1 for the first index i with p not dividing c_i, c_j\ndivisible by p for j < i, and F(c) = 0 (mod p^k). Level k+1 is obtained from level k by adding p^k*e_j (0 <= e_j\n< p) to the coordinates j != i and keeping the tuples with F = 0 (mod p^(k+1)). Every normalized primitive\npoint of F = 0 over Z_p reduces to an element of every level, so the levels describe all of them.\n\"\"\"\nfrom itertools import product\n\n\ndef primes_upto(n):\n sieve = bytearray([1]) * (n + 1)\n sieve[0] = sieve[1] = 0\n for i in range(2, int(n ** 0.5) + 1):\n if sieve[i]:\n sieve[i * i::i] = bytearray(len(sieve[i * i::i]))\n return [i for i in range(n + 1) if sieve[i]]\n\n\ndef level1(F, p, n=4):\n out = []\n for i in range(n):\n for tail in product(range(p), repeat=n - 1 - i):\n P = (0,) * i + (1,) + tail\n if F(*P) % p == 0:\n out.append((i, P))\n return out\n\n\ndef tree(F, p, k, n=4):\n \"\"\"Return (level k as a list of (i, tuple), p^k, [sizes of levels 1..k]).\"\"\"\n cur = level1(F, p, n)\n sizes = [len(cur)]\n m = p\n for _ in range(2, k + 1):\n nxt = []\n for (i, P) in cur:\n free = [j for j in range(n) if j != i]\n for d in product(range(p), repeat=n - 1):\n Q = list(P)\n for j, e in zip(free, d):\n Q[j] += m * e\n if F(*Q) % (m * p) == 0:\n nxt.append((i, tuple(Q)))\n cur = nxt\n m *= p\n sizes.append(len(cur))\n return cur, m, sizes\n\n\ndef val_mod(a, p, m):\n \"\"\"p-adic valuation of a modulo m = p^k; None if a = 0 (mod m), i.e. if the valuation is not determined.\"\"\"\n a %= m\n if a == 0:\n return None\n v = 0\n while a % p == 0:\n a //= p\n v += 1\n return v\n\n\ndef sqrt_2adic(a, k):\n \"\"\"The square root r of a (a = 1 mod 8) in Z_2 with r = 1 (mod 4), modulo 2^k.\"\"\"\n assert a % 8 == 1\n r = 1\n for j in range(3, k + 2):\n if (r * r - a) % (2 ** j):\n r += 2 ** (j - 2)\n r %= 2 ** k\n assert (r * r - a) % (2 ** k) == 0 and r % 4 == 1\n return r\n\n\ndef sqrt_padic(a, p, k, r0):\n \"\"\"The square root of a in Z_p (p odd) congruent to r0 modulo p, modulo p^k (Hensel).\"\"\"\n assert (r0 * r0 - a) % p == 0 and (2 * r0) % p\n r, m = r0 % p, p\n for _ in range(1, k):\n m *= p\n r = (r - (r * r - a) * pow(2 * r, -1, m)) % m\n assert (r * r - a) % m == 0 and (r - r0) % p == 0\n return r\n\n\ndef roots_mod_p(coeffs, p):\n \"\"\"Roots in F_p of the polynomial with integer coefficients coeffs (highest degree first).\"\"\"\n out = []\n for r in range(p):\n v = 0\n for c in coeffs:\n v = (v * r + c) % p\n if v == 0:\n out.append(r)\n return out\n\n\ndef legendre(a, p):\n a %= p\n if a == 0:\n return 0\n return 1 if pow(a, (p - 1) // 2, p) == 1 else -1\n"}, {"path":"v1/anc/code/common/frey_quintic/1.4qa_tate2.gp","sha256":"67edf1b8d7cc2df1da36fc17e4dab7c92a884d30488894190ed947c8624e5b26","mode":420,"size":4236,"encoding":"utf-8","text":"\\\\ Code 1.4qa (common framework of Sections 1.4.5-1.4.10): the Frey curve E_{u,v}: Y^2 = X(X-u)(X+v)\n\\\\ at the prime 2 (Lemma lem:1.4:frey). Written for the paper.\n\\\\ (1) The identities behind the model for r = v_2(v) >= 4, as polynomials in u, v, R, S.\n\\\\ (2) The congruences used in the hand run of Tate's algorithm for r = 2, 3 (every residue class of\n\\\\ (u, v/2^r) modulo 2^7 with u = -1 mod 4; each tested expression has integer coefficients and is\n\\\\ tested modulo at most 2^5, so the classes modulo 2^7 cover all integers u, v).\n\\\\ (3) A comparison with PARI's own Tate algorithm (elllocalred) on the same classes for r = 1, ..., 12:\n\\\\ Kodaira type, conductor exponent f_2 and v_2 of the minimal discriminant. For information it also\n\\\\ prints the values for u = 1 mod 4 (the other sign), which the normalization u = -1 mod 4 avoids.\n\\\\ Run: gp -q 1.4qa_tate2.gp (about 2 s)\n\nbinv(a) = {\n my(a1=a[1], a2=a[2], a3=a[3], a4=a[4], a6=a[5], b2, b4, b6, b8);\n b2 = a1^2 + 4*a2; b4 = a1*a3 + 2*a4; b6 = a3^2 + 4*a6;\n b8 = a1^2*a6 + 4*a2*a6 - a1*a3*a4 + a2*a3^2 - a4^2;\n [b2, b4, b6, b8, b2^2 - 24*b4, -b2^2*b8 - 8*b4^3 - 27*b6^2 + 9*b2*b4*b6]\n}\n\n{\n \\\\ ---------------------------------------------------------------- (1) symbolic identities\n my(F = [0, v - u, 0, -u*v, 0], G = [1, (v - u - 1)/4, 0, -u*v/16, 0], bF = binv(F), bG = binv(G));\n if (bF[5] != 16*(u^2 + u*v + v^2), error(\"c4\"));\n if (bF[6] != 16*u^2*v^2*(u + v)^2, error(\"Delta\"));\n if ((8*S + 4*R)^2 - (4*R)*(4*R - u)*(4*R + v) != 64*(S^2 + R*S - R^3 - (v - u - 1)/4*R^2 + u*v/16*R),\n error(\"substitution\"));\n if (bG[5] != u^2 + u*v + v^2 || bG[6] != bF[6]/2^12, error(\"model r>=4\"));\n print(\"(1) c4 = 16(u^2+uv+v^2), Delta = 16u^2v^2(u+v)^2; X=4R, Y=8S+4R gives\");\n print(\" S^2+RS = R^3+((v-u-1)/4)R^2-(uv/16)R with c4' = c4/16 = u^2+uv+v^2 and Delta' = Delta/2^12\");\n}\n\n{\n \\\\ ---------------------------------------------------------------- (2) the hand run for r = 2, 3\n my(n = 0);\n for (r = 2, 3,\n forstep (u = 3, 127, 4, forstep (w = 1, 127, 2,\n my(v = 2^r*w, a2 = v - u - 1, a4 = -u*v);\n \\\\ after y -> y + x: (a1,a2,a3,a4,a6) = (2, v-u-1, 0, -uv, 0); P(T) = T^3 + (a2/2)T^2 + (a4/4)T\n if ((a2/2) % 2 != 0, error(\"a_{2,1}\"));\n if (r == 2,\n if ((a4/4) % 2 != 1, error(\"a_{4,2} odd\"));\n \\\\ x -> x + 2: a2'' = a2 + 6, a3'' = 4, a4'' = a4 + 4 a2 + 12, a6'' = 2 a4 + 4 a2 + 8\n if ((a2 + 6) % 4 != 2 || (a4 + 4*a2 + 12) % 8 != 0 || (2*a4 + 4*a2 + 8) % 16 != 0,\n error(\"I_1^* congruences\")),\n if ((a4/4) % 2 != 0 || valuation(a4, 2) != 3, error(\"III^* congruences\")));\n n++)));\n print(\"(2) r=2: v_2(a2'')=1, a3''=4, 8|a4'', 16|a6'' (type I_1^*); r=3: P(T)=T^3 mod 2, a3=a6=0, v_2(a4)=3\",\n \" (type III^*): \", n, \" residue classes\");\n}\n\n{\nkodname(k) =\n if (k == 1, return(\"I0\")); if (k > 4, return(Str(\"I\", k - 4))); if (k == 2, return(\"II\"));\n if (k == 3, return(\"III\")); if (k == 4, return(\"IV\")); if (k == -1, return(\"I0*\"));\n if (k < -4, return(Str(\"I\", -k - 4, \"*\"))); if (k == -2, return(\"II*\")); if (k == -3, return(\"III*\"));\n \"IV*\";\n}\n\n{\n \\\\ ---------------------------------------------------------------- (3) elllocalred on residue classes\n my(cnt = 0, other = vector(12, r, []));\n for (r = 1, 12,\n my(expf = [5, 3, 3, 0][min(r, 4)], expd = if (r <= 3, 4 + 2*r, 2*r - 8),\n expk = if (r <= 4, [3, -5, -3, 1][r], 4 + 2*r - 8), seen = []);\n if (r >= 5, expf = 1);\n forstep (u = -1, -127, -4, forstep (w = 1, 127, 2,\n my(v = 2^r*w, E = ellinit([0, v - u, 0, -u*v, 0]), lr = elllocalred(E, 2),\n d = valuation(E.disc, 2) - 12*valuation(lr[3][1], 2));\n if (lr[1] != expf || lr[2] != expk || d != expd, error(\"Tate table \", [u, v, lr, d]));\n cnt++));\n forstep (u = 1, 125, 4, forstep (w = 1, 31, 2,\n my(v = 2^r*w, E = ellinit([0, v - u, 0, -u*v, 0]), lr = elllocalred(E, 2));\n seen = setunion(seen, [lr[1]])));\n other[r] = seen;\n print(\"(3) r=\", r, \": type \", kodname(expk), \", f_2=\", expf, \", v_2(Delta_min)=\", expd,\n \" [for u = 1 mod 4: f_2 in \", seen, \"]\"));\n print(\"PASS 1.4qa: Tate table at 2 for u = -1 mod 4 (\", cnt, \" curves, r = 1..12, u and v/2^r modulo 2^7)\");\n}\nquit\n"}, {"path":"v1/anc/code/common/frey_quintic/1.4qb_newdims.py","sha256":"b6b27aa7c425e03c9ebe50f81cd3df482b49fd6f396f6883fb3fafa349bc2aac","mode":420,"size":2876,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Code 1.4qb (common framework of Sections 1.4.5-1.4.10): dimensions of S_2(Gamma_0(N))^new for the\nlevels of the six newform sieves, from the genus formula, without PARI. Written for the paper.\n\ndim S_2(Gamma_0(M)) is the genus of X_0(M):\n g = 1 + mu/12 - nu2/4 - nu3/3 - nuinf/2,\n mu = M prod_{p|M} (1 + 1/p), nu2 = 0 if 4|M else prod_{p|M} (1 + (-1/p)),\n nu3 = 0 if 9|M else prod_{p|M} (1 + (-3/p)), nuinf = sum_{d|M} phi(gcd(d, M/d)).\nThe new part is dim S_2^new(N) = sum_{M|N} beta(N/M) dim S_2(Gamma_0(M)), with beta multiplicative,\nbeta(p) = -2, beta(p^2) = 1, beta(p^k) = 0 for k >= 3 (Atkin-Lehner theory; G. Martin, J. Number Theory\n112 (2005), 298-331). The values are compared with those printed by mfdim in the codes 1.4.kc.\nRun: python3 -I 1.4qb_newdims.py (< 1 s)\n\"\"\"\nfrom fractions import Fraction\nfrom math import gcd\n\nLEVELS = {210: 5, 3360: 48, 840: 12, 102: 3, 1632: 32, 510: 9, 91: 7, 88: 3, 22: 0}\n\n\ndef factor(n):\n out, p = {}, 2\n while p * p <= n:\n while n % p == 0:\n out[p] = out.get(p, 0) + 1\n n //= p\n p += 1\n if n > 1:\n out[n] = out.get(n, 0) + 1\n return out\n\n\ndef divisors(n):\n ds = [1]\n for p, e in factor(n).items():\n ds = [d * p ** k for d in ds for k in range(e + 1)]\n return sorted(ds)\n\n\ndef phi(n):\n r = n\n for p in factor(n):\n r = r // p * (p - 1)\n return r\n\n\ndef kron(a, p):\n \"\"\"(a/p) for an odd prime p; (-1/2) = 0 and (-3/2) = -1 (Kronecker).\"\"\"\n if p == 2:\n return {-1: 0, -3: -1}[a]\n a %= p\n if a == 0:\n return 0\n return 1 if pow(a, (p - 1) // 2, p) == 1 else -1\n\n\ndef genus(M):\n f = factor(M)\n mu = Fraction(M)\n for p in f:\n mu *= Fraction(p + 1, p)\n nu2 = 0 if M % 4 == 0 else 1\n if nu2:\n for p in f:\n nu2 *= 1 + kron(-1, p)\n nu3 = 0 if M % 9 == 0 else 1\n if nu3:\n for p in f:\n nu3 *= 1 + (kron(-3, p) if p != 3 else 0)\n nuinf = sum(phi(gcd(d, M // d)) for d in divisors(M))\n g = 1 + mu / 12 - Fraction(nu2, 4) - Fraction(nu3, 3) - Fraction(nuinf, 2)\n assert g.denominator == 1 and g >= 0\n return int(g)\n\n\ndef beta(n):\n r = 1\n for p, e in factor(n).items():\n r *= {1: -2, 2: 1}.get(e, 0)\n return r\n\n\ndef newdim(N):\n return sum(beta(N // M) * genus(M) for M in divisors(N))\n\n\nif __name__ == '__main__':\n assert [genus(n) for n in (11, 37, 1, 22, 23)] == [1, 2, 0, 2, 2]\n for N, d in LEVELS.items():\n dn = newdim(N)\n print('N = %4d = %-16s g(X_0(N)) = %3d dim S_2^new = %2d' % (\n N, '*'.join('%d^%d' % (p, e) if e > 1 else str(p) for p, e in factor(N).items()), genus(N), dn))\n assert dn == d, (N, dn, d)\n print('PASS 1.4qb: new dimensions 5, 48, 12, 3, 32, 9, 7, 3, 0 at the levels 210, 3360, 840, 102, 1632,'\n ' 510, 91, 88, 22')\n"}, {"path":"v1/anc/code/common/frey_quintic/1.4qc_modsym_check.gp","sha256":"88e7e73e5e17e61810217862101a8c2fb9644b405710f73ad265032c609d5452","mode":420,"size":2148,"encoding":"utf-8","text":"\\\\ Code 1.4qc (common framework of Sections 1.4.5-1.4.10): a cross-check of the Hecke data used by the\n\\\\ newform sieves, by a second algorithm. Written for the paper.\n\\\\ For every level N of the six sections and every test prime q used at that level, the characteristic\n\\\\ polynomial of T_q on the new subspace of the modular symbols of weight 2 for Gamma_0(N) with sign +1\n\\\\ (msinit, msnew, mshecke) is compared with the product, over the Galois orbits of newforms given by\n\\\\ mfinit/mfeigenbasis (trace formula), of the characteristic polynomials of a_q over the coefficient field.\n\\\\ The two algorithms are independent inside PARI (modular symbols versus the trace formula).\n\\\\ Run: gp -q -D nbthreads=1 -D threadsizemax=1000000000 1.4qc_modsym_check.gp (about 2 minutes; 0.5 GB)\ndefault(parisizemax, 1500000000);\n{\nLEVELS = [ [210, [11,13,17,31,41,61,71,101,131,151,181,191,211]],\n [3360, [11,13,17,31,41,61,71,101,131,151,181,191]],\n [840, [11,13,17,31,41,61,101,131,151,181,211]],\n [102, [11,31,41,131,241]],\n [1632, [11,31,41,131,241]],\n [510, [11,31,41,71]],\n [91, [11]],\n [88, [3]],\n [22, [3]] ];\n}\n{\n my(t0 = getabstime());\n for (l = 1, #LEVELS,\n my(N = LEVELS[l][1], Q = LEVELS[l][2], t = getabstime());\n my(M = mfinit([N, 2], 0), B = mfeigenbasis(M), K = mffields(M));\n my(S = msinit(N, 2, 1), NW = msnew(S));\n if (msdim(NW) != mfdim(M), error(\"dimension mismatch at \", N));\n for (j = 1, #Q,\n my(q = Q[j], P1, P2);\n P1 = if (msdim(NW), charpoly(mshecke(S, q, NW)), 1);\n P2 = prod(i = 1, #B, my(a = mfcoef(B[i], q));\n if (poldegree(K[i]) == 1, x - a, charpoly(Mod(lift(a), K[i]))));\n if (P1 != P2, error(\"T_\", q, \" mismatch at level \", N)));\n print(\"level \", N, \": dim new = \", msdim(NW), \" (modular symbols) = \", mfdim(M),\n \" (mf); charpoly of T_q agrees for q in \", Q, \" [\", (getabstime() - t) \\ 1000, \" s]\"));\n print(\"PASS 1.4qc: Hecke polynomials from modular symbols = products over the mf orbits at all \",\n #LEVELS, \" levels [\", (getabstime() - t0) \\ 1000, \" s]\");\n}\nquit\n"}, {"path":"v1/anc/code/common/frey_quintic/README.md","sha256":"eb0817b8321ee192a3ca65a0d268c69b3656d20f96c6163106f726e1fa0a14a0","mode":420,"size":5331,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Common code for Sections 1.4.5\u20131.4.10 (the six diagonal quintics A x^5 + B y^5 + C z^5 = 0)\n\nCodes 1.4qa\u20131.4qc of the common framework of Section 1.4 (Lemmas lem:1.4:terms \u2026 lem:1.4:pairing), and the two\nlibraries used by the codes of `../../1.4.5/` \u2026 `../../1.4.10/`. All scripts were written for the paper. The\nsolver's certificates (`verify_quintic_sieves.gp`, `verify_standard_tate.gp`, `verify_tate_models.gp`,\n`verify_small_newforms.gp`, `verify_trace_assertions.py`, `table9_*.py`, `table9_e*_newforms.gp`, `quintic_4411_*`\nin `section87_reproducibility/certificates/`) were read as references but not run; their claims are recomputed here.\n\n## Requirements\n- Python 3.10 or later, standard library only (`fq.py`, `runner.py`, `1.4qb_newdims.py`, the `*a_*.py`, `*b_*.py`\n scripts of the sections). Exact integer arithmetic, no floating point.\n- PARI/GP 2.15 or later (`gp`; run here with GP 2.15.4) for the `.gp` scripts: `mfinit`, `mfeigenbasis`, `mffields`,\n `nfinit`, `nfcertify`, `idealprimedec`, `idealval`, `elllocalred`, `ellglobalred`, `msinit`, `msnew`, `mshecke`.\n `1.4qc` needs `-D nbthreads=1 -D threadsizemax=1000000000` (set by `run_all.py`). Peak memory about 0.8 GB.\n\n## Files\n| file | contents |\n|---|---|\n| `fq.py` | Python library: valuations, factorization, Grechuk's H; the hypotheses of Lemma lem:1.4:terms and the level table of Lemmas lem:1.4:frey, lem:1.4:level (`report_levels`); the projective points of A a^5 + B b^5 + C c^5 = 0 over F_q and the trace sets T_q by two implementations (`trace_set`: character sums for (u, v) = (A a^5, B b^5); `trace_set_variants`: point counting with a table of square roots for all twelve signed orderings of the three terms and all scalings \u03bb \u2208 F_q^\u00d7, with the assertion that only the two traces \u00b1a_q occur) |\n| `fqsieve.gp` | GP library: `fq_check2` (f_2 and v_2(\u0394_min) of E_{u,v} by `elllocalred`); `fq_sieve`/`fq_print` (the newform sieve: every Galois orbit of S_2(\u0393_0(N))^new, its coefficient field Q[y]/(P), the maximal order by `nfinit` certified by `nfcertify`, every prime ideal \u03bb above 5 by `idealprimedec`; a pair (orbit, \u03bb) is excluded at the first q with `idealval(a_q \u2212 t, \u03bb) = 0` for all t \u2208 T_q) |\n| `runner.py` | the harness used by every `run_all.py` (output to `out/`, comparison with `expected/`, timing lines ignored) |\n| `1.4qa_tate2.gp`, `1.4qb_newdims.py`, `1.4qc_modsym_check.gp` | the codes below |\n| `run_all.py` | runs 1.4qa\u20131.4qc; `--sections` also runs the six section folders |\n| `expected/` | the outputs of this run (`python3 run_all.py --update`) |\n\n## Codes\n| id | script | what it computes | command | time | run here |\n|---|---|---|---|---|---|\n| 1.4qa | `1.4qa_tate2.gp` | E_{u,v}: Y^2 = X(X\u2212u)(X+v), u \u2261 \u22121 mod 4, r = v_2(v): (1) the model S^2 + RS = R^3 + ((v\u2212u\u22121)/4)R^2 \u2212 (uv/16)R for r \u2265 4 and its c_4, \u0394, as polynomial identities; (2) the congruences of the hand run of Tate's algorithm (r = 2: I_1^*, r = 3: III^*) on all classes of u and v/2^r modulo 2^7; (3) `elllocalred` on the same classes for r = 1\u202612 | `gp -q 1.4qa_tate2.gp` | < 1 s | yes |\n| 1.4qb | `1.4qb_newdims.py` | dim S_2(\u0393_0(N))^new at N = 210, 3360, 840, 102, 1632, 510, 91, 88, 22 from the genus of X_0(M), M \u2223 N (no PARI) | `python3 -I 1.4qb_newdims.py` | < 1 s | yes |\n| 1.4qc | `1.4qc_modsym_check.gp` | for the nine levels and their 53 test primes: charpoly of T_q on the new modular symbols with sign +1 = product over the `mf` orbits of the charpolys of a_q | `gp -q -D nbthreads=1 -D threadsizemax=1000000000 1.4qc_modsym_check.gp` | 5 min (level 3360: 4.8 min) | yes |\n\n\"Run here\" = run on 17 October 2026 with Python 3.12 and GP 2.15.4 (`nice -n 10`, one process), outputs in\n`expected/`.\n\nKey output (1.4qa):\n```\n(3) r=1: type III, f_2=5, v_2(Delta_min)=6 [for u = 1 mod 4: f_2 in [5]]\n(3) r=2: type I1*, f_2=3, v_2(Delta_min)=8 [for u = 1 mod 4: f_2 in [4]]\n(3) r=3: type III*, f_2=3, v_2(Delta_min)=10 [for u = 1 mod 4: f_2 in [4]]\n(3) r=4: type I0, f_2=0, v_2(Delta_min)=0 [for u = 1 mod 4: f_2 in [4]]\n(3) r=5: type I2, f_2=1, v_2(Delta_min)=2 [for u = 1 mod 4: f_2 in [4]]\n...\nPASS 1.4qa: Tate table at 2 for u = -1 mod 4 (24576 curves, r = 1..12, u and v/2^r modulo 2^7)\n```\nKey output (1.4qb): `dim S_2^new = 5, 48, 12, 3, 32, 9, 7, 3, 0` (genus of X_0(N) = 41, 737, 177, 15, 273, 101, 7, 9, 2).\nKey output (1.4qc): one line per level, e.g.\n`level 3360: dim new = 48 (modular symbols) = 48 (mf); charpoly of T_q agrees for q in [11, 13, \u2026, 191]`.\n\n## Notes\n- The proof of the Tate table (Lemma lem:1.4:frey) is the hand run of Tate's algorithm in the paper; every\n congruence used there is a polynomial congruence modulo at most 2^5, so part (2) of 1.4qa checks it for all\n integers. Part (3) is an independent confirmation with PARI's implementation.\n- 1.4qc confirms the Hecke data level by level with a second algorithm (modular symbols against the trace formula);\n the reduction modulo the prime ideals above 5 is done in the section codes only.\n"}, {"path":"v1/anc/code/common/frey_quintic/expected/1.4qa.txt","sha256":"b512b7cc53684a28d98018e38adb28a1bd881af20361c4bfce3ba691943e7bb3","mode":420,"size":1299,"encoding":"utf-8","text":"(1) c4 = 16(u^2+uv+v^2), Delta = 16u^2v^2(u+v)^2; X=4R, Y=8S+4R gives\n S^2+RS = R^3+((v-u-1)/4)R^2-(uv/16)R with c4' = c4/16 = u^2+uv+v^2 and Delta' = Delta/2^12\n(2) r=2: v_2(a2'')=1, a3''=4, 8|a4'', 16|a6'' (type I_1^*); r=3: P(T)=T^3 mod 2, a3=a6=0, v_2(a4)=3 (type III^*): 4096 residue classes\n(3) r=1: type III, f_2=5, v_2(Delta_min)=6 [for u = 1 mod 4: f_2 in [5]]\n(3) r=2: type I1*, f_2=3, v_2(Delta_min)=8 [for u = 1 mod 4: f_2 in [4]]\n(3) r=3: type III*, f_2=3, v_2(Delta_min)=10 [for u = 1 mod 4: f_2 in [4]]\n(3) r=4: type I0, f_2=0, v_2(Delta_min)=0 [for u = 1 mod 4: f_2 in [4]]\n(3) r=5: type I2, f_2=1, v_2(Delta_min)=2 [for u = 1 mod 4: f_2 in [4]]\n(3) r=6: type I4, f_2=1, v_2(Delta_min)=4 [for u = 1 mod 4: f_2 in [4]]\n(3) r=7: type I6, f_2=1, v_2(Delta_min)=6 [for u = 1 mod 4: f_2 in [4]]\n(3) r=8: type I8, f_2=1, v_2(Delta_min)=8 [for u = 1 mod 4: f_2 in [4]]\n(3) r=9: type I10, f_2=1, v_2(Delta_min)=10 [for u = 1 mod 4: f_2 in [4]]\n(3) r=10: type I12, f_2=1, v_2(Delta_min)=12 [for u = 1 mod 4: f_2 in [4]]\n(3) r=11: type I14, f_2=1, v_2(Delta_min)=14 [for u = 1 mod 4: f_2 in [4]]\n(3) r=12: type I16, f_2=1, v_2(Delta_min)=16 [for u = 1 mod 4: f_2 in [4]]\nPASS 1.4qa: Tate table at 2 for u = -1 mod 4 (24576 curves, r = 1..12, u and v/2^r modulo 2^7)\n"}, {"path":"v1/anc/code/common/frey_quintic/expected/1.4qb.txt","sha256":"d10e87004acdeea81e9961631e64ec318d2e6b3163ada6eb1175d4ba4996f216","mode":420,"size":689,"encoding":"utf-8","text":"N = 210 = 2*3*5*7 g(X_0(N)) = 41 dim S_2^new = 5\nN = 3360 = 2^5*3*5*7 g(X_0(N)) = 737 dim S_2^new = 48\nN = 840 = 2^3*3*5*7 g(X_0(N)) = 177 dim S_2^new = 12\nN = 102 = 2*3*17 g(X_0(N)) = 15 dim S_2^new = 3\nN = 1632 = 2^5*3*17 g(X_0(N)) = 273 dim S_2^new = 32\nN = 510 = 2*3*5*17 g(X_0(N)) = 101 dim S_2^new = 9\nN = 91 = 7*13 g(X_0(N)) = 7 dim S_2^new = 7\nN = 88 = 2^3*11 g(X_0(N)) = 9 dim S_2^new = 3\nN = 22 = 2*11 g(X_0(N)) = 2 dim S_2^new = 0\nPASS 1.4qb: new dimensions 5, 48, 12, 3, 32, 9, 7, 3, 0 at the levels 210, 3360, 840, 102, 1632, 510, 91, 88, 22\n"}, {"path":"v1/anc/code/common/frey_quintic/expected/1.4qc.txt","sha256":"c371e1b77db2178e99d0ff70bb9827d619e507d158bedf681857714b835ec09d","mode":420,"size":1163,"encoding":"utf-8","text":"level 210: dim new = 5 (modular symbols) = 5 (mf); charpoly of T_q agrees for q in [11, 13, 17, 31, 41, 61, 71, 101, 131, 151, 181, 191, 211] [1 s]\nlevel 3360: dim new = 48 (modular symbols) = 48 (mf); charpoly of T_q agrees for q in [11, 13, 17, 31, 41, 61, 71, 101, 131, 151, 181, 191] [289 s]\nlevel 840: dim new = 12 (modular symbols) = 12 (mf); charpoly of T_q agrees for q in [11, 13, 17, 31, 41, 61, 101, 131, 151, 181, 211] [9 s]\nlevel 102: dim new = 3 (modular symbols) = 3 (mf); charpoly of T_q agrees for q in [11, 31, 41, 131, 241] [0 s]\nlevel 1632: dim new = 32 (modular symbols) = 32 (mf); charpoly of T_q agrees for q in [11, 31, 41, 131, 241] [12 s]\nlevel 510: dim new = 9 (modular symbols) = 9 (mf); charpoly of T_q agrees for q in [11, 31, 41, 71] [0 s]\nlevel 91: dim new = 7 (modular symbols) = 7 (mf); charpoly of T_q agrees for q in [11] [0 s]\nlevel 88: dim new = 3 (modular symbols) = 3 (mf); charpoly of T_q agrees for q in [3] [0 s]\nlevel 22: dim new = 0 (modular symbols) = 0 (mf); charpoly of T_q agrees for q in [3] [0 s]\nPASS 1.4qc: Hecke polynomials from modular symbols = products over the mf orbits at all 9 levels [313 s]\n"}, {"path":"v1/anc/code/common/frey_quintic/fq.py","sha256":"2e480971a4a11b360f51fead13b04e594356e6983cb6c092db6e12af8c62106c","mode":420,"size":10882,"encoding":"utf-8","text":"\"\"\"Shared exact helpers for the six diagonal quintics A x^5 + B y^5 + C z^5 = 0\n(Sections 1.4.5-1.4.10 of the paper, common framework of Section 1.4).\n\nWritten for the paper (not taken from the solver's certificates). Python 3 standard library only;\nall arithmetic is exact integer arithmetic. Imported by the scripts of code/1.4.5 ... code/1.4.10\n(they put this folder on sys.path explicitly, so they also run under `python3 -I`).\n\nConventions (as in the text). For pairwise coprime nonzero u, v, w with u + v + w = 0 the Frey curve is\n E_{u,v}: Y^2 = X (X - u) (X + v), c4 = 16 (u^2 + u v + v^2), Delta = 16 u^2 v^2 w^2.\nFor a prime q not dividing 10*A*B*C, the trace set T_q is the set of residues modulo 5 of\n * both signs of a_q(E_{A a^5, B b^5}) for every projective point (a:b:c) over F_q with abc != 0, and\n * both signs of q + 1 if some projective point has a zero coordinate.\n\"\"\"\n\nfrom itertools import permutations\n\n\n# ------------------------------------------------------------------ integers\ndef vp(n, p):\n \"\"\"p-adic valuation of a nonzero integer.\"\"\"\n if n == 0:\n raise ValueError('vp(0)')\n n = abs(n)\n k = 0\n while n % p == 0:\n n //= p\n k += 1\n return k\n\n\ndef factor(n):\n \"\"\"Factorization of a nonzero integer by trial division: dict p -> exponent (|n| small).\"\"\"\n n = abs(n)\n out = {}\n p = 2\n while p * p <= n:\n while n % p == 0:\n out[p] = out.get(p, 0) + 1\n n //= p\n p += 1\n if n > 1:\n out[n] = out.get(n, 0) + 1\n return out\n\n\ndef is_prime(n):\n if n < 2:\n return False\n p = 2\n while p * p <= n:\n if n % p == 0:\n return False\n p += 1\n return True\n\n\ndef grechuk_H(coeffs, degree=5):\n \"\"\"H = sum over monomials of |coefficient| * 2^degree.\"\"\"\n return sum(abs(c) for c in coeffs) * 2 ** degree\n\n\ndef fifth_power_witness(a, b):\n \"\"\"A prime p with v_p(a) - v_p(b) not divisible by 5, or None if |a/b| is a fifth power of a rational.\n Then -a/b (and a/b) is not the fifth power of a rational number.\"\"\"\n fa, fb = factor(a), factor(b)\n for p in sorted(set(fa) | set(fb)):\n if (fa.get(p, 0) - fb.get(p, 0)) % 5:\n return p\n return None\n\n\n# ------------------------------------------------------------------ finite fields\ndef legendre(a, q):\n \"\"\"Legendre symbol (a/q) for an odd prime q, by Euler's criterion.\"\"\"\n a %= q\n if a == 0:\n return 0\n return 1 if pow(a, (q - 1) // 2, q) == 1 else -1\n\n\ndef square_count_table(q):\n \"\"\"n[t] = #{Y in F_q : Y^2 = t}, by squaring every element (no Euler criterion).\"\"\"\n n = [0] * q\n for y in range(q):\n n[y * y % q] += 1\n return n\n\n\ndef frey_trace_charsum(u, v, q):\n \"\"\"a_q(E_{u,v}) = -sum_R ((R (R-u) (R+v)) / q) (good reduction: q odd, u v (u+v) != 0 mod q).\"\"\"\n return -sum(legendre(R * (R - u) * (R + v), q) for R in range(q))\n\n\ndef frey_trace_count(u, v, q, table=None):\n \"\"\"a_q(E_{u,v}) = q + 1 - #E(F_q), counting the points (X, Y) with a table of square roots.\"\"\"\n n = table if table is not None else square_count_table(q)\n affine = sum(n[X * (X - u) * (X + v) % q] for X in range(q))\n return q + 1 - (affine + 1)\n\n\ndef projective_points(A, B, C, q):\n \"\"\"All points (a:b:c) of A a^5 + B b^5 + C c^5 = 0 in P^2(F_q), first nonzero coordinate 1.\"\"\"\n f = [pow(t, 5, q) for t in range(q)]\n pts = []\n for b in range(q):\n for c in range(q):\n if (A + B * f[b] + C * f[c]) % q == 0:\n pts.append((1, b, c))\n for c in range(q):\n if (B + C * f[c]) % q == 0:\n pts.append((0, 1, c))\n if C % q == 0:\n pts.append((0, 0, 1))\n return pts\n\n\ndef trace_set(A, B, C, q):\n \"\"\"Implementation 1 of T_q (character sums for the pair (u, v) = (A a^5, B b^5)).\n Returns (number of points, number with a zero coordinate, sorted list of traces a_q, sorted T_q).\"\"\"\n assert is_prime(q) and q not in (2, 5) and (A * B * C) % q != 0, q\n pts = projective_points(A, B, C, q)\n traces, T, nzero = set(), set(), 0\n for (a, b, c) in pts:\n if a * b * c % q == 0:\n nzero += 1\n T.update({(q + 1) % 5, (-q - 1) % 5})\n continue\n t = frey_trace_charsum(A * pow(a, 5, q) % q, B * pow(b, 5, q) % q, q)\n traces.add(t)\n T.update({t % 5, -t % 5})\n return len(pts), nzero, sorted(traces), sorted(T)\n\n\ndef trace_set_variants(A, B, C, q):\n \"\"\"Implementation 2 of T_q: point counting (no Legendre symbols). For every point with abc != 0 and\n every scaling lambda in F_q^*, the twelve signed orderings (u, v) of the three terms\n (A a^5, B b^5, C c^5) are counted; the assertion checks that they give only the two traces +-t\n (permutations and the common sign give the curve or its twist by -1; scaling by lambda gives the twist\n by lambda^5). Returns (sorted set of all traces met, sorted T_q).\"\"\"\n n = square_count_table(q)\n pts = projective_points(A, B, C, q)\n seen, T = set(), set()\n for (a, b, c) in pts:\n if a * b * c % q == 0:\n T.update({(q + 1) % 5, (-q - 1) % 5})\n continue\n vals = set()\n for lam in range(1, q):\n terms = (A * pow(lam * a, 5, q) % q, B * pow(lam * b, 5, q) % q, C * pow(lam * c, 5, q) % q)\n assert sum(terms) % q == 0\n for (i, j) in permutations(range(3), 2):\n for s in (1, -1):\n vals.add(frey_trace_count(s * terms[i] % q, s * terms[j] % q, q, n))\n t = max(vals)\n assert vals <= {t, -t}, (q, (a, b, c), vals)\n seen |= vals\n T.update({t % 5, -t % 5})\n return sorted(seen), sorted(T)\n\n\n# ------------------------------------------------------------------ the levels (Lemmas lem:1.4:frey, lem:1.4:level)\ndef tate2(r):\n \"\"\"Lemma lem:1.4:frey at 2 for u = -1 mod 4 and r = v_2(v) >= 1: (Kodaira type, f_2, v_2(Delta_min)).\"\"\"\n if r == 1:\n return ('III', 5, 6)\n if r in (2, 3):\n return ('I1*' if r == 2 else 'III*', 3, 4 + 2 * r)\n if r == 4:\n return ('I0', 0, 0)\n return ('I%d' % (2 * r - 8), 1, 2 * r - 8)\n\n\ndef check_terms_hypotheses(A, B, C):\n \"\"\"Hypotheses of Lemma lem:1.4:terms: A, B, C pairwise coprime, every v_p at most 4,\n at most one of |A|, |B|, |C| equal to 1. Returns the list of the coefficient primes.\"\"\"\n from math import gcd\n assert gcd(A, B) == gcd(B, C) == gcd(A, C) == 1\n ps = sorted(set(factor(A)) | set(factor(B)) | set(factor(C)))\n for c in (A, B, C):\n for p, e in factor(c).items():\n assert 1 <= e <= 4, (c, p, e)\n return ps, sum(1 for c in (A, B, C) if abs(c) == 1)\n\n\ndef level_cases(A, B, C, emax=3):\n \"\"\"For each possible even term (Lemma lem:1.4:terms) and e = v_2(variable) = 0..emax (e >= 1 if the\n coefficient is odd): r, the Tate data at 2, whether 2 stays in N_5 (Lemma lem:1.4:level), and N_5.\n The pattern in e is periodic for e >= 1 (r grows by 5, and only r mod 5 matters), so e <= emax shows\n every case.\"\"\"\n coeffs = (A, B, C)\n even = [j for j in range(3) if coeffs[j] % 2 == 0]\n js = even if even else [0, 1, 2]\n assert len(even) <= 1\n odd_rad = 1\n for p in factor(A * B * C):\n if p != 2:\n odd_rad *= p\n out = []\n for j in js:\n s = vp(coeffs[j], 2) if coeffs[j] % 2 == 0 else 0\n for e in range(0 if s else 1, emax + 1):\n r = s + 5 * e\n kod, f, d = tate2(r)\n alpha = f if not (f == 1 and d % 5 == 0) else 0\n out.append((j, e, r, kod, f, d, alpha, 2 ** alpha * odd_rad))\n return out, odd_rad\n\n\ndef report_levels(A, B, C, expected_levels, names='xyz'):\n \"\"\"Print the hypotheses of Lemma lem:1.4:terms and the level table of Lemma lem:1.4:level for\n A x^5 + B y^5 + C z^5 = 0, and assert that the set of levels is expected_levels.\"\"\"\n ps, nunit = check_terms_hypotheses(A, B, C)\n print('equation %d%s^5 + %d%s^5 + %d%s^5 = 0: coefficients pairwise coprime, coefficient '\n 'primes %s, every exponent between 1 and 4; %d coefficient(s) of absolute value 1'\n % (A, names[0], B, names[1], C, names[2], ps, nunit))\n for p in ps:\n vals = [vp(c, p) if c % p == 0 else 0 for c in (A, B, C)]\n print(' p = %2d: v_p(A, B, C) = %s; v_p(Delta_min) = 2 v_p(coefficient) + 10 v_p(variable) = %d + 10k'\n ' (mod 5: %d)' % (p, vals, 2 * max(vals), 2 * max(vals) % 5) if p != 2 else\n ' p = 2: v_2(A, B, C) = %s' % vals)\n cases, odd_rad = level_cases(A, B, C)\n levels = set()\n for (j, e, r, kod, f, d, alpha, N) in cases:\n print(' even term %-7s v_2(%s) = %d%s: r = %2d, type %-4s f_2 = %d, v_2(Delta_min) = %2d, 2 %s N_5;'\n ' N_5 = %d' % ('%d%s^5,' % ((A, B, C)[j], names[j]), names[j], e,\n '' if e < 3 else ' (and likewise for every e > 3)', r, kod, f, d,\n 'in' if alpha else 'not in', N))\n levels.add(N)\n five = 'kept (5 | ABC, multiplicative, 5 does not divide v_5(Delta_min))' if (A * B * C) % 5 == 0 else \\\n 'removed (5 does not divide ABC: good reduction, or multiplicative with 5 | v_5(Delta_min))'\n print(' odd part of rad(ABC) = %d; the prime 5: %s' % (odd_rad, five))\n assert levels == set(expected_levels), levels\n print(' levels N_5: %s' % sorted(levels))\n return sorted(levels)\n\n\ndef zero_coordinate_report(coeffs):\n \"\"\"For the original equation: for each vanishing coordinate, a prime showing that the ratio of the\n other two coefficients is not a fifth power (so the other two coordinates vanish too).\"\"\"\n names = 'xyz'\n for i in range(3):\n j, k = [t for t in range(3) if t != i]\n p = fifth_power_witness(coeffs[j], coeffs[k])\n assert p is not None\n print(' %s = 0: -%d/%d is not a fifth power (v_%d)' % (names[i], coeffs[j], coeffs[k], p))\n\n\ndef report_traces(A, B, C, expected):\n \"\"\"Compute T_q for the primes q of `expected` (dict q -> list) by both implementations, print one\n line per q and assert equality with `expected` (the table of the text).\"\"\"\n for q in expected:\n npts, nzero, traces, T1 = trace_set(A, B, C, q)\n seen, T2 = trace_set_variants(A, B, C, q)\n assert T1 == T2, (q, T1, T2)\n assert sorted(set(traces) | {-t for t in traces}) == seen, (q, traces, seen)\n assert T1 == sorted(expected[q]), (q, T1, expected[q])\n print(' q = %3d: %3d points, %2d with a zero coordinate (q+1 = %d = %d mod 5); traces a_q at the '\n 'others: %-22s T_q = %s' % (q, npts, nzero, q + 1, (q + 1) % 5,\n fmt_set(sorted(set(traces) | {-t for t in traces})), fmt_set(T1)))\n\n\ndef fifth_powers_mod(m):\n return sorted({pow(t, 5, m) for t in range(m)})\n\n\ndef fmt_set(S):\n return '{' + ','.join(str(s) for s in S) + '}'\n"}, {"path":"v1/anc/code/common/frey_quintic/fqsieve.gp","sha256":"e863389bb7171b84a327cc00b67e79c1c93c1f6537de4264d2f8c44f8fb1fbdd","mode":420,"size":3602,"encoding":"utf-8","text":"\\\\ fqsieve.gp -- newform sieve for the diagonal quintics (Sections 1.4.5-1.4.8 of the paper).\n\\\\ Written for the paper (not taken from the solver's certificates). PARI/GP 2.15 or later.\n\\\\ Read by the scripts 1.4.kc_sieve.gp of code/1.4.5 ... code/1.4.8 (and 1.4.9b, 1.4.10b).\n\\\\\n\\\\ fq_sieve(N, Q, T): S_2(Gamma_0(N))^new is computed with mfinit([N,2],0); every Galois orbit of newforms\n\\\\ (mfeigenbasis) is taken with its coefficient field K = Q[y]/(P) (mffields). For a non-rational K the\n\\\\ maximal order is computed by nfinit and certified by nfcertify, and every prime ideal lambda | 5 of O_K\n\\\\ (idealprimedec) is tested separately; for K = Q, lambda = 5. The pair (orbit, lambda) is killed at the\n\\\\ first test prime Q[j] for which a_{Q[j]} - t lies outside lambda for every t in T[j] (the test is\n\\\\ idealval(a - t, lambda) > 0, i.e. a = t in the residue field; T[j] is a set of residues mod 5).\n\\\\ Returns [M, B, report], where report[i] = [i, P, [[lambda data, j_kill, a_kill], ...]] (j_kill = 0:\n\\\\ the pair survives all tests).\n\n\\\\ fq_check2(u, v, f, d): u = -1 mod 4, and E_{u,v}: Y^2 = X(X-u)(X+v) has conductor exponent f and\n\\\\ v_2(Delta_min) = d at 2 (PARI's Tate algorithm, elllocalred); error otherwise.\nfq_check2(u, v, f, d) =\n{\n my(E = ellinit([0, v - u, 0, -u*v, 0]), lr = elllocalred(E, 2), dm = valuation(E.disc, 2) - 12*valuation(lr[3][1], 2));\n if (u % 4 != 3, error(\"normalization u = -1 mod 4 fails: \", [u, v]));\n if (lr[1] != f || dm != d, error(\"2-adic data \", [u, v, lr, dm, f, d]));\n 1\n}\n\nfq_in(nf, a, T, pr) =\n{\n for (s = 1, #T, if (idealval(nf, a - T[s], pr) > 0, return(1)));\n 0\n}\n\nfq_sieve(N, Q, T) =\n{\n my(M = mfinit([N, 2], 0), B = mfeigenbasis(M), K = mffields(M), nmax = vecmax(Q), rep = vector(#B));\n if (#B != #K, error(\"mffields\"));\n for (i = 1, #B,\n my(F = B[i], P = K[i], A = mfcoefs(F, nmax), out);\n if (mfparams(F)[4] != P, error(\"field polynomial\"));\n if (poldegree(P) == 1,\n out = [[[5, 1, 1], 0, 0]];\n for (j = 1, #Q,\n my(a = A[Q[j] + 1]);\n if (type(a) != \"t_INT\", error(\"rational orbit with non-integral a_q\"));\n if (!setsearch(T[j], a % 5), out = [[[5, 1, 1], j, a]]; break)),\n \\\\ else: non-rational coefficient field\n my(nf = nfinit(P), prs);\n if (nfcertify(nf) != [], error(\"nfcertify \", P));\n prs = idealprimedec(nf, 5);\n out = vector(#prs, k, [[5, prs[k].e, prs[k].f], 0, 0]);\n for (k = 1, #prs,\n for (j = 1, #Q,\n my(a = lift(A[Q[j] + 1]));\n if (!fq_in(nf, a, T[j], prs[k]), out[k] = [[5, prs[k].e, prs[k].f], j, a]; break))));\n rep[i] = [i, P, out]);\n [M, B, rep]\n}\n\n\\\\ Print the report: one line per orbit, and the counts of pairs (orbit, lambda) still alive after each q.\nfq_print(N, Q, T, S) =\n{\n my(M = S[1], rep = S[3], npairs = 0, alive, surv = List());\n print(\"level \", N, \": dim S_2^new = \", mfdim(M), \", orbits = \", #rep, \", field degrees = \",\n vector(#rep, i, poldegree(rep[i][2])));\n for (i = 1, #rep,\n my(r = rep[i], s = \"\");\n for (k = 1, #r[3],\n my(o = r[3][k]);\n npairs++;\n s = Str(s, \" [e,f]=[\", o[1][2], \",\", o[1][3], \"] \",\n if (o[2], Str(\"killed at q=\", Q[o[2]], \" (a_q=\", o[3], \")\"), \"SURVIVES\"));\n if (!o[2], listput(surv, [i, k])));\n print(\" orbit \", i, \": P=\", r[2], s));\n alive = npairs;\n my(line = Str(\" pairs (orbit, lambda): \", npairs));\n for (j = 1, #Q,\n my(c = 0);\n for (i = 1, #rep, for (k = 1, #rep[i][3], if (rep[i][3][k][2] == j, c++)));\n alive -= c;\n line = Str(line, \"; after q=\", Q[j], \": \", alive));\n print(line);\n Vec(surv)\n}\n"}, {"path":"v1/anc/code/common/frey_quintic/run_all.py","sha256":"a086b346bd7a4630dd9b7b916b647ce8bd2ec195a4b30782286ef0dcc1242ac1","mode":420,"size":1473,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Run the codes 1.4qa-1.4qc of the common framework of Sections 1.4.5-1.4.10 and compare with expected/.\n\nUsage: python3 run_all.py # 1.4qa, 1.4qb, 1.4qc (about 6 minutes, 1.4qc dominates)\n python3 run_all.py ... # only the listed code ids\n python3 run_all.py --sections # also run the run_all.py of code/1.4.5 ... code/1.4.10 (3 more minutes)\n python3 run_all.py --update # rewrite expected/ from this run\nRequires Python 3 (standard library) and PARI/GP (gp on the PATH, or $GP); see README.md.\n\"\"\"\nimport subprocess\nimport sys\nfrom pathlib import Path\nHERE = Path(__file__).resolve().parent\nsys.path.insert(0, str(HERE))\nfrom runner import run_steps\n\nSTEPS = [\n ('1.4qa', 'gp', '1.4qa_tate2.gp'),\n ('1.4qb', 'py', '1.4qb_newdims.py'),\n ('1.4qc', 'gp', '1.4qc_modsym_check.gp', ['-D', 'nbthreads=1', '-D', 'threadsizemax=1000000000']),\n]\n\nif __name__ == '__main__':\n args = sys.argv[1:]\n run_steps(HERE, STEPS, [a for a in args if a != '--sections'])\n if '--sections' in args:\n for k in range(5, 11):\n d = HERE.parent.parent / ('1.4.%d' % k)\n print('=== %s' % d.name, flush=True)\n r = subprocess.run([sys.executable, str(d / 'run_all.py')] + (['--update'] if '--update' in args else []))\n if r.returncode:\n raise SystemExit('FAIL in %s' % d.name)\n print('PASS: common framework and Sections 1.4.5-1.4.10')\n"}, {"path":"v1/anc/code/common/frey_quintic/runner.py","sha256":"8b382ada010381fa579a05acf66e104e7f0207f09971d535968bf6ef51aea210","mode":420,"size":4209,"encoding":"utf-8","text":"\"\"\"Shared runner for the codes of Sections 1.4.5-1.4.10 and of the common framework (code/common/frey_quintic).\nWritten for the paper. Used by the run_all.py of each folder; Python 3 standard library only.\n\nEach step is (code id, kind, script) with kind 'py' (run as `python3 -I script`) or 'gp' (run as\n`nice -n 10 gp -q [-D ...] script`; the gp binary is $GP or `gp`). The combined output (stdout and stderr,\nwithout PARI's stack-size warnings) goes to out/.txt. A step passes when the process exits with status 0,\nits output contains a line starting with 'PASS ', and no PARI error line ('***' without 'Warning').\nThe output is then compared with expected/.txt, ignoring the timing lines ('[... s]', 'real', 'time').\n`--update` rewrites expected/ instead of comparing.\n\"\"\"\nimport os\nimport re\nimport subprocess\nimport sys\nimport time\nfrom pathlib import Path\n\nTIMING = re.compile(r'\\[\\d+ s\\]| \\[\\d+ s\\]$')\n\n\ndef _clean(text):\n lines = []\n for ln in text.splitlines():\n if 'Warning' in ln and '***' in ln:\n continue\n lines.append(ln.rstrip())\n return '\\n'.join(lines) + '\\n'\n\n\ndef _normal(text):\n return [TIMING.sub('[t]', ln) for ln in text.splitlines()]\n\n\ndef run_steps(here, steps, argv, extra_checks=()):\n here = Path(here)\n update = '--update' in argv\n want = [a for a in argv if not a.startswith('--')]\n known = [s[0] for s in steps]\n bad = [w for w in want if w not in known]\n if bad:\n raise SystemExit('unknown code id(s): %s; known: %s' % (bad, known))\n gp = os.environ.get('GP', 'gp')\n (here / 'out').mkdir(exist_ok=True)\n (here / 'expected').mkdir(exist_ok=True)\n failures = []\n for cid, kind, script, *opts in steps:\n if want and cid not in want:\n continue\n if kind == 'py':\n cmd = [sys.executable, '-I', script]\n else:\n cmd = ['nice', '-n', '10', gp, '-q'] + list(opts[0] if opts else []) + [script]\n t0 = time.time()\n r = subprocess.run(cmd, cwd=here, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)\n dt = time.time() - t0\n out = _clean(r.stdout)\n (here / 'out' / ('%s.txt' % cid)).write_text(out)\n ok = (r.returncode == 0 and any(ln.startswith('PASS ' + cid) for ln in out.splitlines())\n and not any('***' in ln for ln in out.splitlines()))\n status = 'PASS' if ok else 'FAIL'\n exp = here / 'expected' / ('%s.txt' % cid)\n if ok and update:\n exp.write_text(out)\n cmp = 'expected/ updated'\n elif ok and exp.exists():\n cmp = 'same as expected/' if _normal(exp.read_text()) == _normal(out) else 'DIFFERS from expected/'\n if cmp.startswith('DIFFERS'):\n status = 'FAIL'\n else:\n cmp = 'no expected output' if ok else 'see out/%s.txt' % cid\n print('%-8s %-28s %s (%.1f s, %s)' % (cid, script, status, dt, cmp), flush=True)\n if status != 'PASS':\n failures.append(cid)\n for name, fn in extra_checks:\n try:\n fn(here)\n print('%-8s %-28s PASS' % ('check', name))\n except AssertionError as e:\n print('%-8s %-28s FAIL %s' % ('check', name, e))\n failures.append(name)\n if failures:\n raise SystemExit('FAIL: %s' % failures)\n print('PASS: all requested checks in %s' % here.name)\n\n\ndef table_consistency(py_file, gp_file):\n \"\"\"The trace sets hard-coded in the gp sieve equal those asserted by the Python trace script.\"\"\"\n def check(here):\n py = (Path(here) / py_file).read_text()\n gpt = (Path(here) / gp_file).read_text()\n m = re.search(r'TABLE = (\\{.*?\\})\\n', py, re.S)\n table = eval(m.group(1), {'F5x': [1, 2, 3, 4]})\n q = eval(re.search(r'\\bQ = (\\[[^\\]]*\\]);', gpt).group(1))\n t = re.search(r'\\bT = (\\[.*?\\]);', gpt, re.S).group(1)\n t = eval(t.replace('F5x', '[1,2,3,4]'))\n assert len(q) == len(t), 'lengths'\n for qq, tt in zip(q, t):\n assert qq in table and sorted(table[qq]) == sorted(tt), (qq, tt, table.get(qq))\n return ('T_q tables (%s = %s)' % (py_file.split('_')[0], gp_file.split('_')[0]), check)\n"}, {"path":"v1/anc/code/common/h31_classgroup/README.md","sha256":"8a05b7b57be37de678d5b710b5c33ffdc2d05b985d4b4bbaf8b8ca8577e5ee39","mode":420,"size":9547,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# h31_classgroup \u2014 class-group certificates for the bitangent fields\n\nGeneric tools for the step \"Cl(K)[2] = 0\" of the two-variable equations of chapter 1.1\n(K = the degree-27 bitangent field). The proof combines\n\n* **Theorem B** (explicit formula): if `B^-(f) > 0` then `Cl(K)[2] = 0`. It needs the number\n `a(q)` of prime ideals of every norm `q < e^T`, and the number `k(q)` of those proved principal.\n* **Lemma C** (strong norm induction): if every prime ideal `p` with `N(p) <= C` has a witness\n `0 != g in p` with `|N(g)|/N(p) = prod r^e`, every `r^e < N(p)`, then all of them are principal;\n so `k(q) = a(q)` for `q <= C` (and `k(q) = 0` is used above `C`).\n\nThe tools are driven by one JSON parameter file per equation, `code/
/data/classgroup_params.json`.\nThey are based on the replay pipeline of equation 1.1.1 (`certify_3723_principals_fast.py`,\n`census_stream_3723.py`, `verify_3723_strict_window.py`) and on our independent checkers\n(`count_ideals.py`, `wcheck.py`, `Bgen.py`); here they are generic and self-contained.\n\n## Files\n\n| file | does |\n|---|---|\n| `cgfield.py` | loads the parameter file; builds `K` with `nfinit([f, primes of disc f])` and requires `nfcertify = []` (maximal order proved), the stated discriminant and signature |\n| `count_ideals.py` | `a(q)` for all norms `q < R` (`R = support`, or `floor(e^T)+1`); output `.npz` (+ printed SHA-256 of the packed `(q, a(q))` stream) |\n| `witnesses.py` | proposes a witness for every prime ideal of norm `<= C`: `idealmin` element if its cofactor is strict, otherwise a generator proposed by `bnfisprincipal` (bnfinit is only a proposer); output `.jsonl.gz` |\n| `check_witnesses.py` | exact check: enumerates all prime ideals of norm `<= C` itself and matches each to an unused witness (integrality, membership, exact norm, proved primes, `r^e < N(p)`); every witness must be used |\n| `bound.py` | `B^-(f)` in Arb ball arithmetic (python-flint): exact rational knots of the autocorrelation, closed-form archimedean term via the triangle expansion, all prime powers `q^m < e^T` |\n\n## Parameter file\n\n```json\n{\n \"equation\": \"x^4+y^3+xy+1=0\",\n \"section\": \"1.1.3\",\n \"polynomial\": \"x^27 - 48*x^22 + ... + 4096\",\n \"field_discriminant\": \"8291514845387242623105868334206933045051654144\",\n \"signature\": [3, 12],\n \"principal_bound\": 10000,\n \"support\": 1000000,\n \"window_heights\": [348713, 439422, ...],\n \"precision_bits\": 224\n}\n```\n\n* `polynomial`: monic integral defining polynomial of `K` in the variable `x` (PARI syntax).\n* `field_discriminant`, `signature`: checked against the certified maximal order.\n* `principal_bound` = `C` of Lemma C (inclusive: norms `<= C`).\n* exactly one of `support` (integer `R`, `T = log R`, sum over `q^m < R`) and `T` (a decimal string;\n sum over `q^m < e^T`, decided in ball arithmetic; counts are then made for norms `<= floor(e^T)`).\n* `window_heights`: the positive integer heights of the step function `v` on `N` equal cells of\n `[0, T]`; `[1]` is the plain triangle `f(x) = 1 - |x|/T`.\n* `precision_bits`: Arb precision of `bound.py` (default 224).\n\nExample files: `code/1.1.3/data/classgroup_params.json` (64 cells), `code/1.1.6/...` and\n`code/1.1.7/...` (one cell, `T` = 13 and 8).\n\n## Commands\n\nRun from any folder (the scripts find `cgfield.py` themselves; `python3 -I` also works):\n\n```\nCG=../common/h31_classgroup # from code/
/\nPRM=data/classgroup_params.json\npython3 $CG/count_ideals.py $PRM --out counts.npz [--workers W] [--lo LO --hi HI]\npython3 $CG/witnesses.py $PRM --out witnesses.jsonl.gz [--workers W] [--lo LO --hi HI] [--direct]\npython3 $CG/check_witnesses.py $PRM witnesses.jsonl.gz [more files] [--lo LO --hi HI]\npython3 $CG/bound.py $PRM counts.npz [more .npz] [--no-exp-terms]\n```\n\n* Slicing: `--lo/--hi` restrict the rational primes. Count files with disjoint ranges tiling\n `[2, R-1]` can be given together to `bound.py` (it checks the tiling). Witness files can be produced\n and checked in slices; the checker requires a witness for every prime ideal over `p` in its own\n `--lo..--hi` range, so the slices of a complete check must tile `[2, C]`.\n* Key output lines: `count_ideals.py` \u2192 `RANGE lo hi SUPPORT R ... PRIME_IDEALS N SHA256 ...`;\n `witnesses.py` \u2192 `WITNESSES N STRICT s DIRECT d BY_DEGREE {...}`; `check_witnesses.py` \u2192\n `ALL N PRIME IDEALS OF NORM <= C ... HAVE VALID WITNESSES ...`; `bound.py` \u2192 `key = value` lines\n (counts, archimedean part, prime sum, `B`) and `B_INTERVAL [...] POSITIVE True`.\n* `STRICT`/`DIRECT` in the output of `witnesses.py` count the accepted `idealmin` elements and the\n `bnfisprincipal` generators; `--direct` uses generators only (`|N(g)| = N(p)`), as sections 1.1.3,\n 1.1.6 and 1.1.7 state their certificates. Either kind proves principality by Lemma C.\n* `--no-exp-terms` drops the two small positive exponential terms of the closed-form archimedean\n term (still a valid lower bound). Sections 1.1.6 and 1.1.7 state their `B_0` in this form.\n\n## Tested here (14 Oct 2026; PARI 2.15.4 via cypari2, python-flint 0.9.0; machine shared with other jobs)\n\nEnd-to-end test on the small certificate of 1.1.3 (`code/1.1.3/1.1.3bc_classgroup.sh`, about one minute):\n\n| step | result |\n|---|---|\n| `count_ideals.py` (R = 10^6) | `PRIME_IDEALS 78493` (12 s) |\n| `witnesses.py --direct` (C = 10^4) | `WITNESSES 1260 STRICT 0 DIRECT 1260` (49 s); without `--direct`: `STRICT 887 DIRECT 373` |\n| `check_witnesses.py` | `ALL 1260 PRIME IDEALS OF NORM <= 10000 ... HAVE VALID WITNESSES` (3 s) |\n| `bound.py` | `B = [0.06421827154264666555204025429213639168155 +/- 1.93e-42]`, 42743 terms \u2014 the source's 224-bit value |\n\nFurther runs (outputs in the `expected/` folders of the sections):\n\n| section | run | result |\n|---|---|---|\n| 1.1.7 | all four tools, full (C = 3000, T = 8, `--no-exp-terms`) | 413 ideals with generators; `B_0 = 0.0849899621752625010053405712299318513208...` |\n| 1.1.6 | count + `bound.py --no-exp-terms` full (T = 13); generators on the slice p \u2264 20000 | 36932 ideals of norm < e^13; `B_0 = 0.0264813059126755588162470923169050964739...`; 2410 generators checked |\n| 1.1.2 | `bound.py` on a complete count of norms < 10^8 (made earlier by our independent counter, same method) | `B = 0.000875203229047890536437...` (83 s); slices: count p \u2264 2\u00b710^6, witnesses p \u2264 20000 |\n| 1.1.5 | same, norms < 10^8 | `B = 0.000226857116386139171700...` (80 s); slices as above |\n| 1.1.4 | same, norms < 5\u00b710^8 (14.3 million distinct norms) | `B = 0.000100160932045204380585...` (\u2248 4 min); slices as above |\n| 1.1.1 | `count_ideals.py --support 10000001`; witnesses on p \u2264 20000 (C = 10^7) | 664464 ideals, SHA-256 `5bf75088\u2026634e` = the source's low-norm stream hash; 2665 witnesses checked |\n\nWitness generation agrees with the source program of 1.1.1 (same rule): at C = 30000, both give\n`3246 = 1853 strict + 1393 direct` with PARI 2.17.4. The checker rejects a witness file with one changed\ncoordinate or one missing record (tested).\n\n## Commands for the larger certificates (not run here in full)\n\nRuntimes on this (loaded) machine, per worker: counting 0.2\u20130.4 ms per rational prime (`10^8`: \u2248 20 min,\n`5\u00b710^8`: \u2248 2 h, `10^9`: \u2248 4 h); witnesses 20\u201350 ms per prime ideal (`C = 5\u00b710^6`: \u2248 2\u20133 h); checking\n\u2248 2 ms per prime ideal; `bound.py` \u2248 15 \u00b5s per distinct norm (`10^8`: \u2248 1.5 min, `5\u00b710^8`: \u2248 4 min). Use\n`--workers`. Count files take \u2248 12 bytes per distinct norm (`10^8`: \u2248 40 MB, `10^9`: \u2248 400 MB); witness\nfiles \u2248 30\u201360 bytes per prime ideal (gzip). Memory: `count_ideals.py` and `bound.py` hold the norm arrays\n(\u2248 12 bytes per norm); `check_witnesses.py` streams the witness files (they must be sorted by `p`, as\n`witnesses.py` writes them).\n\n| section | `support` / `T` | `principal_bound` | expected counts |\n|---|---|---|---|\n| 1.1.1 | (strict-character criterion, see `code/1.1.1/README.md`) | 10^7 | 664,464 prime ideals of norm \u2264 10^7 |\n| 1.1.2 | 10^8 (256 cells) | 5\u00b710^6 | 5,763,020 of norm < 10^8; 349,551 of norm \u2264 5\u00b710^6; `B^- = 0.000875203229...` |\n| 1.1.3 | 10^6 (64 cells) | 10^4 | 78,493; 1,260; `B^- = 0.0642182715426466...` |\n| 1.1.4 | 5\u00b710^8 (64 cells) | 2,020,000 | 26,362,584; 150,219; `B^- \u2208 [1.00157, 1.00165]\u00b710^-4` |\n| 1.1.5 | 10^8 (64 cells) | 6\u00b710^6 | 5,764,533; 412,122; `B^- \u2208 [2.2685629, 2.2685794]\u00b710^-4` |\n| 1.1.6 | T = 13 (1 cell) | 450,000 | 36,932 (37,489 of norm \u2264 450,000); `B_0 = 0.0264813059126...` |\n| 1.1.7 | T = 8 (1 cell) | 3,000 | 413; 413; `B_0 = 0.08498996217...` |\n\n## Adding an equation\n\nWrite `code/
/data/classgroup_params.json` with the bitangent polynomial (any monic integral\ndefining polynomial of `K`), `|disc K|`, the signature, `C`, `support` (or `T`) and the integer window\nheights of the source (for a one-cell triangle window: `[1]`), then run the four commands above. If\n`principal_bound \u2265 e^T`, every prime ideal in the sum is principal and `c_m(q) = a(q)` for all `m`.\nSections 1.1.8\u20131.1.13 do this in their own folders.\n\n## Requirements\n\nPython 3 with cypari2 (PARI/GP \u2265 2.15), python-flint \u2265 0.6 (`nmod_poly`, `arb`), numpy. No Sage,\nno Magma, no GRH: `bnfinit` only proposes elements, and every accepted witness is verified exactly.\n"}, {"path":"v1/anc/code/common/h31_classgroup/bound.py","sha256":"4203c84c738c1f585d7efc7f882e5e7db6a874707b0865183d13c970c6bdb4b8","mode":420,"size":6554,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Evaluate the explicit-formula bound B^-(f) of Theorem B in Arb ball arithmetic.\n\n python3 bound.py PARAMS COUNTS.npz [more .npz] [--no-exp-terms]\n\nTheorem B: B^-(f) = C_inf - int_0^inf (1 - f(x)) W(x) dx\n + (4/n) sum_{q^m < e^T} c_m(q) log q / (q^m + 1) f(m log q),\nC_inf = gamma + log 4pi + alpha - log D / n, alpha = r1/n, c_m(q) = a(q) (m even), 2k(q) - a(q) (m odd).\nHere k(q) = a(q) for q <= C (= principal_bound, proved by check_witnesses.py) and k(q) = 0 above.\nThe window: v = step function with N equal cells on [0, T] and the given integer heights; f is its\nnormalized autocorrelation, piecewise linear with exact rational knots f_k = f(k T/N). Writing\nf = sum_k w_k (1 - |x|/(k delta))_+ with w_k = k (f_{k-1} - 2 f_k + f_{k+1}) gives the closed form\n C_inf - int (1-f) W = sum_k w_k A(k delta),\n A(a) = C_inf - pi^2/(4a) - 2 alpha log 2 / a + (2/a)(Li2(e^-a) - Li2(e^-2a)/4) + (2 alpha/a) log(1+e^-a).\n--no-exp-terms drops the last two (positive) terms of A, giving a smaller, still valid lower bound\n(this is the form used for the one-cell windows of sections 1.1.6 and 1.1.7).\nAll counts a(q) come from count_ideals.py output files whose ranges must tile [2, R-1].\n\"\"\"\nimport argparse, json, math, time\nfrom fractions import Fraction\nimport numpy as np\nfrom flint import arb, ctx\nimport os, sys\nsys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))\nimport cgfield # noqa: E402\n\n\ndef main():\n ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)\n ap.add_argument('params')\n ap.add_argument('counts', nargs='+')\n ap.add_argument('--no-exp-terms', action='store_true')\n a = ap.parse_args()\n t0 = time.time()\n prm = cgfield.load_params(a.params)\n r1, r2 = (int(v) for v in prm['signature'])\n n = r1 + 2 * r2\n D = int(prm['field_discriminant'])\n C = int(prm['principal_bound'])\n R = cgfield.count_support(prm)\n ctx.prec = int(prm.get('precision_bits', 224))\n T = arb(int(prm['support'])).log() if 'support' in prm else arb(prm['T'])\n alpha = arb(r1) / n\n # ---- window: exact knots and signed triangle coefficients\n h = [int(x) for x in prm['window_heights']]\n N = len(h)\n assert N >= 1 and all(x > 0 for x in h)\n S = sum(x * x for x in h)\n fk = [Fraction(sum(h[i] * h[i + k] for i in range(N - k)), S) for k in range(N + 1)] + [Fraction(0)]\n assert fk[0] == 1 and fk[N] == 0 and all(x >= 0 for x in fk)\n wk = [None] + [k * (fk[k - 1] - 2 * fk[k] + fk[k + 1]) for k in range(1, N + 1)]\n assert sum(wk[1:]) == 1\n for j in range(N + 1): # the triangle expansion reproduces every knot exactly\n assert sum(wk[k] * (1 - Fraction(j, k)) for k in range(max(1, j), N + 1)) == fk[j]\n delta = T / N\n deltaf = float(delta.mid())\n Cinf = arb.const_euler() + (4 * arb.pi()).log() + alpha - arb(D).log() / n\n arch = arb(0)\n for k in range(1, N + 1):\n A = k * delta\n z = (-A).exp()\n val = Cinf - arb.pi() ** 2 / (4 * A) - 2 * alpha * arb(2).log() / A\n if not a.no_exp_terms:\n val += 2 / A * (z.polylog(2) - (z * z).polylog(2) / 4) + 2 * alpha / A * z.log1p()\n arch += arb(wk[k].numerator) / wk[k].denominator * val\n fa = [arb(x.numerator) / x.denominator for x in fk]\n\n def fval(x, xf):\n k = min(max(int(xf / deltaf), 0), N - 1)\n cand = []\n for kk in (k - 1, k, k + 1):\n if 0 <= kk < N and not (x < kk * delta) and not (x > (kk + 1) * delta):\n cand.append(kk)\n assert cand, ('knot search failed', xf)\n vals = [fa[kk] + (x / delta - kk) * (fa[kk + 1] - fa[kk]) for kk in cand]\n v = vals[0]\n for w in vals[1:]:\n v = v.union(w)\n return v, len(cand) > 1\n\n def below_support(m, q, lq):\n if 'support' in prm:\n return q ** m < R\n x = m * lq\n assert x < T or x > T, ('cannot decide q^m < e^T', q, m)\n return x < T\n\n # ---- counts: ranges must tile [2, R-1]\n ranges, qs, as_ = [], [], []\n for fn in a.counts:\n z = np.load(fn)\n lo, hi, sup = (int(v) for v in z['range'])\n assert sup == R, ('counts made with another support', fn, sup, R)\n ranges.append((lo, hi))\n qs.append(z['q']); as_.append(z['a'])\n ranges.sort()\n assert ranges[0][0] == 2 and ranges[-1][1] == R - 1 and all(ranges[i][1] + 1 == ranges[i + 1][0]\n for i in range(len(ranges) - 1)), ranges\n q_all = np.concatenate(qs)\n a_all = np.concatenate(as_)\n del qs, as_\n order = np.argsort(q_all, kind='stable')\n q_all, a_all = q_all[order], a_all[order]\n del order\n assert q_all.size == 0 or bool(np.all(q_all[1:] > q_all[:-1])), 'a norm occurs in two count files'\n pos, neg = arb(0), arb(0)\n terms = mterms = ambiguous = total = principal = 0\n def stream(chunk=1 << 20):\n for i in range(0, q_all.size, chunk):\n yield from zip(q_all[i:i + chunk].tolist(), a_all[i:i + chunk].tolist())\n\n for q, aq in stream():\n assert 2 <= q < R and aq > 0\n total += aq\n kq = aq if q <= C else 0\n principal += kq\n lq = arb(q).log()\n lqf = math.log(q)\n m = 1\n while below_support(m, q, lq):\n c = aq if m % 2 == 0 else 2 * kq - aq\n v, amb = fval(m * lq, m * lqf)\n ambiguous += amb\n t = c * lq * v / (q ** m + 1)\n if c > 0:\n pos += t\n else:\n neg += t\n terms += 1\n mterms += aq\n m += 1\n prime = 4 * (pos + neg) / n\n B = arch + prime\n rec = dict(degree=n, signature=prm['signature'], support_count_bound=R, principal_bound=C, cells=N,\n precision_bits=ctx.prec, exp_terms_dropped=a.no_exp_terms,\n prime_ideals_norm_below_support=total, prime_ideals_proved_principal=principal,\n prime_power_terms=terms, prime_power_terms_with_multiplicity=mterms,\n knot_straddling_terms=ambiguous,\n archimedean=arch.str(30), prime_sum=prime.str(30),\n positive_part=(4 * pos / n).str(25), negative_part=(4 * neg / n).str(25),\n B=B.str(40), B_rigorously_positive=bool(B > 0), seconds=round(time.time() - t0, 1))\n for k, v in rec.items():\n print(k, '=', json.dumps(v))\n print('B_INTERVAL', B.str(40), 'POSITIVE', bool(B > 0), flush=True)\n\n\nif __name__ == '__main__':\n main()\n"}, {"path":"v1/anc/code/common/h31_classgroup/cgfield.py","sha256":"50f08fc1ac240d9910b123aaecb07ecb6f6ff188f26eb975943ee1ea109bd365","mode":420,"size":3777,"encoding":"utf-8","text":"\"\"\"Shared helpers for the class-group certificate tools (h31_classgroup).\n\nA parameter file (JSON) describes one equation's bitangent field K = Q[x]/(f):\n polynomial defining polynomial of K in the variable x (PARI syntax), monic, integral\n field_discriminant |disc(O_K)| as a decimal string (checked)\n signature [r1, r2] (checked)\n principal_bound C: every prime ideal of norm <= C must be proved principal (Lemma C)\n support or T T = log(support) (support an integer), or T given directly as a decimal string\n window_heights positive integers h_1..h_N: the step function v on [0,T] with N equal cells\n ([1] = the plain triangle window f(x) = 1 - |x|/T)\n precision_bits Arb precision for bound.py (default 224)\n\"\"\"\nimport json, math\nimport cypari2\n\n_P = None\n\n\ndef pari(stack=1_000_000_000):\n global _P\n if _P is None:\n _P = cypari2.Pari()\n _P.allocatemem(stack // 4, stack, silent=True)\n return _P\n\n\ndef load_params(path):\n with open(path) as fh:\n prm = json.load(fh)\n for key in ('polynomial', 'field_discriminant', 'signature', 'principal_bound', 'window_heights'):\n assert key in prm, 'parameter file lacks ' + key\n assert ('support' in prm) != ('T' in prm), 'give exactly one of \"support\" and \"T\"'\n return prm\n\n\ndef count_support(prm):\n \"\"\"Integer R such that the explicit formula needs exactly the prime-ideal norms q < R.\"\"\"\n if 'support' in prm:\n return int(prm['support'])\n from flint import arb, ctx\n ctx.prec = 256\n e = arb(prm['T']).exp()\n guess = math.floor(float(e.mid()))\n for lo in (guess - 1, guess, guess + 1):\n if arb(lo) < e and e < arb(lo + 1):\n break\n else:\n raise AssertionError('cannot locate e^T between consecutive integers')\n return lo + 1 # q < e^T <=> q <= floor(e^T) <=> q < floor(e^T)+1\n\n\nclass Field:\n \"\"\"K = Q[x]/(f) with an unconditionally certified maximal order (nfcertify empty).\"\"\"\n\n def __init__(self, prm, P=None):\n self.P = P = P or pari()\n self.f = P(prm['polynomial'])\n assert self.f.variable() == P('x') and int(self.f.poldegree()) >= 2\n self.n = int(self.f.poldegree())\n self.coeffs = [int(P.polcoef(self.f, j)) for j in range(self.n + 1)] # ascending\n assert self.coeffs[-1] == 1, 'polynomial must be monic'\n assert P.polisirreducible(self.f)\n fa = P.factor(P.poldisc(self.f))\n self.bad = sorted(int(p) for p in fa[0]) # primes dividing disc(f)\n self.nf = P.nfinit([self.f, self.bad]) # all index primes are among self.bad\n assert len(P.nfcertify(self.nf)) == 0, 'maximal order not certified'\n assert abs(int(self.nf[2])) == int(prm['field_discriminant']), 'discriminant mismatch'\n assert [int(v) for v in self.nf.nf_get_sign()] == list(prm['signature']), 'signature mismatch'\n zk = list(self.nf.nf_get_zk())\n assert zk[0] == 1\n raw = [[P.polcoef(z, j) for j in range(self.n)] for z in zk]\n self.den = math.lcm(*(int(c.denominator()) for row in raw for c in row))\n self.rows = [[int(c * self.den) for c in row] for row in raw] # den*zk_i, ascending coeffs\n self.zk = [str(z) for z in zk]\n self.badset = set(self.bad)\n assert self.den == 1 or all(int(q) in self.badset for q in P.factor(self.den)[0])\n\n def root_values(self, p, root):\n \"\"\"(zk_i(root) mod p)_i : membership g in (p, x-root) <=> sum c_i v_i == 0 mod p.\"\"\"\n inv = pow(self.den, -1, p)\n vals = []\n for row in self.rows:\n z = 0\n for c in reversed(row):\n z = (z * root + c) % p\n vals.append(z * inv % p)\n return vals\n"}, {"path":"v1/anc/code/common/h31_classgroup/check_witnesses.py","sha256":"735ba7cfc2ede19802abb3e8458f52c6e36af49b05c81d7d806fc387bc523d31","mode":420,"size":6201,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Exact check of strict norm-induction witnesses (Lemma C) for all prime ideals of norm <= C.\n\n python3 check_witnesses.py PARAMS WITNESSES.jsonl.gz [more files] [--bound C] [--lo LO] [--hi HI]\n\nThe prime ideals are enumerated here, independently of the witness files: idealprimedec in the\ncertified maximal order for p | disc(f) or p^2 <= C, roots of f mod p otherwise. For every prime\nideal p of norm q <= C over a rational prime in [LO, HI] some witness g must satisfy\n g integral (coordinates in the supplied basis, which must be a Z-basis of O_K), g != 0, g in p,\n |N(g)| = q * prod r^e exactly, every r a proved prime, every r^e < q.\nThen (g) p^{-1} has prime factors of norm < q only, and strong induction on the norm proves that\nall prime ideals of norm <= C are principal. Every witness in the range must be used once.\n\"\"\"\nimport argparse, gzip, heapq, json, time\nfrom flint import nmod_poly\nimport os, sys\nif hasattr(sys, 'set_int_max_str_digits'):\n sys.set_int_max_str_digits(0) # some proposed generators have more than 4300 digits\nsys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))\nimport cgfield # noqa: E402\n\n\ndef main():\n ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)\n ap.add_argument('params')\n ap.add_argument('witnesses', nargs='+')\n ap.add_argument('--bound', type=int)\n ap.add_argument('--lo', type=int, default=2)\n ap.add_argument('--hi', type=int)\n a = ap.parse_args()\n prm = cgfield.load_params(a.params)\n C = a.bound or int(prm['principal_bound'])\n hi = min(a.hi or C, C)\n F = cgfield.Field(prm)\n P, nf, n = F.P, F.nf, F.n\n t0 = time.time()\n conv = None\n for fn in a.witnesses: # headers: the supplied basis must be a Z-basis of O_K\n with gzip.open(fn, 'rt') as fh:\n head = json.loads(fh.readline())\n assert head['type'] == 'header' and P(head['polynomial']) == F.f\n cols = [P.nfalgtobasis(nf, P.Mod(P(b), F.f)) for b in head['basis']]\n assert all(x.denominator() == 1 for col in cols for x in col), 'supplied basis not integral'\n Mi = [[int(cols[j][i]) for j in range(n)] for i in range(n)] # column j = basis element j\n assert abs(int(P.matdet(P.matrix(n, n, [x for row in Mi for x in row])))) == 1, \\\n 'supplied basis is not a Z-basis of O_K'\n assert conv is None or conv == Mi, 'all files must use the same basis'\n conv = Mi\n\n def records(fn): # streamed; files are sorted by p (as witnesses.py writes them)\n last = 0\n with gzip.open(fn, 'rt') as fh:\n fh.readline()\n for line in fh:\n r = json.loads(line)\n assert r['p'] >= last, ('witness file not sorted by p', fn)\n last = r['p']\n if a.lo <= r['p'] <= hi:\n yield r\n\n stream = heapq.merge(*[records(fn) for fn in a.witnesses], key=lambda r: r['p'])\n nxt = [next(stream, None)]\n nw = 0\n\n def witnesses_of(p):\n nonlocal nw\n out = []\n while nxt[0] is not None and nxt[0]['p'] <= p:\n assert nxt[0]['p'] == p, ('witness for a prime that is not enumerated', nxt[0]['p'])\n out.append(nxt[0])\n nxt[0] = next(stream, None)\n nw += len(out)\n return out\n\n def to_zk(c):\n return [sum(conv[i][j] * c[j] for j in range(n)) for i in range(n)]\n\n primality = {}\n\n def check(r, q):\n c = to_zk(r['g'])\n assert any(c)\n cof = 1\n for ell, e in r['cof']:\n if ell not in primality:\n primality[ell] = bool(P.isprime(ell))\n assert ell > 1 and e > 0 and primality[ell] and ell ** e < q, ('cofactor', r['p'])\n cof *= ell ** e\n assert abs(int(P.nfeltnorm(nf, P.Col(c)))) == q * cof, ('norm', r['p'], r['f'])\n return cof\n\n total_used = 0\n stats = dict(ideals=0, cofactor_one=0, cofactor_gt_one=0, by_degree={})\n\n def accept(r, q):\n cof = check(r, q)\n stats['ideals'] += 1\n stats['cofactor_one' if cof == 1 else 'cofactor_gt_one'] += 1\n stats['by_degree'][r['f']] = stats['by_degree'].get(r['f'], 0) + 1\n\n for pp in P.primes([a.lo, hi]):\n p = int(pp)\n ws = witnesses_of(p)\n used = set() # indices of the witnesses above p already matched\n if p in F.badset or p * p <= C:\n for pr in P.idealprimedec(nf, p):\n q = p ** int(pr[3])\n if q > C:\n continue\n for i, r in enumerate(ws):\n if i in used or p ** r['f'] != q:\n continue\n if int(P.nfeltval(nf, P.Col(to_zk(r['g'])), pr)) >= 1:\n accept(r, q); used.add(i); break\n else:\n raise AssertionError(('no witness for prime ideal', p, q))\n else:\n f = nmod_poly(F.coeffs, p)\n x = nmod_poly([0, 1], p)\n for root in sorted(int(z) for z, m in f.gcd(pow(x, p, f) - x).roots()):\n vals = F.root_values(p, root)\n for i, r in enumerate(ws):\n if i in used or r['f'] != 1:\n continue\n if sum(c * v for c, v in zip(to_zk(r['g']), vals)) % p == 0:\n accept(r, p); used.add(i); break\n else:\n raise AssertionError(('no witness for degree-one prime', p, root))\n assert len(used) == len(ws), ('unused witnesses above', p)\n total_used += len(used)\n assert nxt[0] is None, ('witness for a prime that is not enumerated', nxt[0]['p'])\n assert total_used == nw\n print('ALL', stats['ideals'], 'PRIME IDEALS OF NORM <=', C, 'OVER p IN', [a.lo, hi],\n 'HAVE VALID WITNESSES; COFACTOR_ONE', stats['cofactor_one'], 'COFACTOR_GT_ONE', stats['cofactor_gt_one'],\n 'BY_DEGREE', json.dumps(dict(sorted(stats['by_degree'].items()))), 'WITNESSES_USED', nw,\n 'SECONDS', round(time.time() - t0, 1), flush=True)\n\n\nif __name__ == '__main__':\n main()\n"}, {"path":"v1/anc/code/common/h31_classgroup/count_ideals.py","sha256":"813558ba6f81eb22534c0109c12893fcc081be9aee241519fa0d47baafd0aaa0","mode":420,"size":4145,"encoding":"utf-8","text":"#!/usr/bin/env python3\n\"\"\"Count all prime ideals of K with norm < R, grouped by norm (the numbers a(q) of Theorem B).\n\n python3 count_ideals.py PARAMS [--lo LO] [--hi HI] [--support R] [--workers W] [--out FILE.npz]\n\nRational primes p in [LO, HI] are treated (default: all p < R). For p dividing disc(f) or with\np^2 < R the prime ideals come from PARI's idealprimedec in the certified maximal order; for the\nother p only degree-one primes can have norm < R and their number is deg gcd(x^p - x, f mod p)\n(f is separable mod p and p does not divide the index). Output: FILE.npz with the sorted norms q,\nthe counts a(q) and the range; several files with disjoint ranges covering [2, R-1] can be passed\nto bound.py. The printed SHA-256 is taken over the packed stream (q, a(q)) as ' 1:\n with mp.Pool(a.workers, initializer=init, initargs=(a.params, support)) as pool:\n for res in pool.imap_unordered(block, tasks):\n take(res)\n else:\n init(a.params, support)\n for t in tasks:\n take(block(t))\n parts.sort(key=lambda t: t[0])\n q = np.concatenate([t[1] for t in parts]) if parts else np.zeros(0, dtype=np.int64)\n c = np.concatenate([t[2] for t in parts]) if parts else np.zeros(0, dtype=np.int32)\n del parts\n order = np.argsort(q, kind='stable')\n q, c = q[order], c[order]\n assert q.size == 0 or bool(np.all(q[1:] > q[:-1]))\n packed = np.empty(q.size, dtype=np.dtype([('q', '= 1\n\n\ndef witness(ideal, p, deg, vals):\n P = F.P\n q = p ** deg\n if not DIRECT:\n g = P.idealmin(F.nf, ideal)\n c = coordinates(g)\n norm = abs(int(P.nfeltnorm(F.nf, g)))\n assert norm % q == 0 and in_ideal(c, ideal, vals, p)\n cof = norm // q\n fa = P.factor(cof)\n cof = [[int(fa[0][i]), int(fa[1][i])] for i in range(len(fa[0]))]\n if all(r ** e < q and P.isprime(r) for r, e in cof):\n return c, cof, 'min'\n gen = P.bnfisprincipal(BNF, ideal, 4)[1]\n if gen.type() == 't_MAT': # factored form: expand\n v = P(1)\n for j in range(gen.nrows()):\n v = P.nfeltmul(F.nf, v, P.nfeltpow(F.nf, gen[j, 0], int(gen[j, 1])))\n gen = v\n c = coordinates(gen)\n assert abs(int(P.nfeltnorm(F.nf, P.Col(c)))) == q and in_ideal(c, ideal, vals, p)\n return c, [], 'bnf'\n\n\ndef block(task):\n lo, hi = task\n P = F.P\n recs = []\n for pp in P.primes([lo, hi]):\n p = int(pp)\n if p in F.badset or p * p <= C:\n for pr in P.idealprimedec(F.nf, p):\n deg = int(pr[3])\n if p ** deg <= C:\n c, cof, how = witness(pr, p, deg, None)\n recs.append(dict(p=p, f=deg, root=None, g=c, cof=cof, how=how))\n else:\n f = nmod_poly(F.coeffs, p)\n x = nmod_poly([0, 1], p)\n roots = sorted(int(r) for r, m in f.gcd(pow(x, p, f) - x).roots())\n for r in roots:\n vals = F.root_values(p, r)\n # column HNF of the kernel of O_K -> F_p, x -> r (first basis element is 1)\n ent = [0] * (F.n * F.n)\n ent[0] = p\n for j in range(1, F.n):\n ent[j] = -vals[j] % p\n ent[F.n * j + j] = 1\n hnf = P.matrix(F.n, F.n, ent)\n c, cof, how = witness(hnf, p, 1, vals)\n recs.append(dict(p=p, f=1, root=r, g=c, cof=cof, how=how))\n return lo, hi, recs\n\n\ndef main():\n ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)\n ap.add_argument('params')\n ap.add_argument('--bound', type=int, help='override C = principal_bound')\n ap.add_argument('--lo', type=int, default=2)\n ap.add_argument('--hi', type=int)\n ap.add_argument('--block', type=int, default=20000)\n ap.add_argument('--workers', type=int, default=1)\n ap.add_argument('--direct', action='store_true', help='only generators (|N(g)| = N(p)), no idealmin witnesses')\n ap.add_argument('--out', default='witnesses.jsonl.gz')\n a = ap.parse_args()\n prm = cgfield.load_params(a.params)\n bound = a.bound or int(prm['principal_bound'])\n hi = min(a.hi or bound, bound)\n t0 = time.time()\n tasks = [(lo, min(lo + a.block - 1, hi)) for lo in range(a.lo, hi + 1, a.block)]\n init(a.params, bound, a.direct)\n header = dict(type='header', polynomial=prm['polynomial'], basis=F.zk, bound=bound, lo=a.lo, hi=hi)\n stats = dict(ideals=0, strict=0, direct=0, by_degree={})\n with gzip.open(a.out, 'wt') as out:\n out.write(json.dumps(header) + '\\n')\n\n def emit(lo, h, recs):\n for r in recs:\n out.write(json.dumps(r, separators=(',', ':')) + '\\n')\n stats['ideals'] += 1\n stats['strict' if r['how'] == 'min' else 'direct'] += 1\n stats['by_degree'][r['f']] = stats['by_degree'].get(r['f'], 0) + 1\n print('BLOCK', lo, h, 'IDEALS', stats['ideals'], 'SECONDS', round(time.time() - t0, 1), flush=True)\n\n if a.workers > 1:\n with mp.Pool(a.workers, initializer=init, initargs=(a.params, bound, a.direct)) as pool:\n for lo, h, recs in pool.imap(block, tasks): # ordered output\n emit(lo, h, recs)\n else:\n for t in tasks:\n emit(*block(t))\n # STRICT: accepted idealmin elements (cofactor possibly 1); DIRECT: bnfisprincipal generators\n print('WITNESSES', stats['ideals'], 'STRICT', stats['strict'], 'DIRECT', stats['direct'],\n 'BY_DEGREE', json.dumps(dict(sorted(stats['by_degree'].items()))), 'BOUND', bound,\n 'RANGE', a.lo, hi, 'SECONDS', round(time.time() - t0, 1), flush=True)\n\n\nif __name__ == '__main__':\n main()\n"}, {"path":"v1/anc/code/common/h31_descent_lib/README.md","sha256":"a6948dd47d84ffd0c3262fcbcddc413f593ddece2169b6a4c69eb838c5dcb881","mode":420,"size":3617,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# h31_descent_lib: marked-bitangent 2-descent in PARI/GP\n\nUsed by `code/1.1.11/1.1.11e_descent.gp`, `code/1.1.12/1.1.12f_descent.gp` and\n`code/1.1.13/1.1.13d_descent.gp` (read with `read(\"../common/h31_descent_lib/descent_lib.gp\")` and\n`read(\"../common/h31_descent_lib/descent_points.gp\")`). PARI/GP 2.15 or later; tested with 2.15.4.\n\nThe curve is given as `F(x,y) = 0`, a plane quartic with a rational hyperflex `O` at infinity, and the\nfinite bitangents `y = m x + b` grouped into components `L = prod K_i`, `K_i = Q[m]/(f_i)`. The descent\nmap sends a point `P` to `(eps (y(P) - m_i x(P) - b_i))_i` in `prod K_i^*/K_i^*2`.\n\n## descent_lib.gp (reviewer code of the independent audit)\n\n| function | does |\n|---|---|\n| `mkcomp(F, f, Sp, \"\")` | one component: `bnfinit` of `Q[aa]/(f)` (GRH; only used to *propose* S-units), the slope `m` and intercept `b` in `K_i`, a check of the square identity `F(x, m x + b) = lead * (x^2 + c1 x + c0)^2`, the primes over `Sp`, and the proposed generators of `K_i(S,2)` (torsion, units, S-units) |\n| `auxchars`, `globcharmat`, `charvec`, `express` | valuation parities at S and quadratic residue characters at auxiliary primes; the rank of this matrix proves the independence of the generators |\n| `normmat` | rows of the norm condition (sign and parities of `v_p(N)` for `p` in S) |\n| `goodplace(comps, eps, F, p, N)` | local images at a good prime `p` from all points of `C(F_p)` (Hensel lifts), as a constraint |\n| `mkplace`, `globmat`, `locimage`, `constraint`, `seldim`, `f2ker` | local square-class coordinates (residue characters, or `ideallog` in `(O/p^(2e+1))^*` over 2), images of the global basis, and the F_2 linear algebra |\n| `delta`, `deltaline`, `dline_cert`, `linepts`, `infpts` | delta values of rational points, of divisors cut out by lines (with a precision check), and of points of the disk at infinity |\n\nEvery proposed S-unit is checked by the calling scripts (`idealfactor`: support in S), and the\ndimension of `K_i(S,2)` follows from `Cl(K_i)[2] = 0` (proved separately), so the GRH-conditional\n`bnfinit` is never used as a proof.\n\n## descent_points.gp (added for the bundle)\n\nCertified local images of the specific p-adic divisors named in the text:\n\n| function | divisor |\n|---|---|\n| `ptimg(comps, eps, p, x0, ypad)` | `P - O`, `P = (x0, y)`, `x0` exact, `y` a p-adic number (e.g. from `polrootspadic`) |\n| `ptimgx(...)` | the same with `y0` exact and `x` p-adic |\n| `infimg(comps, eps, p, t0, wpad)` | `P - O` for the point `t = t0` of the disk at O (`w` p-adic) |\n| `quadimg(comps, eps, p, d, X, a, c, M)` | `R + R' - 2O` for an affine point over `Q_p(sqrt d)` with `x = X` exact and `y = a + c sqrt d` known mod `p^M` |\n| `quadinfimg(...)` | the same for a point of the disk at O with `t = T` exact and `w = a + c sqrt d` |\n| `newtonr(g, W, W0, d, p, N)` | Newton iteration in `Z_p[sqrt d]` (derivative a unit); returns `a, c` and the residual valuation `M` |\n\nThe delta value is written as a polynomial in error variables (each error lies in `p^N Z_p`); `certpoly`\nrequires, at every prime `pr | p` of every component, that the minimum over all non-constant monomials of\n`v_pr(coefficient) + N e(pr) deg` exceeds `v_pr(value) + 2 e(pr) + 1`, so the error cannot change the square\nclass. The returned `margin` is the smallest excess.\n"}, {"path":"v1/anc/code/common/h31_descent_lib/descent_lib.gp","sha256":"ff4b26afbbc28bc48afb08c47207746fb0f2a38a01d042f45d5755c5330269a7","mode":420,"size":9146,"encoding":"utf-8","text":"\\\\ Independent marked-bitangent 2-descent toolkit (own code). PARI/GP 2.15.\n\\\\ Curve F(x,y)=0, hyperflex O at infinity, finite bitangents y = m x + b.\n[x,y,m,b,t,w,s];\naa = varlower(\"aa\");\nbitaneqs(F)={\n my(Q=subst(F,y,m*x+b), e4=polcoef(Q,4,x), a3=polcoef(Q,3,x),a2=polcoef(Q,2,x),a1=polcoef(Q,1,x),a0=polcoef(Q,0,x), c1,c0);\n c1=a3/(2*e4); c0=(a2/e4-c1^2)/2;\n [numerator(a1-2*e4*c1*c0), numerator(a0-e4*c0^2), e4]\n};\n\\\\ build component data: [bnf, P(aa), mm, bval, Sprs, globals]\nmkcomp(F,f,Sp,bnffile)={\n my(E=bitaneqs(F), P=subst(f,m,aa), bnf, mm, g, bval, Sprs=[], su, gl, Q, r);\n if(bnffile==\"\", bnf=bnfinit(P,1), bnf=read(bnffile); if(bnf.pol!=P, error(\"pol mismatch\")));\n mm=if(poldegree(f)==1, -polcoef(f,0,m)/polcoef(f,1,m), Mod(aa,P));\n g=gcd(subst(E[1],m,mm), subst(E[2],m,mm));\n if(poldegree(g,b)!=1, error(\"b not unique\"));\n bval=-polcoef(g,0,b)/polcoef(g,1,b);\n \\\\ verify negative/positive quadratic square identity\n Q=subst(subst(F,y,mm*x+bval),m,mm); r=Q/E[3];\n my(c1=polcoef(r,3,x)/2, c0=(polcoef(r,2,x)-c1^2)/2);\n if(r!=(x^2+c1*x+c0)^2, error(\"square identity fails\"));\n if(c1^2-4*c0==0, print(\" note: hyperflex bitangent (coincident contacts) for component \",f));\n for(i=1,#Sp, Sprs=concat(Sprs, idealprimedec(bnf,Sp[i])));\n su=bnfsunit(bnf,Sprs);\n gl=concat([bnf.tu[2]], concat(bnf.fu, su[1]));\n gl=apply(z->if(type(z)==\"t_POLMOD\"||type(z)==\"t_INT\"||type(z)==\"t_FRAC\", z, nfbasistoalg(bnf,z)), gl);\n [bnf, P, mm, bval, Sprs, gl]\n};\n\\\\ local square-class character at prime pr\nmklocdata(nf,pr)={\n my(II);\n if(pr.p==2, II=idealpow(nf,pr,2*(pr.e)+1); [2, idealstar(nf,II,1)], [1, nfmodprinit(nf,pr)])\n};\nlocchar(nf,pr,ld,z)={\n my(u,v,r,res,lg,cyc,out);\n if(z==0, error(\"zero in locchar\"));\n v=nfeltval(nf,z,pr,&u);\n if(ld[1]==1,\n r=nfmodpr(nf,u,ld[2]); if(type(r)==\"t_INT\"||type(r)==\"t_FRAC\", r=Mod(r,pr.p));\n out=[v%2, if(issquare(r),0,1)],\n lg=ideallog(nf,u,ld[2]); cyc=ld[2].cyc; out=[v%2];\n for(j=1,#cyc, if(cyc[j]%2==0, out=concat(out,[lg[j]%2]))));\n out\n};\n\\\\ local coordinate structure at rational prime p over all components\nmkplace(comps,p)={\n my(L=List());\n for(i=1,#comps, my(nf=comps[i][1]); foreach(idealprimedec(nf,p),pr, listput(L,[i,pr,mklocdata(nf,pr)])));\n Vec(L)\n};\n\\\\ local vector of an element of L given as vector of component values (polmods)\nlocvec(comps,place,zs)={\n my(out=[]);\n for(k=1,#place, my(i=place[k][1]); out=concat(out, locchar(comps[i][1].nf,place[k][2],place[k][3],zs[i])));\n out\n};\n\\\\ global basis local vectors: element j of component i is (1,..,g,..,1)\nglobvecs(comps,place)={\n my(rows=List());\n for(i=1,#comps, foreach(comps[i][6],g,\n my(zs=vector(#comps,k,if(k==i,g,1))); listput(rows, locvec(comps,place,zs))));\n Mat(Vec(rows)~) \\\\ hmm\n};\n\\\\ delta of a point (x0,y0) (rationals): vector over components of eps*(y0 - m x0 - b)\ndelta(comps,eps,x0,y0)= vector(#comps,i, eps*(y0 - comps[i][3]*x0 - comps[i][4]));\n\\\\ delta of degree-d divisor cut by line y=k*x+b0, roots of monic g(x) (rational approx coeffs)\ndeltaline(comps,eps,k,b0,g)={\n my(d=poldegree(g));\n vector(#comps,i, my(c=k-comps[i][3], e=b0-comps[i][4]); if(c==0, eps^d*e^d, eps^d*(-c)^d*subst(g,x,-e/c)))\n};\n\\\\ F2 linear algebra helpers (matrices with entries 0/1 as integers)\nf2rank(M)= if(#M==0,0, matrank(Mod(M,2)));\nf2ker(M)= lift(matker(Mod(M,2)));\n\\\\ annihilator of span of rows R (list of vectors of length d): returns matrix d x k with columns spanning R^perp\nf2annih(R,d)={ if(#R==0, return(matid(d))); my(M=Mat(R)); \\\\ rows\n lift(matker(Mod(M,2))) };\n\nglobmat(comps,place)={\n my(rows=List(), d=0);\n for(i=1,#comps, foreach(comps[i][6],g,\n my(zs=vector(#comps,k,if(k==i,g,1))); listput(rows, locvec(comps,place,zs))));\n d=#rows[1];\n matrix(#rows,d,r,c,rows[r][c])\n};\n\\\\ Q_p points lifted from F_p points (affine), precision p^N\nliftpts(F,p,N)={\n my(L=List(), Fx=deriv(F,x), Fy=deriv(F,y));\n for(x0=0,p-1, my(r=polrootsmod(subst(F,x,x0),p));\n foreach(r,y0, my(yy=lift(y0), xx=x0);\n if(subst(subst(Fy,x,xx),y,yy)%p!=0,\n my(Y=Mod(yy,p^N)); for(it=1,12, Y=Y-subst(subst(F,x,xx),y,Y)/subst(subst(Fy,x,xx),y,Y)); listput(L,[xx,lift(Y)]),\n if(subst(subst(Fx,x,xx),y,yy)%p!=0,\n my(X=Mod(xx,p^N)); for(it=1,12, X=X-subst(subst(F,y,yy),x,X)/subst(subst(Fx,y,yy),x,X)); listput(L,[lift(X),yy]),\n error(\"singular point mod p\")))));\n Vec(L)\n};\n\\\\ local image at a place from list of L-elements (each a vector over components)\nlocimage(comps,place,elts)={ my(R=List()); foreach(elts,zs, listput(R,locvec(comps,place,zs))); Vec(R) };\nf2span_rank(R)={ if(#R==0,return(0)); matrank(Mod(matrix(#R,#R[1],r,c,R[r][c]),2)) };\n\\\\ constraint columns for place: G (n x d) times annihilator of span(R)\nconstraint(G,R)={ my(d=#G[1,], A); if(#R==0, return(G)); A=lift(matker(Mod(matrix(#R,d,r,c,R[r][c]),2))); lift(Mod(G,2)*Mod(A,2)) };\n\\\\ norm classes: rational norm of each global element -> (sign, v_p mod 2, p in Sp)\nnormmat(comps,Sp)={\n my(rows=List());\n for(i=1,#comps, foreach(comps[i][6],g, my(N=nfeltnorm(comps[i][1].nf,g));\n listput(rows, concat([if(N<0,1,0)], vector(#Sp,j,valuation(N,Sp[j])%2)))));\n matrix(#rows,#rows[1],r,c,rows[r][c])\n};\nseldim(Cmat)= #f2ker(Cmat~);\n\n\\\\ lift a single F_p point with the fixed coordinate shifted by j*p\nliftpt(F,p,N,x0,y0,j)={\n my(Fx=deriv(F,x), Fy=deriv(F,y), xx, yy, Y, X);\n if(subst(subst(Fy,x,x0),y,y0)%p!=0,\n xx=x0+j*p; Y=Mod(y0,p^N); for(it=1,12, Y=Y-subst(subst(F,x,xx),y,Y)/subst(subst(Fy,x,xx),y,Y)); [xx,lift(Y)],\n yy=y0+j*p; X=Mod(x0,p^N); for(it=1,12, X=X-subst(subst(F,y,yy),x,X)/subst(subst(Fx,y,yy),x,X)); [lift(X),yy])\n};\n\\\\ F_p points (affine)\nfppts(F,p)={ my(L=List()); for(x0=0,p-1, foreach(polrootsmod(subst(F,x,x0),p),y0, listput(L,[x0,lift(y0)]))); Vec(L) };\n\\\\ delta of a good-prime point: choose lift with all valuations < N-5\ndeltagood(comps,eps,F,p,N,P)={\n my(j=0, Q, zs, ok);\n while(1, Q=liftpt(F,p,N,P[1],P[2],j); zs=delta(comps,eps,Q[1],Q[2]); ok=1;\n for(i=1,#comps, my(nf=comps[i][1].nf); if(zs[i]==0, ok=0, foreach(idealprimedec(nf,p),pr, if(nfeltval(nf,zs[i],pr)>N-5, ok=0))));\n if(ok, return(zs)); j++; if(j>20, error(\"no good lift\")))\n};\ngoodplace(comps,eps,F,p,N)={\n my(pl=mkplace(comps,p), G=globmat(comps,pl), pts=fppts(F,p), imgs=List(), R);\n foreach(pts,P, listput(imgs, deltagood(comps,eps,F,p,N,P)));\n R=locimage(comps,pl,Vec(imgs));\n [G,R,#pts]\n};\n\n\\\\ ---------- dyadic (or any p) local points with certified precision ----------\n\\\\ returns [zs, certified] for divisor cut by line y=k*x+b0 with Q_p-irreducible factor g (padic coeffs)\ndline_cert(comps,eps,k,b0,g,p)={\n my(d=poldegree(g), Ng=vecmin(vector(d,j,padicprec(polcoef(g,j-1),p))), ga=Pol(apply(c->truncate(c),Vec(g))), zs, ok=1);\n ga=subst(ga,variable(g),x);\n zs=deltaline(comps,eps,k,b0,ga);\n for(i=1,#comps, if(zs[i]==0, return([zs,0])));\n for(i=1,#comps, my(nf=comps[i][1].nf, c=k-comps[i][3], e=b0-comps[i][4], ve, vc);\n foreach(idealprimedec(nf,p),pr, ve=if(e==0,10^6,nfeltval(nf,e,pr)); vc=if(c==0,10^6,nfeltval(nf,c,pr));\n my(v=nfeltval(nf,zs[i],pr), bnd=Ng*(pr.e) + vecmin(vector(d+1,j, (j-1)*ve+(d-j+1)*vc)));\n if(v+2*(pr.e)+1 >= bnd, ok=0)));\n [zs,ok]\n};\n\\\\ collect local images at p from lines y = k x + b0 over given ranges\nlinepts(comps,eps,F,p,N,ks,bs)={\n my(L=List(), nc=0);\n foreach(ks,k, foreach(bs,b0,\n my(q=subst(F,y,k*x+b0), fa);\n q=q/pollead(q);\n if(poldisc(q)!=0,\n fa=factorpadic(q,p,N)[,1];\n foreach(fa,g, if(poldegree(g)<4,\n my(r=dline_cert(comps,eps,k,b0,g,p)); if(r[2], listput(L,r[1]), nc++))))));\n [Vec(L),nc]\n};\n\\\\ infinity disk points: chart G(t,w)=0, t in p*Z, returns delta(P-O) using eps*(1-m t-b w)*w (w^2 removed)\ninfpts(comps,eps,F,p,N,tlist)={\n my(G=numerator(subst(subst(F,x,t/w),y,1/w)*w^4), L=List(), nc=0);\n foreach(tlist,t0, my(W=Mod(0,p^N)*1, Gt=subst(G,t,t0), zs, ok=1);\n W=O(p^N); for(it=1,15, W=W-subst(Gt,w,W)/subst(deriv(Gt,w),w,W));\n my(wv=truncate(W), Nw=padicprec(W,p));\n if(wv==0, next);\n zs=vector(#comps,i, eps*(1-comps[i][3]*t0-comps[i][4]*wv)*wv);\n for(i=1,#comps, my(nf=comps[i][1].nf); foreach(idealprimedec(nf,p),pr,\n my(v=nfeltval(nf,zs[i],pr), bnd=Nw*(pr.e)+min(0,nfeltval(nf,comps[i][4],pr))-1);\n if(v+2*(pr.e)+1>=bnd, ok=0)));\n if(ok, listput(L,zs), nc++));\n [Vec(L),nc]\n};\n\n\\\\ express an element zs of L (vector over comps) in the global basis via characters; returns [coeff vector or 0, residual check]\nauxchars(comps,Sp,qmax)={\n my(AX=List());\n for(i=1,#comps, my(nf=comps[i][1].nf);\n foreach(comps[i][5],pr, listput(AX,[i,pr,0]));\n forprime(q=3,qmax, if(setsearch(Set(Sp),q)==0, foreach(idealprimedec(nf,q),pr, listput(AX,[i,pr,mklocdata(nf,pr)])))));\n Vec(AX)\n};\ncharvec(comps,AX,zs)= vector(#AX,k, my(i=AX[k][1], nf=comps[i][1].nf); if(AX[k][3]==0, nfeltval(nf,zs[i],AX[k][2])%2, locchar(nf,AX[k][2],AX[k][3],zs[i])[2]));\nglobcharmat(comps,AX)={ my(rows=List()); for(i=1,#comps, foreach(comps[i][6],g, listput(rows, charvec(comps,AX,vector(#comps,k,if(k==i,g,1)))))); matrix(#rows,#AX,r,c,rows[r][c]) };\nexpress(GC,cv)={ my(sol=matsolve(Mod(GC~,2), Mod(cv~,2))); lift(sol) };\n"}, {"path":"v1/anc/code/common/h31_descent_lib/descent_points.gp","sha256":"e02d0a8c2e05c6d15c8370325a8379fc65b28997042ce15926c1da84630ed045","mode":420,"size":4729,"encoding":"utf-8","text":"\\\\ Certified local descent images of individual p-adic divisors (extension of descent_lib.gp;\n\\\\ read descent_lib.gp first). A local point is known only to finite precision; its delta value is\n\\\\ written as a polynomial in \"error variables\" (each error lies in p^N Z_p) and the error is\n\\\\ bounded by the valuations of all non-constant coefficients. The square class at a prime pr | p\n\\\\ is fixed once the error has valuation >= v(value) + 2 e(pr) + 1; we require \">\" (one extra unit).\n\\\\ error variables and the formal square root r: priority above the number-field variable aa of\n\\\\ descent_lib.gp (which is created with varlower), r above the error variables\ndc = varhigher(\"dc\"); da = varhigher(\"da\"); dy = varhigher(\"dy\"); r = varhigher(\"r\");\n\n\\\\ all monomials of a polynomial P in the variables vars: list of [coefficient, total degree]\nmonos(P, vars) = {\n if(#vars == 0, return([[P, 0]]));\n my(L = List(), v = vars[1], rest = vars[2..#vars]);\n for(k = 0, poldegree(P, v), my(c = polcoef(P, k, v));\n if(c != 0, foreach(monos(c, rest), mm, listput(L, [mm[1], mm[2] + k]))));\n Vec(L)\n};\n\\\\ E: vector over components of polynomials in vars (coefficients: elements of the component fields);\n\\\\ every variable is an error in p^N Z_p. Returns [values, ok, min margin].\ncertpoly(comps, p, E, vars, N) = {\n my(vals = vector(#comps), ok = 1, margin = 10^9);\n for(i = 1, #comps, my(nf = comps[i][1].nf, ms = monos(E[i], vars), c0 = 0);\n foreach(ms, mm, if(mm[2] == 0, c0 = mm[1]));\n if(c0 == 0, return([vals, 0, -1]));\n vals[i] = c0;\n foreach(idealprimedec(nf, p), pr,\n my(v0 = nfeltval(nf, c0, pr), be = 10^9);\n foreach(ms, mm, if(mm[2] > 0, be = min(be, nfeltval(nf, mm[1], pr) + N * pr.e * mm[2])));\n margin = min(margin, be - v0 - 2 * (pr.e));\n if(be <= v0 + 2 * (pr.e) + 1, ok = 0)));\n [vals, ok, margin]\n};\n\\\\ affine point (x0, y) with x0 exact and y a p-adic number (precision from PARI): delta(P - O)\nptimg(comps, eps, p, x0, ypad) = {\n my(N = padicprec(ypad, p), y0 = truncate(ypad));\n certpoly(comps, p, vector(#comps, i, eps * ((y0 + dy) - comps[i][3] * x0 - comps[i][4])), [dy], N)\n};\n\\\\ same with y0 exact and x a p-adic number\nptimgx(comps, eps, p, xpad, y0) = {\n my(N = padicprec(xpad, p), x0 = truncate(xpad));\n certpoly(comps, p, vector(#comps, i, eps * (y0 - comps[i][3] * (x0 + dy) - comps[i][4])), [dy], N)\n};\n\\\\ point of the disk at infinity with t = t0 exact and w a p-adic number: delta(P - O) is the class of\n\\\\ eps * (1 - m t - b w) * w (h = eps (y - m x - b) = eps (1 - m t - b w)/w, times the square w^2)\ninfimg(comps, eps, p, t0, wpad) = {\n my(N = padicprec(wpad, p), w0 = truncate(wpad));\n certpoly(comps, p, vector(#comps, i, eps * (1 - comps[i][3] * t0 - comps[i][4] * (w0 + dy)) * (w0 + dy)), [dy], N)\n};\n\\\\ ---- quadratic points over Q_p(r), r^2 = d (d a non-square unit times p^0 or p^1) ----\n\\\\ reduce a polynomial in r modulo r^2 - d and return [A, B] with E = A + B r\nsplitr(E, d) = { my(R = E % (r^2 - d)); [polcoef(R, 0, r), polcoef(R, 1, r)] };\n\\\\ Newton iteration for a root W = a + c r of g(W) = 0 in Z_p[r]/(r^2-d) (g a polynomial in W with\n\\\\ coefficients in Z[r]), starting from W0, with all coefficients kept mod p^N. The derivative must be\n\\\\ a unit; then the true root differs from the result by an element of p^M Z_p[r], M = valuation of\n\\\\ the residual. Returns [a, c, M].\nredr(e, d, p, N) = { my(ab = splitr(e, d)); lift(Mod(ab[1], p^N)) + lift(Mod(ab[2], p^N)) * r };\nnewtonr(g, W, W0, d, p, N) = {\n my(w = W0, gw = deriv(g, W));\n for(it = 1, 2 * N, my(num = splitr(subst(g, W, w), d), den = splitr(subst(gw, W, w), d), nd = den[1]^2 - d * den[2]^2);\n if(valuation(nd, p) != 0, error(\"derivative not a unit\"));\n w = redr(w - redr((num[1] + num[2] * r) * (den[1] - den[2] * r), d, p, N) * lift(Mod(1, p^N) / nd), d, p, N));\n my(res = splitr(subst(g, W, w), d), M = min(if(res[1], valuation(res[1], p), N), if(res[2], valuation(res[2], p), N)));\n my(ab = splitr(w, d));\n [ab[1], ab[2], min(M, N)]\n};\n\\\\ delta of the trace divisor R + R' - 2O for an affine point R = (x, y) over Q_p(r), where\n\\\\ x = X(r) exact and y = a + c r known mod p^M: norm of eps (y - m x - b)\nquadimg(comps, eps, p, d, X, a, c, M) = {\n my(E = vector(#comps, i, my(ab = splitr(eps * ((a + da) + (c + dc) * r - comps[i][3] * X - comps[i][4]), d)); ab[1]^2 - d * ab[2]^2));\n certpoly(comps, p, E, [da, dc], M)\n};\n\\\\ same for a point of the disk at infinity with t = T(r) exact and w = a + c r known mod p^M\nquadinfimg(comps, eps, p, d, T, a, c, M) = {\n my(E = vector(#comps, i, my(w = (a + da) + (c + dc) * r, ab = splitr(eps * (1 - comps[i][3] * T - comps[i][4] * w) * w, d)); ab[1]^2 - d * ab[2]^2));\n certpoly(comps, p, E, [da, dc], M)\n};\n"}, {"path":"v1/anc/code/common/simon_ell/COPYING","sha256":"3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986","mode":420,"size":35149,"encoding":"utf-8","text":" GNU GENERAL PUBLIC LICENSE\n Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. \n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n Preamble\n\n The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works. By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users. We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors. You can apply it to\nyour programs, too.\n\n When we speak of free software, we are referring to freedom, not\nprice. Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights. Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received. You must make sure that they, too, receive\nor can get the source code. And you must show them these terms so they\nknow their rights.\n\n Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software. For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so. This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software. The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable. Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts. If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary. To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n The precise terms and conditions for copying, distribution and\nmodification follow.\n\n TERMS AND CONDITIONS\n\n 0. Definitions.\n\n \"This License\" refers to version 3 of the GNU General Public License.\n\n \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n \"The Program\" refers to any copyrightable work licensed under this\nLicense. Each licensee is addressed as \"you\". \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy. The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy. Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies. Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License. If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n 1. Source Code.\n\n The \"source code\" for a work means the preferred form of the work\nfor making modifications to it. \"Object code\" means any non-source\nform of a work.\n\n A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form. A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities. However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work. For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n The Corresponding Source for a work in source code form is that\nsame work.\n\n 2. Basic Permissions.\n\n All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met. This License explicitly affirms your unlimited\npermission to run the unmodified Program. The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work. This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force. You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright. Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n Conveying under any other circumstances is permitted solely under\nthe conditions stated below. Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n 3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n 4. Conveying Verbatim Copies.\n\n You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n 5. Conveying Modified Source Versions.\n\n You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n a) The work must carry prominent notices stating that you modified\n it, and giving a relevant date.\n\n b) The work must carry prominent notices stating that it is\n released under this License and any conditions added under section\n 7. This requirement modifies the requirement in section 4 to\n \"keep intact all notices\".\n\n c) You must license the entire work, as a whole, under this\n License to anyone who comes into possession of a copy. This\n License will therefore apply, along with any applicable section 7\n additional terms, to the whole of the work, and all its parts,\n regardless of how they are packaged. This License gives no\n permission to license the work in any other way, but it does not\n invalidate such permission if you have separately received it.\n\n d) If the work has interactive user interfaces, each must display\n Appropriate Legal Notices; however, if the Program has interactive\n interfaces that do not display Appropriate Legal Notices, your\n work need not make them do so.\n\n A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit. Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n 6. Conveying Non-Source Forms.\n\n You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n a) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by the\n Corresponding Source fixed on a durable physical medium\n customarily used for software interchange.\n\n b) Convey the object code in, or embodied in, a physical product\n (including a physical distribution medium), accompanied by a\n written offer, valid for at least three years and valid for as\n long as you offer spare parts or customer support for that product\n model, to give anyone who possesses the object code either (1) a\n copy of the Corresponding Source for all the software in the\n product that is covered by this License, on a durable physical\n medium customarily used for software interchange, for a price no\n more than your reasonable cost of physically performing this\n conveying of source, or (2) access to copy the\n Corresponding Source from a network server at no charge.\n\n c) Convey individual copies of the object code with a copy of the\n written offer to provide the Corresponding Source. This\n alternative is allowed only occasionally and noncommercially, and\n only if you received the object code with such an offer, in accord\n with subsection 6b.\n\n d) Convey the object code by offering access from a designated\n place (gratis or for a charge), and offer equivalent access to the\n Corresponding Source in the same way through the same place at no\n further charge. You need not require recipients to copy the\n Corresponding Source along with the object code. If the place to\n copy the object code is a network server, the Corresponding Source\n may be on a different server (operated by you or a third party)\n that supports equivalent copying facilities, provided you maintain\n clear directions next to the object code saying where to find the\n Corresponding Source. Regardless of what server hosts the\n Corresponding Source, you remain obligated to ensure that it is\n available for as long as needed to satisfy these requirements.\n\n e) Convey the object code using peer-to-peer transmission, provided\n you inform other peers where the object code and Corresponding\n Source of the work are being offered to the general public at no\n charge under subsection 6d.\n\n A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling. In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage. For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product. A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source. The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information. But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed. Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n 7. Additional Terms.\n\n \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law. If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit. (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.) You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n a) Disclaiming warranty or limiting liability differently from the\n terms of sections 15 and 16 of this License; or\n\n b) Requiring preservation of specified reasonable legal notices or\n author attributions in that material or in the Appropriate Legal\n Notices displayed by works containing it; or\n\n c) Prohibiting misrepresentation of the origin of that material, or\n requiring that modified versions of such material be marked in\n reasonable ways as different from the original version; or\n\n d) Limiting the use for publicity purposes of names of licensors or\n authors of the material; or\n\n e) Declining to grant rights under trademark law for use of some\n trade names, trademarks, or service marks; or\n\n f) Requiring indemnification of licensors and authors of that\n material by anyone who conveys the material (or modified versions of\n it) with contractual assumptions of liability to the recipient, for\n any liability that these contractual assumptions directly impose on\n those licensors and authors.\n\n All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10. If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term. If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n 8. Termination.\n\n You may not propagate or modify a covered work except as expressly\nprovided under this License. Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License. If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n 9. Acceptance Not Required for Having Copies.\n\n You are not required to accept this License in order to receive or\nrun a copy of the Program. Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance. However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work. These actions infringe copyright if you do\nnot accept this License. Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n 10. Automatic Licensing of Downstream Recipients.\n\n Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License. You are not responsible\nfor enforcing compliance by third parties with this License.\n\n An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations. If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License. For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n 11. Patents.\n\n A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based. The\nwork thus licensed is called the contributor's \"contributor version\".\n\n A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version. For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement). To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients. \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License. You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n 12. No Surrender of Others' Freedom.\n\n If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License. If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all. For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n 13. Use with the GNU Affero General Public License.\n\n Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work. The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n 14. Revised Versions of this License.\n\n The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time. Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n Each version is given a distinguishing version number. If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation. If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n Later license versions may give you additional or different\npermissions. However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n 15. Disclaimer of Warranty.\n\n THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n 16. Limitation of Liability.\n\n IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n 17. Interpretation of Sections 15 and 16.\n\n If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n END OF TERMS AND CONDITIONS\n\n How to Apply These Terms to Your New Programs\n\n If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n To do so, attach the following notices to the program. It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n \n Copyright (C) \n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU General Public License as published by\n the Free Software Foundation, either version 3 of the License, or\n (at your option) any later version.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU General Public License for more details.\n\n You should have received a copy of the GNU General Public License\n along with this program. If not, see .\n\nAlso add information on how to contact you by electronic and paper mail.\n\n If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n Copyright (C) \n This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n This is free software, and you are welcome to redistribute it\n under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License. Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n.\n\n The GNU General Public License does not permit incorporating your program\ninto proprietary programs. If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library. If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License. But first, please read\n.\n"}, {"path":"v1/anc/code/common/simon_ell/README.md","sha256":"7adadfdeecf7a9ba9a7898916dcd2cfea20e22e0b561bc237b630731bd6817dc","mode":420,"size":2039,"encoding":"utf-8","text":"> **Provenance.** Certificate IDs retain the original numbering; use the map in the top-level README for the shorter paper. Dates, timings and statements such as \u201crun here\u201d below describe the supplied October 2026 archive, not new runs for this edition. New validation is reported only in the top-level README.\n\n# Denis Simon's 2-descent scripts for PARI/GP\n\nUnmodified copies of three GP scripts by Denis Simon, as distributed with SageMath\n(`sage/ext_data/pari/simon/` of the passagemath 10.8.12 wheels):\n\n| file | version (from its header) | SHA-256 |\n|---|---|---|\n| `ell.gp` | 06/04/2011 (Sage's copy) | f137f61c596b4d86c72c294b46bccb8743beac55e5373d74ec7265baaf708800 |\n| `qfsolve.gp` | 09/01/2014 | 739b6e06cb2c4b3e3adc7318bd327f3f5a3d9acef5fa2b52e68c34b85a0ac998 |\n| `resultant3.gp` | 13/01/2014 | a195c027027ffd7e1134fbe1dfe88be2375e442a810c3ba51264701e885893b8 |\n\nCopyright (C) 2011, 2014 Denis Simon, distributed under the GNU General Public License (see the header of\neach file; original address www.math.unicaen.fr/~simon/). The files are included unchanged so that the\nscripts below run without Sage.\n\n`ell.gp` provides `bnfellrank` (2-descent for a general curve over a number field),\n`bnfell2descent_viaisog` (descent via a 2-isogeny) and `bnfell2descent_complete` (curves with full rational\n2-torsion). The number field must be given in the variable `y`. The search parameters are the global\nvariables `DEBUGLEVEL_ell, LIM1, LIM3, LIMTRIV, MAXPROB, LIMBIGPRIME`; each calling script sets them (directly or\nwith `default_ell(...)`) before use. The reviewers' scripts load `qfsolve.gp` and `resultant3.gp` as well.\n\n## Used by\nRun from the section folder, the scripts load the files with relative paths, e.g.\n```\n\\r ../common/simon_ell/qfsolve.gp\n\\r ../common/simon_ell/resultant3.gp\n\\r ../common/simon_ell/ell.gp\n```\n- 1.2.1: `1.2.1a_cubic_field_K.gp`\n- 1.2.4: `1.2.4e_rank_simon.gp`\n- 1.2.6: `1.2.6d_rank_simon.gp`\n- 1.3.1: `1.3.1d_rank_simon.gp` (loads `ell.gp` only)\n\nTested with PARI/GP 2.15.4 on 14\u201315 Oct 2026.\n"}, {"path":"v1/anc/code/common/simon_ell/ell.gp","sha256":"f137f61c596b4d86c72c294b46bccb8743beac55e5373d74ec7265baaf708800","mode":420,"size":71853,"encoding":"utf-8","text":"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ Copyright (C) 2011 Denis Simon\n\\\\\n\\\\ Distributed under the terms of the GNU General Public License (GPL)\n\\\\\n\\\\ This code is distributed in the hope that it will be useful,\n\\\\ but WITHOUT ANY WARRANTY; without even the implied warranty of\n\\\\ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n\\\\ General Public License for more details.\n\\\\\n\\\\ The full text of the GPL is available at:\n\\\\\n\\\\ http://www.gnu.org/licenses/\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n/*\n Auteur :\n Denis SIMON -> simon@math.unicaen.fr\n adresse du fichier :\n www.math.unicaen.fr/~simon/ell.gp\n\n *********************************************\n * VERSION 06/04/2011 *\n *********************************************\n\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n \\\\ Comment utiliser ce programme ? \\\\\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n Programme de calcul du rang des courbes elliptiques\n dans les corps de nombres.\n langage: GP\n pour l'utiliser, lancer gp, puis taper\n \\r ell.gp\n\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n \\\\ Description des principales fonctions \\\\\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n Explications succintes :\n definition du corps :\n bnf=bnfinit(y^2+1);\n (il est indispensable que la variable soit y).\n on peut ensuite poser : \n X = Mod(y,bnf.pol);\n\n La fonction bnfellrank() accepte toutes les courbes sous la forme\n [a1,a2,a3,a4,a6]\n Les coefficients peuvent etre entiers ou non.\n L'algorithme utilise est celui de la 2-descente.\n La 2-torsion peut etre quelconque.\n Il suffit de taper : \n\n gp > ell = [a1,a2,a3,a4,a6];\n gp > bnfellrank(bnf,ell)\n\n Retourne un vecteur [r,s,vec]\n ou r est le rang probable (c'est toujours une minoration du rang),\n s est le 2-rang du groupe de Selmer,\n vec est une liste de points dans E(K)/2E(K).\n\n Courbes avec #E[2](K) >= 2:\n ell doit etre sous la forme \n y^2 = x^3 + A*^2 + B*x\n avec A et B entiers algebriques\n gp > ell = [0,A,0,B,0]\n gp > bnfell2descent_viaisog(ell)\n = algorithme de la 2-descente par isogenies\n Attention A et B doivent etre entiers\n\n Courbes avec #E[2](K) = 4: y^2 = (x-e1)*(x-e2)*(x-e3)\n -> bnfell2descent_complete(bnf,e1,e2,e3);\n = algorithme de la 2-descente complete\n Attention: les ei doivent etre entiers algebriques.\n\n\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n \\\\ Affichage des calculs \\\\\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n On peut avoir plus ou moins de details de calculs avec\n DEBUGLEVEL_ell = 0;\n DEBUGLEVEL_ell = 1; 2; 3;...\n\n*/\n\n\nnf_scalar_or_multable_to_alg(nf, z) = {\n if (type(z) == \"t_MAT\", nfbasistoalg(nf, z[,1]), z);\n}\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ SCRIPT \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ MANIPULATION OF GLOBAL VARIABLES \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n{default_ell(\n DEBUGLEVEL_ell_val:small = 0,\n LIM1_val:small = 2,\n LIM3_val:small = 4,\n LIMTRIV_val:small = 2,\n MAXPROB_val:small = 20,\n LIMBIGPRIME_val:small = 30\n ) = \n\n DEBUGLEVEL_ell = DEBUGLEVEL_ell_val;\n print(\" DEBUGLEVEL_ell = \",DEBUGLEVEL_ell);\n\n LIM1 = LIM1_val;\n print(\" LIM1 = \",LIM1);\n\n LIM3 = LIM3_val;\n print(\" LIM3 = \",LIM3);\n\n LIMTRIV = LIMTRIV_val;\n print(\" LIMTRIV = \",LIMTRIV);\n\n MAXPROB = MAXPROB_val;\n print(\" MAXPROB = \",MAXPROB);\n\n LIMBIGPRIME = LIMBIGPRIME_val;\n print(\" LIMBIGPRIME = \",LIMBIGPRIME);\n}\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ COMMON FUNCTIONS TO ell.gp AND ellQ.gp \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n{ellcomposeurst(urst1,urst2) =\nlocal(u1 = urst1[1], r1 = urst1[2], s1 = urst1[3], t1 = urst1[4],\n u2 = urst2[1], r2 = urst2[2], s2 = urst2[3], t2 = urst2[4]);\n [u1*u2,u1^2*r2+r1,u1*s2+s1,u1^3*t2+s1*u1^2*r2+t1];\n}\n{ellinverturst(urst) =\nlocal(u = urst[1], r = urst[2], s = urst[3], t = urst[4]);\n [1/u,-r/u^2,-s/u,(r*s-t)/u^3];\n}\n{mysubst(polsu,subsx) =\n if( type(lift(polsu)) == \"t_POL\",\n return(simplify(subst(lift(polsu),variable(lift(polsu)),subsx)))\n , return(simplify(lift(polsu))));\n}\n{degre(idegre) =\nlocal(ideg = idegre, jdeg = 0);\n\n while( ideg >>= 1, jdeg++);\n return(jdeg);\n}\n{nfissquare(nf, a) = #nfsqrt(nf,a) > 0;\n}\n{nfsqrt( nf, a) =\n\\\\ if a is a square in the number field nf returns [sqrt(a)], otherwise [].\nlocal(alift,ta,py,pfact);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting nfsqrt \",a));\n if( a==0 || a==1, \nif( DEBUGLEVEL_ell >= 5, print(\" end of nfsqrt \",a));\n return([a]));\n\n alift = lift(a);\n ta = type(a);\n if( !poldegree(alift), alift = polcoeff(alift,0));\n\n if( type(alift) != \"t_POL\",\n if( issquare(alift), \nif( DEBUGLEVEL_ell >= 5, print(\" end of nfsqrt \",sqrtrat(alift)));\n return([sqrtrat(alift)])));\n\n if( poldegree(nf.pol) <= 1,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfsqrt \",[]));\n return([]));\n if( ta == \"t_POL\", a = Mod(a,nf.pol));\n\n\\\\ the norm should be a square\n\n if( !issquare(norm(a)),\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfsqrt \",[]));\n return([]));\n\n\\\\ the real embeddings must all be >0\n\n for( i = 1, nf.r1,\n if( nfrealsign(nf,a,i) < 0,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfsqrt \",[]));\n return([])));\n\n\\\\ factorization over nf of the polynomial X^2-a\n\n if( variable(nf.pol) == 'x,\n py = subst(nf.pol,'x,'y);\n pfact = lift(factornf('x^2-mysubst(alift,Mod('y,py)),py)[1,1])\n ,\n pfact = lift(factornf('x^2-a,nf.pol)[1,1]));\n if( poldegree(pfact) == 2,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfsqrt \",[]));\n return([]));\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfsqrt \",pfact));\n return([subst(polcoeff(pfact,0),'y,Mod(variable(nf.pol),nf.pol))]);\n}\n{nfrealsign(nf,a,i) =\n\\\\ return the sign of the algebraic number a in the i-th real embedding.\nlocal(nf_roots,ay,prec0);\n\n if( a == 0, return(0));\n\n a = lift(a);\n if( type(a) != \"t_POL\",\n return(sign(a)));\n\n nf_roots = nf.roots;\n prec0 = default(realprecision);\n\n ay = 0;\n while( ay == 0 || precision(ay) < 38,\n\n ay = subst(a,variable(a),nf_roots[i]);\n\n if( ay == 0 || precision(ay) < 38,\nif( DEBUGLEVEL_ell >= 3, \n print(\" **** Warning: doubling the real precision in nfrealsign **** \",\n 2*default(realprecision)));\n default(realprecision,2*default(realprecision));\n nf_roots = real(polroots(nf.pol))\n )\n );\n default(realprecision,prec0);\n\n return(sign(ay));\n}\n{sqrtrat(a) =\n sqrtint(numerator(a))/sqrtint(denominator(a));\n}\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ FUNCTIONS SPECIFIC TO ell.gp \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n{nfpolratroots(nf,pol) =\nlocal(f,ans);\n f = nffactor(nf,lift(pol))[,1];\n ans = [];\n for( j = 1, #f, \n if( poldegree(f[j]) == 1,\n ans = concat(ans,[-polcoeff(f[j],0)/polcoeff(f[j],1)])));\n return(ans);\n}\n{mynfhilbert2(nf,a,b,p) =\n\\\\ p is a prime output by idealprimedec() above 2\nlocal(v,res);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting mynfhilbert2\"));\n v = idealval(nf,a,p)\\2;\n if( v, a *= nfbasistoalg(nf,p[2])^(-2*v));\n\n v = idealval(nf,b,p)\\2;\n if( v, b *= nfbasistoalg(nf,p[2])^(-2*v));\n\n if( nfqp_soluble(nf,a*'x^2+b,initp(nf,p)), res = 1, res = -1);\nif( DEBUGLEVEL_ell >= 5, print(\" end of mynfhilbert2\",res));\n return(res);\n}\n{mynfhilbertp(nf,a,b,p) =\n\\\\ calcule le symbole de Hilbert quadratique local (a,b)_p\n\\\\ * en l'ideal premier p du corps nf,\n\\\\ * a et b sont des elements non nuls de nf, sous la forme\n\\\\ * de polmods ou de polynomes, et p renvoye par idealprimedec().\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting mynfhilbertp at \",p));\n if( a == 0 || b == 0, error(\"mynfhilbertp: argument = 0\"));\n if( p.p == 2,\nif( DEBUGLEVEL_ell >= 5, print(\" end of mynfhilbertp\"));\n return(mynfhilbert2(nf,a,b,p)));\n if( type(a) != \"t_POLMOD\", a = Mod(a,nf.pol));\n if( type(b) != \"t_POLMOD\", b = Mod(b,nf.pol));\nreturn(nfhilbert(nf,a,b,p));\n}\n{ideallistfactor(nf,listfact) =\nlocal(Slist,S1,test,k);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting ideallistfactor\"));\n Slist = []; test = 1;\n for( i = 1, #listfact,\n if( listfact[i] == 0, next);\n S1 = idealfactor(nf,listfact[i])[,1];\n for( j = 1, #S1, k = #Slist;\n for( k = 1, #Slist,\n if( Slist[k] == S1[j], test = 0; break));\n if( test, Slist = concat(Slist,[S1[j]]), test = 1);\n ));\nif( DEBUGLEVEL_ell >= 5, print(\" end of ideallistfactor\"));\n return(Slist);\n}\n{mynfhilbert(nf,a,b) =\n\\\\ calcule le symbole de Hilbert quadratique global (a,b):\n\\\\ =1 si l'equation X^2-aY^2-bZ^2=0 a une solution non triviale,\n\\\\ =-1 sinon,\n\\\\ a et b doivent etre non nuls.\nlocal(al,bl,S);\n\nif( DEBUGLEVEL_ell >= 4, print(\" starting mynfhilbert \",[a,b]));\n if( a == 0 || b == 0, error(\"mynfhilbert : argument = 0\"));\n al = lift(a); bl = lift(b);\n\n\\\\ solutions locales aux places reelles \n\n for( i = 1, nf.r1,\n if( nfrealsign(nf,al,i) < 0 && nfrealsign(nf,bl,i) < 0,\nif( DEBUGLEVEL_ell >= 3, print(\" mynfhilbert: no solution at infinity\"));\nif( DEBUGLEVEL_ell >= 4, print(\" end of mynfhilbert\"));\n return(-1))\n );\n\n if( type(a) != \"t_POLMOD\", a = Mod(a,nf.pol));\n if( type(b) != \"t_POLMOD\", b = Mod(b,nf.pol));\n\n\\\\ solutions locales aux places finies (celles qui divisent 2ab)\n\n S = ideallistfactor(nf,[2,a,b]);\n forstep ( i = #S, 2, -1,\n\\\\ d'apres la formule du produit on peut eviter un premier \n if( mynfhilbertp(nf,a,b, S[i]) == -1,\nif( DEBUGLEVEL_ell >= 3, print(\" mynfhilbert: no solution at: \",S[i]));\nif( DEBUGLEVEL_ell >= 4, print(\" end of mynfhilbert\"));\n return(-1)));\nif( DEBUGLEVEL_ell >= 4, print(\" end of mynfhilbert\"));\n return(1);\n}\n{initp( nf, p) =\n\\\\ pp[1] est l'ideal sous forme reduite \n\\\\ pp[2] est un entier de Zk avec une valuation 1 en p\n\\\\ pp[3] est la valuation de 2 en p\n\\\\ pp[4] sert a detecter les carres dans Qp \n\\\\ si p|2 il faut la structure de Zk/p^(1+2v) d'apres Hensel\n\\\\ sinon il suffit de calculer x^(N(p)-1)/2 \n\\\\ pp[5] est un systeme de representants de Zk/p \n\\\\ c'est donc un ensemble de cardinal p^f .\nlocal(idval,pp);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting initp for p = \",p));\n idval = idealval(nf,2,p);\n pp=[ p, nfbasistoalg(nf,p[2]), idval, 0, repres(nf,p) ];\n if( idval,\n pp[4] = idealstar(nf,idealpow(nf,p,1+2*idval)),\n pp[4] = p.p^p.f\\2 );\nif( DEBUGLEVEL_ell >= 5, print(\" end of initp\"));\n return(pp);\n}\n{deno(num) = \n\\\\ calcule un denominateur du polynome num\n\n if( num == 0, return(1));\n if( type(num) == \"t_POL\",\n return(denominator(content(num))));\n return(denominator(num));\n}\n{nfratpoint(nf,pol,lim,singlepoint=1) =\n\\\\ Si singlepoint == 1, cherche un seul point, sinon plusieurs.\nlocal(compt1,compt2,deg,n,AA,point,listpoints,vectx,evpol,sq,xpol);\n\nif( DEBUGLEVEL_ell >= 4,\n print(\" starting nfratpoint with pol = \",pol);\n print(\" lim = \",lim));\n\n compt1 = 0; compt2 = 0;\n deg = poldegree(pol); n = poldegree(nf.pol);\n AA = lim<<1;\n if( !singlepoint, listpoints = []);\n\n\\\\ cas triviaux \n sq = nfsqrt(nf,polcoeff(pol,0));\n if( sq!= [],\n point = [ 0, sq[1], 1];\n if( singlepoint,\nif( DEBUGLEVEL_ell >= 4, print(\" end of nfratpoint\"));\n return(point));\n listpoints = concat(listpoints,[point])\n );\n sq = nfsqrt(nf,pollead(pol));\n if( sq != [],\n point = [ 1, sq[1], 0];\n if( singlepoint,\nif( DEBUGLEVEL_ell >= 4, print(\" end of nfratpoint\"));\n return(point));\n listpoints = concat(listpoints,[point])\n );\n \n\\\\ boucle generale\n point = [];\n vectx = vector(n,i,[-lim,lim]);\n for( denoz = 1, lim,\n if( poldegree(pol)%2 == 0 &&\n !issquare(Mod(norm(pollead(pol)),denoz)), next);\n forvec( xx = vectx,\n if( denoz == 1 || gcd(content(xx),denoz) == 1,\n xpol = nfbasistoalg(nf,xx~);\n evpol = subst(pol,'x,xpol/denoz);\n sq = nfsqrt(nf,evpol);\n if( sq != [],\n point = [xpol/denoz, sq[1], 1];\n if( singlepoint, break(2));\n listpoints = concat(listpoints,[point])));\n ));\n\n if( singlepoint, listpoints = point);\nif( DEBUGLEVEL_ell >= 3, print(\" points found by nfratpoint = \",listpoints));\nif( DEBUGLEVEL_ell >= 4, print(\" end of nfratpoint\"));\n return(Vec(listpoints));\n}\n{repres(nf,p) =\n\\\\ calcule un systeme de representants Zk/p\nlocal(fond,mat,f,rep,pp,ppi,pp2,jppi,gjf);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting repres\"));\n fond = [];\n mat = idealhnf(nf,p);\n for( i = 1, #mat,\n if( mat[i,i] != 1, fond = concat(fond, nf.zk[i])));\n f = #fond;\n pp = p.p;\n rep = vector(pp^f,i,0);\n rep[1] = 0;\n ppi = 1;\n pp2 = pp\\2;\n for( i = 1, f,\n for( j = 1, pp-1,\n if( j <= pp2, gjf = j*fond[i], gjf = (j-pp)*fond[i]);\n jppi = j*ppi;\n for( k = 0, ppi-1, rep[jppi+k+1] = rep[k+1]+gjf ));\n ppi *= pp);\nif( DEBUGLEVEL_ell >= 5, print(\" end of repres\"));\n return(Mod(rep,nf.pol));\n}\n{val(nf,num,p) =\n if( num == 0, 32000, idealval(nf,lift(num),p));\n}\n{nfissquaremodpodd( nf, a, p) =\n\\\\ Return 1 if a is a p-adic square, 0 otherwise.\n\\\\ Only for a prime ideal p coprime to 2.\n\\\\ a = t_POLMOD\nlocal(v,ap,norme,den);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting nfissquaremodpodd\"));\n if( a == 0,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodpodd\"));\n return(1));\n v = idealval(nf,lift(a),p);\n if( v%2,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodpodd\"));\n return(0));\n ap = a/nfbasistoalg(nf,p[2])^v;\n\n norme = (p.p^p.f-1)/2;\n den = denominator(content(lift(ap)))%p.p;\n if( sign(den), ap *= Mod(1,p.p));\n ap = ap^norme-1;\n if( ap == 0,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodpodd\"));\n return(1));\n ap = lift(lift(ap));\n if( idealval(nf,ap,p) > 0,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodpodd\"));\n return(1));\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodpodd\"));\n return(0);\n}\n{nfissquaremodp( nf, a, p, zinit) =\n\\\\ a is an algebraic integer of nf\n\\\\ returns 1 if a is a square modulo the prime ideal p, 0 otherwise\n\\\\ a = t_POLMOD\nlocal(valap,zlog);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting nfissquaremodp \",[a,p,zinit]));\n if( a == 0,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodp\"));\n return(1));\n\n if( p.p != 2,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodp\"));\n return(nfissquaremodpodd(nf,a,p)));\n\n valap = idealval(nf,a,p);\n if( valap%2,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodp\"));\n return(0));\n if( valap,\n zlog = ideallog(nf,a*(nf_scalar_or_multable_to_alg(nf,p[5])/p.p)^valap,zinit)\n ,\n zlog = ideallog(nf,a,zinit));\n for( i = 1, #zinit[2][2],\n if( !(zinit[2][2][i]%2) && (zlog[i]%2),\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodp\"));\n return(0)));\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodp\"));\n return(1);\n}\n{nfissquaremodpq( nf, a, p, q) =\n\\\\ cette fonction renvoie 1 si a est un carre\n\\\\ ?inversible? modulo P^q et 0 sinon.\n\\\\ P divise 2, et ?(a,p)=1?.\nlocal(vala,zinit,zlog);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting nfissquaremodpq \",[a,p,q]));\n if( a == 0,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodpq\"));\n return(1));\n vala = idealval(nf,a,p);\n if( vala >= q,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodpq\"));\n return(1));\n if( vala%2,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodpq\"));\n return(0));\n zinit = idealstar(nf,idealpow(nf,p,q-vala),2);\n zlog = ideallog(nf,a*nf_scalar_or_multable_to_alg(nf,p[5]/2)^vala,zinit);\n for( i = 1, #zinit[2][2],\n if( !(zinit[2][2][i]%2) && (zlog[i]%2),\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodpq\"));\n return(0)));\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfissquaremodpq\"));\n return(1);\n}\n{nfsqrtmodpq(nf,a,p,q) =\n\\\\ suppose que a est un carre modulo p^q\n\\\\ et renvoie x tel que x^2 = a mod p^q.\nlocal(p_hnf,f,aaa,qq,e,xx,yy,r,aux,b,m,vp,inv2x,zinit,zlog,expo,p_ini,non_sq,id);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting nfsqrtmodpq \",a,p,q));\n if( a == 0 || a == 1,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfsqrtmodpq\"));\n return(a));\n f = idealval(nf,a,p);\n if( f >= q,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfsqrtmodpq\"));\n return(0));\nif( f%2, error(\"nfsqrtmodpq: a is not a square, odd valuation\"));\n a = nfalgtobasis(nf,a);\n if( f, aaa = nfeltpow(nf,nfeltdiv(nf,a,nf_scalar_or_multable_to_alg(nf,p[5]/p.p)),f), aaa = a);\n p_hnf = idealhnf(nf,p);\n p_ini = nfmodprinit(nf,p);\nif( DEBUGLEVEL_ell >= 5, print(\" p_hnf = \",p_hnf));\nif( DEBUGLEVEL_ell >= 5, print(\" p_ini = \",p_ini));\n\n if( p.p != 2,\n\\\\ first case : p is odd\n\n\\\\ Shanks sqrt algorithm\nif( DEBUGLEVEL_ell >= 5, print(\" Shanks sqrt algorithm\"));\n non_sq = nfrandintmodid(nf,p_hnf);\n while( nfissquaremodpodd(nf,non_sq,p), non_sq = nfrandintmodid(nf,p_hnf));\n non_sq = nfalgtobasis(nf,non_sq);\n qq = ( p.p^p.f -1) \\ 2;\n e = 1; while( !(qq%2), e++; qq \\= 2);\n non_sq = nfeltpowmodpr(nf,non_sq,qq,p_ini);\n yy = non_sq; r = e;\n xx = nfeltpowmodpr(nf,aaa,qq\\2,p_ini);\n aux = nfeltmulmodpr(nf,aaa,xx,p_ini);\n b = nfeltmulmodpr(nf,aux,xx,p_ini); \n xx = aux;\n aux = b; m = 0;\n while( !val(nf,nfbasistoalg(nf,aux)-1,p),\n m++;\n aux = nfeltpowmodpr(nf,aux,2,p_ini)\n );\n while( m,\n if( m == r, error(\"nfsqrtmodpq: m = r\"));\n aux = nfeltpowmodpr(nf,yy,1<<(r-m-1),p_ini);\n yy = nfeltpowmodpr(nf,aux,2,p_ini);\n r = m;\n xx = nfeltmulmodpr(nf,xx,aux,p_ini);\n b = nfeltmulmodpr(nf,b,yy,p_ini);\n aux = b;m = 0;\n while( !val(nf,nfbasistoalg(nf,aux)-1,p),\n m++;\n aux = nfeltpowmodpr(nf,aux,2,p_ini)\n )\n );\n\n\\\\ lift de Hensel\n\\\\\n\n xx = nfbasistoalg(nf,xx);\n aaa= nfbasistoalg(nf,aaa);\n if( q > 1,\nif( DEBUGLEVEL_ell >= 5, print(\" Hensel lifting\"));\n vp = idealval(nf,xx^2-aaa,p);\n if( vp < q-f,\n yy = 2*xx;\n inv2x = nfbasistoalg(nf,idealaddtoone(nf,yy,p)[1])/yy;\n while( vp < q, vp++; xx -= (xx^2-aaa)*inv2x);\n );\n if( f, xx *= nfbasistoalg(nf,p[2])^(f\\2));\n );\n xx = mynfeltreduce(nf,xx,idealpow(nf,p,q))\n ,\n\\\\ cas ou p divise 2 */\n if( q-f > 1, id = idealpow(nf,p,q-f), id = p_hnf);\n zinit = idealstar(nf,id,2);\n zlog = ideallog(nf,aaa,zinit);\n xx = 1;\n for( i = 1, #zlog,\n expo = zlog[i];\n if( expo,\n if( !expo%2,\n expo = expo>>1\n , aux = zinit[2][i];\n expo = expo*((aux+1)>>1)%aux\n );\n xx *= nfbasistoalg(nf,zinit[2][3][i])^expo\n )\n );\n if( f,\n xx *= nfbasistoalg(nf,p[2])^(f>>1);\n id = idealpow(nf,p,q));\n xx = mynfeltreduce(nf,xx,id);\n );\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfsqrtmodpq \",xx));\n return(xx);\n}\n{nflemma6( nf, pol, p, nu, xx) =\nlocal(gx,gpx,lambda,mu);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting nflemma6\"));\n gx = subst( pol, 'x, xx);\n if( nfissquaremodpodd(nf,gx,p),\nif( DEBUGLEVEL_ell >= 5, print(\" end of nflemma6\"));\n return(1));\n gpx = subst( pol', 'x, xx);\n lambda = val(nf,gx,p);mu = val(nf,gpx,p);\n\n if( lambda>2*mu,\nif( DEBUGLEVEL_ell >= 5, print(\" end of nflemma6\"));\n return(1));\n if( (lambda >= 2*nu) && (mu >= nu),\nif( DEBUGLEVEL_ell >= 5, print(\" end of nflemma6\"));\n return(0));\nif( DEBUGLEVEL_ell >= 5, print(\" end of nflemma6\"));\n return(-1);\n}\n{nflemma7( nf, pol, p, nu, xx, zinit) =\nlocal(gx,gpx,v,lambda,mu,q);\n\nif( DEBUGLEVEL_ell >= 5, print(\"entree dans nflemma7 \",[xx,nu]));\n gx = subst( pol, 'x, xx);\n if( nfissquaremodp(nf,gx,p,zinit),\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nflemma7\"));\n return(1));\n gpx = subst( pol', 'x, xx);\n v = p[3];\n lambda = val(nf,gx,p);mu = val(nf,gpx,p);\n if( lambda>2*mu,\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nflemma7\"));\n return(1));\n if( nu > mu,\n if( lambda%2,\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nflemma7\"));\n return(-1));\n q = mu+nu-lambda;\n if( q > 2*v,\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nflemma7\"));\n return(-1));\n if( nfissquaremodpq(nf,gx*nf_scalar_or_multable_to_alg(nf,p[5]/2)^lambda,p,q),\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nflemma7\"));\n return(1))\n ,\n if( lambda >= 2*nu,\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nflemma7\"));\n return(0));\n if( lambda%2,\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nflemma7\"));\n return(-1));\n q = 2*nu-lambda;\n if( q > 2*v,\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nflemma7\"));\n return(-1));\n if( nfissquaremodpq(nf,gx*nf_scalar_or_multable_to_alg(nf,p[5]/2)^lambda,p,q),\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nflemma7\"));\n return(0))\n );\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nflemma7\"));\n return(-1);\n}\n{nfzp_soluble( nf, pol, p, nu, pnu, x0) =\nlocal(result,pnup,lrep);\n\nif( DEBUGLEVEL_ell >= 5, print(\"entree dans nfzp_soluble \",[lift(x0),nu]));\n if( p[3] == 0,\n result = nflemma6(nf,pol,p[1],nu,x0),\n result = nflemma7(nf,pol,p[1],nu,x0,p[4]));\n if( result == +1,\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nfzp_soluble\"));\n return(1));\n if( result == -1,\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nfzp_soluble\"));\n return(0));\n pnup = pnu*p[2];\n lrep = #p[5];\n nu++;\n for( i = 1, lrep,\n if( nfzp_soluble(nf,pol,p,nu,pnup,x0+pnu*p[5][i]),\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nfzp_soluble\"));\n return(1)));\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nfzp_soluble\"));\n return(0);\n}\n{mynfeltmod(nf,a,b) =\nlocal(qred);\n\n qred = round(nfalgtobasis(nf,a/b));\n qred = a-b*nfbasistoalg(nf,qred);\n return(qred);\n}\n{mynfeltreduce(nf,a,id) =\n nfbasistoalg(nf,nfeltreduce(nf,nfalgtobasis(nf,a),id));\n}\n{nfrandintmodid( nf, id) =\nlocal(res);\n\nif( DEBUGLEVEL_ell >= 5, print(\"entree dans nfrandintmodid\"));\n res = 0;\n while( !res,\n res = nfrandint(nf,0);\n res = mynfeltreduce(nf,res,id));\nif( DEBUGLEVEL_ell >= 5, print(\"fin de nfrandintmodid\"));\n return(res);\n}\n{nfrandint( nf, borne) =\nlocal(d,res);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting nfrandint\"));\n d = poldegree(nf.pol);\n res = vectorv(d,i,if( borne, random(borne<<1)-borne, random()));\n res = nfbasistoalg(nf,res);\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfrandint\"));\n return(res);\n}\n{nfqp_solublebig( nf, pol, p,ap=0,b=1) =\nlocal(deg,xx,z,Px,cont,pi,pol2,Roots);\n\nif( DEBUGLEVEL_ell >= 4, print(\" starting nfqp_solublebig avec \",p.p));\n deg = poldegree(pol);\n\n if( nfissquaremodpodd(nf,polcoeff(pol,0),p),\nif( DEBUGLEVEL_ell >= 4, print(\" end of nfqp_solublebig\"));\n return(1));\n if( nfissquaremodpodd(nf,pollead(pol),p),\nif( DEBUGLEVEL_ell >= 4, print(\" end of nfqp_solublebig\"));\n return(1));\n\n\\\\ on tient compte du contenu de pol\n cont = idealval(nf,polcoeff(pol,0),p);\n for( i = 1, deg,\n if( cont, cont = min(cont,idealval(nf,polcoeff(pol,i),p))));\n if( cont, pi = nf_scalar_or_multable_to_alg(nf,p[5]/p.p));\n if( cont > 1, pol *= pi^(2*(cont\\2)));\n\n\\\\ On essaye des valeurs de x au hasard\n if( cont%2,\n pol2 = pol*pi\n , pol2 = pol;\n for( i = 1, MAXPROB,\n xx = nfrandint(nf,0);\n z = 0; while( !z, z = random());\n xx = -ap*z+b*xx;\n Px=polcoeff(pol,deg);\n forstep (j=deg-1,0,-1,Px=Px*xx+polcoeff(pol,j));\n Px *= z^deg;\n if( nfissquaremodpodd(nf,Px,p),\nif( DEBUGLEVEL_ell >= 4, print(\" end of nfqp_solublebig\"));\n return(1));\n )\n );\n\n\\\\ On essaye les racines de pol\n Roots = nfpolrootsmod(nf,pol2,p);\n pi = nfbasistoalg(nf,p[2]);\n for( i = 1, #Roots,\n if( nfqp_solublebig(nf,subst(pol,'x,pi*'x+Roots[i]),p),\nif( DEBUGLEVEL_ell >= 4, print(\"fin de nfqp_solublebig\"));\n return(1)));\n\nif( DEBUGLEVEL_ell >= 4, print(\" end of nfqp_solublebig\"));\n return(0);\n}\n{nfpolrootsmod(nf,pol,p) =\n\\\\ calcule les racines modulo l'ideal p du polynome pol.\n\\\\ p est un ideal premier de nf, sous la forme idealprimedec\nlocal(factlist,sol);\n\n factlist = nffactormod(nf,pol,p)[,1];\n sol = [];\n for( i = 1, #factlist,\n if( poldegree(factlist[i]) == 1,\n sol = concat(sol, [-polcoeff(factlist[i],0)/polcoeff(factlist[i],1)])));\n return(sol);\n}\n{nfqp_soluble( nf, pol, p) =\n\\\\ p is a prime output by initp()\n\\\\ return 1 if pol(x) = y^2 has a p-adic rational solution\n\\\\ (possibly oo)\n\\\\ coeff of nfqfsoluble must be integers.\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting nfqp_soluble \",p));\nif( DEBUGLEVEL_ell >= 5, print(\" pol = \",pol));\n if( nfissquaremodp(nf,pollead(pol),p[1],p[4]),\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfqp_soluble\"));\n return(1));\n if( nfissquaremodp(nf,polcoeff(pol,0),p[1],p[4]),\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfqp_soluble\"));\n return(1));\n if( nfzp_soluble(nf,pol,p,0,1,0),\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfqp_soluble\"));\n return(1));\n if( nfzp_soluble(nf,polrecip(pol),p,1, p[2],0),\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfqp_soluble\"));\n return(1));\nif( DEBUGLEVEL_ell >= 5, print(\" end of nfqp_soluble\"));\n return(0);\n}\n{nflocallysoluble( nf, pol, r=0,a=1,b=1) =\n\\\\ Test whether Y^2 = pol is Everywhere Locally Soluble\nlocal(pol0,plist,add,ff,p,Delta,c,s,t);\n\nif( DEBUGLEVEL_ell >= 4, print(\" starting nflocallysoluble \",[pol,r,a,b]));\n pol0 = pol;\n\n\\\\ places finies\n\n pol *= deno(content(lift(pol)))^2;\n for( ii = 1, 3,\n if( ii == 1, plist = idealprimedec(nf,2));\n if( ii == 2 && r, plist = idealfactor(nf,poldisc(pol0/pollead(pol0))/pollead(pol0)^6/2^12)[,1]);\n if( ii == 2 && !r, plist = idealfactor(nf,poldisc(pol0))[,1]);\n if( ii == 3,\n add = idealadd(nf,a,b);\n ff = factor(idealnorm(nf,add))[,1];\n addprimes(ff);\nif( DEBUGLEVEL_ell >= 4, print(\" list of primes = \",ff));\n plist = idealfactor(nf,add)[,1]);\n for( i = 1, #plist,\n p = plist[i]; \nif( DEBUGLEVEL_ell >= 3, print(\" p = \",p));\n if( p.p < LIMBIGPRIME || !LIMBIGPRIME,\n if( !nfqp_soluble(nf,pol,initp(nf,p)),\nif( DEBUGLEVEL_ell >= 2, print(\" not ELS at \",p));\nif( DEBUGLEVEL_ell >= 4, print(\" end of nflocallysoluble\"));\n return(0)),\n if( !nfqp_solublebig(nf,pol,p,r/a,b),\nif( DEBUGLEVEL_ell >= 2, print(\" not ELS at \",p.p,\" ( = big prime )\"));\nif( DEBUGLEVEL_ell >= 4, print(\" end of nflocallysoluble\"));\n return(0))));\n );\n\n\\\\ places reelles \n\n/*\n Peter Bruin, August 2014: code adapted to fix precision problems.\n\n We want to count the number of real roots of a polynomial of the\n form x^4 + s*x^2 + a*x + b. The action of complex conjugation on\n the complex roots determines the sign of the discriminant Delta:\n\n cycle type () or (1 2)(3 4), i.e. 4 or 0 real roots: Delta > 0\n cycle type (1 2), i.e. exactly 2 real roots: Delta < 0\n\n We may assume Delta > 0 and have to decide whether there are 0 or 4\n real roots. We apply Sturm's theorem to the following sequence\n (with t = 2*s^3 - 8*b*s + 9*a^2):\n\n p0 = x^4 + s*x^2 + a*x + b\n p1 = 4*x^3 + 2*s*x + a\n p2 = x*p1 - 4*p0\n = -2*s*x^2 - 3*a*x - 4*b\n p3 = (3*a - 2*s*x)*p2 - s^2*p1\n = -t*x - a*(s^2 + 12*b)\n p4 = Delta\n\n Note that the case of 4 real roots can only occur if both s and t\n are nonzero, otherwise the Sturm sequence is shorter than this one.\n By Sturm's theorem, the number of roots equals\n\n (sign changes in [1, -4, -2*s, t, Delta]) -\n (sign changes in [1, 4, -2*s, -t, Delta]).\n\n Hence the only way to have 4 real roots is if s < 0 and t < 0.\n*/\n if( nf.r1,\n c = pollead(pol);\n pol /= c;\n pol = subst(pol, 'x, 'x - polcoeff(pol, 3)/4);\n s = polcoeff(pol, 2);\n t = 2*s^3 - 8*s*polcoeff(pol, 0) + 9*polcoeff(pol, 1)^2;\n Delta = poldisc(pol);\n for( i = 1, nf.r1,\n if( nfrealsign(nf,c,i) > 0, next);\n if( nfrealsign(nf,Delta,i) < 0, next);\n if( nfrealsign(nf,s,i) < 0 && nfrealsign(nf,t,i) < 0, next);\nif( DEBUGLEVEL_ell >= 2, print(\" not ELS at infinity\"));\nif( DEBUGLEVEL_ell >= 4, print(\" end of nflocallysoluble\"));\n return(0);\n ));\nif( DEBUGLEVEL_ell >= 2, print(\" quartic ELS \"));\nif( DEBUGLEVEL_ell >= 4, print(\" end of nflocallysoluble\"));\n return(1);\n}\n{nfellcount( nf, c, d, KS2gen, pointstriv) =\nlocal(found,listgen,listpointscount,m1,m2,lastloc,mask,i,d1,iaux,j,triv,pol,point,deuxpoints,aux,v);\n\nif( DEBUGLEVEL_ell >= 4, print(\" starting nfellcount \",[c,d]));\n found = 0;\n listgen = KS2gen;\n listpointscount = [];\n\n m1 = m2 = 0; lastloc = -1;\n\n mask = 1 << #KS2gen;\n i = 1;\n while( i < mask,\n d1 = 1; iaux = i; j = 1;\n while( iaux, \n if( iaux%2, d1 *= listgen[j]);\n iaux >>= 1; j++);\nif( DEBUGLEVEL_ell >= 2, print(\" d1 = \",d1));\n triv = 0;\n for( j = 1, #pointstriv,\n if( pointstriv[j][3]*pointstriv[j][1]\n && nfissquare(nf,d1*pointstriv[j][1]*pointstriv[j][3]),\n listpointscount = concat(listpointscount,[pointstriv[j]]);\nif( DEBUGLEVEL_ell >= 2, print(\" comes from a trivial point\"));\n triv = 1; m1++;\n if( degre(i) > lastloc, m2++);\n found = 1; lastloc = -1; break\n ));\n if( !triv,\n pol = Pol([d1,0,c,0,d/d1]);\nif( DEBUGLEVEL_ell >= 3, print(\" quartic: y^2 = \",pol));\n point = nfratpoint(nf,pol,LIM1,1);\n if( point != [],\nif( DEBUGLEVEL_ell >= 2, print(\" point on the quartic\"));\nif( DEBUGLEVEL_ell >= 3, print(\" \",point));\n m1++;\n if( point[3] != 0,\n aux = d1*point[1]/point[3]^2;\n deuxpoints = [ aux*point[1], aux*point[2]/point[3] ]\n ,\n deuxpoints = [0]);\n listpointscount = concat(listpointscount,[deuxpoints]);\n if( degre(i) > lastloc, m2++);\n found = 1; lastloc = -1\n ,\n if( nflocallysoluble(nf,pol),\n if( degre(i) > lastloc, m2++; lastloc = degre(i));\n point = nfratpoint(nf,pol,LIM3,1);\n if( point != [],\nif( DEBUGLEVEL_ell >= 2, print(\" point on the quartic\"));\nif( DEBUGLEVEL_ell >= 3, print(\" \",point));\n m1++;\n aux = d1*point[1]/point[3]^2;\n deuxpoints = [ aux*point[1], aux*point[2]/point[3] ];\n listpointscount = concat(listpointscount,[deuxpoints]);\n if( degre(i) > lastloc, m2++);\n found = 1; lastloc = -1\n ,\nif( DEBUGLEVEL_ell >= 2, print(\" no point found on the quartic\"));\n ))));\n if( found,\n found = 0;\n v = 0; iaux = (i>>1);\n while( iaux, iaux >>= 1; v++);\n mask >>= 1;\n listgen = vecextract(listgen,(1<<#listgen)-(1< 1,\n if( subst('x^3+c*'x^2+d*'x,'x,listpointscount[i][1])-listpointscount[i][2]^2 != 0,\n error(\"nfellcount: WRONG POINT = \",listpointscount[i]))));\nif( DEBUGLEVEL_ell >= 4, print(\" end of nfellcount\"));\n return([listpointscount,[m1,m2]]);\n}\n{bnfell2descent_viaisog( bnf, ell) =\n\\\\ Calcul du rang des courbes elliptiques avec 2-torsion\n\\\\ dans le corps de nombres bnf\n\\\\ par la methode des 2-isogenies.\n\\\\\n\\\\ ell = [a1,a2,a3,a4,a6]\n\\\\ y^2+a1xy+a3y=x^3+a2x^2+a4x+a6\n\\\\\n\\\\ ell doit etre sous la forme\n\\\\ y^2=x^3+ax^2+bx -> ell = [0,a,0,b,0]\n\\\\ avec a et b entiers.\nlocal(P,Pfact,tors,pointstriv,apinit,bpinit,plist,KS2prod,oddclass,KS2gen,listpoints,pointgen,n1,n2,certain,np1,np2,listpoints2,aux1,aux2,certainp,rang,strange);\n\nif( DEBUGLEVEL_ell >= 2, print(\" Algorithm of 2-descent via isogenies\"));\nif( DEBUGLEVEL_ell >= 3, print(\" starting bnfell2descent_viaisog\"));\n if( variable(bnf.pol) != 'y,\n error(\"bnfell2descent_viaisog: the variable of the number field must be y\"));\n ell = ellinit(Mod(lift(ell),bnf.pol));\n\n if( ell.disc == 0,\n error(\"bnfell2descent_viaisog: singular curve !!\"));\n if( ell.a1 != 0 || ell.a3 != 0 || ell.a6 != 0,\n error(\"bnfell2descent_viaisog: curve not of the form [0,a,0,b,0]\"));\n if( denominator(nfalgtobasis(bnf,ell.a2)) > 1 || denominator(nfalgtobasis(bnf,ell.a4)) > 1,\n error(\"bnfell2descent_viaisog: non integral coefficients\"));\n\n P = Pol([1,ell.a2,ell.a4])*Mod(1,bnf.pol);\n Pfact = factornf(P,bnf.pol)[,1];\n tors = #Pfact;\n if( #Pfact > 1,\n pointstriv = [[0,0,1],[-polcoeff(Pfact[1],0),0,1],[-polcoeff(Pfact[2],0),0,1]]\n , pointstriv = [[0,0,1]]);\n\n apinit = -2*ell.a2; bpinit = ell.a2^2-4*ell.a4;\n\n\\\\ calcul des ideaux premiers de plist\n\\\\ et de quelques renseignements associes\n plist = idealfactor(bnf,6*ell.disc)[,1];\n\nif( DEBUGLEVEL_ell >= 3, print(\" Search for trivial points on the curve\"));\n P *= 'x;\nif( DEBUGLEVEL_ell >= 3, print(\" Y^2 = \",P));\n pointstriv = concat( pointstriv, nfratpoint(bnf.nf,P,LIMTRIV,0));\nif( DEBUGLEVEL_ell >= 1, print(\" trivial points on E(K) = \");\n print(lift(pointstriv)); print());\n\n KS2prod = ell.a4;\n oddclass = 0;\n while( !oddclass,\n KS2gen = bnfsunit(bnf,idealfactor(bnf,KS2prod)[,1]~);\n oddclass = KS2gen[5][1]%2;\n if( !oddclass,\n KS2prod = idealmul(bnf,KS2prod,(KS2gen[5][3][1])));\n );\n KS2gen = KS2gen[1];\n for( i = 1, #KS2gen,\n KS2gen[i] = nfbasistoalg(bnf, KS2gen[i]));\n KS2gen = concat(Mod(lift(concat(bnf.tu[2], bnf.fu)),bnf.pol),KS2gen);\nif( DEBUGLEVEL_ell >= 2,\n print(\" #K(b,2)gen = \",#KS2gen);\n print(\" K(b,2)gen = \",KS2gen));\n\n listpoints = nfellcount(bnf.nf,ell.a2,ell.a4,KS2gen,pointstriv);\n pointgen = listpoints[1];\nif( DEBUGLEVEL_ell >= 1,\n print(\" points on E(K) = \",lift(pointgen));\n print());\n n1 = listpoints[2][1]; n2 = listpoints[2][2];\n\n certain = (n1 == n2);\nif( DEBUGLEVEL_ell >= 1,\n if( certain,\n print(\"[E(K):phi'(E'(K))] = \",1<= \",1<= 2,\n print(\" #K(a^2-4b,2)gen = \",#KS2gen);\n print(\" K(a^2-4b,2)gen = \",KS2gen));\n\n P = Pol([1,apinit,bpinit])*Mod(1,bnf.pol);\n Pfact= factornf(P,bnf.pol)[,1];\n if( #Pfact > 1,\n pointstriv=[[0,0,1],[-polcoeff(Pfact[1],0),0,1],[-polcoeff(Pfact[2],0),0,1]]\n , pointstriv = [[0,0,1]]);\n\nif( DEBUGLEVEL_ell >= 3, print(\" Search for trivial points on the curve\"));\n P *= 'x;\nif( DEBUGLEVEL_ell >= 3, print(\" Y^2 = \",P));\n pointstriv = concat( pointstriv, nfratpoint(bnf.nf,P,LIMTRIV,0));\nif( DEBUGLEVEL_ell >= 1, print(\" trivial points on E'(K) = \");\n print(lift(pointstriv)); print());\n\n listpoints = nfellcount(bnf.nf,apinit,bpinit,KS2gen,pointstriv);\nif( DEBUGLEVEL_ell >= 1, print(\" points on E'(K) = \",lift(listpoints[1])));\n np1 = listpoints[2][1]; np2 = listpoints[2][2];\n listpoints2 = vector(#listpoints[1],i,0);\n for( i = 1, #listpoints[1],\n listpoints2[i] = [0,0];\n aux1 = listpoints[1][i][1]^2;\n if( aux1 != 0,\n aux2 = listpoints[1][i][2];\n listpoints2[i][1] = aux2^2/aux1/4;\n listpoints2[i][2] = aux2*(bpinit-aux1)/aux1/8\n , listpoints2[i] = listpoints[1][i]));\nif( DEBUGLEVEL_ell >= 1, print(\" points on E(K) = \",lift(listpoints2)); print());\n pointgen = concat(pointgen,listpoints2);\n\n certainp = (np1 == np2);\nif( DEBUGLEVEL_ell >= 1,\n if( certainp,\n print(\"[E'(K):phi(E(K))] = \",1<= \",1<np1), print1(1<<(np2-np1),\" <= \"));\n print1(\"#III(E/K)[2] \");\n if( certain && certainp, print1(\" \"), print1(\"<\"));\n print(\"= \",1<<(n2+np2-n1-np1));\n\n print(\"#E(K)[2] = \",1<= 1,\n if( certain && certainp,\n print(\"#E(K)/2E(K) = \",(1<<(rang+tors)));\n print(\"rank = \",rang); print()\n ,\n print(\"#E(K)/2E(K) >= \",(1<<(rang+tors))); print();\n print(rang,\" <= rank <= \",n2+np2-2); print()\n ));\n\n strange = (n2+np2-n1-np1)%2;\n if( strange,\nif( DEBUGLEVEL_ell >= 1,\n print(\" !!! III should be a square !!!\"); print(\"hence\"));\n if( certain,\n np1++;\n certainp = (np1 == np2);\nif( DEBUGLEVEL_ell >= 1,\n if( certainp,\n print(\"[E'(K):phi(E(K))] = \",1<= \",1<= 1,\n if( certain,\n print(\"[E(K):phi'(E'(K))] = \",1<= \",1<= 1,\n if( !certain && (np2>np1), print1(1<<(np2-np1),\" <= \"));\n print1(\"#III(E/K)[2] \");\n if( certain && certainp, print1(\" \"), print1(\"<\"));\n print(\"= \",1<<(n2+np2-n1-np1));\n print(\"#E(K)[2] = \",1<= 1,\n if( certain && certainp,\n print(\"#E(K)/2E(K) = \",(1<<(rang+tors))); print();\n print(\"rank = \",rang); print()\n ,\n print(\"#E(K)/2E(K) >= \",(1<<(rang+tors))); print();\n print(rang,\" <= rank <= \",n2+np2-2); print())\n ));\n\n\\\\ end of strange\n\nif( DEBUGLEVEL_ell >= 1, print(\" points = \",pointgen));\nif( DEBUGLEVEL_ell >= 3, print(\" end of bnfell2descent_viaisog\"));\n return([rang,n2+np2-2+tors,pointgen]);\n}\n{nfchinese( nf, b, fact) =\n\\\\ Chinese Remainder Theorem\nlocal(l,fact2);\n\nif( DEBUGLEVEL_ell >= 4, print(\" starting nfchinese\"));\n l = #fact[,1];\n fact2 = vector(l,i,idealdiv(nf,b,idealpow(nf,fact[i,1],fact[i,2])));\n fact2 = idealaddtoone(nf,fact2);\n for( i = 1, l,\n fact2[i] = nfbasistoalg(nf,fact2[i]));\nif( DEBUGLEVEL_ell >= 4, print(\" end of nfchinese\"));\n return(fact2);\n}\n{bnfqfsolve2(bnf, aleg, bleg, aut=['y]) =\n\\\\ Solves Legendre Equation x^2-aleg*Y^2=bleg*Z^2\n\\\\ Using quadratic norm equations\n\\\\ aut contains the Galois automorphisms of bnf ( as polynomials in y)\n\\\\ with aut[1] = y.\nlocal(aux,solvepolrel,auxsolve,solvepolabs,exprxy,rrrnf,bbbnf,SL0,SL1,SL,sunL,fondsunL,normfondsunL,SK,sunK,fondsunK,vecbleg,matnorm,matnormmod,expsolution,solution,reste,carre,verif,x0,x1);\n\nif( DEBUGLEVEL_ell >= 3, print(\" starting bnfqfsolve2\"));\n solvepolrel = 'x^2-aleg;\nif( DEBUGLEVEL_ell >= 4, print(\" aleg = \",aleg));\nif( DEBUGLEVEL_ell >= 4, print(\" bleg = \",bleg));\n\n if( nfissquare(bnf,aleg),\nif( DEBUGLEVEL_ell >= 4, print(\" aleg is a square !!\"));\n aleg = nfsqrt(bnf,aleg)[1];\n return([aleg,1,0]~)\n );\n\n if( #aut > 1,\nif( DEBUGLEVEL_ell >= 4, print(\" factorization of the discriminant using the automorphisms of bnf\"));\n for( i = 2, #aut,\n aux = abs(polresultant(lift(aleg)-subst(lift(aleg),'y,aut[i]),bnf.pol));\n if( aux, addprimes(factor(aux)[,1]))));\n\n auxsolve = rnfequation(bnf,solvepolrel,1);\n solvepolabs = auxsolve[1];\n exprxy = auxsolve[2];\n if( auxsolve[3],\nif( DEBUGLEVEL_ell >= 5, print(\" case with auxsolve[3] != 0\")));\nif( DEBUGLEVEL_ell >= 4, print(\" bbbnfinit \",solvepolabs));\n rrrnf = rnfinit(bnf,solvepolrel);\n bbbnf = bnfinit(solvepolabs,1);\nif( DEBUGLEVEL_ell >= 4, print(\" done\"));\n SL0 = 1;\nif( DEBUGLEVEL_ell >= 4, print(\" bbbnf.clgp = \",bbbnf.clgp));\n for( i = 1, #bbbnf.clgp[2],\n if( bbbnf.clgp[2][i]%2 == 0,\n SL0 = idealmul(bbbnf,SL0,bbbnf.clgp[3][i][1,1])));\n SL1 = idealmul(bbbnf,SL0,rnfeltup(rrrnf,bleg));\n SL = idealfactor(bbbnf,SL1)[,1]~;\n sunL = bnfsunit(bbbnf,SL);\n fondsunL = concat(concat(bbbnf.fu, bbbnf.tu[2]),vector(#sunL[1],i,nfbasistoalg(bbbnf,sunL[1][i])));\n normfondsunL = vector(#fondsunL, i, norm(rnfeltabstorel(rrrnf,fondsunL[i])));\n SK = idealfactor(bnf,idealnorm(bbbnf,SL1))[,1]~;\n sunK = bnfsunit(bnf,SK);\n fondsunK = concat(concat(bnf.fu, bnf.tu[2]),vector(#sunK[1],i,nfbasistoalg(bnf,sunK[1][i])));\n vecbleg = bnfissunit(bnf,sunK,bleg);\n matnorm = matrix(#fondsunK,#normfondsunL,i,j,0);\n for( i = 1, #normfondsunL,\n matnorm[,i] = lift(bnfissunit( bnf,sunK,normfondsunL[i] )));\n matnormmod = matnorm*Mod(1,2);\n expsolution = lift(matinverseimage( matnormmod, vecbleg*Mod(1,2)));\n if( !length(expsolution), error(\"bnfqfsolve2 : NO SOLUTION !! \"));\n solution = prod( i = 1, #expsolution, fondsunL[i]^expsolution[i]);\n solution = rnfeltabstorel(rrrnf,solution);\n reste = (lift(vecbleg) - matnorm*expsolution)/2;\n carre = prod( i = 1, #vecbleg, fondsunK[i]^reste[i]);\n solution *= carre;\n x1 = polcoeff(lift(solution),1,'x);\n x0 = polcoeff(lift(solution),0,'x);\n verif = x0^2 - aleg*x1^2-bleg;\nif( verif, error(\"bnfqfsolve2: WRONG POINT\"));\nif( DEBUGLEVEL_ell >= 3, print(\" end of bnfqfsolve2\"));\n return([x0,x1,1]~);\n}\n{bnfqfsolve(bnf, aleg, bleg, flag3, aut=['y]) =\n\\\\ cette fonction resout l'equation X^2-aleg*Y^2=bleg*Z^2\n\\\\ dans le corps de nombres nf.\n\\\\ la solution est [X,Y,Z],\n\\\\ [0,0,0] sinon.\nlocal(nf,aa,bb,na,nb,maxnb,mat,resl,t,sq,pol,vecrat,alpha,xx,yy,borne,test,sun,fact,suni,f,l,aux,alpha2,maxnbiter,idbb,rem,nbiter,mask,oldnb,newnb,bor,testici,de,xxp,yyp,rap,verif);\n\nif( DEBUGLEVEL_ell >= 5, print(\" starting bnfqfsolve\"));\nif( DEBUGLEVEL_ell >= 3, print(\" (a,b) = (\",aleg,\",\",bleg,\")\"));\n nf = bnf.nf;\n aleg = Mod(lift(aleg),nf.pol); aa = aleg;\n bleg = Mod(lift(bleg),nf.pol); bb = bleg;\n\n if( aa == 0, \nif( DEBUGLEVEL_ell >= 5, print(\" end of bnfqfsolve\"));\n return([0,1,0]~));\n if( bb == 0,\nif( DEBUGLEVEL_ell >= 5, print(\" end of bnfqfsolve\"));\n return([0,0,1]~));\n\n na = abs(norm(aa)); nb = abs(norm(bb));\n if( na > nb, maxnb = na, maxnb = nb);\n maxnb <<= 20;\n mat = Mod(matid(3),nf.pol); borne = 1;\n test = 0; nbiter = 0;\n\n while( 1,\n if( flag3 && bnf.clgp[1]>1, resl = bnfqfsolve2(bnf,aa,bb,aut); break);\nif( DEBUGLEVEL_ell >= 4, print(\" (na,nb,a,b) = \",lift([na,nb,aa,bb,norm(aa),norm(bb)])));\nif( DEBUGLEVEL_ell >= 5, print(\" ***\",nb,\"*** \"));\n if( nb >= maxnb, \n mat = Mod(matid(3),nf.pol);\n aa = aleg; bb = bleg; na = abs(norm(aleg)); nb = abs(norm(bleg)));\n if( aa == 1, resl = [1,1,0]~; break);\n if( bb == 1, resl = [1,0,1]~; break);\n if( aa+bb == 1, resl = [1,1,1]~; break);\n if( aa+bb == 0, resl = [0,1,1]~; break);\n if( aa == bb && aa != 1,\n t = aa*mat[,1];\n mat[,1] = mat[,3]; mat[,3] = t;\n aa = -1; na = 1);\n if( issquare(na),\n sq = nfsqrt(nf,aa);\n if( sq != [], resl = [sq[1],1,0]~; break));\n if( issquare(nb),\n sq = nfsqrt(nf,bb);\n if( sq != [], resl = [sq[1],0,1]~; break));\n if( na > nb,\n t = aa; aa = bb; bb = t;\n t = na; na = nb; nb = t;\n t = mat[,3]; mat[,3] = mat[,2]; mat[,2] = t);\n if( nb == 1,\nif( DEBUGLEVEL_ell >= 4, print(\" (a,b) = \",lift([aa,bb])));\nif( DEBUGLEVEL_ell >= 4, print(\" (na,nb) = \",lift([na,nb])));\n if( aleg == aa && bleg == bb, mat = Mod(matid(3),nf.pol));\n if( flag3, resl = bnfqfsolve2(bnf,aa,bb,aut); break);\n pol = aa*'x^2+bb; \n vecrat = nfratpoint(nf,pol,borne++,1);\n if( vecrat != 0, resl=[vecrat[2],vecrat[1],vecrat[3]]~; break);\n\n alpha = 0;\nif( DEBUGLEVEL_ell >= 4, print(\" bound = \",borne));\n while( alpha==0,\n xx = nfrandint(nf,borne); yy = nfrandint(nf,borne);\n borne++; \n alpha = xx^2-aa*yy^2 );\n bb *= alpha; nb *= abs(norm(alpha));\n t = xx*mat[,1]+yy*mat[,2];\n mat[,2] = xx*mat[,2]+aa*yy*mat[,1];\n mat[,1] = t;\n mat[,3] *= alpha\n ,\n test = 1;\nif( DEBUGLEVEL_ell >= 4, print(\"on factorise bb = \",bb));\n sun = bnfsunit(bnf,idealfactor(bnf,bb)[,1]~);\n fact = lift(bnfissunit(bnf,sun,bb));\nif( DEBUGLEVEL_ell >= 4, print(\"fact = \",fact));\n suni = concat(concat(bnf.fu, bnf.tu[2]),vector(#sun[1],i,nfbasistoalg(bnf,sun[1][i])));\n for( i = 1, #suni,\n if( (f = fact[i]>>1), \n test =0;\n for( k = 1, 3, mat[k,3] /= suni[i]^f);\n nb /= abs(norm(suni[i]))^(2*f);\n bb /= suni[i]^(2*f)));\nif( DEBUGLEVEL_ell >= 4, print(\" factorization of bb = \",bb));\n fact = idealfactor(nf,bb);\nif( DEBUGLEVEL_ell >= 4, print(\" fact = \",fact));\n l = #fact[,1];\n\n if( test,\n aux = 1;\n for( i = 1, l,\n if( (f = fact[i,2]>>1) &&\n !(fact[i,1][1]%2) && !nfissquaremodpodd(nf,aa,fact[i,1]),\n aux=idealmul(nf,aux,idealpow(nf,fact[i,1],f))));\n if( aux != 1,\n test = 0;\n alpha = nfbasistoalg(nf,idealappr(nf,idealinv(nf,aux)));\n alpha2 = alpha^2;\n bb *= alpha2; nb *= abs(norm(alpha2));\n mat[,3] *= alpha));\n if( test,\n maxnbiter = 1<= 4,\n print(\" sq = \",sq);\n print(\" fact = \",fact);\n print(\" l = \",l));\n if( l > 1, \n idbb = idealhnf(nf,bb);\n rem = nfchinese(nf,idbb,fact));\n test = 1; nbiter = 1;\n while( test && nbiter <= maxnbiter,\n if( l > 1,\n mask = nbiter; xx = 0;\n for( i = 1, l,\n if( mask%2, xx += rem[i]*sq[i], xx -= rem[i]*sq[i] ); mask >>= 1)\n , \n test = 0; xx = sq[1]);\n xx = mynfeltmod(nf,xx,bb);\n alpha = xx^2-aa;\n if( alpha == 0, resl=[xx,1,0]~; break(2));\n t = alpha/bb;\nif( DEBUGLEVEL_ell >= 4, print(\" [alpha,bb] = \",[alpha,bb]));\n oldnb = nb;\n newnb = abs(norm(t));\nif( DEBUGLEVEL_ell >= 4, print(\" [oldnb,newnb,oldnb/newnb] = \",[oldnb,newnb,oldnb/newnb+0.]));\n while( nb > newnb,\n mat[,3] *= t;\n bb = t; nb = newnb;\n t = xx*mat[,1]+mat[,2];\n mat[,2] = aa*mat[,1] + xx*mat[,2];\n mat[,1] = t;\n xx = mynfeltmod(nf,-xx,bb);\n alpha = xx^2-aa;\n t = alpha/bb;\n newnb = abs(norm(t));\n );\n if( nb == oldnb, nbiter++, test = 0);\n );\n if( nb == oldnb,\n if( flag3, resl = bnfqfsolve2(bnf,aa,bb,aut); break);\n pol = aa*'x^2+bb;\n vecrat =nfratpoint(nf,pol,borne++<<1,1);\n if( vecrat != 0, resl = [vecrat[2],vecrat[1],vecrat[3]]~; break);\n\n bor = 1000; yy = 1; testici = 1;\n for( i = 1, 10000, de = nfbasistoalg(nf,vectorv(poldegree(nf.pol),j,random(bor)));\n if( idealadd(bnf,de,bb) != matid(poldegree(bnf.pol)),next);\n xxp = mynfeltmod(bnf,de*xx,bb); yyp = mynfeltmod(bnf,de*yy,bb);\n rap = (norm(xxp^2-aa*yyp^2)/nb^2+0.);\n if( abs(rap) < 1,\nif( DEBUGLEVEL_ell >= 4, print(\" ********** \\n \\n MIRACLE \",rap,\" \\n \\n ***\"));\n t = (xxp^2-aa*yyp^2)/bb;\n mat[,3] *= t;\n bb = t; nb = abs(norm(bb));\nif( DEBUGLEVEL_ell >= 4, print(\" newnb = \",nb));\n t = xxp*mat[,1]+yyp*mat[,2];\n mat[,2] = aa*yyp*mat[,1] + xxp*mat[,2];\n mat[,1] = t;\n xx = xxp; yy = -yyp; testici = 0;\n ));\n\n if( testici, \n alpha = 0;\n while( alpha == 0,\n xx = nfrandint(nf,4*borne); yy = nfrandint(nf,4*borne);\n borne++;\n alpha = xx^2-aa*yy^2);\n bb *= alpha; nb *= abs(norm(alpha));\n t = xx*mat[,1] + yy*mat[,2];\n mat[,2] = xx*mat[,2]+aa*yy*mat[,1];\n mat[,1] = t;\n mat[,3] *= alpha;)))));\n resl = lift(mat*resl);\nif( DEBUGLEVEL_ell >= 5, print(\" resl1 = \",resl));\nif( DEBUGLEVEL_ell >= 5, print(\" content = \",content(resl)));\n resl /= content(resl);\n resl = Mod(lift(resl),nf.pol);\nif( DEBUGLEVEL_ell >=5, print(\" resl3 = \",resl));\n fact = idealadd(nf,idealadd(nf,resl[1],resl[2]),resl[3]);\n fact = bnfisprincipal(bnf,fact,3);\n resl *=1/nfbasistoalg(nf,fact[2]);\nif( DEBUGLEVEL_ell >= 5, print(\" resl4 = \",resl));\nif( DEBUGLEVEL_ell >= 3, print(\" resl = \",resl));\n verif = (resl[1]^2-aleg*resl[2]^2-bleg*resl[3]^2 == 0);\n if( !verif, error(\"bnfqfsolve: WRONG POINT\"));\nif( DEBUGLEVEL_ell >= 3, print(\" end of bnfqfsolve\"));\n return(resl);\n}\n{bnfredquartique( bnf, pol, r,a,b) =\n\\\\ reduction d'une quartique issue de la 2-descente\n\\\\ en connaissant les valeurs de r, a et b. \nlocal(gcc,princ,rp,pol2);\n\nif( DEBUGLEVEL_ell >= 4, print(\" starting bnfredquartique\"));\nif( DEBUGLEVEL_ell >= 4, print(\" \",[r,a,b]));\nif( DEBUGLEVEL_ell >= 3, print(\" reduction of the quartic \",pol));\n\n if( a == 0,\n rp = 0\n ,\n gcc = idealadd(bnf,b,a);\n if( gcc == 1,\n rp = nfbasistoalg(bnf,idealaddtoone(bnf.nf,a,b)[1])/a;\n rp = mynfeltmod(bnf,r*rp,b)\n ,\n princ = bnfisprincipal(bnf,gcc,3);\n if( princ[1] == 0, gcc = nfbasistoalg(bnf,princ[2])\n ,\nif( DEBUGLEVEL_ell >= 3, print(\" quartic not reduced\"));\nif( DEBUGLEVEL_ell >= 4, print(\" end of bnfredquartique\"));\n return([pol,0,1]));\n rp = nfbasistoalg(bnf,idealaddtoone(bnf.nf,a/gcc,b/gcc)[1])/(a/gcc);\n rp = mynfeltmod(bnf,r*rp,b)/gcc;\n b /= gcc;\n )\n );\n pol2 = subst(pol/b,'x,rp+b*'x)/b^3;\nif( DEBUGLEVEL_ell >= 3, print(\" quartic reduced: \",pol2));\nif( DEBUGLEVEL_ell >= 4, print(\" end of bnfredquartique\"));\n return([pol2,rp,b]);\n}\n{bnfell2descent_gen( bnf, ell, ext, help=[], bigflag=1, flag3=1, aut=['y]) =\n\\\\ bnf a un polynome en y.\n\\\\ si ell= y^2=P(x), alors ext est\n\\\\ ext[1] est une equation relative du corps (=P(x)),\n\\\\ ext[2] est le resultat rnfequation(bnf,P,1);\n\\\\ ext[3] est le bnfinit (sur Q) de l'extension.\n\\\\ dans la suite ext est note L = K(theta).\n\\\\ help est une liste de points deja connus sur ell.\n\\\\ si bigflag !=0 alors on applique bnfredquartique.\n\\\\ si flag3 ==1 alors on utilise bnfqfsolve2 (equation aux normes) pour resoudre Legendre\n\\\\ aut est une liste d'automorphismes connus de bnf\n\\\\ (ca peut aider a factoriser certains discriminants).\n\\\\ ell est de la forme y^2=x^3+A*x^2+B*x+C\n\\\\ ie ell=[0,A,0,B,C], avec A,B et C entiers.\n\\\\\nlocal(nf,unnf,ellnf,A,B,C,S,plist,Lrnf,SLprod,LS2,LS2gen,polrel,alpha,ttheta,KS2gen,normLS2,normcoord,LS2coordtilda,LS2tilda,aux,listgen,listpointstriv,listpoints,m1,m2,loc,lastloc,maskwhile,iwhile,zc,iaux,liftzc,ispointtriv,point,c,b,a,found,alphac,r,denc,dena,cp,alphacp,beta,mattr,vec,z1,cont,d,e,polorig,pol,redq,transl,multip,UVW,pointxx,point2,rang,listELS,listnotELS);\n\nif( DEBUGLEVEL_ell >= 4, print(\" starting bnfell2descent_gen\"));\n\n nf = bnf.nf;\n unnf = Mod(1,nf.pol);\n ellnf = ell*unnf;\n if( #ellnf <= 5, ellnf = ellinit(ellnf));\n\n A = ellnf.a2; if( DEBUGLEVEL_ell >= 2, print(\" A = \",A));\n B = ellnf.a4; if( DEBUGLEVEL_ell >= 2, print(\" B = \",B));\n C = ellnf.a6; if( DEBUGLEVEL_ell >= 2, print(\" C = \",C));\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ Construction of L(S,2) \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\nif( DEBUGLEVEL_ell >= 2, print(); print(\" Computing L(S,2)\"));\n\n polrel = ext[1];\n alpha = Mod(Mod('y,nf.pol),polrel); \\\\ alpha est l'element primitif de K\n ttheta = Mod('x,polrel); \\\\ ttheta est la racine de P(x)\n\n S = 6*lift(ellnf.disc);\n plist = idealfactor(nf,S)[,1];\n Lrnf = ext[3];\n SLprod = subst(lift(polrel'),'y,lift(ext[2][2]));\nif( DEBUGLEVEL_ell >= 3, print(\" \",ext[2]));\n\n while( 1,\n\\\\ Construction des S-unites\n LS2gen = bnfsunit(Lrnf, idealfactor(Lrnf,SLprod)[,1]~);\nif( DEBUGLEVEL_ell >= 4, print(\" LS2gen = \",LS2gen));\n\\\\ si le groupe de classes est impair, on a fini.\n if( LS2gen[5][1]%2, break);\nif( DEBUGLEVEL_ell >= 3, print(\" 2-class group \",LS2gen[5][3][1][1,1]));\n S *= LS2gen[5][3][1][1,1];\n SLprod = idealmul(Lrnf,SLprod,(LS2gen[5][3][1]));\n );\n\n KS2gen = bnfsunit(bnf,idealfactor(nf,S)[,1]~);\n \nif( DEBUGLEVEL_ell >= 3, print(\" #KS2gen = \",#KS2gen[1]));\nif( DEBUGLEVEL_ell >= 3, print(\" KS2gen = \",KS2gen[1]));\n\n LS2gen = LS2gen[1];\n LS2 = vector(#LS2gen,i,lift(nfbasistoalg(Lrnf,LS2gen[i])));\n LS2 = concat(lift(concat(Lrnf.fu, Lrnf.tu[2])),LS2);\n\n LS2 = subst(LS2,'x,ttheta);\n LS2 = LS2*Mod(1,polrel);\nif( DEBUGLEVEL_ell >= 3, print(\" #LS2 = \",#LS2));\nif( DEBUGLEVEL_ell >= 3, print(\" LS2 = \",LS2));\n\nif( DEBUGLEVEL_ell >= 2, print(\" L(S,2) = \",LS2));\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ Construction of the Selmer group \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\nif( DEBUGLEVEL_ell >= 2, print(); print(\" Computing the Selmer group\"));\n\n\\\\ dans LS2gen, on ne garde que ceux dont la norme est un carre.\n\n normLS2 = norm(LS2);\nif( DEBUGLEVEL_ell >= 4, print(\" normLS2 = \",normLS2));\n\n\\\\ matrice de l'application norme\n\n normcoord = matrix(#KS2gen[1]+#bnf[8][5]+1,#normLS2,i,j,0);\n for( i = 1, #normLS2,\n normcoord[,i] = bnfissunit(bnf,KS2gen,normLS2[i]));\nif( DEBUGLEVEL_ell >= 4, print(\" normcoord = \",normcoord));\n\n\\\\ construction du noyau de la norme\n\n LS2coordtilda = lift(matker(normcoord*Mod(1,2)));\nif( DEBUGLEVEL_ell >= 4, print(\" LS2coordtilda = \",LS2coordtilda));\n LS2tilda = vector(#LS2coordtilda[1,],i,0);\n for( i = 1, #LS2coordtilda[1,],\n aux = 1;\n for( j = 1, #LS2coordtilda[,i],\n if( sign(LS2coordtilda[j,i]),\n aux *= LS2[j]));\n LS2tilda[i] = aux;\n );\n\nif( DEBUGLEVEL_ell >= 3, print(\" LS2tilda = \",LS2tilda));\nif( DEBUGLEVEL_ell >= 3, print(\" norm(LS2tilda) = \",norm(LS2tilda)));\n\n\\\\ Fin de la construction de L(S,2)\n\n listgen = LS2tilda;\nif( DEBUGLEVEL_ell >= 2, print(\" #LS2gen = \",#listgen));\nif( DEBUGLEVEL_ell >= 2, print(\" LS2gen = \",listgen));\n\nif( DEBUGLEVEL_ell >= 3, print(\" (A,B,C) = \",[A,B,C]));\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ Recherche de points triviaux \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\nif( DEBUGLEVEL_ell >= 2, print(\" Search for trivial points on the curve\"));\n listpointstriv = nfratpoint(nf,'x^3+A*'x^2+B*'x+C,LIMTRIV,0);\n listpointstriv = concat(help,listpointstriv);\nif( DEBUGLEVEL_ell >= 1, print(\" Trivial points on the curve = \",listpointstriv));\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ parcours de L(S,2) \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n listpoints = [];\n m1 = 0; m2 = 0; lastloc = -1;\n maskwhile = 1<<#listgen;\n listELS = [0]; listnotELS = [];\n iwhile = 1;\n\n while( iwhile < maskwhile,\nif( DEBUGLEVEL_ell >= 4,\n print(\" iwhile = \",iwhile);\n print(\" listgen = \",listgen)\n);\n\n\\\\ utilise la structure de groupe pour detecter une eventuelle solubilite locale.\n loc = 0;\n for( i = 1, #listELS,\n for( j = 1, #listnotELS,\n if( bitxor(listELS[i],listnotELS[j]) == iwhile,\nif( DEBUGLEVEL_ell >= 3, print(\" Not ELS from group structure\"));\n listnotELS = concat(listnotELS,[iwhile]);\n iwhile++;\n next(3)\n )));\n\n for( i = 1, #listELS,\n for( j = i+1, #listELS,\n if( bitxor(listELS[i],listELS[j]) == iwhile,\nif( DEBUGLEVEL_ell >= 3, print(\" ELS from group structure\"));\n listELS = concat(listELS,[iwhile]);\n loc = 1;\n break(2)\n )));\n\n iaux = vectorv(#listgen,i,bittest(iwhile,i-1));\n iaux = (LS2coordtilda*iaux)%2;\n zc = unnf*prod( i = 1, #LS2, LS2[i]^iaux[i]);\n\nif( DEBUGLEVEL_ell >= 2, print(\" zc = \",zc));\n liftzc = lift(zc);\n\n\\\\ Est-ce un point trivial ?\n found = 0;\n ispointtriv = 0;\n for( i = 1, #listpointstriv,\n point = listpointstriv[i];\n if( #point == 2 || point[3] != 0,\n if( nfissquare(Lrnf.nf,subst((lift(point[1])-'x)*lift(liftzc),'y,lift(ext[2][2]))),\nif( DEBUGLEVEL_ell >= 2, print(\" comes from the trivial point \",point));\n listpoints = concat(listpoints,[point]);\n found = 1; ispointtriv = 1; break\n )));\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ On cherche a ecrire zc sous la forme a-b*theta\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\n\n if( !found, \\\\ si ce n'est pas un point trivial\n a = polcoeff(liftzc,0);\n b =-polcoeff(liftzc,1);\n c = polcoeff(liftzc,2);\n\n if( c != 0,\n alphac = (A*b+B*c-a)*c+b^2;\nif( DEBUGLEVEL_ell >= 3, print(\" alphac = \",alphac));\n r = nfsqrt(nf,norm(zc))[1];\n if( alphac == 0,\n\\\\ cas particulier\nif( DEBUGLEVEL_ell >= 3, print(\" continuing with 1/zc\"));\n zc = norm(zc)*(1/zc);\nif( DEBUGLEVEL_ell >= 2, print(\" zc = \",zc))\n ,\n\\\\ Il faut resoudre une forme quadratique\n\\\\ Existence (locale = globale) d'une solution :\n denc = deno(lift(c));\n if( denc != 1, cp = c*denc^2, cp = c);\n dena = deno(lift(alphac));\n if( dena != 1, alphacp = alphac*dena^2, alphacp = alphac);\nif( DEBUGLEVEL_ell >= 2, print(\" Hilbert symbol (\",alphacp,\",\",cp,\") = \"));\n if( !loc && mynfhilbert(nf, alphacp,cp) < 0,\nif( DEBUGLEVEL_ell >= 3, print(\" no local solution\"));\n listnotELS = concat(listnotELS,[iwhile]);\n iwhile++;\n next\n );\n\\\\ Ici on a l'existence locale\n beta = A*(A*b*c+B*c^2+b^2)-C*c^2+a*b;\n mattr = matid(3);\n mattr[1,1] = c ;mattr[2,2] = alphac ;\n mattr[3,3] = r ;mattr[2,3] = -beta;\n mattr[1,2] = -(b +A*c) ;mattr[1,3] = a-B*c+A*(A*c+b);\nif( DEBUGLEVEL_ell >= 2, print1(\" sol of quadratic equation = \"));\n vec = bnfqfsolve(bnf,alphacp,cp,flag3,aut);\nif( DEBUGLEVEL_ell >= 2, print(lift(vec)));\n aux = vec[2]*dena;\n vec[2] = vec[1];vec[1] = aux;\n vec[3] = vec[3]*denc;\n vec = (mattr^(-1))*vec;\n vec /= content(lift(vec));\n z1 = (vec[3]*ttheta+vec[2])*ttheta+vec[1];\nif( DEBUGLEVEL_ell >= 3, print(\" z1 = \",z1));\n zc *= z1^2;\nif( DEBUGLEVEL_ell >= 2, print(\" zc*z1^2 = \",zc));\n )\n )\n );\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\n\\\\ Maintenant zc est de la forme a-b*theta\n\\\\ \\\\\\\\\\\\\\\\\\\\\n\n if( !found,\n\nif( DEBUGLEVEL_ell >= 3, print(\" zc = \",zc));\n liftzc = lift(zc);\n a = polcoeff(liftzc,0);\n b =-polcoeff(liftzc,1);\n c = polcoeff(liftzc,2);\nif( c, error(\"bnfell2descent_gen : c <> 0\"));\n\n\\\\ remove denominators and try to simplify zc\n cont = idealadd(nf,a,b);\n if( cont != 1,\n cont = idealfactor(nf,cont);\n cont[,2] \\= 2;\n aux = 1;\n for( i = 1, #cont[,1],\n\\\\ *****************************************************************\n\\\\ aux = idealmul(nf,aux,idealpow(nf,cont[i,1],cont[i,2]))\n aux = idealmul(nf,aux,idealpow(nf,idealhnf(nf,cont[i,1]),cont[i,2]))\n\\\\ *****************************************************************\n );\n cont = nfbasistoalg(nf,bnfisprincipal(bnf,aux)[2])^2;\n a /= cont;\n b /= cont;\n zc/= cont;\n liftzc = lift(zc);\nif( DEBUGLEVEL_ell >= 3, print(\" new zc = \",zc));\n );\n\n if( nfissquare(nf,b),\nif( DEBUGLEVEL_ell >= 3, print(\" b is a square\"));\n point = [a/b,nfsqrt(nf,(a/b)^3+A*(a/b)^2+B*(a/b)+C)[1]];\nif( DEBUGLEVEL_ell >= 2, print(\" point found = \",point));\n listpoints = concat(listpoints,[point]);\n found = 1; ispointtriv = 1\n )\n );\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\n\\\\ Construction de la quartique \n\\\\ \\\\\\\\\\\\\\\\\\\\\\\n\n if( !found, \\\\ si ce n'est pas un point trivial\n r = nfsqrt(nf,norm(zc))[1];\nif( DEBUGLEVEL_ell >= 4, print(\" r = \",r));\n c = -2*(A*b+3*a);\nif( DEBUGLEVEL_ell >= 4, print(\" c = \",c));\n d = 8*r;\nif( DEBUGLEVEL_ell >= 4, print(\" d = \",d));\n e = (A^2*b^2 - 2*A*a*b-4*B*b^2-3*a^2);\nif( DEBUGLEVEL_ell >= 4, print(\" e = \",e));\n polorig = b*('x^4+c*'x^2+d*'x+e)*unnf;\nif( DEBUGLEVEL_ell >= 2, print(\" quartic: (\",lift(b),\")*Y^2 = \",lift(polorig/b)));\n pol = polorig;\n if( bigflag,\n redq = bnfredquartique(bnf,pol,r,a,b);\nif( DEBUGLEVEL_ell >= 2, print(\" reduced: Y^2 = \",lift(redq[1])));\n pol = redq[1]; transl = redq[2]; multip = redq[3]\n );\n\n\\\\ Search for a point on the quartic\n point = nfratpoint(nf,pol,LIM1,1);\n found = point != [];\n if( found,\n loc = 1\n );\n\\\\ If the quartic is not known to be ELS, check if it is\n if( !loc,\n if( bigflag,\n loc = nflocallysoluble(nf,pol,r,a,b)\n , loc = nflocallysoluble(nf,pol,0,1,1)\n ));\n if( !loc,\n listnotELS = concat(listnotELS,[iwhile]);\n iwhile++;\n next\n )\n );\n\n\\\\ If no point is found, search harder\n if( !found,\nif( DEBUGLEVEL_ell >= 2, print(\"quartic is ELS\"));\n point = nfratpoint(nf,pol,LIM3,1);\n found = point != []\n );\n\n if( found && !ispointtriv,\n if( bigflag,\n point[1] = point[1]*multip+transl;\n point[2] = nfsqrt(nf,subst(polorig,'x,point[1]/point[3]))[1]);\n mattr = matid(3);\n mattr[1,1] = -2*b^2; mattr[1,2] = (A*b+a)*b;\n mattr[1,3] = a^2+(2*B-A^2)*b^2; mattr[2,2] = -b;\n mattr[2,3] = a+A*b; mattr[3,3] =r;\n UVW = [point[1]^2,point[3]^2,point[1]*point[3]]~;\n vec = (mattr^(-1))*UVW;\n z1 = (vec[3]*ttheta+vec[2])*ttheta+vec[1];\n zc *= z1^2;\n zc /= -polcoeff(lift(zc),1);\nif( DEBUGLEVEL_ell >= 3, print(\" zc*z1^2 = \",zc));\n pointxx = polcoeff(lift(zc),0);\n point2 = [ pointxx, nfsqrt(nf,subst('x^3+A*'x^2+B*'x+C,'x,pointxx))[1]];\nif( DEBUGLEVEL_ell >= 1, print(\" point found = \",point2));\n listpoints = concat(listpoints,[point2]);\n );\n\n listELS = concat(listELS,[iwhile]);\n if( degre(iwhile) > lastloc, m2++; lastloc = degre(iwhile));\n\n if( found,\n m1++;\n found = 0; lastloc = -1;\n iwhile = 1<>= 1;\n LS2coordtilda = vecextract(LS2coordtilda,1<<#listgen-iwhile-1);\n listgen = vecextract(listgen,1<<#listgen-iwhile-1);\n while( listELS[#listELS] >= iwhile,\n listELS = vecextract(listELS,1<<(#listELS-1)-1));\n while( #listnotELS && listnotELS[#listnotELS] >= iwhile,\n listnotELS = vecextract(listnotELS,1<<(#listnotELS-1)-1))\n , iwhile ++\n )\n );\n\nif( DEBUGLEVEL_ell >= 2,\n print(\" m1 = \",m1);\n print(\" m2 = \",m2));\nif( DEBUGLEVEL_ell >= 1,\n print(\"#S(E/K)[2] = \",1<= 1,\n print(\"#E(K)/2E(K) = \",1<= 1,\n print(\"#E(K)/2E(K) >= \",1<= \",m1));\n rang = m1;\n if( (m2-m1)%2,\nif( DEBUGLEVEL_ell >= 1,\n print(\" III should be a square, hence \");\n if( m2-m1 > 1,\n print(\"#E(K)/2E(K) >= \",1<<(m1+1));\n print(\"#III(E/K)[2] <= \",1<<(m2-m1-1));\n print(\"rank(E/K) >= \",m1+1)\n ,\n print(\"#E(K)/2E(K) = \",1<<(m1+1));\n print(\"#III(E/K)[2] = 1\");\n print(\"rank(E/K) = \",m1+1)));\n rang = m1+1)\n );\n\nif( DEBUGLEVEL_ell >= 1, print(\" listpoints = \",listpoints));\n for( i = 1, #listpoints,\n if( #listpoints[i] == 3, \n listpoints[i] = vecextract(listpoints[i],3));\n if( !ellisoncurve(ellnf,listpoints[i]), \n error(\"bnfell2descent: WRONG POINT \")));\nif( DEBUGLEVEL_ell >= 4, print(\" end of bnfell2descent_gen\"));\n return([rang,m2,listpoints]);\n}\n{bnfellrank(bnf,ell,help=[],bigflag=1,flag3=1) =\n\\\\ Algorithme de la 2-descente sur la courbe elliptique ell.\n\\\\ help est une liste de points connus sur ell.\n\n\\\\ attention bnf a un polynome en y.\n\\\\ si bigflag !=0, on reduit les quartiques\n\\\\ si flag3 != 0, on utilise bnfqfsolve2\nlocal(urst,urst1,den,factden,eqtheta,rnfeq,bbnf,ext,rang,f);\n\nif( DEBUGLEVEL_ell >= 3, print(\" starting bnfellrank\"));\n if( #ell < 5, ell = ellinit(ell));\n ell = vector(5, i, ell[i]);\n\n\\\\ removes the coefficients a1 and a3\n urst = [1,0,0,0];\n if( ell.a1 != 0 || ell.a3 != 0,\n urst1 = [1,0,-ell.a1/2,-ell.a3/2];\n ell = ellchangecurve(ell,urst1);\n urst = ellcomposeurst(urst,urst1)\n );\n\n\\\\ removes denominators\n while( (den = idealinv(bnf,idealadd(bnf,idealadd(bnf,1,ell.a2),idealadd(bnf,ell.a4,ell.a6))))[1,1] > 1,\n factden = idealfactor(bnf,den)[,1];\n den = 1;\n for( i = 1, #factden,\n den = idealmul(bnf,den,factden[i]));\n den = den[1,1];\n urst1 = [1/den,0,0,0];\n ell = ellchangecurve(ell,urst1);\n urst = ellcomposeurst(urst,urst1);\n );\n\n help = ellchangepoint(help,urst);\n\n\\\\ choix de l'algorithme suivant la 2-torsion\n ell *= Mod(1,bnf.pol);\n eqtheta = Pol([1,ell.a2,ell.a4,ell.a6]);\nif( DEBUGLEVEL_ell >= 1, print(\" elliptic curve: Y^2 = \",eqtheta));\n f = nfpolratroots(bnf,eqtheta);\n\n if( #f == 0, \\\\ cas 1: 2-torsion triviale\n rnfeq = rnfequation(bnf,eqtheta,1);\n urst1 = [1,-rnfeq[3]*Mod('y,bnf.pol),0,0];\n if( rnfeq[3] != 0, \n ell = ellchangecurve(ell,urst1);\n urst = ellcomposeurst(urst,urst1);\n eqtheta = subst(eqtheta,'x,'x-rnfeq[3]*Mod('y,bnf.pol));\n rnfeq = rnfequation(bnf,eqtheta,1);\nif( DEBUGLEVEL_ell >= 2, print(\" translation: working with Y^2 = \",eqtheta));\n );\nif( DEBUGLEVEL_ell >= 3, print1(\" bbnfinit \"));\n bbnf = bnfinit(rnfeq[1],1);\nif( DEBUGLEVEL_ell >= 3, print(\" done\"));\n ext = [eqtheta, rnfeq, bbnf];\n rang = bnfell2descent_gen(bnf,ell,ext,help,bigflag,flag3)\n ,\n if( #f == 1, \\\\ cas 2: 2-torsion = Z/2Z\n if( f[1] != 0, \n urst1 = [1,f[1],0,0];\n ell = ellchangecurve(ell,urst1);\n urst = ellcomposeurst(urst,urst1)\n );\n rang = bnfell2descent_viaisog(bnf,ell)\n , \\\\ cas 3: 2-torsion = Z/2Z*Z/2Z\n rang = bnfell2descent_complete(bnf,f[1],f[2],f[3],flag3)\n ));\n \n rang[3] = ellchangepoint(rang[3],ellinverturst(urst));\nif( DEBUGLEVEL_ell >= 3, print(\" end of bnfellrank\"));\n\nreturn(rang);\n}\n{bnfell2descent_complete(bnf,e1,e2,e3,flag3=1,aut=['y]) =\n\\\\ calcul du rang d'une courbe elliptique\n\\\\ par la methode de 2-descente complete.\n\\\\ Y^2 = (x-e1)*(x-e2)*(x-e3);\n\\\\ en suivant la methode decrite par J.Silverman\n\\\\ si flag3 ==1 alors on utilise bnfqfsolve2 (equation aux normes)\n\\\\ pour resoudre Legendre \n\\\\ on pourra alors utiliser aut=nfgaloisconj(bnf.pol)\n\n\\\\ e1, e2 et e3 sont des entiers algebriques de bnf.\n\nlocal(KS2prod,oddclass,KS2gen,vect,selmer,rang,b1,b2,vec,z1,z2,d31,quart0,quart,cont,fa,point,solx,soly,listepoints,strange);\n\nif( DEBUGLEVEL_ell >= 2, print(\" Algorithm of complete 2-descent\"));\n\n\\\\ calcul de K(S,2)\n\n KS2prod = (e1-e2)*(e2-e3)*(e3-e1)*2;\n oddclass = 0;\n while( !oddclass,\n KS2gen = bnfsunit(bnf,idealfactor(bnf,KS2prod)[,1]~);\n oddclass = (KS2gen[5][1]%2);\n if( !oddclass,\n KS2prod = idealmul(bnf,KS2prod,(KS2gen[5][3][1])));\n );\n KS2gen = KS2gen[1];\n for( i = 1, #KS2gen,\n KS2gen[i] = nfbasistoalg(bnf, KS2gen[i]));\n KS2gen = concat(Mod(lift(concat(bnf.tu[2], bnf.fu)),bnf.pol),KS2gen);\nif( DEBUGLEVEL_ell >= 2,\n print(\" #K(S,2)gen = \",#KS2gen);\n print(\" K(S,2)gen = \",KS2gen)\n);\n\n\\\\ parcours de K(S,2)*K(S,2)\n\n vect = vector(#KS2gen,i,[0,1]);\n selmer = 0;\n rang = 0;\n listepoints = [];\n\n forvec( X = vect,\n b1 = prod( i = 1, #KS2gen, KS2gen[i]^X[i]);\n forvec( Y = vect,\n b2 = prod( i = 1, #KS2gen, KS2gen[i]^Y[i]);\n\nif( DEBUGLEVEL_ell >= 3, print(\" [b1,b2] = \",lift([b1,b2])));\n\n\\\\ points triviaux provenant de la 2-torsion\n\n if( b1==1 && b2==1, \nif( DEBUGLEVEL_ell >= 2, print(\" trivial point [0]\"));\n selmer++; rang++; next);\n if( nfissquare(bnf.nf,(e2-e1)*b1)\n && nfissquare(bnf.nf,(e2-e3)*(e2-e1)*b2),\nif( DEBUGLEVEL_ell >= 2, print(\" trivial point [e2,0]\"));\n selmer++; rang++; next);\n if( nfissquare(bnf.nf,(e1-e2)*b2)\n && nfissquare(bnf.nf,(e1-e3)*(e1-e2)*b1),\nif( DEBUGLEVEL_ell >= 2, print(\" trivial point [e1,0]\"));\n selmer++; rang++; next);\n if( nfissquare(bnf.nf,(e3-e1)*b1)\n && nfissquare(bnf.nf,(e3-e2)*b2),\nif( DEBUGLEVEL_ell >= 2, print(\" trivial point [e3,0]\"));\n selmer++; rang++; next);\n\n\\\\ premier critere local : sur les formes quadratiques\n\n if( mynfhilbert(bnf.nf,b1*b2,b1*(e2-e1)) < 0\n || mynfhilbert(bnf.nf,b2,b1*(e3-e1)) < 0\n || mynfhilbert(bnf.nf,b1,b2*(e3-e2)) < 0\n ,\nif( DEBUGLEVEL_ell >= 3, print(\" not ELS\"));\n next);\n\nif( DEBUGLEVEL_ell >= 2, print(\" [b1,b2] = \",lift([b1,b2])));\nif( DEBUGLEVEL_ell >= 2, print(\" quadratic forms locally soluble\"));\n\n\\\\ solution de la premiere forme quadratique\n\n if( b1 != b2,\n vec = bnfqfsolve(bnf,b1*b2,b1*(e2-e1),flag3);\nif( DEBUGLEVEL_ell >= 3, print(\" sol part = \",vec));\n if( vec[3] == 0, error(\"bnfell2descent_complete: BUG !!! : vec[3]=0 \"));\n z1 = vec[1]/vec[3]/b1; z2 = vec[2]/vec[3]\n ,\n z1 = (1+(e2-e1)/b1)/2; z2 = z1-1\n );\n d31 = e3-e1;\n quart0 = b2^2*(z1^2*b1 - d31)*'x^4 - 4*z1*b2^2*z2*b1*'x^3\n + 2*b1*b2*(z1^2*b1 + 2*b2*z2^2 + d31)*'x^2 - 4*z1*b2*z2*b1^2*'x\n + b1^2*(z1^2*b1 - d31);\n quart = quart0*b1*b2;\nif( DEBUGLEVEL_ell >= 4, print(\" quart = \",quart));\n quart *= denominator(simplify(content(quart)))^2;\n cont = simplify(content(lift(quart)));\n fa = factor(cont);\n for( i = 1, #fa[,1], quart /= fa[i,1]^(2*(fa[i,2]\\2)));\nif( DEBUGLEVEL_ell >= 3, print(\" quartic reduced = \",quart));\n\n\\\\ la quartique est-elle localement soluble ?\n \n if( !nflocallysoluble(bnf.nf,quart),\nif( DEBUGLEVEL_ell >= 2, print(\" quartic not ELS\"));\n next);\n selmer++;\n\n\\\\ recherche de points sur la quartique.\n\n point = nfratpoint(bnf.nf,quart,LIM3,1);\n if( point != [], \nif( DEBUGLEVEL_ell >= 2, print(\" point found on the quartic !!\"));\nif( DEBUGLEVEL_ell >= 3, print(\" \",point));\n if( point[3], \n point /= point[3];\n z1 = (2*b2*point[1]*z2-z1*(b1+b2*point[1]^2))/(b1-b2*point[1]^2);\n solx = b1*z1^2+e1;\n soly = nfsqrt(bnf.nf,(solx-e1)*(solx-e2)*(solx-e3))[1];\n listepoints = concat(listepoints,[[solx,soly]]);\nif( DEBUGLEVEL_ell >= 1, print(\" point on the elliptic curve =\",[solx,soly]))\n );\n rang++\n ,\nif( DEBUGLEVEL_ell >= 2, print(\" no point found on the quartic\"))\n )\n )\n );\n\n\\\\ fin\n\nif( DEBUGLEVEL_ell >= 1,\n print(\"#S^(2) = \",selmer));\n if( rang > selmer/2, rang = selmer);\nif( DEBUGLEVEL_ell >= 1,\n strange = rang != selmer;\n if( strange,\n print(\"#E[K]/2E[K]>= \",rang)\n, print(\"#E[K]/2E[K] = \",rang));\n print(\"#E[2] = 4\");\n);\n rang = ceil(log(rang)/log(2))-2;\n selmer = valuation(selmer,2);\nif( DEBUGLEVEL_ell >= 1,\n if( strange,\n print(selmer-2,\" >= rank >= \",rang)\n, print(\"rank = \",rang));\n if( rang, print(\"points = \",listepoints));\n);\n\nreturn([rang,selmer,listepoints]);\n}\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ HELP MESSAGES \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n{\n addhelp(bnfellrank,\n \"bnfellrank(K,E,help=[]): E is a 5-component vector defining an elliptic curve defined over the number field K (output by bnfinit()). Returns a vector [r,s,v], where r is a lower bound for the rank of E(K), s is the rank of its 2-Selmer group and v is a list of independant points in E(K)/2E(K). If help is a vector of nontrivial points on E(K), the result might be faster. See also ?default_ell\");\n\\\\ others\n addhelp(default_ell,\n \"default_ell(DEBUGLEVEL_ell, LIM1, LIM3, LIMTRIV, MAXPROB, LIMBIGPRIME): output/set the value of the global variables used for ellrank() and other related functions. DEBUGLEVEL_ell: 0-5 : choose the quantity of information printed during the computation (default=0: print nothing); LIM1 (resp LIM3): search limit for easy (resp hard) points on quartics; LIMTRIV: search limit for trivial points on elliptic curves; MAXPROB, LIMBIGPRIME: technical.\");\n}\n"}, {"path":"v1/anc/code/common/simon_ell/qfsolve.gp","sha256":"739b6e06cb2c4b3e3adc7318bd327f3f5a3d9acef5fa2b52e68c34b85a0ac998","mode":420,"size":21937,"encoding":"utf-8","text":"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ Copyright (C) 2014 Denis Simon\n\\\\\n\\\\ Distributed under the terms of the GNU General Public License (GPL)\n\\\\\n\\\\ This code is distributed in the hope that it will be useful,\n\\\\ but WITHOUT ANY WARRANTY; without even the implied warranty of\n\\\\ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n\\\\ General Public License for more details.\n\\\\\n\\\\ The full text of the GPL is available at:\n\\\\\n\\\\ http://www.gnu.org/licenses/\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n/*\n Author:\n Denis SIMON -> simon@math.unicaen.fr\n address of the file:\n www.math.unicaen.fr/~simon/qfsolve.gp\n\n *********************************************\n * VERSION 09/01/2014 *\n *********************************************\n\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n \\\\ English help \\\\\n \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n This package provides functions to solve quadratic equations over Q.\n language: GP\n It can be run under GP by the command\n gp > \\r qfsolve.gp\n\n This package contains 4 main functions:\n\n - qfsolve(G,{factD}): Solve over Q the quadratic equation X~*G*X = 0.\n G must be a symmetric matrix n*n, with coefficients in Z.\n The solution might be a single vector (vectorv)\n or a matrix (whose columns generate a totally isotropic subspace).\n If no solution exists, the output is a prime number\n indicating that there is no solution in the local field Q_p\n (-1 for the reals, p for Q_p).\n factD is an optional parameter. If present, it must be equal to\n the factorization of -abs(2*matdet(G)). This saves a lot of time.\n\n Example:\n gp > G = [1,0,0;0,1,0;0,0,-34];\n gp > qfsolve(G)\n %1 = [-3, -5, 1]~\n\n - qfparam(G,sol,fl): Coefficients of quadratic forms that parametrize the\n solutions of the ternary quadratic form G, using the particular\n solution sol.\n fl is optional and can be 1, 2, or 3, in which case the 'fl'th form is\n reduced. The default is fl=3.\n\n Example:\n gp > qfparam(G,[-3,-5,1]~)\n %2 = \n [ 3 -10 -3]\n\n [-5 -6 5]\n\n [ 1 0 1]\n Indeed, the solutions can be parametrized as\n [3*x^2 - 10*y*x - 3*y^2, -5*x^2 - 6*y*x + 5*y^2, x^2 + y^2]~\n \n - qflllgram_indef(G,c): Solve or reduce the quadratic form G with\n integral coefficients. G might be definite or indefinite.\n This is an lll-type algorithm with a constant 1/4 G = [1,0,0;0,1,0;0,0,-34];\n gp > qfsolve(G)\n %1 = [-3, -5, 1]~\n\n - qfparam(G,sol,fl): pour parametrer les solutions de la forme\n quadratique ternaire G, en utilisant la solution particuliere sol.\n fl est optionnel et peut prendre les valeurs 1,2 ou 3.\n Il indique que la 'fl'eme forme quadratique est reduite.\n Par defaut, fl=3\n\n Exemple:\n gp > qfparam(G,[-3,-5,1]~)\n %2 = \n [ 3 -10 -3]\n\n [-5 -6 5]\n\n [ 1 0 1]\n Ici, les solutions sont parametrees par\n [3*x^2 - 10*y*x - 3*y^2, -5*x^2 - 6*y*x + 5*y^2, x^2 + y^2]~\n\n - qflllgram_indef(G,c): pour resoudre ou reduire la forme quadratique\n G a coefficients entiers. Il s'agit d'un algorithme type LLL, avec la\n constante 1/4= 2.6.0\n\\\\ build the matrix whose diagonal blocks are listed in the vector v.\n{matdiagonalblock(v) =\nmy(M);\nmy(lv,lt=0);\n\n if( type(v) != \"t_VEC\" && type(v) != \"t_COL\",\n error(\"wrong type in matdiagonalblock()\"));\n\n lv = length(v);\n for( i = 1, lv, lt += length(v[i]));\n M = matrix(lt,lt);\n lt = 0;\n for( i = 1, lv,\n my( lvi = length(v[i]));\n for( j = 1, lvi,\n for( k = 1, lvi,\n M[lt+j,lt+k] = v[i][j,k]));\n lt += lvi\n );\nreturn(M);\n}\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ LINEAR ALGEBRA \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n\\\\ Gives a unimodular matrix with the last column equal to v.\n\\\\ redflag = 0 or 1. If redflag = 1, then the n-#v first columns are reduced.\n{completebasis(v,redflag=0) =\nmy(Mv,U,re);\nmy(n);\n\n if( type(v) != \"t_COL\" && type(v) != \"t_MAT\",\n error(\"wrong type in completebasis\"));\n\n if( type(v) == \"t_COL\", Mv = Mat(v), Mv = v);\n n = length(Mv[,1]);\n if( n == length(Mv), return(Mv));\n U = (mathnf(Mv~,1)[2]~)^-1;\n if( n==1 || !redflag, return(U));\n\\\\ extract the n-#v columns and LLL-reduce them\n re = qflll(vecextract(U,1<= 4, print(\" starting qflocalinvariants \",G));\n\n\\\\ convert G into a vector of symmetric matrices\n if( type(G) == \"t_VEC\", vG = G , vG = [G]);\n lG = length(vG);\n for( j = 1, lG,\n if( type(vG[j]) == \"t_QFI\" || type(vG[j]) == \"t_QFR\",\n vG[j] = Mat(vG[j])));\n\n\\\\ compute the factorization of -2*abs(det(G))\n if( !length(fa), \n fa = (factor(-abs(2*matdet(vG[1])))[,1]));\n\n\\\\ in dimension 2, each invariant is a single Hilbert symbol.\n if( length(vG[1]) == 2,\n sol = matrix(length(fa),lG,i,j,\n myhilbert(vG[j][1,1],-matdet(vG[1]),fa[i]) < 0);\nif( DEBUGLEVEL_qfsolve >= 4, print(\" end of qflocalinvariants\"));\n return([fa,sol])\n );\n\n sol = matrix(length(fa),lG);\n for( j = 1, lG,\n my( n = length(vG[j]));\n\\\\ in dimension n, we need to compute a product of n Hilbert symbols.\n vdet = vector(n+1, i, matdet(matrix(i-1,i-1,k,m,vG[j][k,m])));\n for( i = 1, length(fa),\n my( p = fa[i]);\n my( h = 1);\n for( k = 1, n-1, h *= myhilbert(-vdet[k],vdet[k+1],p));\n h *= myhilbert(vdet[n],vdet[n+1],p);\n sol[i,j] = h < 0;\n )\n );\nif( DEBUGLEVEL_qfsolve >= 4, print(\" end of qflocalinvariants\"));\nreturn([fa,sol]);\n}\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ QUADRATIC FORMS REDUCTION \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n\\\\ M = [a,b;b;c] has integral coefficients.\n\\\\ Gauss reduction of the binary quadratic form\n\\\\ qf = (a,b,c)=a*X^2+2*b*X*Y+c*Y^2\n\\\\ Returns the reduction matrix with det = +1.\n{qfbreduce(M) =\nmy(H,di,aux);\nmy(a,b,c,q,r,nexta,nextb,nextc);\nmy(test);\n\nif( DEBUGLEVEL_qfsolve >= 5, print(\" starting qfbreduce with \",M));\n\n a = M[1,1]; b = M[1,2]; c = M[2,2];\n\n H = matid(2); test = 1;\n while( test && a,\n di = divrem(b,a); q = di[1]; r = di[2];\n if( 2*r > abs(a), r -= abs(a); q += sign(a));\n H[,2] -= q*H[,1];\n nextc = a; nextb = -r; nexta= (nextb-b)*q+c;\n\n test = abs(nexta) < abs(a);\n if( test,\n c = nextc; b = nextb; a = nexta;\n aux = H[,1]; H[,1] = -H[,2]; H[,2] = aux\n )\n );\n\nif( DEBUGLEVEL_qfsolve >= 5, print(\" end of qfbreduce with \",H));\nreturn(H);\n}\n\n\\\\ Performs first a LLL reduction on a positive definite\n\\\\ quadratic form QD bounding the indefinite G.\n\\\\ Then finishes the reduction with qfsolvetriv().\n{qflllgram_indef(G,c=1,base=0) =\nmy(M,QD,M1,S,red);\nmy(n);\n\nif( DEBUGLEVEL_qfsolve >= 4, print(\" qflllgram_indef with G = \",G));\n n = length(G);\n M = matid(n);\n QD = G;\n for( i = 1, n-1,\n if( !QD[i,i],\n return(qfsolvetriv(G,base))\n );\n M1 = matid(n);\n M1[i,] = -QD[i,]/QD[i,i];\n M1[i,i] = 1;\n M = (M*M1);\n QD = (M1~*QD*M1)\n );\n M = (M^(-1));\n QD = (M~*abs(QD)*M);\n S = qflllgram(QD/content(QD));\n if( #S < n, S = completebasis(S));\n red = qfsolvetriv(S~*G*S,base);\n if( type(red) == \"t_COL\",\n red = (S*red);\n return(red));\n red[2] = S*red[2];\n if( length(red) == 3,\n red[3] = S*red[3]);\nreturn(red);\n}\n\n\\\\ LLL reduction of the quadratic form G (Gram matrix)\n\\\\ where we go on, even if an isotropic vector is found.\n{qflllgram_indefgoon(G,c=1) =\nmy(red,U1,G2,U2,G3,U3,G4,U,V,B,U4,G5,U5,G6);\nmy(n);\n\n red = qflllgram_indef(G,c,1);\n\\\\ If no isotropic vector is found, nothing to do.\n if( length(red) == 2, return(red));\n\\\\ otherwise a solution is found:\n U1 = red[2];\n G2 = red[1]; \\\\ On a G2[1,1] = 0\n U2 = mathnf(Mat(G2[1,]),4)[2];\n G3 = U2~*G2*U2;\n\\\\ The first line of the matrix G3 only contains 0,\n\\\\ except some 'g' on the right, where g^2| det G.\n n = length(G);\n U3 = matid(n); U3[1,n] = round(-G3[n,n]/G3[1,n]/2);\n G4 = U3~*G3*U3;\n\\\\ The coeff G4[n,n] is reduced modulo 2g\n U = vecextract(G4,[1,n],[1,n]);\n if( n == 2,\n V = matrix(2,0)\n , V = vecextract(G4,[1,n],1<<(n-1)-2));\n B = round(-U^-1*V);\n U4 = matid(n);\n for( j = 2, n-1,\n U4[1,j] = B[1,j-1];\n U4[n,j] = B[2,j-1]\n );\n G5 = U4~*G4*U4;\n\\\\ The last column of G5 is reduced\n if( n < 4, return([G5,U1*U2*U3*U4]));\n\n red = qflllgram_indefgoon(matrix(n-2,n-2,i,j,G5[i+1,j+1]),c);\n U5 = matdiagonalblock([Mat(1),red[2],Mat(1)]);\n G6 = U5~*G5*U5;\nreturn([G6,U1*U2*U3*U4*U5]);\n}\n\n\\\\ LLL reduction of the quadratic form G (Gram matrix)\n\\\\ in dim 3 only, with detG = -1 and sign(G) = [2,1];\n{qflllgram_indefgoon2(G,c=1) =\nmy(red,U1,G2,bez,U2,G3,U3);\nmy(cc);\n\n red = qflllgram_indef(G,c,1);\n\\\\ We always find an isotropic vector.\n U1 = [0,0,1;0,1,0;1,0,0];\n G2 = U1~*red[1]*U1;\n\\\\ G2 has a 0 at the bottom right corner.\n bez = bezout(G2[3,1],G2[3,2]);\n U2 = [bez[1],G2[3,2]/bez[3],0;bez[2],-G2[3,1]/bez[3],0;0,0,-1];\n G3 = U2~*G2*U2;\n\\\\ G3 has 0 under the co-diagonal.\n cc = (G3[1,1])%2;\n U3 = [1,0,0; cc,1,0;\n round(-(G3[1,1]+cc*(2*G3[1,2]+G3[2,2]*cc))/2/G3[1,3]),\n round(-(G3[1,2]+cc*G3[2,2])/G3[1,3]),1];\n\nreturn([U3~*G3*U3,red[2]*U1*U2*U3]);\n}\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ CLASS GROUP COMPUTATIONS \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n\\\\ Compute the square root of the quadratic form qfb.\n\\\\ This function is not fully implemented.\n\\\\ For the moment it only works for detqfb squarefree\n\\\\ (except at 2, where the valuation is 2 or 3).\n\\\\ factdet must be given and equal to factor(2*abs(det qfb))\n{qfbsqrt(qfb,factdet) =\nmy(G,m,n);\nmy(a,b,c,d,p);\nmy(aux,Q1,M);\n\nif( DEBUGLEVEL_qfsolve >=3, print(\" starting qfbsqrt with \",qfb,factdet));\n G = Vec(qfb);\n a = G[1]; b = (G[2]/2); c = G[3]; d = a*c-b^2;\n\n\\\\ 1st step: solve m^2 = a (d), m*n = -b (d), n^2 = c (d)\n m = n = Mod(1,1);\n factdet[1,2] -= 3;\n for( i = 1, length(factdet[,1]),\n if( !factdet[i,2], next);\n p = factdet[i,1];\n if( gcd(a,p) == 1,\n aux = sqrt(Mod(a,p));\n m = chinese(m,aux);\n n = chinese(n,-b/aux)\n ,\n aux = sqrt(Mod(c,p));\n n = chinese(n,aux);\n m = chinese(m,-b/aux)\n )\n );\n m = centerlift(m);\n n = centerlift(n);\nif( DEBUGLEVEL_qfsolve >=4, print(\" m = \",m); print(\" n = \",n));\n\n\\\\ 2nd step: build Q1, with det=-1 such that Q1(x,y,0) = G(x,y)\n Q1 = [(n^2-c)/d, (m*n+b)/d, n ;\n (m*n+b)/d, (m^2-a)/d, m ;\n n, m, d ];\n Q1 = -matadjoint(Q1);\n\n\\\\ 3rd step: reduce Q1 to [0,0,-1;0,1,0;-1,0,0]\n M = qflllgram_indefgoon2(Q1)[2][3,];\n if( M[1] < 0, M = -M);\nif( DEBUGLEVEL_qfsolve >=3, print(\" end of qfbsqrt\"));\n if( M[1]%2,\n return(Qfb(M[1],2*M[2],2*M[3]))\n , return(Qfb(M[3],-2*M[2],2*M[1])));\n}\n\n\\\\ Implementation of Shanks/Bosma-Stevenhagen algorithm\n\\\\ to compute the 2-Sylow of the class group of discriminant D.\n\\\\ Only works for D = fundamental discriminant.\n\\\\ When D = 1(4), work with 4D.\n\\\\ If given, factdetG must be equal to factor(abs(2*D)).\n\\\\ Apart from this factorization, the algorithm is polynomial time.\n\\\\ If Winvariants is given, the algorithm stops as soon as\n\\\\ an element having these W-invariants is found.\n{quadclass2(D,factdetG,Winvariants,U2) =\nmy(factD,listgen,E,invgen,im,Ker,Kerim,listgen2,G2,clgp2,red,auxg);\nmy(p,aux);\nmy(n,rang,m,vD,vp);\n\nif( DEBUGLEVEL_qfsolve >= 1, print(\" Construction of the 2-class group of discriminant \",D));\n if( D%4 == 2 || D%4 == 3, error(\"quadclass2: Discriminant not congruent to 0,1 mod 4\"));\n\n if( D==-4, return([[1],[Qfb(1,0,1)]]));\n\n if( !factdetG, factdetG = factor(2*abs(D)));\n factD = concat([-1],factdetG[,1]~);\n if( D%4 == 1, D *= 4; factdetG[1,2] += 2);\n\n n = length(factD); rang = n-3;\n if(D>0, m = rang+1, m = rang);\n if(m<0, m=0);\nif( DEBUGLEVEL_qfsolve >= 3, print(\" factD = \",factD));\n listgen = vector(m);\n\n vD = valuation(D,2);\n if( vD,\n E = Qfb(1,0,-D/4)\n , E = Qfb(1,1,(1-D)/4)\n );\nif( DEBUGLEVEL_qfsolve >= 3, print(\" E = \",E));\n\n if( type(Winvariants) == \"t_COL\"\n && (Winvariants == 0\n || length(matinverseimage(U2*Mod(1,2),Winvariants))>0)\n , return([[1],[E]]));\n\n for( i = 1, m, \\\\ no need to look at factD[1]=-1, nor factD[2]=2\n p = factD[i+2];\n vp = valuation(D,p);\n aux = (p^vp);\n if( vD,\n listgen[i] = Qfb(aux,0,-D/4/aux)\n , listgen[i] = Qfb(aux,aux,(aux-D/aux)/4))\n );\n if( vD == 2 && D%16 != 4,\n m++; rang++; listgen = concat(listgen,[Qfb(2,2,(4-D)/8)]));\n if( vD == 3,\n m++; rang++; listgen = concat(listgen,[Qfb(2^(vD-2),0,-D/2^vD)]));\n\nif( DEBUGLEVEL_qfsolve >= 3, print(\" listgen = \",listgen));\nif( DEBUGLEVEL_qfsolve >= 2, print(\" rank = \",rang));\n\n if( !rang, return([[1],[E]]));\n\n invgen = qflocalinvariants(listgen,factD)[2]*Mod(1,2);\nif( DEBUGLEVEL_qfsolve >= 3, print(\" invgen = \",lift(invgen)));\n\n clgp2 = vector(m,i,2);\n im = lift(matinverseimage(invgen,matimage(invgen)));\n while( (length(im) < rang) \n || (type(Winvariants) == \"t_COL\" && length(matinverseimage(concat(invgen,U2),Winvariants) == 0)),\n Ker = lift(matker(invgen));\n Kerim = concat(Ker,im);\n listgen2 = vector(m);\n for( i = 1, m,\n listgen2[i] = E;\n for( j = 1, m,\n if( Kerim[j,i],\n listgen2[i] = qfbcompraw(listgen2[i],listgen[j])));\n if( norml2(Kerim[,i]) > 1,\n red = qfbreduce(auxg=Mat(listgen2[i]));\n auxg = red~*auxg*red;\n listgen2[i] = Qfb(auxg[1,1],2*auxg[1,2],auxg[2,2]))\n );\n listgen = listgen2;\n invgen = invgen*Kerim;\n\nif( DEBUGLEVEL_qfsolve >= 4, print(\" listgen = \",listgen));\nif( DEBUGLEVEL_qfsolve >= 4, print(\" invgen = \",lift(invgen)));\n\n for( i = 1, length(Ker),\n G2 = qfbsqrt(listgen[i],factdetG);\n clgp2[i] <<= 1;\n listgen[i] = G2;\n invgen[,i] = qflocalinvariants(G2,factD)[2][,1]*Mod(1,2)\n );\n\nif( DEBUGLEVEL_qfsolve >= 3, print(\" listgen = \",listgen));\nif( DEBUGLEVEL_qfsolve >= 3, print(\" invgen = \",lift(invgen)));\nif( DEBUGLEVEL_qfsolve >= 3, print(\" clgp2 = \",clgp2));\n\n im = lift(matinverseimage(invgen,matimage(invgen)))\n );\n\n listgen2 = vector(rang);\n for( i = 1, rang,\n listgen2[i] = E;\n for( j = 1, m,\n if( im[j,i],\n listgen2[i] = qfbcompraw(listgen2[i],listgen[j])));\n if( norml2(im[,i]) > 1,\n red = qfbreduce(auxg=Mat(listgen2[i]));\n auxg = red~*auxg*red;\n listgen2[i] = Qfb(auxg[1,1],2*auxg[1,2],auxg[2,2]))\n );\n listgen = listgen2;\n\\\\ listgen = vector(rang,i,listgen[m-rang+i]);\n clgp2 = vector(rang,i,clgp2[m-rang+i]);\n\nif( DEBUGLEVEL_qfsolve >= 2, print(\" listgen = \",listgen));\nif( DEBUGLEVEL_qfsolve >= 2, print(\" clgp2 = \",clgp2));\n\nreturn([clgp2,listgen]);\n}\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ QUADRATIC EQUATIONS \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n\\\\ Try to solve G = 0 with small coefficients\n\\\\ This is proved to work if\n\\\\ - det(G) = 1, dim <= 6 and G is LLL reduced\n\\\\\n\\\\ Returns [G,matid] if no solution is found.\n\\\\ Exit with a norm 0 vector if one such is found.\n\\\\ If base == 1 and norm 0 is obtained, returns [H~*G*H,H,sol] where\n\\\\ sol is a norm 0 vector and is the 1st column of H.\n{qfsolvetriv(G,base=0) =\nmy(n);\nmy(H,sol,GG);\n\n n = length(G);\n H = matid(n);\n\n\\\\ case 1: A basis vector is isotropic\n for( i = 1, n,\n if( G[i,i] == 0,\n sol = H[,i];\n if( base == 0, return(sol));\n H[,i] = H[,1]; H[,1] = sol;\n return([H~*G*H,H,sol])\n )\n );\n\n\\\\ case 2: G has a block +- [1,0;0,-1] on the diagonal\n for( i = 2, n,\n if( G[i-1,i] == 0 && G[i-1,i-1]*G[i,i] == -1,\n H[i-1,i] = -1; sol = H[,i];\n if( base == 0, return(sol));\n H[,i] = H[,1]; H[,1] = sol;\n return([H~*G*H,H,sol])\n )\n );\n\n\\\\ case 3: a principal minor is 0\n for( i = 1, n,\n GG = vecextract(G,1<=3;\n{qfsolvemodp(G,p) =\nmy(vdet,G2,sol,x1,x2,x3,N1,N2,N3,s);\nmy(r);\nmy(n);\n\n n = length(G);\n vdet = [0,0,0];\n for( i = 1, 3,\n G2 = vecextract(G,1< G=[1637490518557, -9118398255553, -17114399686722; -9118398255553, -40039266946520, 44178901566187; -17114399686722, 44178901566187, 150094052078168];\n gp > qflllgram_indef(G)\n %1 = [-24749181067550, 1904107022307, -3382470700136]~\n\");\n}\n"}, {"path":"v1/anc/code/common/simon_ell/resultant3.gp","sha256":"a195c027027ffd7e1134fbe1dfe88be2375e442a810c3ba51264701e885893b8","mode":420,"size":8569,"encoding":"utf-8","text":"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ Copyright (C) 2014 Denis Simon\n\\\\\n\\\\ Distributed under the terms of the GNU General Public License (GPL)\n\\\\\n\\\\ This code is distributed in the hope that it will be useful,\n\\\\ but WITHOUT ANY WARRANTY; without even the implied warranty of\n\\\\ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n\\\\ General Public License for more details.\n\\\\\n\\\\ The full text of the GPL is available at:\n\\\\\n\\\\ http://www.gnu.org/licenses/\n\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n/*\n Auteur :\n Denis SIMON -> simon@math.unicaen.fr\n adresse du fichier :\n www.math.unicaen.fr/~simon/resultant3.gp\n\n *********************************************\n * VERSION 13/01/2014 *\n *********************************************\n\n Ce fichier gp contient des fonctions pour calculer\n le resultant de trois polynomes p1, p2, p3 homogenes\n en trois variables (toujours x,y,z), ainsi que\n le discriminant d'un polynome homogene en ces trois variables.\n L'algorithme utilise est celui du sous-resultant.\n\n\n exemple d'utilisation :\n\n ? p1=x^2-3*z^2+y*z;p2=x-y+15*z;p3=y^2*x+z^3-x*y*z+x^2*z;\n ? resultant3([p1,p2,p3])\n %2 = 521784\n ? discriminant3(p3)\n %3 = -63\n\n la fonction hom sert a rendre homogene un polynome en x et y:\n ? ell=y^2-y-x^3+x^2;\n ? discriminant3(hom(ell))\n %5 = -11\n\n*/\n\nglobal(DEBUGLEVEL_res):small;\n\n DEBUGLEVEL_res = 0; \\\\ si DEBUGLEVEL_res = 1 : afficher des resultats intermediaires.\n\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\\\\ SCRIPT \\\\\n\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\n\n{default_res(\n DEBUGLEVEL_res_val:small = 0\n ) =\n\n DEBUGLEVEL_res = DEBUGLEVEL_res_val;\n print(\" DEBUGLEVEL_res = \",DEBUGLEVEL_res);\n}\n{hom(p) =\n p = substvec(p,['x,'y],['x/'z,'y/'z]);\n p /= 'z^valuation(p,'z);\nreturn(p);\n}\n{degreetot(p) =\n\\\\ degre d'un polynome homogene.\nmy(auxdeg,auxp);\n\n auxdeg = poldegree(p,'x); auxp = pollead(p,'x);\n auxdeg += poldegree(auxp,'y); auxp = pollead(auxp,'y);\n auxdeg += poldegree(auxp,'z); auxp = pollead(auxp,'z);\nreturn(auxdeg);\n}\n{ex( vec, i, j) =\nmy(aux);\n aux = vec[i]; vec[i] = vec[j]; vec[j] = aux;\nreturn(vec);\n}\n{mycontent(p) =\nmy(vz,co,dco);\n vz = valuation(p,'z);\n p = subst(p,'z,1);\n co = content(p);\n dco = poldegree(co,'y);\n if( dco, co = subst(co,'y,'y/'z)*'z^dco);\nreturn(co*'z^vz);\n}\n{myresultant2( p, q) =\nmy(dp,dq,valp,valq,auxr,auxp,auxq,res);\n\n if( p==0 || q==0, return(0));\n dp = degreetot(p); valp = valuation(p,'y);\n dq = degreetot(q); valq = valuation(q,'y);\n if( valp && valq, return(0));\n auxr = 1;\n if( valp,\n if(dq%2 && valp%2, auxr = -1);\n auxr *= pollead(q,'x)^valp\n );\n if( valq,\n auxr = pollead(p,'x)^valq\n );\n auxp = subst(p,'y,1);\n auxq = subst(q,'y,1);\n res = auxr*polresultant(auxp,auxq,'x);\nreturn(res);\n}\n{resultantcomp(vp=['x,'y,'z]) =\n\\\\ les vp[i] sont des pol homogenes en x,y et z.\n\\\\ vp[3] ne depend que de y et z.\nmy(p,q,rt,dp,dq,drt,vy,vz,lrt,lp,res,aux,res2,dres2);\n\n p = vp[1]; q = vp[2]; rt = vp[3];\n if( p==0 || q==0 || rt==0, return(0));\n dp = degreetot(p); dq = degreetot(q); drt = degreetot(rt);\n if( drt == 0, return(rt^(dp*dq)));\n vy = valuation(rt,'y); vz = valuation(rt,'z);\n rt = subst(rt,'y,1); if( vz, rt /= 'z^vz);\n lrt = polcoeff(rt,drt,'z); lp = polcoeff(p,dp,'x);\n res = 1;\n if( lp == 0,\n aux = p; p = q; q = aux;\n aux = dp; dp = dq; dq = aux;\n if( dp%2 && dq%2 && drt%2, res = -res);\n lp = polcoeff(p,dp,'x);\n if( lp == 0, return(0))\n );\n if( vy,\n if( dp%2 && dq%2, res2 = -1, res2 = 1);\n res2 *= myresultant2(subst(subst(p,'y,0),'z,'y),subst(subst(q,'y,0),'z,'y));\n res2 *= myresultant2(subst(subst(p,'y,0),'z,'y),subst(subst(q,'y,0),'z,'y));\n if( res2 == 0, return(0));\n res *= res2^vy\n );\n if( vz,\n res2 = myresultant2(subst(p,'z,0),subst(q,'z,0));\n if( res2 == 0, return(0));\n res *= res2^vz\n );\n drt -= vy+vz;\n if( drt == 0, return(res*rt^(dp*dq)));\n res2 = polresultant(subst(p,'y,1),subst(q,'y,1),'x);\n dres2 = poldegree(res2,'z);\n res2 = polresultant(rt,res2,'z);\n res *= res2;\n if( dq != poldegree(subst(q,'y,1),'x),\n res *= lp^(drt*(dq-poldegree(subst(q,'y,1),'x))));\n if( dres2 != dp*dq,\n res *= pollead(rt,'z)^(dp*dq-dres2));\nreturn(res);\n}\n{resultant3(vp=['x,'y,'z]) =\n\\\\ resultant de 3 polynomes homogenes en x,y,z.\n\\\\ on travaille sur la variable x.\nmy(vdt,vdx,prodd,s,denom,nume,lp,p0,q0,r0,dd,cq,rm,res,delta);\n\n for( i = 1, 3,\n if( vp[i] == 0, return(0)));\n vdt = vector(3,i,degreetot(vp[i]));\n vdx = vector(3,i,poldegree(vp[i],'x));\n if( vecmin(vdt-vdx), return(0));\n\\\\ en effet, dans ce cas, les polynomes sont dans l'ideal \n\n prodd = prod( i = 1, 3, vdt[i]);\n s = 1;\n denom = 1; nume = 1;\n\n\\\\ on echange pour que vdx[1] >= vdx[2] >= vdx[3]\n if(vdx[1]0$, and let $v\\ge0$ be a nonzero step function supported on an interval of length $T$. Let $f$ be the normalized autocorrelation of $v$,\n\\[\nf(x)=\\frac{\\int_{\\mathbb R}v(t)v(t+x)\\,dt}{\\int_{\\mathbb R}v(t)^2\\,dt}\n\\]\nFor each prime power $q$, let $a(q)$ be the number of prime ideals of norm $q$, and let $k(q)\\le a(q)$ be the number of those whose classes have been proved to lie in $2\\Cl(K)$ (for example, those proved to be principal). Set $c_m(q)=a(q)$ if $m\\ge1$ is even and $c_m(q)=2k(q)-a(q)$ if $m$ is odd, and let\n\\[\nC_\\infty=\\gamma+\\log 4\\pi+\\alpha-\\frac{\\log D}{n},\\qquad\nW(x)=\\frac{1}{\\sinh x}+\\frac{\\alpha}{2\\cosh^2(x/2)}\n\\]\n($\\gamma$ is Euler's constant). Then, if\n\\[\nB^-(f)=C_\\infty-\\int_0^\\infty(1-f(x))W(x)\\,dx+\\frac4n\\sum_{q^m0\n\\]\nwe have $\\Cl(K)[2]=0$. The sum runs over all prime powers $q$ and all $m\\ge1$ with $q^m0$.\n\\end{proof}\n\nThe explicit formula is from \\cite{Weil52,Poitou77}; compare \\cite[Sections 4--5]{Miller14} and \\cite[Theorem 5.1]{BDF08}. The character bound and the partial-principality version are consequences proved here, not the statements of those references.\n\n\\begin{lemL}[Strong induction on the norm]\\label{lem:C}\nLet $K$ be a number field and $B\\ge2$. Suppose that for each prime ideal $\\mathfrak p$ of norm at most $B$ an element $0\\ne g_{\\mathfrak p}\\in\\mathfrak p$ is given such that, in the prime factorization $\\prod q^{e_q}$ of $n_{\\mathfrak p}=|N(g_{\\mathfrak p})|/N\\mathfrak p$, every $q^{e_q}v$, a contradiction.\n\n\\begin{lemL}[Logarithm of the formal group]\\label{lem:O}\nLet $p$ be an odd prime, $\\mathcal A/\\Z_p$ an abelian scheme of relative dimension $g$ (e.g.\\ a Jacobian with good reduction at $p$), and $z=(z_1,\\dots,z_g)$ formal parameters at the origin for which the formal group law $\\mathcal F(X,Y)$ has coefficients in $\\Z_p$.\n\\begin{enumerate}[label=(\\arabic*)]\n\\item There is a unique $L\\in\\Q_p[[X]]^g$ with $L(X)\\equiv X$ (modulo terms of degree $\\ge2$) and $L(\\mathcal F(X,Y))=L(X)+L(Y)$. The coefficients of the homogeneous part of degree $n$ of $L$ lie in $\\tfrac1n\\Z_p$. The coefficients of degree $n$ of the inverse $E=L^{-1}$ have valuation at least $-v_p(n!)\\ge-\\tfrac{n-1}{p-1}$.\n\\item If $r\\ge1$, then $L$ and $E$ converge on $(p^r\\Z_p)^g$ and are mutually inverse bijections of this set onto itself. If $\\min_iv_p(X_i)=r$, then $L(X)\\equiv X$, $E(X)\\equiv X\\pmod{p^{r+1}}$.\n\\item If $Q\\in\\mathcal A(\\Z_p)$ reduces to $0$ and $r=\\min_iv_p(z_i(Q))\\ge1$, then for $m\\in\\Z\\setminus\\{0\\}$ we have $z([m]Q)=E(m\\,L(z(Q)))$ and\n\\[\nz([m]Q)\\equiv m\\,z(Q)\\pmod{p^{v_p(m)+r+1}},\\qquad \\min_iv_p(z_i([m]Q))=v_p(m)+r\n\\]\nIn particular, if $r=1$, then $z([m]Q)\\equiv m\\,z(Q)\\pmod{p^{v_p(m)+2}}$. The same formula $E(mL(z(Q)))$ defines $[m]Q$ for $m\\in\\Z_p$.\n\\end{enumerate}\n\\end{lemL}\n\nFor the formal logarithm and these coefficient estimates see \\cite{Hazewinkel78}; compare \\cite[Chapter IV]{Silverman09}.\n\n\\begin{thmL}[Size of local images and generation by points over finite fields]\\label{thm:S}\nLet $C/\\Q$ be a curve of genus $g$, $J=\\operatorname{Jac}(C)$, and $p$ a prime.\n\\begin{enumerate}[label=(\\arabic*)]\n\\item $\\dim_{\\F_2}J(\\Q_p)/2J(\\Q_p)=\\dim_{\\F_2}J(\\Q_p)[2]+g\\cdot[p=2]$ (Proposition~\\ref{thm:A}(5)).\n\\item If $p$ is odd and $C$ has a smooth model $\\mathcal C/\\Z_p$ at $p$, then reduction gives an isomorphism $J(\\Q_p)/2J(\\Q_p)\\cong J(\\F_p)/2J(\\F_p)$, and every point of $C(\\F_p)$ lifts to $C(\\Q_p)$.\n\\item In addition to (2), assume that $O\\in C(\\Q_p)$ and $p+1>(8g-2)\\sqrt p$ (for $g=3$: $p\\ge487$). Then the classes $[\\tilde P-\\tilde O]$ for $\\tilde P\\in C(\\F_p)$ generate $J(\\F_p)/2J(\\F_p)$. Hence the classes $[P-O]$, for lifts $P$ of the points of $C(\\F_p)$, generate $J(\\Q_p)/2J(\\Q_p)$, and the local image $\\delta_p(J(\\Q_p))$ (Theorems~\\ref{thm:A}, \\ref{thm:T}) is generated by their values.\n\\end{enumerate}\n\\end{thmL}\n\\begin{proof}\n(2) The reduction map is surjective, and its kernel is a pro-$p$ group consisting of points of the formal group (Lemma~\\ref{lem:O}). Since $p$ is odd, the kernel is uniquely divisible by 2. (3) Suppose they do not generate. Then there is a nonzero $\\chi:J(\\F_p)\\to\\Z/2$ that vanishes on all $[\\tilde P-\\tilde O]$. By class field theory, $\\chi$ gives an unramified double cover $D\\to C$, and $\\tilde P\\in C(\\F_p)$ splits in $D$ exactly when $\\chi([\\tilde P-\\tilde O])=0$. Since there is an $\\F_p$-point above $\\tilde O$, $D$ is geometrically irreducible, and by Riemann--Hurwitz its genus is $2g-1$. Since all $\\F_p$-points split, $\\#D(\\F_p)=2\\#C(\\F_p)$, and by \\cite{Weil48}, $2(p+1-2g\\sqrt p)\\le p+1+(4g-2)\\sqrt p$, that is, $p+1\\le(8g-2)\\sqrt p$. This contradicts the assumption.\n\\end{proof}\n\nThe local dimension is the standard local Kummer formula \\cite[Section 4]{Stoll01}. The finite-field generation criterion is a consequence of function-field class field theory \\cite[Chapter VI]{Serre88} and the Weil bound \\cite{Weil48}, as shown above.\n\n\\begin{thmL}[Descent for a general bitangent algebra]\\label{thm:T}\nIn the situation of Proposition~\\ref{thm:A}, suppose that the slope polynomial $f$ of the 27 bitangents is squarefree but not necessarily irreducible. Let $f=\\prod_if_i$ be its factorization into irreducibles and $L=\\Q[m]/(f)=\\prod_iL_i$ ($L_i=\\Q[m]/(f_i)$). Let $G$ be the Galois image on the 27 bitangents, $E=\\F_2^{27}$ the permutation module, and $V=J[2]\\hookrightarrow E$ the injection as in the proof of Proposition~\\ref{thm:A}. Then $H^1(\\Q,E)=L^\\times/L^{\\times2}$.\n\\begin{enumerate}[label=(\\arabic*)]\n\\item $J(\\Q)[2]=V^G$. The map $\\delta:J(\\Q)/2J(\\Q)\\to L^\\times/L^{\\times2}$ obtained by evaluating the normalized bitangent function $h$ componentwise is the composition of the Kummer map and $H^1(\\Q,V)\\to H^1(\\Q,E)$. The kernel of the latter map is the quotient of $(E/V)^G$ by the image of $E^G$. In particular, if $E^G\\to(E/V)^G$ is surjective, then $\\delta$ is injective.\n\\item The image of $\\delta$ satisfies $N_{L/\\Q}(\\delta(x))\\in\\Q^{\\times2}$, lies in $L(S,2)=\\prod_iL_i(S,2)$ for the $S$ of Proposition~\\ref{thm:A}(3), and is compatible with the local images at all $p\\le\\infty$. Hence, if $\\delta$ is injective, then for $\\operatorname{Sel}\\subset L(S,2)$ defined as in Proposition~\\ref{thm:A}(4) we have $\\operatorname{rank}J(\\Q)+\\dim_{\\F_2}V^G\\le\\dim_{\\F_2}\\operatorname{Sel}$.\n\\item If $G_p$ is the image of the decomposition group at $p$, then $\\dim J(\\Q_p)[2]=\\dim V^{G_p}$, and the dimension of $J(\\Q_p)/2J(\\Q_p)$, an upper bound for that of the local image, is given by Proposition~\\ref{thm:S}(1).\n\\end{enumerate}\n\\end{thmL}\n\nThis is the reducible-bitangent-algebra form of \\cite[Sections 6, 9 and 12]{BPS16}; the injectivity test is the cohomology exact sequence for $0\\to V\\to E\\to E/V\\to0$.\n\n\\begin{thmL}[Explicit formula inequality for a single quadratic character]\\label{thm:U}\nUse the notation of Proposition~\\ref{thm:B} ($n$, $r_1$, $D$, $\\alpha$, $T$, $f$, $C_\\infty$, $W$), and let $\\chi:\\Cl(K)\\to\\{\\pm1\\}$ be a nontrivial character. Then\n\\[\nC_\\infty-\\int_0^\\infty(1-f(x))W(x)\\,dx+\\frac4n\\sum_{\\mathfrak p}\\ \\sum_{m\\ge1:\\ N\\mathfrak p^m\\frac4{27}$, it is smaller than both critical values $\\pm\\frac2{3\\sqrt3}$ of $h$. So $\\{v:h(v)\\ge m_0\\}$ is a single half-line; on it, the two real roots of $g(u)=h(v)$ meet at the endpoint, and both tend to $O$ as $v\\to-\\infty$. Hence $C(\\mathbb R)$ is a single loop. The rest is \\cite{GH81}.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.1:strict}\nIf $\\dim\\operatorname{Sel}^{(2)}(J/\\Q)>3$, then there is a nontrivial character $\\chi:\\Cl(K)\\to\\{\\pm1\\}$ of $\\Cl(K)$ such that (i) $\\chi=1$ at prime ideals that are principal, and (ii) if $p\\nmid\\operatorname{disc}(p_K)$ and $r(p)$ is the number of roots of $p_K$ modulo $p$, then $\\sum_{\\mathfrak p\\mid p,\\,N\\mathfrak p=p}\\chi(\\mathfrak p)\\ge\\kappa(r(p))$.\n\\end{lem}\n\\begin{proof}\nLet $\\gamma$ be a Selmer element outside the span of $\\delta(E),\\delta(B),\\delta(D)$. By Lemma~\\ref{lem:1.1.1:desc}(3) there are $a,b,d\\in\\F_2$ such that $\\gamma'=\\gamma-a\\delta(E)-b\\delta(B)-d\\delta(D)$ becomes trivial over $\\Q_2$, and $\\gamma'\\ne0$. At the real place $\\gamma'$ is trivial (Lemma~\\ref{lem:1.1.1:real}), and at odd primes it is unramified, since the reduction is good or the component group is trivial. By Lemma~\\ref{lem:1.1.1:desc}(1), the image $\\epsilon\\in K^\\times/K^{\\times2}$ of $\\gamma'$ is not 1, it is a square above 2 and positive at the real embeddings, and $K(\\sqrt\\epsilon)/K$ is an unramified quadratic extension that splits at the real places. Its character is $\\chi$. (ii) At $p$, $\\gamma'$ is determined by the Frobenius $g\\in\\operatorname{GL}(V)$ and a cocycle value $c\\in V$. The prime ideals of norm $p$ correspond to the $w\\in\\Omega$ fixed by $g$, and there $\\chi=(-1)^{\\langle c,w\\rangle}$; so the sum is the sum of Lemma~\\ref{lem:1.1.1:code} for $U=\\ker(g-1)$, $\\lambda=\\langle c,\\cdot\\rangle$.\n\\end{proof}\n\n\\paragraph{Step 3: rank.}\n\\begin{lem}\\label{lem:1.1.1:rank}\n$\\dim\\operatorname{Sel}^{(2)}(J/\\Q)=\\operatorname{rank}J(\\Q)=3$.\n\\end{lem}\n\\begin{proof}\nSuppose not, and take $\\chi$ as in Lemma~\\ref{lem:1.1.1:strict}. For a nontrivial quadratic character $\\chi$ of $\\Cl(K)$, the proof of Proposition~\\ref{thm:B} gives\n\\[\n0\\ \\ge\\ C_\\infty-\\int_0^\\infty(1-f)W\\,dx+\\frac4n\\sum_{\\mathfrak p,\\,m\\ge1}\\chi(\\mathfrak p)^m\\frac{\\log N\\mathfrak p}{N\\mathfrak p^{m}+1}\\,f(m\\log N\\mathfrak p)\n\\tag{$*$}\n\\]\nWe take $n=27$, $\\alpha=1/9$, $D$ as above, $X=10^{10}$, $T=\\log X$, and let $f$ be the normalized autocorrelation of a symmetric step function (with positive integer heights) on 128 cells of width $T/128$. With $M=10^7$ and $R=1.1\\cdot10^8$ we split the prime ideals into four groups. All the weights are nonnegative.\n(a) The $664{,}464$ prime ideals with $N\\mathfrak p\\le M$ are all principal. For $588{,}850$ of them this is proved with witnesses as in Lemma~\\ref{lem:C}, and for $75{,}614$ with generators $g$ satisfying $|N(g)|=N\\mathfrak p$ (\\code{1.1.1d}). The sum over this part is computed from the counts per norm (\\code{1.1.1e}). Norms $q\\le10^5$ are included exactly, together with all powers $q^mR(1-\\frac1{5\\log^2R})$ ($c=\\frac{36261}{36260}$, \\cite[Section 1]{Dusart10}). By partial summation, $\\sum_{RX$, the terms with $m\\ge2$ occur only in (a). All prime factors of $\\operatorname{disc}(p_K)=2^{312}3^{54}157^6\\,64679^6\\,333337^2\\,172659335137^2$ are less than $M$ or greater than $X$, so (ii) can be used in (c) and (d). The values computed with 224-bit interval arithmetic are as follows (\\code{1.1.1f}).\n\\[\n\\begin{array}{ccccc}\n\\mathcal A(f)&P_-&H&E&-\\tfrac{20}{27}\\mathcal T_R\\\\\\hline\n-1.0229409565\\ldots&1.1435757488\\ldots&-0.0000100075\\ldots&-0.0340749409\\ldots&-0.0598580721\\ldots\n\\end{array}\n\\]\nTheir sum is $\\mathcal B>0.0266917716>0$. The right-hand side of ($*$) is at least $\\mathcal B$, a contradiction. Hence the Selmer dimension is at most 3, and the conclusion follows from Lemma~\\ref{lem:1.1.1:desc}(3) and $J(\\Q)[2]=0$.\n\\end{proof}\n\n\\paragraph{Step 4: $p$-adic heights.}\nFix $p\\in\\{3,5\\}$ and use the Coleman--Gross height $h=\\sum_vh_v$ ($\\log_pp=0$) of \\cite{CG89,BBM16}. When supports overlap we normalize by tangent vectors: at affine points we use the dual of $\\omega=du/(3v^2-1)=-dv/(4u^3+1)$, and at $O$ the dual of $t=-u/v$.\n\n\\begin{lem}\\label{lem:1.1.1:away}\nFor an integral point $P$ and a prime $\\ell\\ne p$ we have $h_\\ell(P-O,P-O)=0$, and for distinct $Q,Q'$ among $E,B,D$ we have $h_\\ell(Q-O,Q'-O)=0$.\n\\end{lem}\n\\begin{proof}\nSince the two nodes have thickness 1, the plane model is regular over $\\Z$; the integral sections do not pass through the nodes, and since all fibers are irreducible, the vertical correction is 0. On the smooth affine part one of $F_u$, $F_v$ is a unit, so the tangent vector dual to $\\omega$ is primitive and $(P\\cdot P)_\\omega=0$. Near $O$ we have $\\operatorname{div}\\omega=4O$, the leading coefficient $-1$ is a unit, and $t$ is a relative parameter, so $(O\\cdot O)_t=0$. Integral points do not meet $O$. Any two of $E,B,D$ differ by $\\pm1$ in one coordinate, so their sections do not meet.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.1:kernel}\nLet $\\omega_i=(1,u,v)\\,\\omega$ and $\\eta_i=(5u^2v,2uv,u^2)\\,\\omega$. The $\\eta_i$ are differentials of the second kind with poles only at $O$, and the cup product matrix with respect to $\\operatorname{Res}_O((\\int\\alpha)\\beta)$ is $\\left(\\begin{smallmatrix}0&-I_3\\\\I_3&0\\end{smallmatrix}\\right)$. For $P=(a,b)$, $\\nu_P(Q)=\\frac{v^2+bv+b^2-1}{u-a}\\,\\omega(Q)$ is a differential of the third kind with residue divisor $P-O$. Let $I_i(P)=\\int_O^P\\omega_i$, $J_i(P)=\\int_O^P\\eta_i$, $K(P,Q)=\\int_O^Q\\nu_P$ (normalized by the tangent vectors above). Then the local height at $p$ with respect to $W=\\langle\\eta_i\\rangle$ is $h_p(P-O,Q-O)=H(P,Q):=K(P,Q)-\\sum_iJ_i(P)I_i(Q)$, and $\\tau(P)=H(P,P)$ satisfies $d\\tau=-2\\sum_i\\omega_iJ_i$ on the affine disks on which $3v^2-1$ is a unit.\n\\end{lem}\n\\begin{proof}\nExpanding at $O$ with $u=t^{-3}\\rho$, $v=-t^{-4}\\rho$, $\\rho^2(\\rho-1)=-t^8-t^9$, the leading terms of $\\omega_0,\\omega_1,\\omega_2,\\eta_0,\\eta_1,\\eta_2$ are $-t^4dt$, $-t\\,dt$, $dt$, $5t^{-6}dt$, $2t^{-3}dt$, $-t^{-2}dt$, respectively, and the corrections start in degree 8; this gives the cup product matrix. On the curve, $(b-v)(v^2+bv+b^2-1)=(u-a)(u^3+u^2a+ua^2+a^3+1)$, so the only poles of $\\nu_P$ are $P$ and $O$. The bidifferential identity $d_P\\nu_P(Q)-d_Q\\nu_Q(P)=\\sum_i(\\eta_i(P)\\omega_i(Q)-\\omega_i(P)\\eta_i(Q))$ holds, since after dividing both sides by $\\omega(P)\\omega(Q)$ each side becomes $5a^2b-5u^2v+2abu-2auv+a^2v-bu^2$ (\\code{1.1.1g}). At $O$, the coefficients of $t^0,t^1,t^4$ in $\\nu_P=(-t^{-1}-at^2+bt^3-a^2t^5+\\cdots)dt$ are 0, so the de Rham class of $\\nu_P-\\sum_iJ_i(P)\\omega_i$ lies in $W$, and by the definition in \\cite{CG89,BBM16}, $h_p=H$. Integrating the identity gives $d_PH(P,Q)=\\nu_Q(P)-\\sum_i\\omega_i(P)J_i(Q)$. On the diagonal, the regular part $2\\cdot(-3bb'/\\beta)\\,da$ ($\\beta=3b^2-1$, $b'=db/da$) of $\\nu_P(Q),\\nu_Q(P)$ cancels against the $d\\log\\beta$ added by the tangent vector normalization, and we obtain $d\\tau=-2\\sum_i\\omega_iJ_i$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.1:qcfun}\nLet $I_B$ be the matrix with rows $I(E),I(B),I(D)$, let $H_B=(H(Q,Q'))_{Q,Q'\\in\\{E,B,D\\}}$, and assume that $I_B$ is invertible. If $M=I_B^{-1}H_B(I_B^{\\mathsf T})^{-1}$ and $q(P)=\\tau(P)-I(P)\\,M\\,I(P)^{\\mathsf T}$, then $q(P)=0$ at every integral point $P$.\n\\end{lem}\n\\begin{proof}\n$h$ is a symmetric bilinear form on $J(\\Q)$ (\\cite{CG89,BBM16}), and since the rank is 3, it is a quadratic form in $\\log$. By Lemma~\\ref{lem:1.1.1:away}, $h=h_p$ among $E,B,D$, so its matrix is $M$, and at an integral point $P$ we have $h(P-O,P-O)=\\tau(P)$.\n\\end{proof}\n\n\\paragraph{Step 5: $p=3$.}\n$C$ has good reduction at 3, and the only affine points modulo 3 are the six reductions of $A,\\dots,F_1$. We parametrize the disk with center $P_j=(a_j,b_j)$ by $u=a_j+3s$, $s\\in\\Z_3$, and let $q_j(s)=q(P_j(s))$.\n\n\\begin{lem}\\label{lem:1.1.1:qc3}\n(1) $I_B/3\\equiv\\left(\\begin{smallmatrix}1&1&0\\\\0&2&2\\\\1&1&2\\end{smallmatrix}\\right)\\pmod3$ (the determinant is a unit), and $\\min v_3(M_{ij})=-1$. (2) The minimal valuation $e_j$ of the coefficients of $q_j$ and the reductions are as follows, and the roots of $q_j/s$ modulo 3 are all simple.\n\\[\n\\begin{array}{c|cccccc}\nP_j&A&B&C_1&D&E&F_1\\\\\\hline\ne_j&2&1&1&1&1&1\\\\\n3^{-e_j}q_j\\bmod3&2s^2+2s^3&2s+2s^2&2s+s^2&2s+2s^2&s&s^2\\\\\n\\text{extra roots}&2&1&1&1&0&1\n\\end{array}\n\\]\n(3) The positions $s$ of the six extra roots and their coordinates $\\mathbf a_i=I(P)I_B^{-1}$ (basis $E,B,D$) are, modulo $3^8$, as follows.\n\\[\n\\begin{array}{c|c|r|rrr}\ni&\\text{disk}&s&\\multicolumn{3}{c}{\\mathbf a_i}\\\\\\hline\n0&A&4680&5946&6246&1629\\\\\n1&A&1274&4511&1997&707\\\\\n2&B&5882&1542&2265&5452\\\\\n3&C_1&2620&1475&1164&2808\\\\\n4&D&1442&1405&250&6058\\\\\n5&F_1&5667&6218&5349&6041\n\\end{array}\n\\]\n\\end{lem}\n\\begin{proof}\nChoose six functions $f_j$ in $L(7O)$ with $\\operatorname{div}f_j=4P_j+R_{j,1}+R_{j,2}+R_{j,3}-7O$. The remaining zeros $R_{j,k}$ are simple modulo 3 and lie in three other disks. Writing the $R_{j,k}$ in terms of the disk centers and tiny integrals, the coefficient matrix of the principal divisor relations has determinant $3185\\in\\Z_3^\\times$. The right-hand sides are given exactly by Coleman reciprocity: for $\\rho$ of the second kind it is $\\operatorname{Res}_O(\\log f_j\\cdot\\rho)$, and for $\\nu_{P_i}$ of the third kind it is the $\\log_3$ of the ratio of the leading coefficients with respect to the tangent vectors. Solving with precision $3^{20}$ determines $M$ modulo $3^{17}$ (\\code{1.1.1h}). On a disk, $\\tau(P_j(s))=\\tau(P_j)-2\\sum_i\\int_0^s\\omega_i(J_i(P_j)+\\int\\eta_i)$, and the expansion coefficients lie in $\\Z_3$, so $v_3([s^n]q_j)\\ge n-1-2\\lfloor\\log_3n\\rfloor$. This is at least 3 for $n\\ge6$, so the reductions in the table take the tail into account. We have $q_j(0)=0$, and (2), (3) follow from Hensel's lemma. The eight digits in the table are within the remaining precision.\n\\end{proof}\n\n\\paragraph{Step 6: $p=5$.}\nThe affine points modulo 5 are the reductions of the six points and $(3,2)$; the latter lifts to $P_6=(3,\\beta)$, $\\beta^3-\\beta+84=0$, $\\beta\\equiv309087\\pmod{5^8}$. We parametrize by $u=a_j+5s$.\n\n\\begin{lem}\\label{lem:1.1.1:qc5}\n(1) $5^{-1}I_B\\equiv\\left(\\begin{smallmatrix}3&3&2\\\\2&0&0\\\\1&3&0\\end{smallmatrix}\\right)\\pmod5$ (the determinant is a unit), and $\\min v_5(M_{ij})=-1$. (2) The minimal valuation of the coefficients of every $q_j$ is 1, and\n\\[\n\\begin{array}{c|ccccccc}\nP_j&A&B&C_1&D&E&F_1&P_6\\\\\\hline\n5^{-1}q_j\\bmod5&4s+s^2&3s+2s^2&3s+s^2&3s+3s^2&2s&4s+3s^2&4s+4s^2\\\\\n\\text{extra roots}&1&1&1&1&0&1&2\n\\end{array}\n\\]\n($P_6$ is not a rational point, so both of its roots are extra roots). (3) The positions and the coordinates $\\mathbf a'_j$ of the seven extra roots are, modulo $5^8$, as follows.\n\\[\n\\begin{array}{c|c|r|rrr}\nj&\\text{disk}&s&\\multicolumn{3}{c}{\\mathbf a'_j}\\\\\\hline\n0&A&88061&182268&389041&117968\\\\\n1&B&51781&9880&216347&307132\\\\\n2&C_1&291387&125051&375010&46930\\\\\n3&D&332159&759&70457&158427\\\\\n4&F_1&49757&79377&350530&127046\\\\\n5&P_6&325535&352126&189681&390420\\\\\n6&P_6&235554&361850&252022&388570\n\\end{array}\n\\]\n\\end{lem}\n\\begin{proof}\nAs in Step 5. We use seven functions in $L(NO)$ over $\\Q(\\beta)$, $N=6,7,7,7,7,7,9$, and the determinant of the relation matrix is $452\\in\\Z_5^\\times$. For the tail, $v_5([s^n]q_j)\\ge n-1-2\\lfloor\\log_5n\\rfloor$, which is at least 2 for $n\\ge3$ (\\code{1.1.1i}).\n\\end{proof}\n\n\\paragraph{Step 7: torsion, saturation, Mordell--Weil sieve.}\n\\begin{lem}\\label{lem:1.1.1:sat}\n$J(\\Q)$ is torsion-free, and the index of $\\Gamma=\\langle E,B,D\\rangle$ is prime to 30.\n\\end{lem}\n\\begin{proof}\n$\\#J(\\F_3)=91$ and $\\#J(\\F_5)=226$ (\\code{1.1.1j}) are coprime, so by \\cite[Appendix]{Katz81} the torsion is 0. If a prime $\\ell$ divides the index, then there is $R$ with $\\ell R=a_1E+a_2B+a_3D$ where the $a_k$ are not all multiples of $\\ell$. If $\\ell=2$, this contradicts Lemma~\\ref{lem:1.1.1:desc}(3). If $\\ell=3$: since $3\\nmid91$, we have $\\log J(\\Q_3)\\subset3\\Z_3^3$ (Lemma~\\ref{lem:O}), and since the rows of $I_B$ form a basis of $3\\Z_3^3$ (Lemma~\\ref{lem:1.1.1:qc3}(1)), we get $a_k/3\\in\\Z_3$, a contradiction. The case $\\ell=5$ is the same.\n\\end{proof}\n\nSo every $R\\in J(\\Q)$ can be written as $R=a_1E+a_2B+a_3D$ with $a_k\\in\\Z_{(2)}\\cap\\Z_{(3)}\\cap\\Z_{(5)}$, and at an auxiliary prime $q$ the projection of $R$ onto the $\\{2,3,5\\}$-primary part is determined by the residue classes of the $a_k$. Arithmetic in $J(\\F_q)$ is done by Riemann--Roch computations with the basis $u^iv^j$ ($j\\le2$, $3i+4j\\le m$) of $L(mO)$, and elements are compared exactly by their reduced representatives. Minimality forces $h^0(D)=1$: otherwise a section vanishing at $O$ would give a representative of smaller degree.\n\n\\begin{lem}\\label{lem:1.1.1:sieve}\nThe only integral points of $C$ are $A,B,C_1,D,E,F_1$.\n\\end{lem}\n\\begin{proof}\nIf there is another integral point $P$, then by Lemmas~\\ref{lem:1.1.1:qcfun}, \\ref{lem:1.1.1:qc3}, \\ref{lem:1.1.1:qc5}, $P$ is a 3-adic extra root $i$ and also a 5-adic extra root $j$ (if it were the root at a center, it would be equal in $\\Q_p$ to a known point). The coefficient vector $\\mathbf a$ of $P-O$ is $\\mathbf a_i$ modulo $3^8$ and $\\mathbf a'_j$ modulo $5^8$. By \\cite{BS10}, at each $q$ the reduction of $P$ is a point of $C(\\F_q)$, and its primary projection must be the value determined by $\\mathbf a$. The data for the primes used are as follows (\\code{1.1.1j}).\n\\[\n\\begin{array}{r|rrr|r}\nq&\\#C(\\F_q)&\\#C(\\F_{q^2})&\\#C(\\F_{q^3})&\\#J(\\F_q)\\\\\\hline\n109&109&12243&1296898&1303500\\\\\n233&259&54447&12648664&14102424\\\\\n277&300&77454&21247200&23117400\n\\end{array}\n\\]\nImposing the 3-primary and the 5-primary conditions on the same curve point at $q=109,277$, the values of $j$ that remain for each $i$ are as follows.\n\\[\n\\begin{array}{c|cccccc}\ni&0&1&2&3&4&5\\\\\\hline\nq=109&\\{2,6\\}&\\{0,4,5\\}&\\{0,2\\}&\\{0,4,5\\}&\\{0,2\\}&\\{0,2\\}\\\\\nq=277&\\{4\\}&\\varnothing&\\{2,6\\}&\\varnothing&\\{4\\}&\\{4\\}\n\\end{array}\n\\]\nThe only remaining pair is $(2,2)$, and its coefficients are $\\mathbf a\\equiv(3,78,25)\\pmod{81}$, $\\mathbf a\\equiv(51,10,55)\\pmod{125}$. At $q=233$ the 2-primary subgroup is $(\\Z/2)^3$, and the projections of $E,B,D$ form a basis of it. The only curve points with matching 3-primary coordinates are $(20,173)$ and $(78,144)$, and their 2-primary coordinates are $B$ and 0, so $a_1\\equiv a_3\\equiv0\\pmod2$. At $q=277$ the only curve point satisfying both conditions is $(44,20)$; the 2-primary subgroup is cyclic of order 8, generated by the projection $U$ of $E$, and $B\\mapsto4U$, $D\\mapsto5U$, $(44,20)-O\\mapsto3U$. Hence $a_1+4a_2+5a_3\\equiv3\\pmod8$, that is, $a_1+a_3\\equiv1\\pmod2$, a contradiction.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.1.1}]\nUnder $(x,y)=(-u,-v)$ the six points of Lemma~\\ref{lem:1.1.1:sieve} become the six solutions in the theorem. $J(\\Q)\\cong\\Z^3$ follows from Lemmas~\\ref{lem:1.1.1:rank}, \\ref{lem:1.1.1:sat}.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4-y^3+x-y=0$ \\ ($H=28$)}{x^4-y^3+x-y=0 (H=28)}}\\label{sec:1.1.2}\n\n\\begin{thm}\\label{thm:1.1.2}\nThe only integer solutions of $x^4-y^3+x-y=0$ are $(x,y)=(-1,0),(0,0),(1,1)$.\n\\end{thm}\n\n\\paragraph{Setup.} Setting $u=-y$, $z=x$, the equation becomes\n\\[\nC:\\quad u^3+u+z^4+z=0\n\\]\nThe projective closure $z^4+u^3w+uw^3+zw^3=0$ is a smooth plane quartic (genus 3). At the point at infinity $\\infty=(1:0:0)$ the tangent line $w=0$ meets the curve with multiplicity 4, as $z^4=0$, so $\\infty$ is a rational hyperflex. Theorem~\\ref{thm:1.1.2} follows immediately from the following proposition.\n\n\\begin{prop}\\label{prop:1.1.2}\n$C(\\Q)=\\{\\infty,(0,0),(0,-1),(-1,1)\\}$.\n\\end{prop}\n\nIndeed, the affine points $(u,z)=(0,0),(0,-1),(-1,1)$ give $(x,y)=(z,-u)=(0,0),(-1,0),(1,1)$.\n\nThe proof has four steps. We determine the bitangent field $K$, show $\\Cl(K)[2]=0$ with Proposition~\\ref{thm:B} (Lemma~\\ref{lem:1.1.2:class}), use this to show by 2-descent that the rank is at most 2 (Lemma~\\ref{lem:1.1.2:rank}), and finish with Chabauty--Coleman at $p=3$ (Lemma~\\ref{lem:1.1.2:chab}).\n\n\\paragraph{Step 1: the bitangent field.} The slopes of the 27 bitangents other than the tangent line at $\\infty$ are the roots of\n\\[\nf(m)=m^{27}+480m^{19}-1344m^{18}-34560m^{11}-70656m^{10}-40704m^{9}-16384m^{3}+12288m-4096\n\\]\n$f$ is irreducible (\\code{1.1.2a}), and $K=\\Q[m]/(f)$ has signature $(3,12)$ and discriminant $D=2^{24}\\cdot277^{6}\\cdot66943^{6}$. The bad primes of the curve are 277 and 66943. At both of them the reduction has only one node, of thickness 1, so the Tamagawa number is 1, and hence the descent image is unramified at these two primes. Therefore $S=\\{2\\}$ suffices. There is only one prime ideal above 2 (ramification index 9, residue degree 3).\n\n\\paragraph{Step 2: the class group.}\n\\begin{lem}\\label{lem:1.1.2:class}\n$\\Cl(K)[2]=0$.\n\\end{lem}\n\\begin{proof}\nWe apply Proposition~\\ref{thm:B} with $n=27$, $(r_1,r_2)=(3,12)$, $D$ as above, and $T=\\log10^8$. The window is a step function on 256 cells of equal width, with positive integer heights (the input of \\code{1.1.2d}). Two kinds of data are needed.\n\\begin{enumerate}[label=(\\roman*)]\n\\item There are $5{,}763{,}020$ prime ideals of norm less than $10^8$ in total, and all the counts $a(q)$ by norm are computed (\\code{1.1.2b}).\n\\item All $349{,}551$ prime ideals of norm at most $5\\cdot10^6$ have a witness as in Lemma~\\ref{lem:C} (\\code{1.1.2c}). So we set $k(q)=a(q)$ if $q\\le5\\cdot10^6$, and $k(q)=0$ for larger $q$.\n\\end{enumerate}\nWith these data, $B^-(f)>0.000875203229\\ldots>0$ (\\code{1.1.2d}). The computation uses exact rational coefficients and directed-rounding interval arithmetic (192 bits), so rounding errors cannot change the conclusion. By Proposition~\\ref{thm:B}, $\\Cl(K)[2]=0$.\n\\end{proof}\n\n\\paragraph{Step 3: an upper bound for the rank.}\n\\begin{lem}\\label{lem:1.1.2:rank}\n$\\operatorname{rank}J(\\Q)\\le2$.\n\\end{lem}\n\\begin{proof}\nThe hypotheses of Proposition~\\ref{thm:A} were checked above. So $J(\\Q)[2]=0$ and $\\delta$ is injective. Since $\\Cl(K)[2]=0$ by Lemma~\\ref{lem:1.1.2:class},\n\\[\n\\dim_{\\F_2}K(S,2)=(r_1+r_2)+\\#\\{\\mathfrak p\\mid2\\}=15+1=16\n\\]\nIndeed, 16 explicit elements supported on $S$ form a basis of this space. Their independence is checked with quadratic characters at the primes $487$, $491$, $499$, $503$, $509$, $521$, $523$, $541$ (\\code{1.1.2a}).\n\nWe impose conditions on this 16-dimensional space one after another. After imposing the condition that the norm is a square, we impose the local conditions at the good primes $487$, $491$, $499$, $503$ in turn, and the dimension of the candidate space becomes $10,6,4,3$. At 2 the bitangent orbit is transitive, of size 27. So, because the weights of the bitangent code are $12,16$, we have $J(\\Q_2)[2]=0$ and $\\dim J(\\Q_2)/2J(\\Q_2)=g=3$. The three 2-adic images are independent, so they fill this space, and this condition reduces the candidate dimension from 3 to 2. Since $J(\\Q)[2]=0$, $\\operatorname{rank}J(\\Q)\\le2$.\n\\end{proof}\n\n\\paragraph{Step 4: Chabauty--Coleman at $p=3$.}\n$C$ has good reduction at 3, because on the affine part $\\partial F/\\partial u=3u^2+1\\equiv1\\pmod3$, and in the chart at infinity the derivative is also a unit. An integral basis of the regular differentials is\n\\[\n\\omega_0=\\frac{dz}{3u^2+1},\\quad \\omega_1=\\frac{z\\,dz}{3u^2+1},\\quad \\omega_2=\\frac{u\\,dz}{3u^2+1}\n\\]\n$C(\\F_3)$ consists of the four points $\\infty,(0,0),(0,2),(2,1)$, so there are also four residue disks. The four known rational points lie one in each disk, since $(0,-1)\\equiv(0,2)$ and $(-1,1)\\equiv(2,1)$.\n\n\\begin{lem}\\label{lem:1.1.2:chab}\n$\\operatorname{rank}J(\\Q)=2$. Moreover, a 3-adic lift of the differential $\\omega=2\\omega_0+\\omega_1+\\omega_2$ annihilates all logarithms of $J(\\Q)$, and it is nonzero modulo 3 on all four disks.\n\\end{lem}\n\\begin{proof}\nFor $P_0=(0,0)$, $P_1=(0,-1)$, explicit functions $h_i$ satisfy\n\\[\n\\operatorname{div}(h_i)=28P_i+E_i-31\\infty\n\\]\nHere $E_i$ is an irreducible divisor of degree 3. This identity is checked exactly through the pole order 31, the Taylor order 28 at $P_i$, and the norm identity $\\operatorname{Res}_u(F,h_i)=c_i(z-z(P_i))^{28}d_i(z)$ (\\code{1.1.2e}). $E_i$ is unramified at 3, and its $z$-coordinates reduce to the fibers $z=1$ and $z=0$, respectively. Both fibers are linearly equivalent to $3\\infty$. Hence the 3-adic logarithm of\n\\[\n28[P_i-\\infty]=-[E_i-3\\infty]\n\\]\nis computed as a sum (trace) of tiny integrals starting from the points of $E_i$, and dividing it by $-28$ gives the logarithm of $[P_i-\\infty]$.\n\nComputing modulo $3^{16}$ with 18 terms, the logarithms with respect to $(\\omega_0,\\omega_1,\\omega_2)$ are, modulo $3^{10}$,\n\\[\n\\log[P_0-\\infty]\\equiv(57309,48831,7839),\\qquad\n\\log[P_1-\\infty]\\equiv(40674,56691,3162)\n\\]\n(\\code{1.1.2e}). The discarded $k$-th term has valuation at least $k-v_3(k)$, which is at least 17 for $k\\ge19$, so this precision is guaranteed. The two logarithms are linearly independent, so $\\operatorname{rank}J(\\Q)\\ge2$, and together with Lemma~\\ref{lem:1.1.2:rank} we get $\\operatorname{rank}J(\\Q)=2$. The components of the cross product of the two vectors have common valuation 2, and the primitive annihilator obtained by dividing by $3^2$ is $(2,1,1)$ modulo 3. The annihilator kills the subgroup generated by the two logarithms, and this subgroup has finite index in $J(\\Q)$, so $\\omega$ kills all logarithms of $J(\\Q)$.\n\nFinally we evaluate $\\omega\\bmod3=(2+z+u)\\,dz$ at the centers of the disks. It is 2 at $(0,0)$, 1 at $(0,2)$, and 2 at $(2,1)$. In the chart at infinity, with $t=z/u$, $w=1/u$, the basis becomes $(-w,-t,-1)\\,dt/(1+3(1+t)w^2)$, and the value at the center is $-1\\equiv2$. All four values are nonzero.\n\\end{proof}\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.1.2}]\nTake one disk, and let $t$ be a local parameter that vanishes at the known rational point $P$ in it. At points of the disk $t\\in3\\Z_3$, so we write $t=3s$, $s\\in\\Z_3$. By Lemma~\\ref{lem:1.1.2:chab}, $\\omega=\\sum_{k\\ge0}a_kt^k\\,dt$ with $a_0$ a 3-adic unit. Integrating from $P$ gives\n\\[\n\\int\\omega=\\sum_{k\\ge1}\\frac{a_{k-1}}{k}(3s)^{k}\n\\]\nand here the coefficient of the linear term in $s$ has valuation exactly 1. The coefficients of the terms with $k\\ge2$ have valuation at least $k-v_3(k)\\ge2$. The constant term is 0. By Strassmann's theorem this integral has at most one zero in the disk ($s=0$). By \\cite{Coleman85,MP12}, every rational point in the disk is a zero of this integral, so each disk contains at most one rational point. Each of the four disks contains one known point, so $C(\\Q)$ consists of these four points only.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+y^3+xy+1=0$ \\ ($H=29$)}{x^4+y^3+xy+1=0 (H=29)}}\\label{sec:1.1.3}\n\n\\begin{thm}\\label{thm:1.1.3}\nThe only integer solutions of $x^4+y^3+xy+1=0$ are $(x,y)=(0,-1),(1,-1)$.\n\\end{thm}\n\n\\paragraph{Setup.} Let $J$ denote the Jacobian of the smooth projective model of the curve. We do not change coordinates.\n\\[\nC:\\quad F(x,y)=x^4+y^3+xy+1=0,\\qquad P_0=(0,-1),\\quad P_1=(1,-1).\n\\]\nThe projective closure $X^4+Y^3Z+XYZ^2+Z^4=0$ has a single point at infinity, $O=(0:1:0)$. In the chart $t=x/y$, $w=1/y$ the equation is $t^4+w+tw^2+w^4=0$; at $O$ the derivative with respect to $w$ is 1, and the tangent line $w=0$ meets the curve as $t^4=0$, so $O$ is a smooth rational hyperflex.\n\nIn characteristic other than 2, 3, 5, an affine singular point satisfies, from $F_x=4x^3+y=0$, $F_y=3y^2+x=0$, $F=0$, the relations $y=-4x^3$, $x^5=-1/48$, $x^4=3/5$, that is, $x=-5/144$. Hence the characteristic divides $3\\cdot144^4-5^5=17^2\\cdot4463467$ (4463467 is prime). In characteristics 2 and 3 the only point at which $F_x$, $F_y$ vanish is $(0,0)$, but $F(0,0)=1$; in characteristic 5 and at infinity the curve is also smooth (\\code{1.1.3a}). At the two bad primes the only singular point is the reduction of $(x_c,y_c)=(-5/144,\\,-4x_c^3)$, and it is an ordinary node with unit Hessian. At a lift of the critical point the valuation of $F$ is 2 at 17 and 1 at 4463467, so the thickness of the node is 2 and 1, respectively (\\code{1.1.3a}). A plane quartic with only one node is geometrically irreducible (two distinct components meet at least three times, counted with multiplicity). So at 4463467, where the node has thickness 1, the component group of the Jacobian is trivial. At 17 the component group may be nontrivial, so we put 17 into $S$.\n\nThe proof has four steps. We determine the bitangent field $K$ (Step 1), show $\\Cl(K)[2]=0$ (Step 2), obtain $\\operatorname{rank}J(\\Q)\\le2$ by 2-descent (Step 3), and finish with Chabauty--Coleman at $p=3$ (Step 4).\n\n\\paragraph{Step 1: the bitangent field.} If the line $y=mx+b$ is a bitangent, then the slope $m$ is a root of\n\\[\n\\begin{aligned}\np_K(m)={}&m^{27}-48m^{22}+144m^{17}+17280m^{15}+832m^{12}+64512m^{10}\\\\\n&-2560m^7+27648m^5-110592m^3-1024m^2+4096\n\\end{aligned}\n\\]\n$p_K$ is irreducible, and for each root $m$ there is one $b\\in\\Q(m)$ for which $F(x,mx+b)$ is the square of a monic quadratic (\\code{1.1.3a}). So the 27 finite bitangents form a single Galois orbit, and the remaining one is the tangent line at $O$. $K=\\Q[m]/(p_K)$ has signature $(3,12)$ and discriminant $D=2^{20}\\cdot4463467^6$. The prime ideals above 2 have $(e,f)$ equal to $(1,1),(1,1),(5,1),(5,1),(5,1),(5,2)$, and there are 9 prime ideals above 17. The descent value of an affine point is $-(y-mx-b)$, and its leading coefficient at $O$ is 1.\n\n\\paragraph{Step 2: the class group.}\n\\begin{lem}\\label{lem:1.1.3:class}\n$\\Cl(K)[2]=0$.\n\\end{lem}\n\\begin{proof}\nWe apply Proposition~\\ref{thm:B} with $n=27$, $(r_1,r_2)=(3,12)$, $D$ as above, and $T=\\log10^6$. The window is a symmetric step function on 64 cells of equal width, with positive integer heights. Two kinds of data are needed.\n\\begin{enumerate}[label=(\\roman*)]\n\\item There are $78{,}493$ prime ideals of norm less than $10^6$ in total, and all the counts $a(q)$ by norm are computed (\\code{1.1.3b}).\n\\item Each of the $1{,}260$ prime ideals of norm at most $10^4$ contains some $g\\in\\mathfrak p$ with $|N(g)|=N\\mathfrak p$ (\\code{1.1.3b}). This is a witness for Lemma~\\ref{lem:C} with cofactor 1, so these ideals are principal. So we set $k(q)=a(q)$ if $q\\le10^4$, and $k(q)=0$ for larger $q$.\n\\end{enumerate}\nComputing in 224-bit interval arithmetic gives $B^-(f)>0.0642182715>0$ (\\code{1.1.3c}). By Proposition~\\ref{thm:B}, $\\Cl(K)[2]=0$.\n\\end{proof}\n\n\\paragraph{Step 3: an upper bound for the rank.}\n\\begin{lem}\\label{lem:1.1.3:rank}\n$\\operatorname{rank}J(\\Q)\\le2$.\n\\end{lem}\n\\begin{proof}\nBy Proposition~\\ref{thm:A}, $J(\\Q)[2]=0$, and the descent map sends $J(\\Q)/2J(\\Q)$ injectively into the part of $K(S,2)$, $S=\\{2,17\\}$, on which the norm is a square. By Lemma~\\ref{lem:1.1.3:class},\n\\[\n\\dim_{\\F_2}K(S,2)=(r_1+r_2)+\\#\\{\\mathfrak p\\mid 2\\cdot17\\}=15+15=30\n\\]\nThere are 30 explicit elements whose ideals involve only prime ideals above 2 and 17, and the matrix formed by their valuation parities and their quadratic residue symbols at auxiliary primes has rank 30, so they form a basis (\\code{1.1.3d}). We impose conditions on this space one after another.\n\n(a) The condition that the norm is a square (sign, and parity of the valuations at 2 and 17) brings the dimension to 27.\n\n(b) At a good prime $p$ the local image is the image of $J(\\Q_p)/2J(\\Q_p)\\cong J(\\F_p)/2J(\\F_p)$, and for $p\\ge487$ it is generated by the images of the points of $C(\\F_p)$. Otherwise there would be a connected \u00e9tale double cover (of genus 5) in which all $\\F_p$-points split, and the Weil bound (\\cite{Weil48}) would require $2(p+1-6\\sqrt p)\\le p+1+10\\sqrt p$, so $p<484$. If a coordinate vanishes at a point of tangency with a bitangent, that coordinate is recovered from the condition that the norm is a square. Imposing the conditions at $p=487,491,499,503,509,521$ in turn, the dimension becomes $25,22,16,14,12,7$ (\\code{1.1.3d}).\n\n(c) At 2. The orbits of the wild inertia group on the bitangents have size a power of 2 that divides the ramification index 1 or 5, so they have size 1. The action on the bitangents is faithful, so the inertia group is tame and cyclic, and its image has order 5. The nontrivial irreducible $\\F_2$-representation of the cyclic group of order 5 is 4-dimensional, so the inertia-invariant subspace of $J[2]$ is 2-dimensional. The two bitangents corresponding to the two prime ideals with $(e,f)=(1,1)$ are distinct nonzero vectors fixed by the decomposition group, so they span this 2-dimensional space. Hence $\\dim J(\\Q_2)[2]=2$ and $\\dim J(\\Q_2)/2J(\\Q_2)=3+2=5$. The images of the five 2-adic points, determined modulo $2^{44}$,\n\\[\n\\begin{gathered}\n(2,\\ 12109782689869),\\quad (4,\\ 6831052190827),\\quad (3,\\ 10504516484706),\\\\\n(477564860141,\\ 1),\\quad (7164285329697,\\ 3).\n\\end{gathered}\n\\]\nare independent. At each prime ideal $\\mathfrak p$ above 2 the square class of a unit is determined modulo $\\mathfrak p^{2e+1}$, and the valuation of the approximation error is greater than the valuation of the value plus $2e$, so these square classes are exact. Hence these five images span the whole local image, and this condition brings the dimension from 7 down to 2 (\\code{1.1.3d}).\n\nSince $J(\\Q)[2]=0$, $\\operatorname{rank}J(\\Q)\\le2$.\n\\end{proof}\n\n\\paragraph{Step 4: Chabauty--Coleman at $p=3$.}\n$C$ has good reduction at 3. An integral basis of the regular differentials is $(\\omega_0,\\omega_1,\\omega_2)=(1,x,y)\\,dx/(3y^2+x)$, or $-(1,x,y)\\,dy/(4x^3+y)$ where the denominator vanishes. The only affine points modulo 3 are $(0,2)$ and $(1,2)$, which are the reductions of $P_0$ and $P_1$, respectively. Let $L_i=\\log[P_i-O]\\in\\Q_3^3$.\n\n\\begin{lem}\\label{lem:1.1.3:logs}\n$\\operatorname{rank}J(\\Q)=2$. Moreover, $L_0\\equiv(0,6,1)\\pmod 9$, $v_3((L_0)_0)\\ge4$, and there is a vector $T$ with $3L_1+L_0+T=0$, $T\\equiv(0,6,0)\\pmod9$. The vector $\\lambda=(L_0\\times T)/3$ lies in $\\Z_3^3$, satisfies $\\lambda\\equiv(1,0,0)\\pmod3$, and annihilates all logarithms of $J(\\Q)$.\n\\end{lem}\n\\begin{proof}\nFor the line $y=x/3-1$ we have $F(x,x/3-1)=x^3(x+1/27)$, so its divisor is $3P_0+Q-4O$ with $Q=(-1/27,-82/81)$. Since $t(Q)=3/82\\in3\\Z_3$, $Q$ lies in the disk of $O$, and $3L_0=-\\int_O^Q\\omega$. In the chart at infinity, $\\omega=-(w,t,1)\\,dt/(1+2tw+4w^3)$ and $w\\in-t^4+t^5\\Z_3[[t]]$, so the inverse of the denominator lies in $1+t^5\\Z_3[[t]]$. For $t\\in3\\Z_3$ the integrated term of degree $n$ has valuation at least $n-v_3(n)$. So the first component consists only of terms of degree at least 5, and its valuation is at least 4 even after dividing by $3$; modulo 9, the second component is $t(Q)^2/6\\equiv6$ and the third is $t(Q)/3=1/82\\equiv1$.\nThe tangent line $y=-(3x+1)/4$ at $P_1$ gives $F(x,-(3x+1)/4)=(x-1)^2(64x^2+101x+63)/64$. The roots of the quadratic factor lie in $\\Z_3$, and $a_0\\equiv0$, $a_1\\equiv7\\pmod9$. The corresponding points $A$, $B$ reduce to $P_0$, $P_1$, respectively. From $\\operatorname{div}=2P_1+A+B-4O$ we get $3L_1+L_0+T=0$ with $T=\\int_{P_0}^A\\omega+\\int_{P_1}^B\\omega$. With the parameter $s=y+1$ at $P_0$ we have $s(A)\\equiv3\\pmod9$, and the constant term of the differential is $(1,0,-1)\\,ds$. With $s=x-1$ at $P_1$ we have $s(B)\\equiv6\\pmod9$, and the constant term is $(1,1,-1)\\,ds/4$. The higher coefficients lie in $\\Z_3$, and $n-v_3(n)\\ge2$ for $n\\ge2$, so $T\\equiv(0,6,0)\\pmod9$ (\\code{1.1.3e}).\nSince $L_0\\times T\\equiv(3,0,0)\\pmod9$, the vectors $L_0$ and $T$, and hence $L_0$ and $L_1$, are independent. So $\\operatorname{rank}J(\\Q)\\ge2$, and together with Lemma~\\ref{lem:1.1.3:rank} the rank is 2. The three components of $L_0\\times T$ have valuations 1, 2, 3, so $\\lambda\\in\\Z_3^3$ and $\\lambda\\equiv(1,0,0)\\pmod3$. $\\lambda$ annihilates $L_0$ and $T$, and hence $L_1$. Since the rank is 2, $\\lambda$ annihilates all logarithms of $J(\\Q)$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.3:disks}\nThe only integral points of $C$ are $P_0$, $P_1$.\n\\end{lem}\n\\begin{proof}\nAn integral point reduces modulo 3 to an affine point, so it lies in the disk of $P_0$ or in the disk of $P_1$. On the disk of $P_0$ we have $F_x\\equiv-1$, so $s=y+1$ is an integral parameter; on the disk of $P_1$ we have $F_y\\equiv1$, so $s=x-1$ is one. By Lemma~\\ref{lem:1.1.3:logs}, $\\lambda\\cdot\\omega=(c_0+c_1s+\\cdots)\\,ds$ with $c_k\\in\\Z_3$, and $c_0$ is a unit, since it is $\\lambda\\cdot(1,0,-1)\\equiv1$ at $P_0$ and $\\lambda\\cdot(1,1,-1)/4\\equiv1/4$ at $P_1$. Setting $s=3z$, $z\\in\\Z_3$, and integrating from the center gives\n\\[\n\\int\\lambda\\cdot\\omega=3c_0z+\\sum_{n\\ge2}\\frac{3^nc_{n-1}}{n}z^n\n\\]\nand each term of the sum has valuation at least 2. After division by $3z$ we get a unit on all of $\\Z_3$, so the only zero is $z=0$. By \\cite{Coleman85,MP12}, the rational points in a disk are zeros of this integral, so the only integral point in each disk is its center.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.1.3}]\nThis follows from Lemma~\\ref{lem:1.1.3:disks} and Lemma~\\ref{lem:1.1.3:logs}. Substitution shows that the two points are solutions.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+y^3+2x-y=0$ \\ ($H=30$)}{x^4+y^3+2x-y=0 (H=30)}}\\label{sec:1.1.4}\n\n\\begin{thm}\\label{thm:1.1.4}\nThe only integer solutions of $x^4+y^3+2x-y=0$ are $(-8,-16)$, $(0,-1)$, $(0,0)$ and $(0,1)$.\n\\end{thm}\n\n\\paragraph{Setup.} Let $J$ denote the Jacobian of the smooth projective model of the curve. Setting $u=-y$, $v=x$, the equation becomes\n\\[\nC:\\quad F(u,v)=v^4-u^3+u+2v=0\n\\]\nand the integer solutions correspond bijectively to the integral points of $C$ via $(x,y)=(v,-u)$. The known points are\n\\[\nP_0=(0,0),\\quad P_1=(1,0),\\quad P_{-1}=(-1,0),\\quad P_*=(16,-8)\n\\]\nwhich in the original coordinates are $(0,0),(0,-1),(0,1),(-8,-16)$, respectively. There is a single point at infinity, $O$. In the chart $t=v/u$, $w=1/u$ the equation is $t^4-w+(1+2t)w^3=0$, $w=t^4+\\cdots$, so $O$ is a smooth rational hyperflex. Let $G_i=[P_i-O]$. Since $\\operatorname{div}(u+2v)=3P_0+P_*-4O$ and $\\operatorname{div}(v)=P_{-1}+P_0+P_1-3O$, we have $G_*=-3G_0$, $G_{-1}=-G_0-G_1$.\n\nIn odd characteristic other than 3, an affine singular point satisfies $3u^2=1$, $2v^3=-1$, $12F-4uF_u-3vF_v=8u+18v=0$, and hence $243v^2-16=0$. We have $\\operatorname{Res}(243v^2-16,\\,2v^3+1)=14332523=83\\cdot172681$. In characteristic 3, $F_u=1-3u^2\\equiv1$, and the point at infinity is smooth in every odd characteristic. At 83 and 172681 the only singular point is the reduction of $(u_c,v_c)=(2187/128,-243/32)$, which is an ordinary node, and since $F(u_c,v_c)=-3482803089/2097152$ has valuation 1, its thickness is 1. So the two fibers are geometrically irreducible and the component groups are trivial (\\code{1.1.4a}). Modulo 2 the plane model is singular at $(1,0)$. Therefore in Step 4 we use explicit analytic disks instead of 2-adic residue disks.\n\nThe proof has six steps. We determine the bitangent field (Step 1), show $\\Cl(K)[2]=0$ (Step 2), and show by 2-descent that the rank is at most 2 (Step 3). We fix 2-adic analytic disks covering the integral points (Step 4), obtain from 2-adic logarithms that the rank is 2, together with the logarithm lattice (Step 5), and determine the integral points disk by disk (Step 6).\n\n\\paragraph{Step 1: the bitangent field.}\nIf the line $u=mv+\\eta$ is a bitangent, then $m$ is a root of\n\\[\np_K(m)=m^{27}-480m^{19}+2688m^{18}-34560m^{11}-141312m^{10}-162816m^{9}+16384m^{3}-49152m+32768\n\\]\nand for each root there is one $\\eta\\in\\Q(m)$ for which $F(mv+\\eta,v)$ is the square of a monic quadratic (\\code{1.1.4a}). Since $p_K$ is irreducible, the 27 finite bitangents form a single Galois orbit, and the remaining one is the tangent line at $O$. $K=\\Q[m]/(p_K)$ has signature $(3,12)$ and discriminant $D=2^{28}\\cdot83^6\\cdot172681^6$, and the three prime ideals above 2 have $(e,f)$ equal to $(1,1),(10,1),(16,1)$. The descent value is $u-mv-\\eta$ (with leading coefficient 1 at $O$), and at $G_0$, $G_1$ it is $-\\eta$, $1-\\eta$, respectively.\n\n\\begin{lem}\\label{lem:1.1.4:desc}\n$J(\\Q)[2]=0$, and $\\operatorname{Sel}^{(2)}(J/\\Q)$ maps injectively into $K(\\{2\\},2)$. Moreover, $\\dim_{\\F_2}J(\\Q_2)[2]\\le1$ and $\\dim_{\\F_2}J(\\Q_2)/2J(\\Q_2)\\le4$.\n\\end{lem}\n\\begin{proof}\nThe first claim is Proposition~\\ref{thm:A}, and $S=\\{2\\}$ because the component groups at the odd bad primes are trivial. The codeword given by an element of $J(\\Q_2)[2]$ is invariant under the decomposition group, so its support is a union of orbits, which have sizes $1,10,16$. Nonzero codewords have weight 12 or 16, so the only possibility is the single orbit of size 16. Hence there is at most one nonzero invariant element, and $\\dim J(\\Q_2)/2J(\\Q_2)=g+\\dim J(\\Q_2)[2]\\le4$.\n\\end{proof}\n\n\\paragraph{Step 2: the class group.}\n\\begin{lem}\\label{lem:1.1.4:class}\n$\\Cl(K)[2]=0$.\n\\end{lem}\n\\begin{proof}\nWe apply Proposition~\\ref{thm:B} with $n=27$, $(r_1,r_2)=(3,12)$, $D$ as above, and $T=\\log(5\\cdot10^8)$. The window is a symmetric step function on 64 cells of equal width, with positive integer heights. Two kinds of data are needed.\n\\begin{enumerate}[label=(\\roman*)]\n\\item There are $26{,}362{,}584$ prime ideals of norm less than $5\\cdot10^8$ in total, and all the counts $a(q)$ by norm are computed (\\code{1.1.4b}).\n\\item All $150{,}219$ prime ideals of norm at most $2.02\\cdot10^6$ have a witness as in Lemma~\\ref{lem:C} (\\code{1.1.4c}). So we set $k(q)=a(q)$ if $q\\le2.02\\cdot10^6$, and $k(q)=0$ for larger $q$.\n\\end{enumerate}\nComputing with directed-rounding interval arithmetic gives $B^-(f)>1.0015\\cdot10^{-4}>0$ (\\code{1.1.4d}). By Proposition~\\ref{thm:B}, $\\Cl(K)[2]=0$.\n\\end{proof}\n\n\\paragraph{Step 3: an upper bound for the rank.}\n\\begin{lem}\\label{lem:1.1.4:rank}\n$\\operatorname{rank}J(\\Q)\\le2$.\n\\end{lem}\n\\begin{proof}\nBy Lemma~\\ref{lem:1.1.4:class}, $\\dim K(\\{2\\},2)=r_1+r_2+3=18$. There are 18 explicit elements whose ideals involve only prime ideals above 2, and their square classes in the three completions above 2 alone already have rank 18, so they form a basis (\\code{1.1.4e}). We impose conditions on this space one after another.\n(a) Sign of the norm and parity of the 2-adic valuation of the norm: dimension 16.\n(b) Images of the points of $C(\\F_p)$ at the good primes $p=487,491,499,503,509,521,523$: dimensions $12,9,6,4,4,4,4$ (\\code{1.1.4e}). For $p\\ge487$ the images of these points generate the whole local image. Otherwise there would be a connected \u00e9tale double cover (of genus 5) in which all $\\F_p$-points split, which contradicts the Weil bound (\\cite{Weil48}). The one coordinate that is missing at a point of tangency with a bitangent is recovered from the norm condition.\n(c) At 2: the images of the 2-adic points $(0,0)$, $(1,0)$, the point with $v=2$ and $u$ even ($u\\equiv29760316588\\pmod{2^{36}}$), and the point with $t=2$ in the chart at infinity ($w\\equiv59134464016\\pmod{2^{36}}$) are independent in the three completions above 2 (\\code{1.1.4e}). In each approximation the valuation of the error is greater than the valuation of the value plus $2e$, so the square classes are exact. By Lemma~\\ref{lem:1.1.4:desc} these four span the whole local image, and this condition brings the dimension from 4 down to 2.\nSince $J(\\Q)[2]=0$, $\\operatorname{rank}J(\\Q)\\le2$.\n\\end{proof}\n\n\\paragraph{Step 4: 2-adic analytic disks.}\n\\begin{lem}\\label{lem:1.1.4:charts}\nAn integral point $(u,v)$ of $C$ lies in one of the three disks of (i), (ii) below. (i) and (ii) are analytic parametrizations that converge on a disk larger than the closed unit disk, and (iii) is one that converges on the open unit disk $|t|<1$.\n\\begin{enumerate}[label=(\\roman*)]\n\\item Even disk: $v=2t$, $t\\in\\Z_2$, $u=u_0(v)$. Here $u_0\\in\\Z_2[[v]]$ is the solution of $u-u^3=-2v-v^4$, $u_0(0)=0$.\n\\item Odd disks ($\\varepsilon=\\pm1$): $u=\\varepsilon+4r$, $v=4t$, $t\\in\\Z_2$. Here $r=r_\\varepsilon(t)\\in\\Z_2[[t]]$ is the solution of $r+6\\varepsilon r^2+8r^3=t+32t^4$, $r(0)=0$, and $v_2([t^j]r)\\ge j-1$.\n\\item Disk at infinity: $t=v/u$, $w=1/u$, and $w=w(t)\\in t^4+t^5\\Z_2[[t]]$ is the solution of $t^4-w+(1+2t)w^3=0$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\nModulo 2, $v^4\\equiv u^3-u\\equiv0$, so $v$ is even. If $u$ is even, the derivative of $u-u^3$ is a unit at $u\\equiv0$, so $u=u_0(v)$ by Hensel's lemma. If $u$ is odd, then $8\\mid u-u^3$, so $v^4+2v\\equiv0\\pmod8$ gives $4\\mid v$. Dividing the equation by $-8$ gives the equation of (ii), and its derivative with respect to $r$ is a unit, so the solution is unique. The coefficient inequality follows by induction from $r=t+32t^4-6\\varepsilon r^2-8r^3$. (iii) holds because the derivative with respect to $w$ is $-1$.\n\\end{proof}\n\n\\paragraph{Step 5: 2-adic logarithms.}\nWe use $\\omega=(\\omega_0,\\omega_1,\\omega_2)=(1,v,u)\\,dv/(1-3u^2)$ as a basis of the regular differentials, and let $L_i=\\log G_i\\in\\Q_2^3$. All integrals below are computed as antiderivatives of power series on the analytic disks of Lemma~\\ref{lem:1.1.4:charts}, and their values equal the abelian integrals (\\cite[Section 3]{KRZB16}).\n\n\\begin{lem}\\label{lem:1.1.4:logs}\n(1) $v_2(L_0)=(1,3,4)$, $v_2(L_1)=(-1,1,1)$, and $\\Delta=L_{0,0}L_{1,2}-L_{1,0}L_{0,2}$ has valuation 2. Hence $\\operatorname{rank}J(\\Q)=2$.\n(2) The annihilating vector $a$ of $L_0,L_1$, normalized by $a_1=1$, lies in $\\Z_2^3$, and $a\\equiv(4,1,2)\\pmod8$.\n(3) $\\log J(\\Q)\\subseteq\\Z_2L_0+\\Z_2L_1$.\n\\end{lem}\n\\begin{proof}\n(1) From $\\operatorname{div}(u+2v)$ we get $4L_0=-\\int_{P_0}^{P_*}\\omega$, and $P_*$ lies in the same even disk as $P_0$ ($t=-4$). The function of pole order 10\n\\[\ng_{10}=-13043u^2+(27304v^2+22862v+19496)u-5780v^3-47008v^2-16272v-6453\n\\]\nsatisfies $\\operatorname{div}g_{10}=7P_1+Q_1+Q_2+Q_3-10O$. $Q_1$ lies in the odd disk of $P_1$, and $Q_2,Q_3$ are conjugate over a 2-adic quadratic extension and lie in the disk at infinity ($v_2(t)=3/2$, $v_2(w)=6$). Hence $8L_1=-\\bigl(\\int_{P_1}^{Q_1}\\omega+\\operatorname{Tr}\\int_O^{Q_2}\\omega\\bigr)$. Computing with the valuations of all discarded tails bounded, we obtain the valuations in (1) (\\code{1.1.4f}). The two products in $\\Delta$ have valuations 2 and 3, so $v_2(\\Delta)=2$, and $L_0,L_1$ are independent. So the rank is at least 2, and together with Lemma~\\ref{lem:1.1.4:rank} it is 2. (2) is the same computation (\\code{1.1.4f}).\n(3) In Step 3 (c) the 2-adic images of $G_0,G_1$ are independent, so the two are independent in $J(\\Q)/2J(\\Q)$. The torsion of $J(\\Q)$ has odd order ($J(\\Q)[2]=0$) and the rank is 2, so $\\langle G_0,G_1\\rangle$ has odd index modulo torsion. The logarithm of a torsion point is 0, so (3) follows.\n\\end{proof}\n\n\\paragraph{Step 6: integral points.}\n\\begin{lem}\\label{lem:1.1.4:even}\nThe only integral points in the even disk are $P_0$ and $P_*$.\n\\end{lem}\n\\begin{proof}\nLet $E(t)$ be the integral from $t=0$ of the pullback of $a\\cdot\\omega$. At rational points, $E(t)=a\\cdot(\\log[P(t)-O]-L_0)=0$. The coefficients are\n\\[\n[t]E=2a_0,\\quad[t^2]E=2a_1-4a_2,\\quad[t^3]E=32a_0,\\quad[t^4]E=48a_1-128a_2\n\\]\nand by Lemma~\\ref{lem:1.1.4:logs}(2) their valuations are $3,1,7,4$. For $m\\ge5$, since the coefficients of $u_0$ are integers, $v_2([t^m]E)\\ge m-v_2(m)\\ge5$. The minimal valuation occurs only in degree 2 (\\code{1.1.4g}), so by Strassmann's theorem $E$ has at most two zeros in $\\Z_2$. These two are $t=0$ ($P_0$) and $t=-4$ ($P_*$).\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.4:odd}\nThe only integral point in the odd disk $\\varepsilon$ is $P_\\varepsilon$.\n\\end{lem}\n\\begin{proof}\nSince $1-3u^2=-2D_\\varepsilon$ with $D_\\varepsilon=1+12\\varepsilon r+24r^2$, the pullback of $\\omega$ is $-2(1,4t,\\varepsilon+4r)\\,dt/D_\\varepsilon$, and $v_2([t^j]D_\\varepsilon^{-1})\\ge j+1$ ($j\\ge1$). Let $H_\\varepsilon$ ($H_\\varepsilon(0)=0$) be the antiderivative of $a\\cdot\\omega$ divided by $-4$. Then $H_\\varepsilon'=(C_\\varepsilon/2+2a_1t+2a_2r)/D_\\varepsilon$ with $C_\\varepsilon=a_0+\\varepsilon a_2$, and $v_2(C_\\varepsilon)=1$. So $[t]H_\\varepsilon=C_\\varepsilon/2$ and $[t^2]H_\\varepsilon=a_1+a_2-3\\varepsilon C_\\varepsilon$ are odd, and for $m\\ge3$, $v_2([t^m]H_\\varepsilon)\\ge m-v_2(m)\\ge2$. That is, $H_\\varepsilon\\equiv t+t^2\\pmod2$ (\\code{1.1.4g}). By Strassmann's theorem and Hensel's lemma, the zeros of $H_\\varepsilon$ in $\\Z_2$ are one with $t$ even ($t=0$) and one with $t$ odd.\nSuppose that $P(t)$ is a rational point for an odd $t$. For $I=\\int_{P_\\varepsilon}^{P(t)}\\omega$, the coefficient inequalities above give $I_0/(-2)\\equiv t$, $I_2/(-2)\\equiv\\varepsilon t\\pmod2$, so $v_2(I_0)=v_2(I_2)=1$. By Lemma~\\ref{lem:1.1.4:logs}(3), $I=b_0L_0+b_1L_1$ with $b_k\\in\\Z_2$. But in Cramer's formula $b_0=(I_0L_{1,2}-L_{1,0}I_2)/\\Delta$ the two terms of the numerator have valuations 2 and 0, so $v_2(b_0)=0-2=-2$. This is a contradiction.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.1.4}]\nBy Lemmas~\\ref{lem:1.1.4:charts}, \\ref{lem:1.1.4:even}, \\ref{lem:1.1.4:odd}, the only integral points of $C$ are $P_0,P_1,P_{-1},P_*$, and under $(x,y)=(v,-u)$ they become the four solutions in the theorem. The rank follows from Lemma~\\ref{lem:1.1.4:logs}(1).\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+y^3+2x+y=0$ \\ ($H=30$)}{x^4+y^3+2x+y=0 (H=30)}}\\label{sec:1.1.5}\n\n\\begin{thm}\\label{thm:1.1.5}\nThe only integer solutions of $x^4+y^3+2x+y=0$ are $(x,y)=(0,0),(8,-16)$.\n\\end{thm}\n\n\\paragraph{Setup.} Put $u=y$, $z=x$. Then the equation becomes\n\\[\nC:\\quad F(u,z)=u^3+u+z^4+2z=0\n\\]\nThe projective completion $z^4+u^3w+uw^3+2zw^3=0$ is a smooth plane quartic over $\\Q$ (genus 3). At the point at infinity $O=(1:0:0)$ the line $w=0$ meets the curve with multiplicity 4, since $z^4=0$; so $O$ is a rational hyperflex. Near $O$ put $t=z/u$, $w=1/u$. Then the equation is\n\\[\nw+t^4+(1+2t)w^3=0\n\\]\nThe partial derivative with respect to $w$ is 1 at $(t,w)=(0,0)$, so $t$ is a local parameter, and $\\operatorname{ord}_Oz=-3$, $\\operatorname{ord}_Ou=-4$. $J$ is the Jacobian of $C$.\n\n\\begin{prop}\\label{prop:1.1.5}\nThe only integral points of $C$ are $P=(0,0)$ and $R=(-16,8)$.\n\\end{prop}\n\nSince $(x,y)=(z,u)$, the points $P,R$ are $(x,y)=(0,0),(8,-16)$, and Theorem~\\ref{thm:1.1.5} is equivalent to Proposition~\\ref{prop:1.1.5}. This section does not determine all of $C(\\Q)$. Modulo 2 the point $(u,z)=(1,0)$ is singular, so $C$ has bad reduction at 2. Therefore we argue in a single 2-adic disk that contains all integral points.\n\nThe proof has five steps. We fix the bitangent field $K$, show $\\Cl(K)[2]=0$ (Lemma~\\ref{lem:1.1.5-class}), and obtain $\\operatorname{rank}J(\\Q)\\le2$ by 2-descent (Lemma~\\ref{lem:1.1.5-rank}). Then we construct an annihilating differential from 2-adic logarithms (Lemma~\\ref{lem:1.1.5-log}) and apply Strassmann's theorem on the disk that contains all integral points (Lemma~\\ref{lem:1.1.5-disk}).\n\n\\paragraph{Step 1: the bitangent field and bad primes.}\nThe 27 bitangents other than the tangent line at $O$ have the form $u=mz+b$, and the slope $m$ is a root of\n\\[\n\\begin{aligned}\ng(m)={}&m^{27}+480m^{19}-2688m^{18}-34560m^{11}-141312m^{10}\\\\\n&-162816m^{9}-16384m^{3}+49152m-32768\n\\end{aligned}\n\\]\nThe intercept $b$ is an explicit element of $\\Q(m)$, and substituting $u=mz+b$ into $F$ gives the square of a monic quadratic with nonzero discriminant (\\code{1.1.5a}). Since $g$ is irreducible, the 27 bitangents form one Galois orbit. The field $K=\\Q[m]/(g)$ has signature $(3,12)$ and discriminant $D=2^{28}\\cdot14365291^{6}$. There are three prime ideals above 2; their ramification indices are $1,10,16$, and all residue degrees are 1.\n\nWe find the bad primes of $C$. Because of the identity\n\\[\n12F-4uF_u-3zF_z=8u+18z\n\\]\na singular point in odd characteristic satisfies $u=-9z/4$. In characteristic 3 we have $F_u\\equiv1$, so there is no singular point. In characteristic different from 2 and 3, $F_u=3u^2+1=0$ and $F_z=4z^3+2=0$ give $z^2=-16/243$, $z^3=-1/2$, and hence $z=243/32$. For this value to satisfy $z^2=-16/243$, the number $243^3+2^{14}=14365291$ must be 0. The number $q=14365291$ is prime. Modulo $q$ the only singular point is the reduction of $(u_c,z_c)=(-2187/128,\\,243/32)$, and at this point the $q$-adic valuations of $(F,F_u,F_z,\\det\\operatorname{Hess}F)$ are $(1,1,1,0)$. Hence the singular fiber has only one singular point, an ordinary double point (node) of thickness 1. This fiber is geometrically irreducible: if it were reducible, B\u00e9zout's theorem would force further intersection points between the components. The component group of the N\u00e9ron model is trivial, so the descent image is unramified at $q$, and $S=\\{2\\}$ suffices in Proposition~\\ref{thm:A}.\n\n\\paragraph{Step 2: the class group.}\n\\begin{lem}\\label{lem:1.1.5-class}\n$\\Cl(K)[2]=0$.\n\\end{lem}\n\\begin{proof}\nWe apply Proposition~\\ref{thm:B} with $n=27$, $(r_1,r_2)=(3,12)$, the $D$ above, and $T=\\log10^8$. The window is a step function on 64 cells of equal width, and its heights are positive integers, symmetric from left to right (the input of \\code{1.1.5d}). Two pieces of data are needed.\n\\begin{enumerate}[label=(\\roman*)]\n\\item There are $5{,}764{,}533$ prime ideals of norm less than $10^8$ in total, and we count the number $a(q)$ for every norm (\\code{1.1.5b}).\n\\item Every one of the $412{,}122$ prime ideals of norm at most $6\\cdot10^6$ has a witness for Lemma~\\ref{lem:C} (\\code{1.1.5c}). Therefore we set $k(q)=a(q)$ if $q\\le6\\cdot10^6$, and $k(q)=0$ otherwise.\n\\end{enumerate}\nWith these data the computation gives $B^-(f)>0.000226856>0$ (\\code{1.1.5d}). The computation uses exact rational coefficients and directed interval arithmetic, so rounding errors cannot change the conclusion. By Proposition~\\ref{thm:B}, $\\Cl(K)[2]=0$.\n\\end{proof}\n\n\\paragraph{Step 3: an upper bound for the rank.}\n\\begin{lem}\\label{lem:1.1.5-rank}\n$\\operatorname{rank}J(\\Q)\\le2$.\n\\end{lem}\n\\begin{proof}\nThe hypotheses of Proposition~\\ref{thm:A} were checked in the setup and in Step 1. Hence $J(\\Q)[2]=0$, and the bitangent function $h=-(u-mz-b)$, normalized to have leading coefficient 1 at $O$, gives an injective homomorphism $\\delta:J(\\Q)/2J(\\Q)\\to K^\\times/K^{\\times2}$. By Lemma~\\ref{lem:1.1.5-class},\n\\[\n\\dim_{\\F_2}K(S,2)=(r_1+r_2)+\\#\\{\\mathfrak p\\mid2\\}=15+3=18\n\\]\nEighteen explicit elements supported on $S$ form a basis of this space, because the matrix formed from their 2-adic valuations and their quadratic characters at the primes 7, 11, 13, 17 has rank 18 (\\code{1.1.5a}).\n\nWe impose conditions on this space one at a time. The condition that the norm is a square reduces the dimension to 16. Imposing in turn the local conditions at the good primes 487, 491, 499, 503 reduces the dimension to $11,9,6,4$. At each prime the local image is generated by the values of $h$ computed at all points of $C(\\F_p)$ (Proposition~\\ref{thm:S}).\n\nAt 2, the bitangent code maps $J[2]$ Galois-equivariantly and injectively into $\\F_2^{27}$, and the nonzero codewords have weights 12 and 16. An element of $J(\\Q_2)[2]$ goes to a codeword that is constant on each local orbit, and the local orbits have sizes $1,10,16$. Among the unions of these orbits, the only one of weight 12 or 16 is the single orbit of size 16. Hence $\\dim J(\\Q_2)[2]\\le1$ and $\\dim J(\\Q_2)/2J(\\Q_2)=3+\\dim J(\\Q_2)[2]\\le4$. The images of the following four local classes are independent (\\code{1.1.5a}).\n\\begin{enumerate}[label=(\\alph*)]\n\\item $[P-O]$;\n\\item $[Q-O]$ for the point $Q$ with $t=2$ in the chart at infinity;\n\\item $[D_1-2O]$, where $D_1$ is the sum of the $\\Q_2(\\sqrt2)$-point with $z=\\sqrt2$ and its conjugate;\n\\item $[D_2-2O]$, where $\\theta^2+\\theta+1=0$ and $D_2$ is the sum of the $\\Q_2(\\theta)$-point with $z=\\theta$ and its conjugate.\n\\end{enumerate}\nThe coordinates of the points are Hensel lifts modulo $2^{36}$. The relative valuation that this error contributes to the values of $h$ exceeds twice the ramification index at each 2-adic prime ideal, so the local square classes are determined. The local image has dimension at most 4 and contains four independent elements, so the 2-adic local image is the space spanned by these four elements. In the 4-dimensional candidate space above, the subspace whose restriction at 2 lies in this image is 2-dimensional. Since $\\delta$ is injective and $J(\\Q)[2]=0$, we get $\\operatorname{rank}J(\\Q)\\le2$.\n\\end{proof}\n\n\\paragraph{Step 4: 2-adic logarithms.}\nLet $D$ be the rational divisor of degree 2 defined by $z^2-z+1=0$, $u=1-z$. Since $F(1-z,z)=(z^2-z+1)(z^2+2)$, the divisor $D$ lies on $C$. We use the basis of holomorphic differentials\n\\[\n\\boldsymbol\\omega=(\\omega_0,\\omega_1,\\omega_2)=(1,z,u)\\frac{dz}{3u^2+1}\n\\]\nThe $P$-disk consists of the points with $|z|_2<1$, $u=u(z)$. Here $u(z)\\in\\Z_2[[z]]$ is the unique solution with $u(0)=0$ ($F_u(0,0)=1$). On this disk the coefficients of $\\boldsymbol\\omega$ lie in $\\Z_2$. On the $O$-disk we have $|t|_2<1$, $w=w(t)\\in\\Z_2[[t]]$, and $\\boldsymbol\\omega=-(w,t,1)\\,dt/(1+3(1+2t)w^2)$, so again the coefficients are integral. Both disks are analytic open disks, so Abelian integrals on them are equal to formal antiderivatives (\\cite[Section 3]{KRZB16}). We write $\\log X\\in\\Q_2^3$ for the logarithm of $X\\in J(\\Q_2)$.\n\n\\begin{lem}\\label{lem:1.1.5-log}\n\\begin{enumerate}[label=(\\arabic*)]\n\\item $\\operatorname{div}(u+2z)=3P+R-4O$. Moreover, there is a rational function $h_D$ with $\\operatorname{div}(h_D)=14D+E_D-31O$, where $E_D$ is an effective divisor of degree 3, irreducible over $\\Q$.\n\\item Modulo $2^{16}$, $L_P=\\log[P-O]$ and $L_D=\\log[D-2O]$ are\n\\[\nL_P\\equiv(510,\\,3064,\\,32784),\\qquad L_D\\equiv(12669,\\,59033,\\,38772)\n\\]\n\\item $\\operatorname{rank}J(\\Q)=2$. Moreover, there is a primitive vector $\\lambda=(a_0,a_1,a_2)\\in\\Z_2^3$ with $\\lambda\\equiv(0,4,1)\\pmod8$ such that $\\lambda\\cdot\\boldsymbol\\omega$ annihilates all logarithms of $J(\\Q)$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(1) Substituting $u=-2z$ gives $F(-2z,z)=z^3(z-8)$, and $u+2z$ has a pole of order 4 at $O$. Hence the first equality holds. We find $h_D$ in the basis $z^au^b$ ($b\\le2$, $3a+4b\\le31$; 29 elements) of $L(31O)$ from the condition that it vanishes to order 14 at the two points of $D$; the solution space is 1-dimensional. The coefficient of $uz^9$, the unique monomial of weight 31, is nonzero, so the pole has order exactly 31. Further, $\\operatorname{Res}_u(F,h_D)=c\\,(z^2-z+1)^{14}q_D(z)$, where $q_D$ is an irreducible cubic. At the roots of $q_D$ the greatest common divisor of $F$ and $h_D$ is linear in $u$, so the $u$-coordinates of $E_D$ are also determined. Hence the divisor equality accounts for all zeros and poles (\\code{1.1.5e}).\n\n(2) $R$ is the point of the $P$-disk with $z=8$. From the first equality in (1), $4[P-O]+[R-P]=0$, so\n\\[\nL_P=-\\tfrac14\\int_P^R\\boldsymbol\\omega\n\\]\nThe three roots of $q_D$ have distinct 2-adic valuations $1,2,-6$, so all of them lie in $\\Q_2$. The first two points lie in the $P$-disk, and the third lies in the $O$-disk ($v_2(t)=2$). The class of the base divisor $2P+O$ is $2[P-O]$. Let $T_D$ be the sum of the tiny integrals from $P,P,O$ to the three points of $E_D$. Then the second equality in (1) gives\n\\[\n14L_D=-T_D-2L_P\n\\]\nThe differentials in the charts have integral coefficients and the parameters of the endpoints have valuation at least 1, so the $n$th term of the integral series has valuation at least $n-v_2(n)$. We compute 60 terms; the discarded terms have valuation at least 55, and the values modulo $2^{16}$ above are determined even after division by 4 and by 14 (\\code{1.1.5e}).\n\n(3) The valuations of the components of $L_P$ are $(1,3,4)$, and those of $L_D$ are $(0,0,2)$. Since $L_P/2\\equiv(1,0,0)$ and $L_D\\equiv(1,1,0)\\pmod2$ are independent, $[P-O]$ and $[D-2O]$ have infinite order and are independent. Together with Lemma~\\ref{lem:1.1.5-rank}, this gives $\\operatorname{rank}J(\\Q)=2$. The cross product of $L_P/2$ and $L_D$ is an integral vector whose third component is a unit. Let $\\lambda$ be this vector divided so that its third component is 1; then $\\lambda\\equiv(0,4,1)\\pmod8$ (\\code{1.1.5e}). The vector $\\lambda$ annihilates the two logarithms, the subgroup generated by the two classes has finite index in $J(\\Q)$, and the logarithm of a torsion element is 0. Therefore $\\lambda\\cdot\\boldsymbol\\omega$ annihilates all logarithms of $J(\\Q)$.\n\\end{proof}\n\n\\paragraph{Step 5: the disk containing the integral points.}\n\\begin{lem}\\label{lem:1.1.5-disk}\nAll integral points of $C$ lie in the $P$-disk. That is, they can be written as $z=2t$, $t\\in\\Z_2$, $u=u(2t)$.\n\\end{lem}\n\\begin{proof}\nSince $u^3+u\\equiv u(u+1)^2\\equiv0\\pmod2$, we have $z^4\\equiv0$ modulo 2, that is, $z$ is even. If $u$ is odd, then $u^3+u=u(u^2+1)\\equiv2\\pmod4$, while $z^4+2z\\equiv0\\pmod4$, a contradiction. Hence both $u$ and $z$ are even. For each even $z$, the equation $F(u,z)=0$ has only one even solution by Hensel's lemma ($F_u\\equiv1\\pmod2$), and this solution is $u(z)$.\n\\end{proof}\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.1.5}]\nOn the $P$-disk let\n\\[\n\\Phi(t)=\\int_P^{(u(2t),\\,2t)}\\lambda\\cdot\\boldsymbol\\omega=\\sum_{n\\ge1}c_nt^n\n\\]\nThe constant term is 0. The exact Taylor expansion gives\n\\[\nc_1=2a_0,\\qquad c_2=2a_1-4a_2,\\qquad c_3=-32a_0,\\qquad c_4=-48a_1+128a_2\n\\]\n(\\code{1.1.5f}). Since $\\lambda\\equiv(0,4,1)\\pmod8$, their valuations are, in order, at least 4, exactly 2, at least 8, and exactly 6. Since the coefficients of $\\boldsymbol\\omega$ in $z$ are integral, for $n\\ge5$ the valuation of $c_n$ is at least $n-v_2(n)\\ge5$. Hence $c_2$ is the only coefficient of smallest valuation, and by Strassmann's theorem $\\Phi$ has at most two zeros in $\\Z_2$.\n\nIf an integral point $Q$ lies at $t=t_Q$, then $[Q-P]\\in J(\\Q)$, and by \\cite[Section 3]{KRZB16}, $\\Phi(t_Q)$ is equal to $\\lambda\\cdot\\log[Q-P]$. By Lemma~\\ref{lem:1.1.5-log}(3) this value is 0 (the argument of \\cite{Coleman85,MP12}). The points $P$ and $R$ give the distinct zeros $t=0$ and $t=4$. By Lemma~\\ref{lem:1.1.5-disk} all integral points lie in this disk, so there are no other integral points.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+y^3+y^2+x=0$ \\ ($H=30$)}{x^4+y^3+y^2+x=0 (H=30)}}\\label{sec:1.1.6}\n\n\\begin{thm}\\label{thm:1.1.6}\nThe equation $x^4+y^3+y^2+x=0$ has only the following integer solutions: $(x,y)=(-1,-1),(-1,0),(0,-1),(0,0),(2,-3)$.\n\\end{thm}\n\n\\paragraph{Setup.} Put $u=y$, $z=x$. Then the equation becomes\n\\[\nC:\\quad F(u,z)=u^3+u^2+z^4+z=0\n\\]\nThe projective completion $u^3w+u^2w^2+z^4+zw^3=0$ is a smooth plane quartic (genus 3), and the point at infinity $\\infty=(1:0:0)$ is a rational hyperflex. With $t=z/u$, $w=1/u$, the equation near $\\infty$ is $w+w^2+tw^3+t^4=0$, and $t$ is a local parameter. $C$ has good reduction at 2, because $F_z=1+4z^3$ is a unit in the affine chart and $F_w=1+2w+3tw^2$ is a unit in the chart at infinity. An integral basis of holomorphic differentials is\n\\[\n\\boldsymbol\\omega=(\\omega_0,\\omega_1,\\omega_2)=(1,z,u)\\frac{dz}{3u^2+2u}=-(1,z,u)\\frac{du}{1+4z^3}=-(w,t,1)\\frac{dt}{1+2w+3tw^2}\n\\]\nand in the last two expressions the denominators are units on the 2-adic residue disks.\n\n\\begin{prop}\\label{prop:1.1.6}\n$C(\\Q)=\\{\\infty,P_0,P_1,A,B,R\\}$, where $P_0=(0,0)$, $P_1=(0,-1)$, $A=(-1,0)$, $B=(-1,-1)$, $R=(-3,2)$.\n\\end{prop}\n\nSince $(x,y)=(z,u)$, the five affine points are $(x,y)=(0,0),(-1,0),(0,-1),(-1,-1),(2,-3)$, and Theorem~\\ref{thm:1.1.6} follows directly from Proposition~\\ref{prop:1.1.6}.\n\nThe proof has six steps. We obtain $\\operatorname{rank}J(\\Q)\\le2$ from $\\Cl(K)[2]=0$ (Lemma~\\ref{lem:1.1.6-class}) and 2-descent (Lemma~\\ref{lem:1.1.6-rank}), and we compute 2-adic logarithms using principal divisors to obtain saturation at 2 and an annihilator (Lemmas~\\ref{lem:1.1.6-log}, \\ref{lem:1.1.6-sat}). 2-adic Chabauty reduces the candidates to 11 (Lemma~\\ref{lem:1.1.6-zeros}), and a sieve modulo 23 eliminates the five that remain (Lemma~\\ref{lem:1.1.6-sieve}).\n\n\\paragraph{Step 1: the bitangent field and bad primes.}\nThe 27 bitangents other than the tangent line at $\\infty$ have the form $u=mz+\\eta(m)$, where $m$ is a root of\n\\[\n\\begin{aligned}\nf(M)={}&M^{27}-160M^{19}-1344M^{18}+1280M^{15}-3840M^{11}\\\\\n&+23552M^{10}-40704M^9+4096M^7-8192M^6-4096M-4096\n\\end{aligned}\n\\]\nThe element $\\eta\\in\\Q(m)$ is given explicitly, and we check exactly the two coefficient conditions which say that $z^4+(mz+\\eta)^3+(mz+\\eta)^2+z$ is the square of a quadratic (\\code{1.1.6a}). Since $f$ is irreducible, the 27 bitangents form one Galois orbit. The field $K=\\Q[M]/(f)$ has signature $(3,12)$ and discriminant $D_K=2^{24}\\cdot3^6\\cdot601^6\\cdot857^6$. There is one prime ideal above 2 (ramification index 9, residue degree 3), and there are eight above 3.\n\nA singular point satisfies $F_u=u(3u+2)=0$ and $F_z=4z^3+1=0$. In characteristic 2 we have $F_z\\equiv1$. In characteristic different from 2 and 3, if $u=0$ then $F=z(z^3+1)=3z/4\\ne0$. If $u=-2/3$ then $F=4/27+3z/4$, so $z=-16/81$, and $\\operatorname{Res}_Z(81Z+16,4Z^3+1)=515057=601\\cdot857$. At 601 and 857 the only singular point is the reduction of $(-2/3,-16/81)$. There the Hessian determinant $-2048/2187$ is a unit, and the value $-2060228/43046721$ of $F$ has valuation 1. Hence there is only one singular point, an ordinary node of thickness 1, the singular fiber is geometrically irreducible, and the component group is trivial. Therefore $S=\\{2,3\\}$ suffices in Proposition~\\ref{thm:A}.\n\n\\paragraph{Step 2: the class group.}\n\\begin{lem}\\label{lem:1.1.6-class}\n$\\Cl(K)[2]=0$.\n\\end{lem}\n\\begin{proof}\nWe apply Proposition~\\ref{thm:B} with a window consisting of a single cell. That is, $v$ is the indicator function of an interval of length $T$, and $f(x)=(1-|x|/T)_+$. We take $T=13$ ($e^{13}=442413.4\\ldots$). Every one of the $37{,}489$ prime ideals of norm at most $450{,}000$ has an explicit generator $g$ with $(g)=\\mathfrak p$ (\\code{1.1.6b}; this is the case of Lemma~\\ref{lem:C} with cofactor 1). Hence $c_m(q)=a(q)$ in every term of the sum. For this window the archimedean term has a closed form, and\n\\[\nB^-(f)=B_0+\\frac2T\\sum_{j\\ \\text{odd}}\\frac{e^{-jT}}{j^2}+\\frac{2\\alpha}T\\log(1+e^{-T})>B_0,\n\\]\nwhere\n\\[\nB_0=\\gamma+\\log4\\pi+\\alpha-\\frac{\\pi^2}{4T}-\\frac{2\\alpha\\log2}{T}-\\frac{\\log D_K}{n}+\\frac4n\\sum_{q^m0.0264813>0$ (\\code{1.1.6c}). By Proposition~\\ref{thm:B}, $\\Cl(K)[2]=0$.\n\\end{proof}\n\n\\paragraph{Step 3: an upper bound for the rank.}\n\\begin{lem}\\label{lem:1.1.6-rank}\n$\\operatorname{rank}J(\\Q)\\le2$.\n\\end{lem}\n\\begin{proof}\nBy Proposition~\\ref{thm:A}, $J(\\Q)[2]=0$, and $h_m=-(u-mz-\\eta(m))$, normalized to have leading coefficient 1 at $\\infty$, gives an injective homomorphism $\\delta:J(\\Q)/2J(\\Q)\\to K^\\times/K^{\\times2}$. By Lemma~\\ref{lem:1.1.6-class}, $\\dim K(S,2)=15+9=24$. Twenty-four explicit elements supported on the nine prime ideals above $S$ form a basis. The support is checked by exact ideal equalities, and the independence by the rank 24 of the matrix formed from valuation characters and quadratic characters at good primes (\\code{1.1.6a}).\n\nThe condition that the norm is a square (the sign, and the parity of the valuations at 2 and 3) reduces the dimension to 21. Imposing in turn the local conditions at the good primes $487$, $491$, $499$, $503$, $509$, $521$, $523$ reduces the dimension to $18$, $15$, $12$, $10$, $8$, $6$, $5$ (the local images have dimensions $1,1,1,1,0,1,2$, in this order). Each local image is generated by the values at all points of $C(\\F_p)$ (Proposition~\\ref{thm:S}).\n\nThere is only one prime ideal above 2, so the decomposition group acts transitively on the 27 bitangents. An invariant codeword has weight 0 or 27, while the nonzero codewords have weights 12 and 16; hence $J(\\Q_2)[2]=0$ and $\\dim J(\\Q_2)/2J(\\Q_2)=3$. Local square classes are determined by the parity of the valuation and by the characters of $(\\mathcal O_K/\\mathfrak p^{19})^\\times$ ($2e+1=19$). The images of the three $\\Q_2$-points with $(u,z)\\equiv(0,0),(1,398796270),(1,823490285)$ modulo $2^{30}$ are independent. The approximation error contributes valuation at least 274 to the value of $h_m$, and the value itself has valuation $-2$, so the square class is determined. Hence these three images span the whole 2-adic local image, and the 5-dimensional space shrinks to dimension 2. Since $\\delta$ is injective, $\\operatorname{rank}J(\\Q)\\le2$.\n\\end{proof}\n\n\\paragraph{Step 4: principal divisors and 2-adic logarithms.}\nLet $D_i=[P_i-\\infty]$ ($i=0,1$). The equalities $\\operatorname{div}(z)=2P_0+A-3\\infty$, $\\operatorname{div}(z+1)=2P_1+B-3\\infty$, $\\operatorname{div}(u+z+1)=2A+P_1+R-4\\infty$ are checked by substitution (the last one comes from $F(-z-1,z)=z^2(z-2)(z+1)$), and they give\n\\[\n[A-\\infty]=-2D_0,\\qquad[B-\\infty]=-2D_1,\\qquad[R-\\infty]=4D_0-D_1\n\\]\n\n\\begin{lem}\\label{lem:1.1.6-log}\n\\begin{enumerate}[label=(\\arabic*)]\n\\item For $i=0,1$ there is a polynomial $h_i(u,z)$ with $\\operatorname{div}(h_i)=35P_i+E_i-38\\infty$, where $E_i$ is an effective divisor of degree 3, irreducible over $\\Q$.\n\\item Modulo $2^{24}$,\n\\[\n\\log D_0\\equiv(15495542,1371452,14073150),\\qquad\n\\log D_1\\equiv(13080018,15362130,15080040).\n\\]\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(1) Among the combinations of the 36 basis elements $z^au^b$ ($b\\le2$, $3a+4b\\le38$) of $L(38\\infty)$, those whose first 35 Taylor coefficients at $P_i$ vanish form a 1-dimensional space, and its element is $h_i$. Exact computation confirms the order 35 at $P_i$, the pole of order 38, and $\\operatorname{Res}_u(F,h_i)=c_i(z-z(P_i))^{35}d_i(z)$. Here $d_i$ is an irreducible monic cubic, and in $\\Q[z]/(d_i)$ the common factor of $F$ and $h_i$ is linear in $u$. Hence the divisor equality accounts for all zeros and poles, and $[E_i-3\\infty]=-35D_i$ (\\code{1.1.6d}).\n\n(2) The minimal polynomial $p_i$ of the $u$-coordinate of $E_i$ is integral at 2 and satisfies $p_i(U)\\equiv U^2(U+1)\\pmod2$, and the $z$-coordinate is a polynomial in $u$ with even coefficients. Hence the three points of $E_i$ reduce modulo 2 to $P_0,P_0,A$. The class of the base divisor $2P_0+A=\\operatorname{div}(z)+3\\infty$ is 0, so $\\log D_i$ is the sum of the tiny integrals from $P_0,P_0,A$ to the three points of $E_i$, divided by $-35$. We compute this sum by a trace in the cubic algebra $\\mathcal A_i=\\Z_2[U]/(p_i)$. Let $e$ be the idempotent lifting $U^2$ from modulo 2, and take the base coordinate $u=-e$ and $\\delta=U+e$. Then $\\delta^2\\in2\\mathcal A_i$, so the $k$th term of the integral has valuation at least $\\lfloor k/2\\rfloor-v_2(k)$. We compute 80 terms modulo $2^{40}$; the discarded terms have valuation at least 34, and the division loses at most 6 digits, so the values modulo $2^{24}$ above are determined (\\code{1.1.6d}).\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.6-sat}\n$\\operatorname{rank}J(\\Q)=2$, and $H=\\langle D_0,D_1\\rangle$ has odd index in $J(\\Q)$. Hence for each $X\\in J(\\Q)$ there are unique $c_0,c_1\\in\\Z_2$ with $\\log X=c_0\\log D_0+c_1\\log D_1$, and if $NX=aD_0+bD_1$ with $N$ odd and $a,b$ integers, then $(c_0,c_1)=(a/N,b/N)$. Moreover, for the primitive vector $\\mathbf a$ with $\\mathbf a\\equiv(699041,3772347,3371045)\\pmod{2^{22}}$ and $\\mathbf a\\equiv(1,1,1)\\pmod2$, the differential $\\omega=\\mathbf a\\cdot\\boldsymbol\\omega$ annihilates all logarithms of $J(\\Q)$.\n\\end{lem}\n\\begin{proof}\nSince $\\log D_0/2\\equiv(1,0,1)$ and $\\log D_1/2\\equiv(1,1,0)\\pmod2$ are independent, $D_0,D_1$ are independent elements of infinite order, and together with Lemma~\\ref{lem:1.1.6-rank} the rank is 2.\n\nThe numbers of points over $\\F_2,\\F_4,\\F_8$ are $5,9,5$, and $\\#J(\\F_2)=35$ (\\code{1.1.6d}). If $X\\in J(\\Q_2)$, then $35X$ lies in the kernel of reduction, that is, in the formal group with parameters in $2\\Z_2$. In the formal logarithm of an integral invariant differential, the coefficients of the homogeneous part of degree $n$ lie in $n^{-1}\\Z_2$ (apply the Euler operator to the closed integral differential), so its value has valuation at least $n-v_2(n)\\ge1$. Since 35 is odd, $\\log J(\\Q_2)\\subseteq2\\Z_2^3$.\n\nIf $X\\in J(\\Q)$ and $2X=aD_0+bD_1$, then $a\\log D_0/2+b\\log D_1/2=\\log X\\in2\\Z_2^3$. The matrix formed by the first two components of the two half-logarithms is invertible modulo 2, so $a,b$ are even, and $X-(a/2)D_0-(b/2)D_1\\in J(\\Q)[2]=0$. Hence $J(\\Q)/H$ has no element of order 2, and the index $N=[J(\\Q):H]$ is odd. The rest follows because the logarithm is a homomorphism and vanishes on torsion elements. The coefficients are obtained from the inverse over $\\Z_2$ of the matrix of the first two logarithm components. The cross product of the two logarithms has common valuation 2, and after division by $2^2$ it is the primitive annihilator $\\mathbf a$ (\\code{1.1.6d}).\n\\end{proof}\n\n\\paragraph{Step 5: 2-adic zeros.}\n$C(\\F_2)$ consists of the five reductions of $P_0,P_1,A,B,\\infty$, so there are also five residue disks, and each center has a known rational point. On the finite disks we use $t=u-u_0$, at $\\infty$ we use $t=z/u$, and we put $t=2s$, $s\\in\\Z_2$. The constant term of $G(s)=\\int_0^{2s}\\omega$ is 0, and by \\cite{Coleman85,MP12} and Lemma~\\ref{lem:1.1.6-sat} every rational point of a disk is a zero of $G$.\n\n\\begin{lem}\\label{lem:1.1.6-zeros}\nOn the five disks, $G$ has 11 zeros in total, exactly one in each ball of the table below. Here $(c_0,c_1)$ are the coefficients of Lemma~\\ref{lem:1.1.6-sat}.\n\\[\n\\begin{array}{c|c|c|r|c|r|c}\n\\text{Disk}&\\text{Ball of }s&v&s\\bmod2^{14}&(c_0,c_1)\\bmod128&70c_0+c_1\\bmod128&\\text{Point}\\\\\\hline\nP_0&1+2\\Z_2&2&11613&(106,48)&44&-\\\\\nP_0&2\\Z_2&2&0&(1,0)&70&P_0\\\\\nP_1&2+4\\Z_2&4&10130&(124,35)&11&-\\\\\nP_1&4\\Z_2&4&0&(0,1)&1&P_1\\\\\nA&7+8\\Z_2&7&16383&(4,127)&23&R\\\\\nA&3+8\\Z_2&7&4595&(120,79)&31&-\\\\\nA&2+4\\Z_2&5&7586&(64,104)&104&-\\\\\nA&4\\Z_2&5&0&(126,0)&116&A\\\\\nB&\\Z_2&1&0&(0,126)&126&B\\\\\n\\infty&1+2\\Z_2&2&529&(5,65)&31&-\\\\\n\\infty&2\\Z_2&2&0&(0,0)&0&\\infty\n\\end{array}\n\\]\n\\end{lem}\n\\begin{proof}\nWe expand $G$ up to degree 40 over $\\Z/2^{30}$ and divide each disk into balls $s=c+2^dr$. After dividing by the minimal valuation $v$ of the coefficients: if only the constant term is a unit, then Strassmann's theorem gives no zero; if the linear coefficient is a unit and all higher coefficients are even, then Hensel's lemma and Strassmann's theorem give exactly one zero. Every ball ends in one of these two cases within depth 3. The only balls outside the table are $1+2\\Z_2$ in the $P_1$-disk and $1+4\\Z_2$ in the $A$-disk, and neither has a zero (\\code{1.1.6e}). The error of the annihilator is divisible by $2^{22}$, and after the substitution $t=2s$ the coefficient of degree $k$ acquires a factor of valuation $k-v_2(k)\\ge1$, so the error of $G$ is divisible by $2^{23}$. The terms of degree above 40 have valuation at least 36. Hence the error of a root $s$ has valuation $23-v+d\\ge19$, and the coefficients $(c_0,c_1)$ are determined modulo $2^{11}$. Below we use them only modulo $2^7$. $R$ is the point of the $A$-disk with $s=-1$.\n\\end{proof}\n\n\\paragraph{Step 6: a sieve modulo 23.}\n\\begin{lem}\\label{lem:1.1.6-sieve}\n$\\#J(\\F_{23})=11392=2^7\\cdot89$. The element $H_1=89\\overline{D_1}$ has order 128 and $H_0=89\\overline{D_0}=70H_1$, so the 2-primary part of $J(\\F_{23})$ is the cyclic group generated by $H_1$. Moreover, as $Q$ runs through $C(\\F_{23})$, the set of $r\\in\\Z/128$ with $89[Q-\\infty]=rH_1$ is\n\\[\n\\mathcal R=\\{0,1,2,4,6,8,23,24,33,35,52,58,70,99,101,116,117,126,127\\}\n\\]\n\\end{lem}\n\\begin{proof}\nWe have $\\#C(\\F_{23})=22$, $\\#C(\\F_{23^2})=538$, $\\#C(\\F_{23^3})=12616$. Newton's identities and the functional equation give $L_{23}(T)=1-2T+6T^2+140T^3+138T^4-1058T^5+12167T^6$, and $\\#J(\\F_{23})=L_{23}(1)=11392$. The order, the relation $H_0=70H_1$, and the classes of the 22 points are computed exactly by Riemann--Roch divisor arithmetic over $\\F_{23}$ (\\code{1.1.6f}).\n\\end{proof}\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.1.6}]\nA point $X\\in C(\\Q)$ lies in one of the five disks and is a zero of $G$, so it is one of the 11 zeros in the table. A ball that contains a known point contains only one zero, so if it lies in such a ball, $X$ is that known point. Otherwise $X$ is one of the other five zeros. By Lemma~\\ref{lem:1.1.6-sat}, $N[X-\\infty]=aD_0+bD_1$ with $N$ odd. Reducing modulo 23 and multiplying by 89 gives $89N\\,\\overline{[X-\\infty]}=aH_0+bH_1=(70a+b)H_1$, and $N$ is invertible modulo 128, so $89\\,\\overline{[X-\\infty]}=(70c_0+c_1)H_1$. The reduction of $X$ is a point of $C(\\F_{23})$, so by \\cite{BS10}, we must have $70c_0+c_1\\bmod128\\in\\mathcal R$. However, none of the values $44,11,31,104,31$ of the five zeros lies in $\\mathcal R$. Therefore $C(\\Q)$ consists only of the six known points.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+y^3-y^2+x=0$ \\ ($H=30$)}{x^4+y^3-y^2+x=0 (H=30)}}\\label{sec:1.1.7}\n\n\\begin{thm}\\label{thm:1.1.7}\nThe equation $x^4+y^3-y^2+x=0$ has only the following integer solutions: $(x,y)=(-4,-6),(-1,0),(-1,1),(0,0),(0,1),(1,-1)$.\n\\end{thm}\n\n\\paragraph{Setup.} Put $u=-y$, $z=-x$. Then $x^4+y^3-y^2+x=-(u^3+u^2-z^4+z)$, so the equation becomes\n\\[\nC:\\quad F(u,z)=u^3+u^2-z^4+z=0\n\\]\nThe projective completion $u^3w+u^2w^2-z^4+zw^3=0$ is a smooth plane quartic (genus 3), and the point at infinity $O=(1:0:0)$ is a rational hyperflex. With $t=z/u$, $w=1/u$, the equation near $O$ is $w+w^2+tw^3-t^4=0$. $C$ has good reduction at 2 ($F_z=1-4z^3$ and $F_w=1+2w+3tw^2$ are units), and an integral basis of holomorphic differentials is\n\\[\n\\boldsymbol\\omega=(1,z,u)\\frac{dz}{3u^2+2u}=-(1,z,u)\\frac{du}{1-4z^3}=-(w,t,1)\\frac{dt}{1+2w+3tw^2}\n\\]\nAt 3 the curve has bad reduction, since modulo 3 the point $(u,z)=(0,1)$ is singular.\n\n\\begin{prop}\\label{prop:1.1.7}\n$C(\\Q)=\\{O,(0,0),(0,1),(-1,0),(-1,1),(1,-1),(6,4)\\}$.\n\\end{prop}\n\nSince $(x,y)=(-z,-u)$, the six affine points are $(0,0)$, $(-1,0)$, $(0,1)$, $(-1,1)$, $(1,-1)$ and $(-4,-6)$, in this order, and Theorem~\\ref{thm:1.1.7} follows from Proposition~\\ref{prop:1.1.7}. For $X\\in C(\\Q)$ we write $D_X=[X-O]$, and we put $G_1=D_{(0,1)}$, $G_2=D_{(1,-1)}$.\n\nThe proof goes as follows. In Steps 1--3 we show $\\operatorname{rank}J(\\Q)\\le2$; since 5 is a bad prime at which the component group has order 2, we determine the local image at 5 separately (Lemma~\\ref{lem:1.1.7-five}). In Step 4 we show that the rank is 2 and that $\\langle G_1,G_2\\rangle$ has odd index. In Steps 5 and 6, 2-adic and 3-adic Chabauty each reduce the candidates for new rational points to two, and in Step 7 a comparison modulo 509 and 293 eliminates all of them.\n\n\\paragraph{Step 1: the bitangent field and bad primes.}\nThe 27 bitangents other than the tangent line at $O$ have the form $u=mz+\\eta(m)$, where $m$ is a root of\n\\[\n\\begin{aligned}\nf(m)={}&m^{27}-160m^{19}-1344m^{18}-1280m^{15}-3840m^{11}\\\\\n&+23552m^{10}-40704m^9-4096m^7+8192m^6-4096m-4096\n\\end{aligned}\n\\]\nThe element $\\eta\\in\\Q(m)$ is given explicitly, and we check exactly the two coefficient conditions which say that $F(mz+\\eta,z)$ is $-1$ times the square of a quadratic (\\code{1.1.7a}). The polynomial $f$ is irreducible, and $h=u-mz-\\eta$ is $t^{-4}(1+\\cdots)$ at $O$, so it is normalized. The field $K=\\Q[m]/(f)$ has signature $(3,12)$ and discriminant $D_K=2^{24}\\cdot3^6\\cdot17^6\\cdot1289^6$. There is one prime ideal above 2 ($e=9$, $f=3$), there are four above 3, and five above 5. The prime 5 is unramified in $K$, with residue degrees $3,6,6,6,6$.\n\nIn characteristic different from 2 and 3, a singular point satisfies $F_u=u(3u+2)=0$ and $F_z=1-4z^3=0$. If $u=0$ then $F=3z/4\\ne0$; if $u=-2/3$ then $F=4/27+3z/4$, so $z=-16/81$, and $|\\operatorname{Res}(81z+16,4z^3-1)|=547825=5^2\\cdot17\\cdot1289$. At 17 and 1289 the only singular point is the reduction of $(-2/3,-16/81)$, the Hessian is a unit, and the critical value has valuation 1. Hence it is a node of thickness 1, and the component group is trivial. At 5, too, the only singular point is $(u,z)\\equiv(1,4)$. However, at the approximate critical point $(-2/3,-16/81)$ the valuations of $F$ and $F_z$ are 2, $F_u=0$, and the Hessian is a unit, and at the true critical point obtained by Hensel lifting the value of $F$ changes only modulo $5^4$. Hence the node at 5 has thickness 2, and the geometric component group is $\\Z/2$ (the singular fiber is geometrically irreducible). Therefore we take $S=\\{2,3,5\\}$ in Proposition~\\ref{thm:A}.\n\n\\paragraph{Step 2: the class group.}\n\\begin{lem}\\label{lem:1.1.7-class}\n$\\Cl(K)[2]=0$.\n\\end{lem}\n\\begin{proof}\nAs in the proof of Lemma~\\ref{lem:1.1.6-class}, we apply Proposition~\\ref{thm:B} to the one-cell window $f(x)=(1-|x|/T)_+$. Here $T=8$ and $e^8=2980.96\\ldots<3000$. All 413 prime ideals of norm at most 3000 have explicit generators (\\code{1.1.7b}), so $c_m(q)=a(q)$ in every term, and the same closed-form lower bound gives $B_0>0.0849899>0$ (\\code{1.1.7c}). By Proposition~\\ref{thm:B}, $\\Cl(K)[2]=0$.\n\\end{proof}\n\n\\paragraph{Step 3: an upper bound for the rank.}\n\\begin{lem}\\label{lem:1.1.7-five}\nThe local image $\\delta_5\\bigl(J(\\Q_5)/2J(\\Q_5)\\bigr)$ at 5 is the line spanned by $\\delta_5([X_5-O])$, where $X_5$ is the unique $\\Q_5$-point with $u=1$, $z\\equiv4\\pmod{25}$.\n\\end{lem}\n\\begin{proof}\nThe bitangent code embeds $J[2]$ Galois-equivariantly and injectively into $E=\\F_2^{27}$, and $K$ is unramified at 5, so $J[2]$ is also unramified at 5. The Frobenius $\\Phi$ at 5 preserves the quadratic form that the rational odd theta characteristic $2O$ defines on $J[2]$, so it lies in the orthogonal group $O_6^-(2)$ (of order 51840) of this form, and it has cycle type $(3,6,6,6,6)$ on the bitangents. Listing all such elements (\\code{1.1.7d}), the only pairs consisting of $\\dim J[2]^\\Phi$ and the rank of the coinvariant map $J[2]/(\\Phi-1)J[2]\\to E/(\\Phi-1)E$ are $(0,0)$ (720 elements), $(1,1)$ (4320 elements), and $(2,0)$ (1440 elements). If $p\\ne2$, then $\\dim J(\\Q_p)/2J(\\Q_p)=\\dim J(\\Q_p)[2]=\\dim J[2]^\\Phi$, so in the first two cases the local image has dimension at most 1.\n\nIn the third case, let $J^0(\\Q_5)$ be the subgroup of points that reduce to the identity component of the N\u00e9ron model. The special fiber of the identity component is a connected commutative algebraic group, on which multiplication by 2 is surjective and \u00e9tale. Hence, by Hensel's lemma, the points of $J^0(\\Q_5)$ are divisible by 2 over the maximal unramified extension, and their Kummer classes are unramified classes, that is, elements of $J[2]/(\\Phi-1)J[2]$. Since the coinvariant map has rank 0, $\\delta_5(J^0(\\Q_5))=0$. The quotient $J(\\Q_5)/J^0(\\Q_5)$ embeds into the component group $\\Z/2$, so the local image has dimension at most 1. On the other hand, the image of $X_5$ is nonzero (checked exactly, including the margin for the approximation error, \\code{1.1.7d}). Therefore the local image is that line.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.7-rank}\n$\\operatorname{rank}J(\\Q)\\le2$.\n\\end{lem}\n\\begin{proof}\nBy Proposition~\\ref{thm:A}, $J(\\Q)[2]=0$ and $\\delta$ is injective. By Lemma~\\ref{lem:1.1.7-class}, $\\dim K(S,2)=15+10=25$, and 25 explicit elements supported on the ten prime ideals above $S$ form a basis (rank 25 from valuation characters and quadratic characters at good primes). The conditions on the sign of the norm and on the parity of the valuations at 2, 3, 5 reduce the dimension to 21. The local conditions at the good primes $487$, $491$, $499$, $503$, $509$, $521$, $523$ (local images of dimensions $1,2,1,2,3,3,1$) reduce the dimension to $18$, $15$, $13$, $10$, $7$, $6$, $6$ (Proposition~\\ref{thm:S}). At 2, as in the proof of Lemma~\\ref{lem:1.1.6-rank}, $J(\\Q_2)[2]=0$ and $\\dim J(\\Q_2)/2J(\\Q_2)=3$, and the images of the three points obtained by Hensel lifting from $(u,z)\\equiv(1,0),(2,0),(0,1)$ (the third is the rational point $(0,1)$) are independent (approximation modulo $2^{30}$; the relative error exceeds twice the ramification index). Hence the dimension drops to 3, and the condition of Lemma~\\ref{lem:1.1.7-five} makes it 2 (\\code{1.1.7a}). Therefore $\\operatorname{rank}J(\\Q)\\le2$.\n\\end{proof}\n\n\\paragraph{Step 4: 2-adic logarithms and odd index.}\nSince $F(u,0)=F(u,1)=u^2(u+1)$ and $F(-z,z)=-z(z-1)(z+1)^2$, we have $\\operatorname{div}(z)=2(0,0)+(-1,0)-3O$, $\\operatorname{div}(z-1)=2(0,1)+(-1,1)-3O$, $\\operatorname{div}(u+z)=(0,0)+(-1,1)+2(1,-1)-4O$, and\n\\[\nD_{(0,0)}=2G_1-2G_2,\\qquad D_{(-1,0)}=-4G_1+4G_2,\\qquad D_{(-1,1)}=-2G_1\n\\]\n\n\\begin{lem}\\label{lem:1.1.7-log2}\n\\begin{enumerate}[label=(\\arabic*)]\n\\item For each of $X=(0,0),(0,1),(1,-1)$ there is a polynomial $h_X$ with $\\operatorname{div}(h_X)=35X+E_X-38O$ ($E_X$ an effective divisor of degree 3), and modulo $2^{40}$\n\\[\n\\begin{array}{c|rrr}\nX&\\log_0D_X&\\log_1D_X&\\log_2D_X\\\\\\hline\n(0,0)&714153886116&445000321592&1048252576132\\\\\n(0,1)&578889133504&570949811744&721623895966\\\\\n(1,-1)&771568004334&348449650948&747253421788\n\\end{array}\n\\]\n\\item $\\operatorname{rank}J(\\Q)=2$, $\\#J(\\Q)_{\\rm tors}$ divides 35, and $\\langle G_1,G_2\\rangle$ has odd index in $J(\\Q)/J(\\Q)_{\\rm tors}$. Hence for each $Y\\in J(\\Q)$ we have $NY=n_1G_1+n_2G_2$ with $N$ odd and $n_1,n_2$ integers, and $(c_1,c_2)=(n_1/N,n_2/N)\\in\\Z_2^2$ is uniquely determined by the 0th and 2nd components of $\\log Y$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(1) $h_X$ is the combination of the $z^iu^j$ ($j<3$, $3i+4j\\le38$) whose first 35 Taylor coefficients at $X$ vanish (the solution space is 1-dimensional). $\\operatorname{Res}_u(F,h_X)$ is the product of a constant, $(z-z_X)^{35}$ and an irreducible cubic, and the order 35 and the pole of order 38 account for all zeros and poles. For $(0,1)$ the residual divisor lies in the $O$-disk (the roots have valuation $\\ge1/2$). For the other two, as in the proof of Lemma~\\ref{lem:1.1.6-log}, the cubic algebra becomes $\\F_2[u]/(u^2(u+1))$ modulo 2, and the base divisor is a full fiber of $z$ or of $z-1$, so its class is 0. Hence $\\log D_X$ is the trace of the tiny integrals divided by $-35$. The integrated term of degree $n$ has valuation at least $\\lfloor n/2\\rfloor-v_2(n)$; with 144 terms the tail has valuation at least 64, and the division in the computation modulo $2^{60}$ loses at most 7 digits, so the values modulo $2^{40}$ are determined (\\code{1.1.7e}). The table agrees with $D_{(0,0)}=2G_1-2G_2$ modulo $2^{40}$.\n\n(2) From the point counts $5,9,5$ over $\\F_2,\\F_4,\\F_8$ we get $\\#J(\\F_2)=35$. By \\cite[Appendix]{Katz81}, torsion of odd order injects into $J(\\F_2)$, and $J(\\Q)[2]=0$, so $\\#J(\\Q)_{\\rm tors}\\mid35$. Since $\\log G_1/2\\equiv(0,0,1)$ and $\\log G_2/2\\equiv(1,0,0)\\pmod2$ are independent, the rank is 2. As in the proof of Lemma~\\ref{lem:1.1.6-sat}, $\\log J(\\Q_2)\\subseteq2\\Z_2^3$. The submatrix formed by the 0th and 2nd components of the two half-logarithms has unit determinant. If the index were even, then for a basis $B_1,B_2$ of the free part we would have $(G_1,G_2)=(B_1,B_2)M$ with $\\det M$ even; since the half-logarithms of the $B_i$ are integral, the determinant of this submatrix would then be even, a contradiction. The coefficients are read off using the inverse of this submatrix over $\\Z_2$.\n\\end{proof}\n\n\\paragraph{Step 5: 2-adic zeros.}\nFor the five points of $C(\\F_2)$ we take the rational points $O$, $(0,0)$, $(0,1)$, $(-1,0)$, $(-1,1)$ as the centers of the disks. On the finite disks we use $t=u-u_0$, at $O$ we use $t=z/u$, and we put $t=2s$. Let $\\omega$ be the primitive annihilator obtained from the cross product of the two logarithms, normalized by its middle coefficient (which is odd). Then the zeros of $G(s)=\\int_0^{2s}\\omega$ include all rational points of the disk (\\cite{Coleman85,MP12}).\n\n\\begin{lem}\\label{lem:1.1.7-zeros2}\nOn the five disks, $G$ has exactly nine zeros, and each of them lies in a ball that contains only this zero. Seven of them are known points ($(6,4)$ is at $s=3$ in the $(0,0)$-disk, $(1,-1)$ is at $s=1$ in the $(-1,1)$-disk, and the others are at the centers). The other two are\n\\[\n\\begin{array}{c|c|r|r|r}\n&\\text{Disk}&s\\bmod2^{20}&c_1\\bmod2^{16}&c_2\\bmod2^{16}\\\\\\hline\nQ_2&(-1,0)&902770&18122&35366\\\\\nR_2&O&607280&38704&39424\n\\end{array}\n\\]\n$Q_2,R_2$ are only local zeros in $C(\\Q_2)$; this does not mean that they are rational points.\n\\end{lem}\n\\begin{proof}\nWe use the same ball decomposition as in the proof of Lemma~\\ref{lem:1.1.6-zeros}. When we integrate up to degree 64, the discarded part is divisible by $2^{58}$ and the uncertainty of the annihilator by $2^{39}$; since we compute in $\\Z/2^{50}$, the coefficients have an absolute precision of 39 digits. The valuation we divide by is at most 10 (depth 5), so the roots have a precision of at least $39-10+5=34$ digits, and since the half-logarithm submatrix is invertible, the coefficients are determined to 16 digits (\\code{1.1.7f}).\n\\end{proof}\n\n\\paragraph{Step 6: 3-adic logarithms and 3-adic zeros.}\n\\begin{lem}\\label{lem:1.1.7-three}\n\\begin{enumerate}[label=(\\arabic*)]\n\\item For $X=(0,0),(1,-1)$ we have $\\operatorname{div}(h_X)=63X+E_X-66O$, and modulo $3^{24}$\n\\[\n\\begin{array}{c|rrr}\nX&3\\log_0D_X&3\\log_1D_X&3\\log_2D_X\\\\\\hline\n(0,0)&265295843469&256546487256&167647527990\\\\\n(1,-1)&247088970603&249160065058&89859469233\n\\end{array}\n\\]\nIn the space of logarithms $G_1=G_2+D_{(0,0)}/2$; the cross product of $3\\log G_1,3\\log G_2$ has common valuation 2, and the primitive annihilator is $(16280295932,6711384369,10302306500)$ modulo $3^{22}$ and $(2,0,2)$ modulo 3.\n\\item Integrate the differential made from this annihilator on each 3-adic chart, starting from the rational point at the center. The resulting function has exactly nine zeros on all of $C(\\Q_3)$, and each of them lies in a ball that contains only this zero. Seven of them are known points, and the coefficients of the remaining two, $Q_3,R_3$, are $(c_1,c_2)\\equiv(2705,832)$, $(1055,2942)\\pmod{3^8}$.\n\\item At all nine zeros, $c_1,c_2\\in\\Z_3$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(1) As in the 2-adic case, $h_X$ is found from the $z^iu^j$ ($j<3$, $3i+4j\\le66$) and checked with resultants. Both residual divisors lie in the $O$-disk, and the base divisor is $3O$. Since $t^3\\in3\\mathcal A$, the traced term of degree $n$ has valuation at least $\\lfloor n/3\\rfloor-v_3(n)$; with 120 terms the tail has valuation at least 35, and the division in the computation in $\\Z/3^{40}$ loses at most 5 digits. Hence the values modulo $3^{24}$ are determined. The bad reduction at 3 is not used; we use only the fact that the $O$-disk is an analytic disk (\\cite[Section 3]{KRZB16}; \\code{1.1.7g}).\n\n(2) The rational points of the singular fiber modulo 3 are $O,(0,0),(1,-1),(-1,0),(-1,1),(0,1)$, and only $(0,1)$ is a singular point. At the five smooth points, $u-u_0$ ($z-1$ at $(-1,1)$, and $z/u$ at $O$) is a parameter that runs over $3\\Z_3$. The points that reduce to $(0,1)$, written as $u=3a$, $z=1+3b$, satisfy $b+6b^2+12b^3+9b^4=a^2+3a^3$. For rational $01$, and this disk contains all $a\\in\\Z_3$ ($(0,1)$ is $a=0$, and $(6,4)$ is $a=2$). On it $\\boldsymbol\\omega=(1,1+3b,3a)\\,da/(1+12b+36b^2+36b^3)$, and after integration the coefficient of $a^n$ has valuation at least $\\lceil(n-1)/4\\rceil-v_3(n)\\ge0$, and at least 28 if $n\\ge121$. By \\cite[Section 3]{KRZB16}, the antiderivative starting at $a=0$ is the Abelian integral on this whole chart. When we decompose the six charts into balls (smooth disks: $t=3s$ with 120 terms, coefficient error $3^{23}$, tail $3^{100}$; singular chart: error $3^{22}$, tail $3^{28}$), every ball ends with either 0 zeros or 1 simple root. The zeros are the seven known points, $Q_3$ (in the chart $u=-1+3s$, $s\\equiv273546\\pmod{3^{12}}$), and $R_3$ (in the singular chart, $a\\equiv397615\\pmod{3^{12}}$) (\\code{1.1.7g}).\n\n(3) Let $M$ be the matrix of the 1st and 2nd components of $3\\log G_1,3\\log G_2$. Then $\\det M=9\\varepsilon$ with $\\varepsilon\\in\\Z_3^\\times$. If $U=\\varepsilon^{-1}\\operatorname{adj}M$, then for $v=3\\log D$ at a zero we have $U(v_1,v_2)^{\\mathsf T}=9(c_1,c_2)^{\\mathsf T}$. At all nine zeros both components of the left-hand side are divisible by 9 (the error has valuation at least 11, \\code{1.1.7g}).\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.7-proj}\nIf the 3-adic coefficients of $Y\\in C(\\Q)$ are $(c_1,c_2)\\in\\Z_3^2$, then at a good prime $\\ell$, for the projection $\\pi_3$ onto the 3-primary part of $J(\\F_\\ell)$, we have $\\pi_3(\\overline{D_Y})=\\pi_3(c_1\\overline{G_1}+c_2\\overline{G_2})$. The same holds for the 2-primary part and the 2-adic coefficients of Lemma~\\ref{lem:1.1.7-log2}(2).\n\\end{lem}\n\\begin{proof}\nThe rank is 2 and the two 3-adic logarithms are independent, so $c_1,c_2$ are rational numbers, and by assumption their denominators are prime to 3. For a common denominator $d$ ($3\\nmid d$), the element $T=dD_Y-dc_1G_1-dc_2G_2$ has logarithm 0, so it is a torsion element, and its order divides 35. Hence $\\pi_3(\\overline T)=0$, and $d$ is invertible on the 3-primary part. For the 2-primary part the same argument works with an odd $N$.\n\\end{proof}\n\n\\paragraph{Step 7: comparison modulo 509 and 293.}\nThe point counts over three extensions determine the Weil polynomial and $\\#J$ (\\code{1.1.7h}).\n\\[\n\\begin{array}{c|r|r|r|r}\np&\\#C(\\F_p)&\\#C(\\F_{p^2})&\\#C(\\F_{p^3})&\\#J(\\F_p)\\\\\\hline\n293&284&85720&25164212&24294816=2^5\\cdot3^4\\cdot7\\cdot13\\cdot103\\\\\n509&510&259528&131838318&131974656=2^9\\cdot3\\cdot11\\cdot73\\cdot107\n\\end{array}\n\\]\nMultiplication by $257763=\\#J(\\F_{509})/2^9$, $759213=\\#J(\\F_{293})/2^5$, $299936=\\#J(\\F_{293})/3^4$ is the projection onto the 2-primary or the 3-primary part.\n\n\\begin{lem}\\label{lem:1.1.7-sieve}\n\\begin{enumerate}[label=(\\arabic*)]\n\\item $257763\\cdot304\\,\\overline{G_1}$ is not equal to $257763\\,[Q-O]$ for any $Q\\in C(\\F_{509})$.\n\\item The points $Q\\in C(\\F_{293})$ with $759213\\,[Q-O]=759213\\,(10\\overline{G_1}+6\\overline{G_2})$ are the nine points $(u,z)=(0,0)$, $(1,20)$, $(47,88)$, $(60,82)$, $(68,67)$, $(119,277)$, $(124,164)$, $(162,64)$, $(197,60)$, and for none of them is $299936\\,[Q-O]$ equal to $299936\\,(32\\overline{G_1}+22\\overline{G_2})$ or to $299936\\,(2\\overline{G_1}+26\\overline{G_2})$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\nWe compare all points by exact divisor arithmetic over $\\F_\\ell$ (\\code{1.1.7h}).\n\\end{proof}\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.1.7}]\nSuppose that $Y\\in C(\\Q)$ is not a known point. By Lemma~\\ref{lem:1.1.7-zeros2}, $Y$ is $Q_2$ or $R_2$ in $C(\\Q_2)$. If $Y=R_2$, then its 2-adic coefficients are $(304,0)\\bmod512$, so by Lemma~\\ref{lem:1.1.7-proj}, $257763\\,\\overline{D_Y}=257763\\cdot304\\,\\overline{G_1}$; but the reduction of $Y$ is a point of $C(\\F_{509})$, so this contradicts Lemma~\\ref{lem:1.1.7-sieve}(1) (\\cite{BS10}). Hence $Y=Q_2$, its 2-adic coefficients are $(10,6)\\bmod32$, and the reduction of $Y$ modulo 293 is one of the nine points of Lemma~\\ref{lem:1.1.7-sieve}(2). On the other hand, by Lemma~\\ref{lem:1.1.7-three}, $Y$ is $Q_3$ or $R_3$, and its 3-adic coefficients lie in $\\Z_3$ and are $(32,22)$ or $(2,26)$ modulo 81. Applying Lemma~\\ref{lem:1.1.7-proj} with $\\ell=293$ gives a contradiction with Lemma~\\ref{lem:1.1.7-sieve}(2). Therefore $C(\\Q)$ consists only of the seven known points.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+y^3+2x-y+1=0$ \\ ($H=31$)}{x^4+y^3+2x-y+1=0 (H=31)}}\\label{sec:1.1.8}\n\n\\begin{thm}\\label{thm:1.1.8}\nThe only integer solutions of $x^4+y^3+2x-y+1=0$ are $(-1,-1)$, $(-1,0)$ and $(-1,1)$.\n\\end{thm}\n\n\\paragraph{Setup.} Put $u=-y$, $z=x$. Then the equation becomes\n\\[\nC:\\quad F(u,z)=-u^3+u+z^4+2z+1=0\n\\]\nThe projective completion $-U^3W+UW^3+Z^4+2ZW^3+W^4=0$ is a smooth plane quartic (genus 3) (Step 1), and it has only one point at infinity, $O=[1:0:0]$. The tangent line $W=0$ meets the curve at $O$ with multiplicity 4, since $Z^4=0$; so $O$ is a rational hyperflex. $J$ is the Jacobian of $C$. Theorem~\\ref{thm:1.1.8} is equivalent to the following proposition.\n\n\\begin{prop}\\label{prop:1.1.8}\nThe only integer solutions of $F(u,z)=0$ are $P_0=(0,-1)$, $P_1=(1,-1)$, $P_2=(-1,-1)$.\n\\end{prop}\n\nSince $(x,y)=(z,-u)$, the three points are $(x,y)=(-1,0),(-1,-1),(-1,1)$, respectively.\n\nThe proof has five steps. In Step 1 we fix the bitangent field $K$ and the bad primes. In Step 2 we show $\\Cl(K)[2]=0$ by Proposition~\\ref{thm:B}, and in Step 3 we show by 2-descent that the rank is at most 2. In Step 4 we construct an annihilating differential from 2-adic logarithms, and in Step 5 we count the zeros on the two 2-adic disks that cover the integral points. The curve has bad reduction at 2, so we use \\cite[Section 3]{KRZB16} to identify the integrals on the disks with integrals of power series.\n\n\\paragraph{Step 1: the bitangent field and bad primes.}\nThe 27 bitangents other than the tangent line at $O$ have the form $u=mz+\\eta$, and the slope $m$ is a root of\n\\begin{align*}\nf(m)={}&m^{27}-480m^{19}+2688m^{18}+17280m^{15}-34560m^{11}-141312m^{10}\\\\\n&-162816m^{9}+165888m^{7}+221184m^{6}-94208m^{3}-49152m+32768\n\\end{align*}\nThe polynomial $f$ is irreducible. In $K=\\Q[m]/(f)$ put\n\\[\n\\eta=-\\frac{11m^{13}-112m^5-224m^4+192m}{8(13m^9+16m-16)}\n\\]\nThen the identity\n\\[\nF(mz+\\eta,z)=\\Bigl(z^2-\\frac{m^3}{2}z-\\frac{3m^2\\eta}{2}-\\frac{m^6}{8}\\Bigr)^2\n\\]\nholds. $K$ has signature $(r_1,r_2)=(7,10)$ and discriminant $D=2^{30}\\cdot5^{10}\\cdot431^{6}\\cdot659^{6}$. There are two prime ideals above 2, with $(e,f)=(8,3),(1,3)$ (\\code{1.1.8a}).\n\nThe bad primes are as follows. The point $O$ is smooth in every characteristic (at $[1:0:0]$ the derivative in the $W$ direction is $-1$). In characteristic 3, $F_u\\equiv1$. In characteristic $p>3$, an affine singular point satisfies\n\\[\nu^2=1/3,\\qquad z^3=-1/2,\\qquad 4u+9z+6=0\n\\]\nThe last equation comes from $12F-4uF_u-3zF_z=2(4u+9z+6)$. In the critical algebra defined by the first two equations, the norm of the critical value $(4u+9z+6)/6$ is $-5^2\\cdot431\\cdot659/(2^8\\cdot3^9)$. Hence the only odd bad primes are $5$, $431$, $659$. The $z$-coordinates of the singular points are given by $z^2+3z+4\\equiv0\\pmod5$ (two conjugate points), $z\\equiv-6\\pmod{431}$, and $z\\equiv-222\\pmod{659}$, respectively. The Hessian determinant $-72uz^2$ is a unit, so all of them are ordinary double points (nodes), and since the critical value has valuation exactly 1, their thickness is 1. A plane quartic with at most two nodes is geometrically irreducible (if it were reducible, then by Bezout the components would meet in at least three points). Therefore, at these three primes the special fiber of the regular model has one component, and the component group of the Jacobian is trivial. Then $J(\\Q_p^{\\rm nr})$ is divisible by 2, so the descent image is unramified at $p$. Therefore $S=\\{\\mathfrak p\\mid2\\}$ suffices (\\code{1.1.8a}).\n\n\\paragraph{Step 2: the class group.}\n\\begin{lem}\\label{lem:1.1.8class}\n$\\Cl(K)[2]=0$.\n\\end{lem}\n\\begin{proof}\nWe apply Proposition~\\ref{thm:B} with $n=27$, $(r_1,r_2)=(7,10)$, the $D$ above, and $T=\\log10^7$. The window is a step function on 48 cells of equal width, and its heights are positive integers, symmetric from left to right (the input of \\code{1.1.8d}). Two pieces of data are needed.\n\\begin{enumerate}[label=(\\roman*)]\n\\item There are $665{,}664$ prime ideals of norm less than $10^7$ in total, and we count the number $a(q)$ for every norm (\\code{1.1.8b}).\n\\item All $9{,}432$ prime ideals of norm at most $10^5$ are principal ideals. For each of these ideals we give a witness $g$ for Lemma~\\ref{lem:C} and check it in exact arithmetic (\\code{1.1.8c}). Therefore we set $k(q)=a(q)$ if $q\\le10^5$, and $k(q)=0$ otherwise. Since $(10^5)^2>10^7$, all terms with $m\\ge2$ receive a positive sign.\n\\end{enumerate}\nWith these data the computation gives $B^-(f)>0.0930446107>0$ (\\code{1.1.8d}). In detail, $C_\\infty=-0.7891595062\\ldots$, the integral term is $0.0842206841\\ldots$, and the prime term is $0.9664248011\\ldots$. The computation uses exact rational coefficients and directed interval arithmetic (224 bits), so rounding errors cannot change the conclusion. By Proposition~\\ref{thm:B}, $\\Cl(K)[2]=0$.\n\\end{proof}\n\n\\paragraph{Step 3: an upper bound for the rank.}\n\\begin{lem}\\label{lem:1.1.8rank}\n$\\operatorname{rank}J(\\Q)\\le2$.\n\\end{lem}\n\\begin{proof}\nThe hypotheses of Proposition~\\ref{thm:A} (a rational hyperflex, irreducibility of $f$) were checked above. Hence $J(\\Q)[2]=0$ and $\\delta$ is injective. For an affine rational point $P$, $\\delta(P-O)$ is the square class of $u(P)-mz(P)-\\eta$. With $t=z/u$, $w=1/u$ at $O$, the value of $t^4(u-mz-\\eta)$ is 1, so this normalization is correct. By Step 1 the image lies in $K(S,2)$, and by Lemma~\\ref{lem:1.1.8class}\n\\[\n\\dim_{\\F_2}K(S,2)=(r_1+r_2)+\\#S=17+2=19\n\\]\nNineteen explicit elements form a basis of this space. We factor the principal divisors of 85 atomic elements exactly into 61 prime ideals to show that all 19 elements have even valuation outside 2, and we check that the matrix of quadratic characters has rank 19 (\\code{1.1.8e}).\n\nWe impose conditions on this 19-dimensional space one at a time. Imposing the condition that the norm is a square (the sign and the parity of the 2-adic valuation) gives dimension 17. At the good primes $7$, $11$, $59$, $83$, the polynomial $f$ splits into three irreducible factors of degree 9. A Frobenius-invariant codeword has weight divisible by 9, while the nonzero codewords have weights 12 and 16. Hence $J(\\F_p)[2]=0$ and $J(\\Q_p)/2J(\\Q_p)=0$. That is, the quadratic characters at the three prime ideals above $p$ must all be 0. These conditions reduce the dimension to $15,13,11,9$ in turn.\n\nAt 2, the bitangent orbits have sizes $24$ and $3$. The partial sums $0,3,24,27$ do not include 12 or 16, so $J(\\Q_2)[2]=0$ and $\\dim J(\\Q_2)/2J(\\Q_2)=g=3$. In the two components of $K\\otimes\\Q_2$, the spaces of square classes have dimensions $26$ and $5$. By Hensel's lemma every element of $1+\\mathfrak p^{2e+1}$ is a square, so a finite computation in the unit group gives the whole space of square classes. We use three local points: the rational points $P_0$, $P_1$, and the point with $t=2$ in the disk at infinity. The last point is obtained by computing the root $w$ ($v_2(w)=4$) of $t^4-w+(1+2t)w^3+w^4=0$ modulo $2^{80}$. The relative error caused by the approximation has valuation at least 648 and at least 81 in the two local fields, respectively, which is more than the depths 19 and 5 needed to determine the square classes. The three images are independent, so they make up the whole local image. Keeping only the elements of the 9-dimensional space that map into this image leaves the 2-dimensional space spanned by (in the numbering of the 19 basis elements)\n\\[\ne_3+e_{14}+e_{19},\\qquad e_5+e_{14}\n\\]\n(\\code{1.1.8e}). Since $J(\\Q)[2]=0$, $\\operatorname{rank}J(\\Q)\\le2$.\n\\end{proof}\n\n\\paragraph{Step 4: 2-adic logarithms and the annihilating differential.}\nLet $G_i=[P_i-O]$ ($i=0,1$), and take the basis of holomorphic differentials\n\\[\n\\omega_\\bullet=(\\omega_0,\\omega_1,\\omega_2)=(1,z,u)\\,\\frac{dz}{1-3u^2}\n\\]\n\n\\begin{lem}\\label{lem:1.1.8log}\n$\\operatorname{rank}J(\\Q)=2$. Moreover, there is a primitive vector $a=(a_0,a_1,a_2)\\in\\Z_2^3$ with $a\\equiv(12,14,9)\\pmod{16}$ such that $\\omega=a_0\\omega_0+a_1\\omega_1+a_2\\omega_2$ annihilates all 2-adic logarithms of $J(\\Q)$.\n\\end{lem}\n\\begin{proof}\nThere is a polynomial $h_i(u,z)$ of degree at most 2 in $u$ such that\n\\[\n\\operatorname{div}(h_i)=16P_i+E_i-19O,\\qquad \\deg E_i=3\n\\]\nThis is checked exactly: the Taylor order at $P_i$ is 16, the maximum of the pole orders $3a+4b$ of the terms $z^au^b$ is exactly 19, and $\\operatorname{Res}_u(F,h_i)$ is a constant times $(z+1)^{16}$ times a squarefree cubic, and this cubic does not vanish at $z=-1$ (\\code{1.1.8f}).\n\nAt the point at infinity put $t=z/u$, $w=1/u$. Then the curve is $t^4-w+(1+2t)w^3+w^4=0$, and the derivative in the $w$ direction at $(0,0)$ is $-1$, so there is only one branch, $w=t^4+\\cdots\\in\\Z_2[[t]]$. At the points of $E_i$, the characteristic polynomials of $t$ and of $w$ are monic with every coefficient except the leading coefficient even (equivalently, each reduces to $T^3$ modulo 2), so $E_i$ lies in the residue disk of $O$ ($v_2(t)=1/3,1/3,1/3$ on $E_0$, and $1,1,4$ on $E_1$). In this parameter the differential is $(w,t,1)(1-tw'/w)(w^2-3)^{-1}dt$, with 2-adically integral coefficients. Therefore\n\\[\n\\log G_i=-\\tfrac1{16}\\operatorname{Tr}_{E_i}\\int_0^{t}\\omega_\\bullet\n\\]\nand the trace is computed exactly from the Newton sums of the characteristic polynomial of $t$. We compute up to 156 terms with 44 digits. The discarded term of degree $n$ has valuation at least $\\lfloor n/3\\rfloor-v_2(n)-4\\ge44$ ($n\\ge157$), and the finite computation loses at most 11 digits, so at least 33 digits are guaranteed (\\code{1.1.8f}). Modulo $2^{12}$,\n\\[\n4\\log G_0\\equiv(3044,\\,434,\\,1012),\\qquad 4\\log G_1\\equiv(4064,\\,481,\\,1506)\n\\]\nThe two logarithms are linearly independent, so $\\operatorname{rank}J(\\Q)\\ge2$, and together with Lemma~\\ref{lem:1.1.8rank} this gives $\\operatorname{rank}J(\\Q)=2$. The minimal valuation of the components of the cross product of the two vectors is $-2$, and multiplying it by 4 gives the primitive vector $a\\equiv(12,14,9)\\pmod{16}$. The subgroup generated by $G_0,G_1$ has finite index in $J(\\Q)$ modulo torsion, and the logarithm kills torsion, so $\\omega$ kills all logarithms of $J(\\Q)$.\n\\end{proof}\n\n\\paragraph{Step 5: two disks covering the integral points.}\nModulo 2 we have $F\\equiv z+1$, so $z$ is odd at an integral point.\n\n\\begin{lem}\\label{lem:1.1.8disk}\nAmong the integer solutions of $F(u,z)=0$, the only one with $u$ even is $P_0$, and the only ones with $u$ odd are $P_1,P_2$.\n\\end{lem}\n\\begin{proof}\n\\emph{The even disk.} If $u$ is even, substituting $z=-1+2t$ gives $4\\mid u$. Writing $u=4a$, we get\n\\[\na-16a^3=t-6t^2+8t^3-4t^4\n\\]\nFor each $t\\in\\Z_2$ this equation has only one solution $a\\in\\Z_2$, by the contraction mapping principle. More generally, for a rational number $r$ with $03$, an affine singular point satisfies $x^3=-1/2$, $y^2=-1/3$, $9x+4y+6=0$ (the last equation comes from $12F-3xF_x-4yF_y=2(9x+4y+6)$). The norm of the critical value $(9x+4y+6)/6$ is $12527563/(2^8\\cdot3^9)$, so the only odd bad prime is $p=12527563$. There the only singular point is $(x,y)\\equiv(2189611,\\,4469046)$, and the Hessian determinant $72x^2y\\equiv4898948$ is a unit, so it is an ordinary node. The critical norm has valuation 1, so the thickness is 1. A plane quartic with only one node is geometrically irreducible, so the component group of the Jacobian is trivial, and the descent image is unramified at $p$. Therefore $S=\\{\\mathfrak p\\mid2\\}$ suffices (\\code{1.1.9a}).\n\n\\paragraph{Step 2: the class group.}\n\\begin{lem}\\label{lem:1.1.9class}\n$\\Cl(K)[2]=0$.\n\\end{lem}\n\\begin{proof}\nWe apply Proposition~\\ref{thm:B} with $n=27$, $(r_1,r_2)=(3,12)$, the $D_K$ above, and $T=\\log10^9$. The window is a step function on 96 cells of equal width, and its heights are positive integers, symmetric from left to right (the input of \\code{1.1.9d}). Two pieces of data are needed.\n\\begin{enumerate}[label=(\\roman*)]\n\\item There are $50{,}851{,}991$ prime ideals of norm less than $10^9$ in total, and we count the number $a(q)$ for every norm (\\code{1.1.9b}). For the primes $p\\le31622$ and the primes of the polynomial discriminant we factor into prime ideals directly in the maximal order; for the remaining primes we count the prime ideals of degree 1 by $\\deg\\gcd(f,X^p-X)$.\n\\item All $879{,}491$ prime ideals of norm at most $1.35\\cdot10^7$ are principal ideals (\\code{1.1.9c}). For $879{,}341$ of them, $(g)=\\mathfrak p$ is checked for a single element $g$ by an exact ideal equality. The remaining 150 are checked with a product $\\prod_j\\alpha_j^{e_j}$: we factor the principal divisor of each atomic element $\\alpha_j$ exactly into prime ideals and add the exponents in integer arithmetic, and then the exponent of $\\mathfrak p$ is 1 and all the others are 0. (\\code{1.1.9c} constructs the witnesses anew, and in that case every ideal is verified by a single witness for Lemma~\\ref{lem:C}, without product witnesses.) Therefore we set $k(q)=a(q)$ if $q\\le1.35\\cdot10^7$, and $k(q)=0$ otherwise. Since $(1.35\\cdot10^7)^2>10^9$, all terms with $m\\ge2$ receive a positive sign.\n\\end{enumerate}\nWith these data the computation gives the integral term $0.0631019954\\ldots$ and\n\\[\nB^-(f)=3.3541015\\ldots\\cdot10^{-5}>0\n\\]\n(\\code{1.1.9d}). The computation uses exact rational coefficients and directed interval arithmetic (288 bits), and the radius of the final interval is less than $10^{-61}$. Hence the sign is certain, even though the margin is small. By Proposition~\\ref{thm:B}, $\\Cl(K)[2]=0$.\n\\end{proof}\n\n\\paragraph{Step 3: the rank and the index.}\n\\begin{lem}\\label{lem:1.1.9rank}\n$J(\\Q)[2]=0$ and $\\operatorname{rank}J(\\Q)=2$. Moreover, $\\langle G_0,D\\rangle$ has odd index in $J(\\Q)$.\n\\end{lem}\n\\begin{proof}\nThe hypotheses of Proposition~\\ref{thm:A} were checked above. Hence $J(\\Q)[2]=0$, $\\delta$ is injective, and at an affine point $\\delta(P-O)$ is the square class of $mx(P)+\\eta-y(P)$ (the value of $t^4(mx+\\eta-y)$ at $O$ is 1). By Step 1 and Lemma~\\ref{lem:1.1.9class}, the image lies in the space of dimension\n\\[\n\\dim_{\\F_2}K(S,2)=(r_1+r_2)+\\#S=15+2=17\n\\]\nSeventeen explicit elements form a basis of this space. We factor the principal divisors of 161 atomic elements exactly into 141 prime ideals to show that all valuations outside 2 are even, and we check that the matrix of quadratic characters has rank 17 (\\code{1.1.9e}).\n\nWe impose the conditions one at a time. The condition that the norm is a square reduces the dimension from 17 to 15. At a good odd prime $p$ the local image is the image of $V/(\\mathrm{Frob}-1)V\\to E/(\\mathrm{Frob}-1)E$. Here $V=J[2]$, and $E=\\F_2^{27}$ is the permutation module on the 27 bitangents. We bound its dimension from above as follows: among the elements of the orthogonal group (of order $51{,}840$) that preserves the quadratic form on $V$, we take all $T$ that induce on the bitangents the same cycle type as Frobenius, compute for each the dimension of the image of $V/(T-1)V\\to E/(T-1)E$, and take the maximum (\\code{1.1.9e}). The images of points obtained by Hensel lifting points of $C(\\F_p)$ attain this upper bound, so we know the local image exactly. The results are as follows.\n\\[\n\\begin{array}{c|c|c|c}\np & \\text{degrees of the factors of }f\\bmod p & \\text{dimension of local image} & \\text{remaining dimension}\\\\\\hline\n13 & (9,9,9) & 0 & 13\\\\\n17 & (3,12,12) & 0 & 11\\\\\n43 & (9,9,9) & 0 & 9\\\\\n53 & (9,9,9) & 0 & 7\\\\\n59 & (3,3,3,3,3,3,3,3,3) & 2 & 4\\\\\n67 & (2,5,5,5,10) & 1 & 3\n\\end{array}\n\\]\nAt 2 the bitangent orbits have sizes $24$ and $3$, so $J(\\Q_2)[2]=0$ and $\\dim J(\\Q_2)/2J(\\Q_2)=3$. The spaces of square classes of the two local components have dimensions 26 and 5. The images of three local divisor classes are independent, so they make up the whole local image. The first is $P_0$ ($\\delta=\\eta-m$). The second is the point with $t=2$ in the disk at infinity, where $w$ is computed modulo $2^{80}$ ($v_2(w)=4$). The third is the trace divisor $P+P^\\sigma-2O$ formed from the point $P=(d,y)$, $y\\equiv d\\pmod2$ (Hensel; $F_y$ is a unit), over the unramified quadratic extension $\\Q_2(d)$, $d^2+d+1=0$. For the second and the third, the relative error of the approximation has valuation at least 640 and at least 80 in the two local fields, which is more than the required depths 19 and 5. Keeping only the elements of the 3-dimensional space that map into this local image leaves the 2-dimensional space spanned by (in the numbering of the 17 basis elements)\n\\[\ne_3+e_5,\\qquad e_4+e_5+e_6+e_{17}\n\\]\nTherefore $\\operatorname{rank}J(\\Q)\\le2$.\n\nThe lower bound and the index are as follows. We have $\\delta(G_0)=\\eta-m$, and at a point $Q$ of $D_{\\rm eff}$, $mx+\\eta-y=-(bx+a)$ ($a=-2-\\eta$, $b=1-m$), so $\\delta(D)=a^2+2ab+3b^2$. Computing the quadratic characters at the simple roots $m\\equiv-1\\pmod5$ and $m\\equiv-21\\pmod{37}$ of $f$, the rows, in the order $(G_0,D)$, are $(1,1)$ and $(1,0)$ (\\code{1.1.9e}). The determinant is 1, so $G_0,D$ are independent in $J(\\Q)/2J(\\Q)$. Since $J(\\Q)[2]=0$, we have $\\dim J(\\Q)/2J(\\Q)=\\operatorname{rank}J(\\Q)\\le2$; hence the rank is 2, and $G_0,D$ generate $J(\\Q)/2J(\\Q)$. That is, the index of $\\langle G_0,D\\rangle$ is odd.\n\\end{proof}\n\n\\paragraph{Step 4: 2-adic logarithms and the annihilating differential.}\nWe take the basis of holomorphic differentials $\\omega_\\bullet=(\\omega_0,\\omega_1,\\omega_2)=(1,x,y)\\,dx/(1+3y^2)$.\n\n\\begin{lem}\\label{lem:1.1.9log}\nThere is a primitive vector $a=(a_0,a_1,a_2)\\in\\Z_2^3$ with $a\\equiv(6,10,9)\\pmod{16}$ such that $\\omega=a_0\\omega_0+a_1\\omega_1+a_2\\omega_2$ annihilates all 2-adic logarithms of $J(\\Q)$. The vector $a$ is known exactly to at least 50 digits.\n\\end{lem}\n\\begin{proof}\nThere are polynomials $h_0,h_D$ of degree at most 2 in $y$ such that\n\\[\n\\operatorname{div}(h_0)=16P_0+E_0-19O,\\qquad \\operatorname{div}(h_D)=8D_{\\rm eff}+E_D-19O,\\qquad \\deg E_0=\\deg E_D=3\n\\]\nThis is checked by exact Taylor expansions at the given points, by the pole orders (the maximum of the weights $3i+4j$ of the terms $x^iy^j$ is 19, and the weights are all distinct), and by the factorization of the norm polynomials (\\code{1.1.9f}). On $E_0$ and $E_D$, the valuations of the coefficients of the characteristic polynomial of $t$, from the lowest degree up, are $(1,3,3,0)$ and $(2,2,3,0)$, so $v_2(t)=1/3$ and $2/3$. For the characteristic polynomial of $w$ they are $(4,7,4,0)$ and $(8,9,5,0)$, so $w$ also has positive valuation. Hence $E_0,E_D$ lie in the residue disk of $O$. There the differential is $(w,t,1)(1-tw'/w)(w^2+3)^{-1}dt$, with 2-adically integral coefficients, so\n\\[\n\\log G_0=-\\tfrac1{16}\\operatorname{Tr}_{E_0}\\int_0^t\\omega_\\bullet,\\qquad\n\\log D=-\\tfrac18\\operatorname{Tr}_{E_D}\\int_0^t\\omega_\\bullet\n\\]\nWe compute with 216 terms and 64 digits. The discarded term of degree $n$ satisfies $v_2(\\operatorname{Tr}(t^n)/16n)\\ge\\lceil n/3\\rceil-v_2(n)-4\\ge65$ ($n\\ge217$), and the finite computation loses at most 11 digits, so at least 53 digits are guaranteed (\\code{1.1.9f}). Modulo $2^{12}$,\n\\[\n4\\log G_0\\equiv(3988,\\,2194,\\,1012),\\qquad 4\\log D\\equiv(1848,\\,3542,\\,3892)\n\\]\nThe two logarithms are independent, and the minimal valuation of the components of their cross product is $-1$. Multiplying it by 2 gives the primitive vector $a\\equiv(6,10,9)\\pmod{16}$. By Lemma~\\ref{lem:1.1.9rank}, $\\langle G_0,D\\rangle$ has finite index in $J(\\Q)$ modulo torsion, so $\\omega$ kills all logarithms of $J(\\Q)$.\n\\end{proof}\n\n\\paragraph{Step 5: the disk covering the integral points.}\nModulo 2 we have $F\\equiv x+1$, so $x$ is odd. Then $x^4+2x+1\\equiv0\\pmod4$. If $y$ is odd, then $y^3+y\\equiv2\\pmod4$, a contradiction; if $y$ is even, then $y^3+y\\equiv0\\pmod4$ gives $4\\mid y$. Hence every integral point can be written as\n\\[\nx=-1+2t,\\qquad y=4b,\\qquad b+16b^3=t-6t^2+8t^3-4t^4\\qquad(t,b\\in\\Z_2)\n\\]\n\n\\begin{lem}\\label{lem:1.1.9disk}\nLet $H(t)$ be the antiderivative of $\\omega$ starting at $P_0$ ($t=0$), divided by 8. The only zeros of $H$ in $\\Z_2$ are $t=0$ and a single odd $t_*$, and $t_*\\equiv3{,}366{,}055{,}599\\pmod{2^{32}}$. The coordinates $(c_0,c_D)$ of the logarithm of the point $P(t_*)$ with respect to $\\log G_0,\\log D$ lie in $\\Z_2$, and $(c_0,c_D)\\equiv(11,10)\\pmod{32}$.\n\\end{lem}\n\\begin{proof}\nFor every $R$ with $1\\le R<2^{2/3}$ and $|t|\\le R$, the map $b\\mapsto t-6t^2+8t^3-4t^4-16b^3$ is a contraction that preserves $|b|\\le R$, so $b(t)$ is analytic on a disk of radius greater than 1, and $|b|\\le R$. Pulling back $\\omega$ gives\n\\[\nH'(t)=\\frac{(a_0-a_1)/4+(a_1/2)t+a_2b(t)}{1+48b(t)^2},\\qquad H(0)=0\n\\]\nOn this disk $|H'|\\le R$, so the Cauchy inequality gives\n\\[\nv_2([t^n]H)\\ge\\Bigl\\lceil\\frac{2(n-2)}3\\Bigr\\rceil-v_2(n)\n\\]\nThis bound is at least 1 if $n\\ge3$ and $n\\ne4$. The remaining coefficients are exactly\n\\[\n[t]H=\\frac{a_0-a_1}4,\\qquad [t^2]H=\\frac{a_1+2a_2}4,\\qquad [t^4]H=36a_0-42a_1-14a_2\n\\]\nand for $a\\equiv(6,10,9)\\pmod{16}$ the first two are odd and the last has valuation 1. Hence $H\\equiv t+t^2\\pmod2$, and by Strassmann's theorem there are at most two zeros. One of them is $t=0$, and since $H(t)/t\\equiv1+t\\pmod2$, Hensel's lemma gives exactly one odd zero $t_*$. Using $a$ to 50 digits and the antiderivative with 120 terms (the discarded terms have valuation at least 77), we get $t_*\\equiv3{,}366{,}055{,}599\\pmod{2^{32}}$ (\\code{1.1.9g}).\n\nThe vector $\\log[P(t_*)-O]=\\log G_0+\\int_{P_0}^{P(t_*)}\\omega_\\bullet$ is annihilated by $\\omega$, so it is a $\\Q_2$-linear combination of $\\log G_0,\\log D$. When we solve for these coordinates with a minor of order 2, the entries of its inverse have valuation at least $-1$, and the $t$-derivative of the tiny integral is divisible by 2. Hence the error $2^{32}$ in $t_*$ changes the coordinates only by multiples of $2^{32}$. The result is $(c_0,c_D)\\equiv(10{,}965{,}931,\\,8{,}513{,}226)\\pmod{2^{24}}$, that is, $(11,10)\\pmod{32}$ (\\code{1.1.9g}).\n\\end{proof}\n\n\\paragraph{Step 6: a sieve at 23.}\n\\begin{lem}\\label{lem:1.1.9sieve}\n$P(t_*)$ is not a rational point.\n\\end{lem}\n\\begin{proof}\n$C$ has good reduction at 23. The point counts are $\\#C(\\F_{23^k})=26,622,12044$ ($k=1,2,3$), and $\\#J(\\F_{23})=14432=451\\cdot32$ (\\code{1.1.9h}). Suppose that $P=P(t_*)$ is a rational point. By Lemma~\\ref{lem:1.1.9rank} there is an odd $k$ with $k[P-O]=n_0G_0+n_DD+\\tau$, where $\\tau$ is torsion of odd order. Taking logarithms gives $n_0/k=c_0$ and $n_D/k=c_D$. In $J(\\F_{23})$, multiplication by 451 kills the odd part and is invertible on the 2-part (of order 32), so we can divide by $k$ modulo 32. Therefore, in the form of \\cite{BS10},\n\\[\n451\\,[\\bar P-\\bar O]=451\\,(11\\,\\bar G_0+10\\,\\bar D)\\qquad(\\text{in }J(\\F_{23}))\n\\]\nmust hold. Comparing, by exact Jacobian arithmetic, the right-hand side with the value of the left-hand side for all 26 points of $C(\\F_{23})$ ($O$ and 25 affine points), we find no matching point (\\code{1.1.9h}). This is a contradiction.\n\\end{proof}\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.1.9}]\nAn integral point $P$ lies in the disk of Step 5. Its parametrization is an analytic embedding of an open disk of radius greater than 1, so by \\cite[Section 3]{KRZB16}, $8H(t(P))=\\omega(\\log[P-P_0])$. Since $[P-P_0]\\in J(\\Q)$, this value is 0 by Lemma~\\ref{lem:1.1.9log}. By Lemma~\\ref{lem:1.1.9disk}, $t(P)=0$ or $t(P)=t_*$, and by Lemma~\\ref{lem:1.1.9sieve} the latter case does not occur. Therefore $P=P_0$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+y^3+2x+y-1=0$ \\ ($H=31$)}{x^4+y^3+2x+y-1=0 (H=31)}}\\label{sec:1.1.10}\n\n\\begin{thm}\\label{thm:1.1.10}\nThe only integer solutions of $x^4+y^3+2x+y-1=0$ are $(x,y)=(-1,1),(1,-1)$.\n\\end{thm}\n\n\\paragraph{Setup.} Let $J$ denote the Jacobian of the smooth projective model of the curve. We do not change coordinates. $C$ is the smooth plane quartic (genus 3; Step 1) defined by\n\\[\nX^4+Y^3Z+2XZ^3+YZ^3-Z^4=0,\\qquad F(x,y)=x^4+y^3+2x+y-1\n\\]\nand $J$ is its Jacobian. The only point at infinity is $O=[0:1:0]$. The tangent line $Z=0$ meets the curve there with multiplicity 4, since $X^4=0$, so $O$ is a rational hyperflex. Near $O$ we set $t=X/Y$, $w=Z/Y$; then the curve is $t^4+w+2tw^3+w^3-w^4=0$ and $w=-t^4+O(t^{12})$. We write $A=(-1,1)$, $B=(1,-1)$, and in $J(\\Q)$ we use the same letters for $[A-O]$, $[B-O]$.\n\nThe proof runs as follows. Unlike in other sections, we do not show $\\Cl(K)[2]=0$. Instead we show that an element of the 2-Selmer group outside $\\langle A,B\\rangle$ produces a quadratic class character with special properties (Lemma~\\ref{lem:1.1.10strict}), and we exclude this character with the explicit formula (Proposition~\\ref{prop:1.1.10rank}). Then the rank is 2. Next, Chabauty--Coleman at $p=3,5$ reduces the possible new points to two residue classes (Lemmas~\\ref{lem:1.1.10p3}, \\ref{lem:1.1.10p5}), and the Mordell--Weil sieve excludes both (Lemma~\\ref{lem:1.1.10sieve}).\n\n\\paragraph{Step 1: the bitangent field and descent.}\nIn characteristic $p>3$, an affine singular point satisfies $2x^3+1=0$ and $G(x)=243x^2-324x+124=0$, and $\\operatorname{Res}(2x^3+1,G)=31\\cdot433\\cdot2341$. In characteristic 3 we have $F_y\\equiv1$, and at $O$ the derivative in the $w$ direction is 1 in every characteristic. At each of the three primes there is exactly one singular point: $(x,y)\\equiv(22,14)\\pmod{31}$, $(6,421)\\pmod{433}$, $(2236,823)\\pmod{2341}$. The Hessian determinant $72x^2y$ is a unit, so the point is an ordinary node. Lifting the gradient equations modulo $p^4$ shows that the critical value has valuation exactly 1, so the thickness is 1. Since there is only one node, the special fiber is geometrically irreducible (if it were reducible, Bezout would give at least three intersection points), and the component group is trivial. Hence the descent image is unramified at the odd primes (\\code{1.1.10a}).\n\nThe 27 finite bitangents have the form $y=mx+\\eta$, where $m$ is a root of\n\\begin{align*}\nf(m)={}&m^{27}+480m^{19}-2688m^{18}-17280m^{15}-34560m^{11}-141312m^{10}\\\\\n&-162816m^{9}+165888m^{7}+221184m^{6}-126976m^{3}+49152m-32768.\n\\end{align*}\n$f$ is irreducible, and in $K=\\Q[m]/(f)$ we have\n\\[\n\\eta=\\frac{m(11m^{12}+112m^4+224m^3-192)}{8(13m^9-16m+16)},\\qquad\nF(x,mx+\\eta)=\\Bigl(x^2+\\frac{m^3}2x+\\frac{12m^2\\eta-m^6}8\\Bigr)^2.\n\\]\nFor an arbitrary line $y=mx+z$, put $a=m^3/2$ and $b=(12m^2z-m^6)/8$. The remaining coefficient conditions are $2ab=3mz^2+m+2$ and $b^2=z^3+z-1$. Their resultant with respect to $z$ (left side minus right side, in this order) is $f(m)/4096$, so these are all the finite bitangents. $K$ has $n=27$, $(r_1,r_2)=(3,12)$, $D=2^{30}\\cdot31^6\\cdot433^6\\cdot2341^6$, and there are two prime ideals above 2, with $(e,f)=(8,3),(1,3)$ (\\code{1.1.10a}).\n\nEquip $V=J[2]$ with the quadratic form $q$ determined by $O$. Then the 27 bitangents are indexed by $\\Omega=\\{w\\in V:q(w)=0,\\ w\\ne0\\}$, and the descent map is given by $\\iota:V\\to\\F_2^\\Omega$, $c\\mapsto(\\langle c,w\\rangle)_{w\\in\\Omega}$. In suitable coordinates, $q(z)=z_1z_2+z_3z_4+z_5z_6+z_5+z_6$.\n\n\\begin{lem}\\label{lem:1.1.10descent}\n$J(\\Q)[2]=0$, and $H^1(\\Q,J[2])\\to K^\\times/K^{\\times2}$ is injective. Composing with the Kummer map $\\kappa:J(\\Q)/2J(\\Q)\\to H^1(\\Q,J[2])$, for a rational point $P\\ne O$ the image of $\\kappa([P-O])$ is the square class of $mx(P)+\\eta-y(P)$. The image of the 2-Selmer group $\\mathrm{Sel}$ lies in\n\\[\nK(\\{2\\},2)=\\{[u]\\in K^\\times/K^{\\times2}: v_{\\mathfrak p}(u)\\text{ is even for every }\\mathfrak p\\text{ not above 2}\\}.\n\\]\n\\end{lem}\n\\begin{proof}\nSince $f$ is irreducible, the Galois group acts transitively on $\\Omega$. Proposition~\\ref{thm:A} gives $J(\\Q)[2]=0$. Its proof (the argument that a Sylow 3-subgroup containing a Sylow 3-subgroup of a point stabilizer is transitive on $\\Omega$) gives injectivity not only on $J(\\Q)/2J(\\Q)$ but on all of $H^1(\\Q,J[2])$. The value of $t^4(mx+\\eta-y)$ at $O$ is 1, so the normalization is correct. A Selmer element maps to a local class that is unramified at every odd prime (at the bad primes, by the component group computation above), so its valuations away from 2 are even.\n\\end{proof}\n\n\\paragraph{Step 2: the 2-adic image and 17 known classes.}\nThe square class spaces of the two components of $K\\otimes\\Q_2$ have dimensions 26 and 5, and their sum $\\mathcal T_2$ has dimension 31. The 2-adic bitangent orbits have sizes $3$ and $24$, so there is no invariant codeword of weight 12 or 16. Hence $J(\\Q_2)[2]=0$, and the image $\\mathcal I_2\\subset\\mathcal T_2$ of $J(\\Q_2)/2J(\\Q_2)$ is 3-dimensional.\n\n\\begin{lem}\\label{lem:1.1.10dyadic}\nThere are explicit elements $u_1,\\dots,u_{17}$ of $K(\\{2\\},2)$ whose 2-adic images span a 17-dimensional space $\\mathcal L_2$, and $\\mathcal L_2\\cap\\mathcal I_2$ is the 2-dimensional space spanned by the images of $[A-O]$ and $[B-O]$.\n\\end{lem}\n\\begin{proof}\nEach $u_i$ is a product of some of 170 polynomials in $m$ with rational coefficients. We factor its principal ideal and check that all valuations away from 2 are even. The 2-adic images are computed from the parity of the valuations and the unit square class modulo $\\mathfrak p^{2e+1}$ (elements of $1+\\mathfrak p^{2e+1}$ are squares), and they have rank 17. $\\mathcal I_2$ is spanned by the images of three actual 2-adic points: the point lifting $y\\equiv0\\pmod2$ at $x=-63$ ($F_y=3y^2+1$ is odd), and the points lifting $x\\equiv1\\pmod2$ at $y=-31,-29$ (the derivative $2x^3+1$ of $F(1+2u,y)/4\\in\\Z_2[u]$ is odd). We compute each point modulo $2^{48}$; the valuation of the approximation error is larger than the valuation of the image plus $2e$, so the square classes are exact. The three images have rank 3. The 17 and the 3 together have rank 18, so $\\dim(\\mathcal L_2\\cap\\mathcal I_2)=2$. The images of $A$, $B$ lie in both spaces and are independent (\\code{1.1.10a}).\n\\end{proof}\n\n\\paragraph{Step 3: the localization image and strictification of Selmer classes.}\nAdding the three real places, we set $\\mathcal T=\\mathcal T_2\\oplus\\bigoplus_{v\\ \\text{real}}K_v^\\times/K_v^{\\times2}$ (dimension 34), and give it the $\\F_2$-valued pairing equal to the sum of the Hilbert symbols at the 2-adic and real places. Each local Hilbert pairing is nondegenerate, so this pairing is nondegenerate too.\n\n\\begin{lem}\\label{lem:1.1.10loc}\nLet $\\mathcal L$ be the span of the images of $u_1,\\dots,u_{17}$ in $\\mathcal T$. Then the image of $K(\\{2\\},2)$ in $\\mathcal T$ is exactly $\\mathcal L$. Moreover, the projection $\\mathcal L\\to\\mathcal T_2$ is injective.\n\\end{lem}\n\\begin{proof}\nIf $u,v\\in K(\\{2\\},2)$, then at the odd finite places both are units modulo squares, so their Hilbert symbol is 1; it is also 1 at the complex places. By Hilbert reciprocity, the image of $K(\\{2\\},2)$ is isotropic in $\\mathcal T$. By Lemma~\\ref{lem:1.1.10dyadic}, $\\mathcal L\\to\\mathcal T_2$ is injective and $\\dim\\mathcal L=17$. Since $\\mathcal L$ is a 17-dimensional isotropic subspace of a 34-dimensional nondegenerate space, $\\mathcal L=\\mathcal L^\\perp$. By reciprocity, the image of an element of $K(\\{2\\},2)$ is orthogonal to $\\mathcal L$, so it lies in $\\mathcal L$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.10strict}\nSuppose $\\mathrm{Sel}\\ne\\langle\\kappa(A),\\kappa(B)\\rangle$. Then there is a nontrivial character $\\chi:\\Cl(K)\\to\\{\\pm1\\}$ of the ordinary class group, and for every prime $p>15{,}000{,}000$ there are a Frobenius $g\\in O(V,q)$ and $c\\in V$ such that\n\\[\n\\sum_{\\mathfrak p\\mid p,\\ N\\mathfrak p=p}\\chi(\\mathfrak p)=\\sum_{w\\in\\Omega,\\ gw=w}(-1)^{\\langle c,w\\rangle}.\n\\]\n\\end{lem}\n\\begin{proof}\nChoose $\\gamma\\in\\mathrm{Sel}\\setminus\\langle\\kappa(A),\\kappa(B)\\rangle$. By Lemma~\\ref{lem:1.1.10descent}, the image of $\\gamma$ lies in $K(\\{2\\},2)$. Hence, by Lemma~\\ref{lem:1.1.10loc}, its 2-adic image lies in $\\mathcal L_2$, and by the Selmer condition it also lies in $\\mathcal I_2$. By Lemma~\\ref{lem:1.1.10dyadic}, there are $\\epsilon,\\epsilon'\\in\\F_2$ such that the 2-adic image of $\\gamma'=\\gamma-\\epsilon\\kappa(A)-\\epsilon'\\kappa(B)$ is 0. Then $\\gamma'\\ne0$, and it is still a Selmer element. By Lemma~\\ref{lem:1.1.10loc}, the image of $\\gamma'$ in $\\mathcal T$ lies in $\\mathcal L$, and its 2-adic component is 0, so its real components are also 0. Let $u$ be the image of $\\gamma'$. Then $u\\ne1$, and $K(\\sqrt u)/K$ is unramified at the odd places (even valuations) and split at the 2-adic and real places. Therefore its character $\\chi$ is a nontrivial quadratic character of the ordinary class group.\n\nIf $p>15{,}000{,}000$, then $C$ has good reduction at $p$ and $K$ is unramified at $p$. $\\gamma'$ is unramified at $p$, so it is determined by its cocycle value $c$ at Frobenius. A degree-one prime ideal $\\mathfrak p\\mid p$ of $K$ corresponds to a $w\\in\\Omega$ fixed by $g$, and the quadratic character of $u$ there is the $w$-component $\\langle c,w\\rangle$ of $\\iota(c)$.\n\\end{proof}\n\n\\paragraph{Step 4: a lower bound for the character sum.}\n\\begin{lem}\\label{lem:1.1.10code}\nFor a subspace $U\\le V=\\F_2^6$, let $r(U)=\\#\\{w\\in U\\setminus0:q(w)=0\\}$. For every $c\\in V$,\n\\[\n\\sum_{w\\in U,\\ q(w)=0,\\ w\\ne0}(-1)^{\\langle c,w\\rangle}\\ \\ge\\ \\ell(r(U)),\n\\qquad\n\\begin{array}{c|cccccccccc}\nr&0&1&2&3&5&7&9&11&15&27\\\\\\hline\n\\ell(r)&0&-1&-2&-3&-3&-5&-3&-5&-5&-5\n\\end{array}\n\\]\nIn particular, this sum is always at least $-5$.\n\\end{lem}\n\\begin{proof}\nWe examine all $2825$ subspaces of $V$ (by dimension: $1,63,651,1395,651,63,1$) and all 64 vectors $c$ (\\code{1.1.10b}).\n\\end{proof}\nOn the right-hand side of Lemma~\\ref{lem:1.1.10strict}, $U=\\ker(g-1)$, and $r(U)$ is the number of roots of $f$ modulo $p$, $r(p)=\\deg\\gcd(f,z^p-z)$. The polynomial discriminant is\n\\[\n2^{390}3^{54}17^2\\,31^6\\,101^2\\,433^6\\,2341^6\\,2969^2\\,5227^2\\,924151^2,\n\\]\nand all its prime factors are smaller than $15{,}000{,}000$. Hence for $p>15{,}000{,}000$, $r(p)$ is exactly the number of degree-one prime ideals.\n\n\\paragraph{Step 5: principal ideals.}\n\\begin{lem}\\label{lem:1.1.10princ}\nAll $971{,}856$ prime ideals of norm at most $M=15{,}000{,}000$ are principal.\n\\end{lem}\n\\begin{proof}\nWe construct the prime ideals exhaustively as follows. For $p>\\sqrt M$ not dividing the denominators of the integral basis, only degree-one prime ideals can have norm at most $M$, and for each root $r$ of $f$ modulo $p$ the kernel of $b_i\\mapsto b_i(r)$ is a degree-one prime ideal. For the remaining $p$ we factor directly in the maximal order. For each $\\mathfrak p$ we check an element $g\\in\\mathfrak p$ exactly. If $|N(g)|=N\\mathfrak p$, then $(g)=\\mathfrak p$. Otherwise we prove the prime factorization $|N(g)|/N\\mathfrak p=\\prod r^{e_r}$ and check that $r^{e_r}X$, there are no terms with $m\\ge2$ for ideals of norm greater than $M$ (\\code{1.1.10d}).\n\\item For the $38{,}465{,}791$ primes with $MR(1-\\frac1{5\\log^2R})$ gives\n\\[\n\\sum_{R0$ contradicts the inequality above. Hence $\\mathrm{Sel}=\\langle\\kappa(A),\\kappa(B)\\rangle$. The 2-adic images of $\\kappa(A),\\kappa(B)$ are independent, so $\\dim\\mathrm{Sel}=2$. Since $J(\\Q)[2]=0$, $\\operatorname{rank}J(\\Q)\\le2$, and since $A,B$ are independent, the rank is 2.\n\\end{proof}\n\n\\paragraph{Step 7: Chabauty--Coleman at $p=3,5$.}\nSet $(\\omega_0,\\omega_1,\\omega_2)=(1,x,y)\\,dx/(3y^2+1)$, and use $L(P)=\\int_O^P(\\omega_0,\\omega_1,\\omega_2)$ as the abelian logarithm. At $O$ this basis is $-(w,t,1)H_w^{-1}dt$ ($H_w=1+6tw^2+3w^2-4w^3$), with integral coefficients. The plane model is smooth at 3 and 5. Since $\\#C(\\F_{3^k})=4,10,28$ and $\\#C(\\F_{5^k})=3,23,120$ ($k=1,2,3$), we have $\\#J(\\F_3)=28$, $\\#J(\\F_5)=64$ (\\code{1.1.10g}). By \\cite[Appendix]{Katz81}, the order of the rational torsion divides $\\gcd(28,64)=4$, and since $J(\\Q)[2]=0$, $J(\\Q)$ is torsion-free. Since $\\#J(\\F_p)$ is prime to $p$, multiplying an element of $J(\\Q_p)$ by $\\#J(\\F_p)$ puts it in the kernel of reduction, and by Lemma~\\ref{lem:O} its logarithm lies in $p\\Z_p^3$. Hence $L(J(\\Q_p))\\subset p\\Z_p^3$.\n\nFor integers $n,m$ set $N=n+m+5$, and let $h_{n,m}\\in L(NO)$ be the primitive integral generator of the kernel (which is 1-dimensional) of the linear conditions $\\operatorname{ord}_A\\ge n+2$, $\\operatorname{ord}_B\\ge m$. The basis is $x^iy^j$ ($j\\le2$, $3i+4j\\le N$), and then $\\operatorname{div}(h_{n,m})=(n+2)A+mB+E_{n,m}-NO$ with $\\deg E_{n,m}=3$ (\\code{1.1.10h}).\n\n\\begin{lem}\\label{lem:1.1.10p3}\nModulo 81, $L(A)\\equiv(0,78,51)$ and $L(B)\\equiv(78,15,66)$. $A,B$ are independent, and the index of $\\langle A,B\\rangle$ is prime to 3. If there is a new rational point $P\\notin\\{O,A,B\\}$, then the 3-adic coordinates of $[P-O]=nA+mB$ satisfy $(n,m)\\equiv(6,3)$ or $(3,4)\\pmod9$, and in the latter case $P\\equiv(0,2)\\pmod3$.\n\\end{lem}\n\\begin{proof}\nFor $(n,m)=(3,1),(2,10)$, $E_{n,m}$ has one point in each of the residue disks of $A,B,O$ (the constant term of the local expansion is divisible by 3 and the linear term is a unit). Let $\\tau_{n,m}$ be the sum of the three tiny integrals. Then $6L(A)+2L(B)=-\\tau_{3,1}$, $5L(A)+11L(B)=-\\tau_{2,10}$, and modulo 81, $\\tau_{3,1}\\equiv(6,69,48)$, $\\tau_{2,10}\\equiv(33,12,72)$. For a parameter $u\\in3\\Z_3$ the integral is $a_0u+a_1u^2/2+a_2u^3/3$ modulo 81, and the terms with $k\\ge4$ have valuation $k-v_3(k)\\ge4$. The determinant 56 is a unit, so $L(A),L(B)$ are as stated (\\code{1.1.10h}). $L(A)/3,L(B)/3$ are independent modulo 3, so $A,B$ are independent. If $3x=nA+mB$ ($x\\in J(\\Q)$), then $L(x)\\in3\\Z_3^3$ gives $nL(A)/3+mL(B)/3\\equiv0\\pmod3$, so $n\\equiv m\\equiv0\\pmod3$; since $J(\\Q)$ is torsion-free, the index is prime to 3. Normalizing the cross product gives the annihilating differential $\\alpha_3=(a+bx+y)\\omega_0$ with $(a,b)\\equiv(26,17)\\pmod{27}$ (since the rank is 2, it kills all of $J(\\Q)$).\n\nAmong the points of $C(\\F_3)=\\{O,(2,1),(1,2),(0,2)\\}$, $\\alpha_3\\bmod3=(2+2x+y)\\omega_0$ is nonzero at $O$, $A\\equiv(2,1)$ and $(0,2)$, and is zero at $B\\equiv(1,2)$. The antiderivative of a differential with unit constant term is injective on $3\\Z_3$, so the disks of $O$ and $A$ contain only the known points.\n\nIn the disk of $B$, write $u=x-1$ and $\\alpha_3=(f_0+f_1u+f_2u^2+\\cdots)du$; then $(f_0,f_1,f_2)\\equiv(24,14,12)\\pmod{27}$. With $u=3v$, the antiderivative starting at $B$ is $u$ times an analytic function, and this analytic function divided by 3 is $8+7v+3v^2$ modulo 9 and $2+v$ modulo 3. Hence there is exactly one zero other than $B$, with $v\\equiv1\\pmod9$, $L(P)\\equiv(18,0,18)\\pmod{27}$, $(n,m)\\equiv(6,3)\\pmod9$.\n\nIn the disk of $(0,2)$ we use the base point $C_0=(\\xi,-1)$, where $\\xi^3+\\xi^2+\\xi+3=0$, $\\xi\\in3\\Z_3$ ($\\xi\\equiv42\\pmod{81}$). The line $y=-1$ cuts out $B+C_0+R_1+R_2-4O$, and $R_1,R_2$, given by the roots of $u^2+(3+\\xi)u+(3+2\\xi+\\xi^2)$ in $u=x-1$, lie in the disk of $B$ (Eisenstein, valuation $1/2$). The power sums $s_k=u(R_1)^k+u(R_2)^k$ satisfy $v_3(s_k)\\ge\\lceil k/2\\rceil$, so the terms with $k\\le6$ determine the trace modulo 27, and $L(C_0)=-3L(B)-\\tau\\equiv(0,24,9)\\pmod{27}$. With $u=x-\\xi=3v$ we get $\\alpha_3(L(P))/3\\equiv4+7v\\pmod9$, so there is exactly one zero, with $v\\equiv2\\pmod9$, $L(P)\\equiv(15,24,12)\\pmod{27}$, $(n,m)\\equiv(3,4)\\pmod9$ (\\code{1.1.10h}). A new rational point is one of these two zeros.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.10p5}\nModulo 125, $L(A)\\equiv(80,60,120)$ and $L(B)\\equiv(115,120,110)$, and the index of $\\langle A,B\\rangle$ is prime to 5. A new rational point $P$ reduces to $B$ modulo 5, and $(n,m)\\equiv(3,3)\\pmod5$. Therefore $(n,m)\\equiv(33,3)$ or $(3,13)\\pmod{45}$.\n\\end{lem}\n\\begin{proof}\nOn the tangent line at $A$, $8F(x,(x+3)/2)=(x+1)^2(8x^2-15x+31)$. Let $Q,Q'$ be the two points with $x=(15\\pm\\sqrt{-767})/16$, $y=(x+3)/2$. Then $2L(A)+L(Q)+L(Q')=0$, and the quadratic field is unramified at 5. For $(n,m)=(3,13),(7,9)$, $E_{n,m}$ has one point near each of $Q,Q',O$, so $3L(A)+13L(B)=-\\tau_{3,13}$, $7L(A)+9L(B)=-\\tau_{7,9}$, and modulo 125, $\\tau_{3,13}\\equiv(15,10,85)$, $\\tau_{7,9}\\equiv(30,0,45)$ (the integrals are taken up to $a_0u+a_1u^2/2$; the terms with $k\\ge3$ have valuation $k-v_5(k)\\ge3$). The determinant $-64$ is a unit, so we get the values above. The normalized logarithms are independent modulo 5, so the index is prime to 5, and the annihilating differential is $\\alpha_5=(a'+b'x+y)\\omega_0$, $(a',b')\\equiv(11,0)\\pmod{25}$ (\\code{1.1.10h}).\n\nWe have $C(\\F_5)=\\{O,(4,1),(1,4)\\}$. $\\alpha_5$ is a unit at $O$ and $A$, so their disks contain only the known points. At $B$ the constant coefficient is 15 modulo 25 and the linear coefficient is 4 modulo 5. Setting $u=x-1=5v$ and dividing the antiderivative by $25v$ gives $3+2v$ modulo 5 (the terms with $k\\ge3$ satisfy $k-2-v_5(k)\\ge1$). Hence there is one more zero, with $v\\equiv1\\pmod5$, $L(P)\\equiv(10,15,15)\\pmod{25}$, $(n,m)\\equiv(3,3)\\pmod5$. Combining this with Lemma~\\ref{lem:1.1.10p3}, $(6,3)\\bmod9$ becomes $(33,3)\\bmod45$, and $(3,4)\\bmod9$ becomes $(3,13)\\bmod45$.\n\\end{proof}\n\n\\paragraph{Step 8: Mordell--Weil sieve.}\n\\begin{lem}\\label{lem:1.1.10sieve}\n$C(\\Q)=\\{O,A,B\\}$.\n\\end{lem}\n\\begin{proof}\nSuppose there is a new rational point $P$. The reduction is good at 3, 5, 11, 13, and $\\#J(\\F_{11})=2520$, $\\#J(\\F_{13})=2912$ ($\\#C(\\F_{11^k})=18,146,1296$, $\\#C(\\F_{13^k})=16,216,2128$). Arithmetic in $J(\\F_p)$ is done exactly by solving Riemann--Roch with the basis $x^iy^j$ ($j\\le2$, $3i+4j\\le m\\le9$) of $L(mO)$, and the equality of two classes is decided by whether the effective representative of their difference is empty (\\code{1.1.10g}). Following \\cite{BS10}, we show the following in order.\n\\begin{enumerate}[label=(\\arabic*)]\n\\item In $J(\\F_5)$, $\\operatorname{ord}B=64$ and $A=17B$. The characters of order 2 obtained by multiplying by 32 at 5 and by 1260 at 11 give the rows $(1,1)$, $(0,1)$ on $(A,B)$, so $\\langle A,B\\rangle$ is saturated at 2. Together with Lemmas~\\ref{lem:1.1.10p3}, \\ref{lem:1.1.10p5}, the index is prime to 2, 3, 5, and the coordinates $(n,m)$ are integral at these primes. Since $P\\equiv B\\pmod5$, $17n+m\\equiv1\\pmod{64}$.\n\\item At 11, multiplication by 56 leaves the $\\{3,5\\}$-part, of order 45. Of the two candidates, only $(3,13)\\bmod45$ matches the image of one of the 18 points of $C(\\F_{11})$, and that point is $(3,4)$. Hence $P\\equiv(0,2)\\pmod3$ and $P\\equiv(3,4)\\pmod{11}$. Multiplication by 7 leaves the $\\{2,3,5\\}$-part, of order 360. Among the 8 pairs modulo 360 satisfying $(3,13)\\bmod45$ and $17n+m\\equiv1\\pmod8$, only $(228,13)$ has the same image as $(3,4)$. Hence $n\\equiv4$, $m\\equiv5\\pmod8$.\n\\item The 7-parts of $J(\\F_3)$ and $J(\\F_{11})$ have order 7. Projecting by multiplication by 4 and by 360, respectively, and normalizing the image of $A$ to 1, the images of $B$ are 4 and 3, and the images required for the point are 2 at $(0,2)$ and 1 at $(3,4)$. The determinant is $6\\not\\equiv0\\pmod7$, so the group is saturated at 7 as well, and $n\\equiv5$, $m\\equiv1\\pmod7$.\n\\item In $J(\\F_{13})$, multiplication by 13 leaves the $\\{2,7\\}$-part, of order 224. Reducing the conditions above modulo 32 and 7, there are four pairs modulo 224: $(68,29)$, $(12,85)$, $(180,141)$, $(124,197)$. None of their images equals the image of any of the 16 points of $C(\\F_{13})$ (including $O$).\n\\end{enumerate}\nThis is a contradiction.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.1.10}]\nBy Proposition~\\ref{prop:1.1.10rank}, $\\operatorname{rank}J(\\Q)=2$, and as shown in Step 7, $J(\\Q)$ is torsion-free. By Lemma~\\ref{lem:1.1.10sieve}, $C(\\Q)=\\{O,A,B\\}$. Since $O$ is the only point at infinity, the only integer solutions are $A=(-1,1)$ and $B=(1,-1)$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+y^3+xy-y-1=0$ \\ ($H=31$)}{x^4+y^3+xy-y-1=0 (H=31)}}\\label{sec:1.1.11}\n\n\\begin{thm}\\label{thm:1.1.11}\nThe only integer solutions of $x^4+y^3+xy-y-1=0$ are $(x,y)=(-1,0),(1,0)$.\n\\end{thm}\n\n\\paragraph{Setup.} Setting $u=-x$, $v=y$, the equation becomes\n\\[\nC:\\quad G(u,v):=u^4+v^3-(u+1)v-1=0.\n\\]\nThe projective completion $u^4+v^3w-(u+w)vw^2-w^4=0$ is a smooth plane quartic (genus 3), and its only bad primes are $2$ and $q_0=13839869$ (\\code{1.1.11a}). At the point at infinity $O=(0:1:0)$ the line $w=0$ meets the curve with multiplicity 4, since $u^4=0$, so $O$ is a rational hyperflex. Near $O$ we use $t=u/v$, $w=1/v$. In this chart the curve is\n\\[\nt^4+w-tw^2-w^3-w^4=0,\n\\]\nand the partial derivative with respect to $w$ is 1 at the origin, so $w=-t^4+t^9-t^{12}+\\cdots\\in\\Z[[t]]$. Hence $u$ and $v$ have poles of order 3 and 4 at $O$, respectively.\n\n\\begin{prop}\\label{prop:1.1.11}\n$C(\\Q)=\\{O,P_+,P_-\\}$, where $P_+=(1,0)$, $P_-=(-1,0)$.\n\\end{prop}\n\nSince $(u,v)=(1,0),(-1,0)$ correspond to $(x,y)=(-1,0),(1,0)$, Theorem~\\ref{thm:1.1.11} follows directly from this proposition. Since $G(-1,v)=v^3$, we have $\\operatorname{div}(u+1)=3P_--3O$, and $[P_--O]$ is a torsion element.\n\nThe proof has five steps. We fix the bitangent field $K$ (Step 1), show $\\Cl(K)[2]=0$ with Proposition~\\ref{thm:B} (Lemma~\\ref{lem:1.1.11class}), and show by 2-descent that the rank is at most 1 (Lemma~\\ref{lem:1.1.11rank}). Next we compute the 3-adic logarithm of $[P_+-O]$ from one principal divisor and show that the rank is exactly 1 (Lemma~\\ref{lem:1.1.11log}). We finish with Chabauty--Coleman at $p=3$.\n\n\\paragraph{Step 1: the bitangent field.}\nIf the line $v=mu+b$ is a bitangent, then $u^4+(mu+b)^3-(u+1)(mu+b)-1=(u^2+c_1u+c_0)^2$ with $c_1^2\\ne4c_0$. The slopes of the 27 bitangents other than the line at infinity are the roots of\n\\[\n\\begin{aligned}\nf(m)={}&m^{27}+48m^{22}-480m^{19}+144m^{17}-17280m^{15}+2304m^{14}-832m^{12}-34560m^{11}\\\\\n&+64512m^{10}+18944m^{9}-168448m^{7}-49152m^{6}-27648m^{5}+8192m^{4}-94208m^{3}\\\\\n&+1024m^{2}-4096m+4096.\n\\end{aligned}\n\\]\n$f$ is irreducible, and $K=\\Q[m]/(f)$ has degree 27, signature $(3,12)$ and absolute discriminant $D=2^{28}\\cdot13839869^{6}$ (\\code{1.1.11a}). There are four prime ideals above 2, with (ramification index, residue degree) equal to $(5,1),(10,1),(2,1),(5,2)$. We normalize the bitangent function as $h_m=mu+b-v$. Since $v=-t^{-4}+\\cdots$ at $O$, the coefficient of $t^{-4}$ in $h_m$ is 1.\n\nAt $q_0$ the reduction has only one singular point, $(u,v)\\equiv(950455,\\,6126477)\\pmod{q_0}$. At the integral lift $(950455,\\,4\\cdot950455^3)$ the value of $G$ has $q_0$-adic valuation 1, and the Hessian $288u^5-1$ is a $q_0$-adic unit. So this point is an ordinary node of thickness 1. If the quartic split into several components, then by B\u00e9zout's theorem the components would have to meet at least three times, and if there were a multiple component, the singular points would not be isolated. Hence this fiber is geometrically irreducible, the Tamagawa number is 1, and the descent image is unramified at $q_0$. Therefore $S=\\{2\\}$ suffices.\n\n\\paragraph{Step 2: the class group.}\n\\begin{lem}\\label{lem:1.1.11class}\n$\\Cl(K)[2]=0$.\n\\end{lem}\n\\begin{proof}\nWe apply Proposition~\\ref{thm:B} with $n=27$, $(r_1,r_2)=(3,12)$, the $D$ above, and $T=\\log(5\\cdot10^8)$. The window is a step function with 64 cells of equal width, and its heights are 64 positive integers, symmetric left to right (input of \\code{1.1.11d}). Two pieces of data are needed.\n\\begin{enumerate}[label=(\\roman*)]\n\\item There are $26{,}350{,}721$ prime ideals of norm less than $5\\cdot10^8$ in total, and we count the number $a(q)$ for every norm (\\code{1.1.11b}).\n\\item All $664{,}374$ prime ideals of norm at most $10^7$ have a witness for Lemma~\\ref{lem:C} (\\code{1.1.11c}). Hence we set $k(q)=a(q)$ if $q\\le10^7$, and $k(q)=0$ otherwise.\n\\end{enumerate}\nWith these data we get $B^->0.00490937703090692\\ldots>0$ (\\code{1.1.11d}). The knot values of the autocorrelation are computed as exact rationals, and the archimedean term and the prime sum are computed with directed-rounding interval arithmetic. So rounding errors cannot change the conclusion. By Proposition~\\ref{thm:B}, $\\Cl(K)[2]=0$.\n\\end{proof}\n\n\\paragraph{Step 3: upper bound for the rank.}\n\\begin{lem}\\label{lem:1.1.11rank}\n$\\operatorname{rank}J(\\Q)\\le1$.\n\\end{lem}\n\\begin{proof}\nThe hypotheses of Proposition~\\ref{thm:A} (smooth quartic, rational hyperflex $O$, irreducible $f$ of degree 27) were checked above. Hence $J(\\Q)[2]=0$, the map $\\delta:J(\\Q)/2J(\\Q)\\to K^\\times/K^{\\times2}$ is injective, and its image has square norm and lies in $K(S,2)$, $S=\\{2\\}$. By Lemma~\\ref{lem:1.1.11class},\n\\[\n\\dim_{\\F_2}K(S,2)=(r_1+r_2)+\\#\\{\\mathfrak p\\mid2\\}=15+4=19.\n\\]\nThere are 19 explicit elements supported on $S$ that form a basis of this space. Their independence is checked by the parities of the valuations at the prime ideals above 2 and by quadratic characters at auxiliary primes (\\code{1.1.11e}).\n\nWe impose conditions on this 19-dimensional space one after another. The condition that the norm be a square (sign and 2-adic valuation) cuts it down to 17 dimensions. Imposing the local conditions at the good primes $487$, $491$, $499$, $503$ in turn, the dimension becomes $10,7,5,4$. At each prime we use all points of $C(\\F_p)$, and since $p>484$, the images of these points generate the whole local image (Proposition~\\ref{thm:S}(3)).\n\nAt 2 the situation is as follows. The decomposition group at 2 acts on the 27 bitangents with orbits of sizes $5,10,2,10$ (the values $ef$ above). Under $J[2]\\hookrightarrow\\F_2^{27}$, an element of $J(\\Q_2)[2]$ maps to a codeword that is a union of these orbits. Nonzero codewords have weight 12 or 16. The only unions of orbits of size 12 or 16 are the two obtained by joining the orbit of size 2 with one orbit of size 10, and their sum has weight 20, so it is not a codeword. Hence $\\dim J(\\Q_2)[2]\\le1$, and by Proposition~\\ref{thm:S}(1), $\\dim J(\\Q_2)/2J(\\Q_2)\\le1+3=4$. On the other hand, the 2-adic images of the following four divisors are independent (\\code{1.1.11e}).\n\\begin{enumerate}[label=(\\alph*)]\n\\item $P_+-O$.\n\\item $R_1-O$. $R_1$ is the 2-adic point with $u=5$, $v=8s$, where $s$ is a root of $\\tfrac{1-u^4}{16}+\\tfrac{u+1}2s-32s^3=0$. The derivative with respect to $s$ is odd, so by Hensel's lemma there is a unique such root in $\\Z_2$.\n\\item $R_2-O$. $R_2$ is the point in the disk of $O$ with $t=2$. In the equation of the chart the derivative with respect to $w$ is a unit, so $w\\in2\\Z_2$ is uniquely determined.\n\\item $R_3+\\bar R_3-2O$. $R_3$ is the point over $\\Q_2(\\sqrt2)$ with $t=\\sqrt2$, and $\\bar R_3$ is its conjugate.\n\\end{enumerate}\nThe coordinates of the points are approximated to precision $2^{60}$, and we check that the error of each image has valuation greater than $2e_{\\mathfrak p}$ at each prime ideal $\\mathfrak p$ above 2. So the square classes are determined exactly. Therefore the four images generate the whole 2-adic local image. The elements of the preceding 4-dimensional space that map into this local image form a 1-dimensional space. Since $\\delta$ is injective and $J(\\Q)[2]=0$, $\\operatorname{rank}J(\\Q)\\le1$.\n\\end{proof}\n\n\\paragraph{Step 4: a principal divisor and the 3-adic logarithm.}\n3 is a good prime. We take the integral basis of regular differentials\n\\[\n\\boldsymbol\\omega=(\\omega_0,\\omega_1,\\omega_2)=(1,u,v)\\frac{du}{u+1-3v^2}=(1,u,v)\\frac{dv}{4u^3-v}.\n\\]\nIn the chart at $O$,\n\\[\n\\boldsymbol\\omega=(w,t,1)\\frac{dt}{1-2tw-3w^2-4w^3},\n\\]\nand the three components are series with integer coefficients:\n\\[\n\\omega_0=(-t^4+3t^9+\\cdots)\\,dt,\\quad \\omega_1=(t-2t^6+3t^9+\\cdots)\\,dt,\\quad \\omega_2=(1-2t^5+3t^8+\\cdots)\\,dt.\n\\]\nSince $C(\\F_3)=\\{O,(1,0),(2,0)\\}$, there are three residue disks, and each contains one of the known rational points $O$, $P_+$, $P_-$.\n\n\\begin{lem}\\label{lem:1.1.11div}\nThere is a polynomial $h\\in\\Q[u,v]$ of degree at most 2 in $v$ such that\n\\[\n\\operatorname{div}(h)=21P_++E-24O.\n\\]\nHere $E$ is an effective divisor of degree 3 defined over $\\Q$, and the $u$-coordinates of its three points are the roots of an irreducible cubic polynomial $U$.\n\\end{lem}\n\\begin{proof}\n$h$ is a linear combination of the 22 monomials $u^iv^j$ with $3i+4j\\le24$, $j\\le2$, and its coefficients are in the input of \\code{1.1.11f}. Weight 24 occurs only for $u^8$, so $h$ has a pole of order exactly 24 at $O$. An exact computation verifies\n\\[\n\\operatorname{Res}_v(G,h)=c\\,(u-1)^{21}U(u)\\quad(c\\in\\Q^\\times),\\qquad \\gcd\\bigl(G(1,v),h(1,v)\\bigr)=v.\n\\]\nSince $G_v(P_+)=-2\\ne0$, $u-1$ is a local parameter at $P_+$. So $h$ vanishes to order exactly 21 at $P_+$ and does not vanish at the other points above $u=1$. The remaining three zeros lie above the roots of $U$, and their $v$-coordinates are given by a quadratic polynomial in $u$ with rational coefficients. Substituting these, we check $G=h=0$. The total order of the zeros, $21+3$, equals the order 24 of the pole, so there are no other zeros.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.11log}\nLet $L=(L_0,L_1,L_2)$ be the 3-adic logarithm of $[P_+-O]$ with respect to $\\boldsymbol\\omega$. Then $L\\equiv(0,3,6)\\pmod9$. Hence $\\operatorname{rank}J(\\Q)=1$.\n\\end{lem}\n\\begin{proof}\nThe characteristic polynomial $T(Z)$ of $t=u/v$ on $E$ is\n\\[\nT(Z)\\equiv Z^3+36Z^2+9Z+60\\pmod{81}.\n\\]\nIt is 3-Eisenstein, so all three points of $E$ have $v_3(t)=1/3$. The coefficients of the characteristic polynomial of $v$ on $E$ have 3-adic valuations $(-4,-1,0,0)$, and its Newton polygon is a single segment, so $v_3(v)=-4/3$, that is, $v_3(w)=4/3>0$ (\\code{1.1.11f}). Therefore the points of $E$, defined over a totally ramified cubic extension of $\\Q_3$, lie in the residue disk of $O$, on the branch $w=w(t)$. By Lemma~\\ref{lem:1.1.11div}, $21[P_+-O]=-[E-3O]$, so\n\\[\nL=-\\frac1{21}\\operatorname{Tr}\\int_0^{t(E)}\\boldsymbol\\omega.\n\\]\nThe right-hand side is the sum of the tiny integrals to the three points of $E$.\n\nThe integrals up to degree 9 are\n\\[\nI_0=-\\frac{t^5}5,\\qquad I_1=\\frac{t^2}2-\\frac{2t^7}7,\\qquad I_2=t-\\frac{t^6}3+\\frac{t^9}3.\n\\]\nFor $n\\ge10$, the degree-$n$ term $a\\,t^n/n$ ($a\\in\\Z$) of the integral has valuation at least $n/3-v_3(n)\\ge3$ at $v_3(t)=1/3$. For $10\\le n\\le26$ this is checked directly, and for $n\\ge27$, $v_3(n)\\le\\log_3n\\le n/3-3$. Hence the trace of all the discarded terms lies in $27\\Z_3$. The power sums $p_k$ of the roots of $T$ are\n\\[\n(p_1,\\dots,p_9)\\equiv(45,63,63,54,27,27,0,0,0)\\pmod{81}.\n\\]\nTherefore\n\\[\n\\operatorname{Tr}(I_0,I_1,I_2)=\\Bigl(-\\tfrac{p_5}5,\\ \\tfrac{p_2}2-\\tfrac{2p_7}7,\\ p_1-\\tfrac{p_6}3+\\tfrac{p_9}3\\Bigr)\\equiv(0,18,9)\\pmod{27},\n\\]\nand dividing by $-21$ gives $L\\equiv(0,3,6)\\pmod9$. Since $L\\ne0$, $[P_+-O]$ has infinite order, and together with Lemma~\\ref{lem:1.1.11rank} this gives $\\operatorname{rank}J(\\Q)=1$.\n\\end{proof}\n\n\\paragraph{Step 5: Chabauty--Coleman at $p=3$.}\nSince $L_1/3$ is a 3-adic unit,\n\\[\n\\eta_0=\\omega_0-\\frac{L_0}{L_1}\\omega_1,\\qquad \\eta_2=\\omega_2-\\frac{L_2}{L_1}\\omega_1\n\\]\nare integral differentials that annihilate $L$. From $L\\equiv(0,3,6)\\pmod9$ we get $L_0/L_1\\equiv0$, $L_2/L_1\\equiv2\\pmod3$, so\n\\[\n\\eta_0\\equiv\\omega_0,\\qquad \\eta_2\\equiv\\omega_1+\\omega_2\\pmod3.\n\\]\nSince the rank is 1 and $[P_+-O]$ has infinite order, every element of $J(\\Q)$, after multiplication by a suitable integer, becomes the sum of an integer multiple of $[P_+-O]$ and a torsion element. Hence $\\eta_0$ and $\\eta_2$ annihilate the logarithms of all of $J(\\Q)$.\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.1.11}]\nFor each disk we choose the center and a local parameter $s$ as follows.\n\\begin{itemize}\n\\item $P_+$: $s=u-1$. Since $G_v(P_+)=-2$ is a unit, $v\\in\\Z_3[[s]]$, and at the center $\\boldsymbol\\omega/ds=(1,1,0)/2$. The constant coefficient $1/2$ of $\\eta_0$ is a unit.\n\\item $P_-$: $s=v$. Since $G_u(P_-)=-4$ is a unit, $u\\in\\Z_3[[s]]$, and at the center $\\boldsymbol\\omega/ds=(1,-1,0)/(-4)$. The constant coefficient $-1/4$ of $\\eta_0$ is a unit.\n\\item $O$: $s=t$. At the center $\\boldsymbol\\omega/ds=(0,0,1)$, and the constant coefficient 1 of $\\eta_2$ is a unit.\n\\end{itemize}\nIn all three cases the coefficients of the differentials lie in $\\Z_3$, and the rational points of the disk correspond to $s\\in3\\Z_3$. Let $\\eta=\\sum_{k\\ge0}c_ks^k\\,ds$ ($c_0\\in\\Z_3^\\times$) be the chosen differential. Integrating from the center gives\n\\[\nI(3z)=\\sum_{n\\ge1}\\frac{c_{n-1}}n(3z)^n=3z\\Bigl(c_0+\\sum_{n\\ge2}\\frac{c_{n-1}3^{n-1}}{n}z^{n-1}\\Bigr).\n\\]\nFor $n\\ge2$ we have $n-1-v_3(n)\\ge1$, so the expression in parentheses is a unit for every $z\\in\\Z_3$. So the only solution of $I(3z)=0$ is $z=0$. For a rational point $R$ in the disk, $[R-\\text{center}]\\in J(\\Q)$, so $I(s(R))=0$ by \\cite{Coleman85,MP12}. Hence the only rational point in each disk is its center. $C$ has good reduction at 3, so every rational point lies in one of the three disks. Therefore $C(\\Q)=\\{O,P_+,P_-\\}$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4-y^3+xy+x-1=0$ \\ ($H=31$)}{x^4-y^3+xy+x-1=0 (H=31)}}\\label{sec:1.1.12}\n\n\\begin{thm}\\label{thm:1.1.12}\nThe only integer solution of $x^4-y^3+xy+x-1=0$ is $(x,y)=(0,-1)$.\n\\end{thm}\n\n\\paragraph{Setup.} Setting $u=-x$, $v=y$, the equation becomes\n\\[\nC:\\quad G(u,v):=u^4-v^3-uv-u-1=0.\n\\]\nThe projective completion $u^4-v^3w-uvw^2-uw^3-w^4=0$ is a smooth plane quartic (genus 3). The bad primes are $3,5,313,14087$, and the curve has good reduction at 2 (\\code{1.1.12a}). At the point at infinity $O=(0:1:0)$ the line $w=0$ meets the curve with multiplicity 4, since $u^4=0$, so $O$ is a rational hyperflex. The parameter near $O$ is $t=u/v$, and $v=t^{-4}+\\cdots$. At the point $P=(0,-1)$ we also have $G(u,-1)=u^4$, so the line $v=-1$ meets $C$ with multiplicity 4. Hence\n\\[\n\\operatorname{div}(v+1)=4P-4O.\n\\]\nSince $G_v(P)=-3\\ne0$, $u$ is a local parameter near $P$, and $v+1=u^4/3-u^5/9+\\cdots$.\n\n\\begin{prop}\\label{prop:1.1.12}\n$J(\\Q)=\\langle[P-O]\\rangle\\cong\\Z/4\\Z$ and $C(\\Q)=\\{O,P\\}$.\n\\end{prop}\n\nSince $P=(0,-1)$ corresponds to $(x,y)=(0,-1)$, Theorem~\\ref{thm:1.1.12} follows from this proposition.\n\nThe proof has four steps. We determine the bitangent algebra and the Galois structure of $J[2]$ (Step 1), show that the class groups of two fields have no 2-torsion (Step 2), show by descent that the rank is 0 (Step 3), and then determine the torsion subgroup and the rational points (Step 4).\n\n\\paragraph{Step 1: the bitangent algebra and $J[2]$.}\nIf the line $v=mu+b$ is a bitangent, then $u^4-(mu+b)^3-u(mu+b)-u-1$ is the square of a quadratic polynomial. The slopes of the 27 bitangents other than the line at infinity are $m=0$ ($b=-1$, that is, the tangent line $v=-1$ at $P$) and the roots of\n\\[\n\\begin{aligned}\nf_{10}(m)&=m^{10}-24m^6-48m^2-16,\\\\\nf_{16}(m)&=m^{16}+24m^{12}+48m^{11}+624m^8-192m^7+160m^6\\\\\n&\\quad-1152m^4-2304m^3+960m^2-64m+2304.\n\\end{aligned}\n\\]\nBoth polynomials are irreducible. Hence the bitangent algebra is $\\mathcal L=\\Q\\times F_{10}\\times F_{16}$, $F_d=\\Q[m]/(f_d)$ (\\code{1.1.12a}), and\n\\[\nF_{10}:\\ (r_1,r_2)=(2,4),\\ |D|=2^8(5\\cdot313\\cdot14087)^2;\\qquad\nF_{16}:\\ (r_1,r_2)=(0,8),\\ |D|=2^{12}(5\\cdot313\\cdot14087)^4.\n\\]\nWe take the bitangent function $h_m=v-mu-b$. Its coefficient of $t^{-4}$ at $O$ is 1.\n\nWe use the framework of Proposition~\\ref{thm:T}. $V=J[2]$ carries the quadratic form determined by $2O$, and in a suitable basis $V=\\F_2^6$ and\n\\[\nq(z)=z_1z_2+z_3z_4+z_5z_6+z_5+z_6,\\qquad B(a,b)=q(a+b)-q(a)-q(b).\n\\]\nThe 27 bitangents other than the line at infinity correspond to the 27 nonzero isotropic vectors of $q$. The map $a\\mapsto(B(a,w))_w$ is a Galois-equivariant injection $V\\hookrightarrow E=\\F_2^{27}$, and nonzero images have weight 12 or 16. Let $H$ be the subgroup of the orthogonal group fixing the vector $v_0$ corresponding to the rational bitangent $v=-1$. Then the Galois image $G$ is contained in $H$.\n\n\\begin{lem}\\label{lem:1.1.12gal}\n$G=H$ and $|H|=1920$.\n\\end{lem}\n\\begin{proof}\nFirst we do the following finite computation (\\code{1.1.12b}). The transvections $z\\mapsto z+B(z,a)a$ for $a$ with $q(a)=1$, $B(a,v_0)=0$ generate a group of order 1920, and this group has orbits of sizes $1,10,16$ on the 27 isotropic vectors. This group is all of $H$. Indeed, there are 16 isotropic vectors that form a hyperbolic pair with $v_0$, and the elements fixing one such pair act faithfully as permutations of the five nonzero isotropic vectors of the 4-dimensional orthogonal complement, so $|H|\\le16\\cdot120$. The orbit of size 10 splits into five pairs $\\{w,w+v_0\\}$. The action $H\\to S_5$ on these pairs is surjective, and its kernel $N$ is an elementary abelian group of order 16. The $H$-normal closure of every nonzero element of $N$ is $N$.\n\nThe orbits of $G$ are $\\{v_0\\}$, the 10 roots of $f_{10}$, and the 16 roots of $f_{16}$. The image $\\bar G$ of $G$ in $S_5$ is transitive on the five pairs, so its order is a multiple of 5. 13 splits in $F_{10}$ with residue degrees $(1,1,2,6)$, so the Frobenius at 13 has order divisible by 3; since $N$ is a 2-group, the order of $\\bar G$ is also divisible by 3. 3 splits in $F_{10}$, $F_{16}$ with residue degrees $(1,1,4,4)$, $(1,1,2,4,4,4)$, and every element of $H$ with this cycle type maps to a 4-cycle in $S_5$. Hence the order of $\\bar G$ is a multiple of 60 and $\\bar G$ contains an odd permutation, so $\\bar G=S_5$. Since $N$ is abelian, the conjugation action on $N$ factors through $H/N\\cong S_5$, and since $G\\to S_5$ is surjective, $G\\cap N$ is $H$-invariant. Hence $G\\cap N$ is $0$ or $N$. If it were $0$, then $|G|=120$; but there is an orbit of size 16, so $16\\mid|G|$, a contradiction. Therefore $N\\subset G$ and $G=H$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.12tor2}\n$\\dim_{\\F_2}J(\\Q)[2]=1$, and $H^1(\\Q,J[2])\\to H^1(\\Q,E)$ is injective. Hence $\\delta:J(\\Q)/2J(\\Q)\\to\\mathcal L^\\times/\\mathcal L^{\\times2}$ is injective.\n\\end{lem}\n\\begin{proof}\nA finite computation gives $\\dim V^H=1$, $\\dim E^H=3$, $\\dim(E/V)^H=2$ (\\code{1.1.12b}). So $E^H\\to(E/V)^H$ is surjective. In the cohomology exact sequence of $0\\to V\\to E\\to E/V\\to0$, the kernel of $H^1(\\Q,V)\\to H^1(\\Q,E)$ is the quotient of $(E/V)^{G}$ by the image of $E^{G}$, and by Lemma~\\ref{lem:1.1.12gal} this quotient is 0. Moreover, $J(\\Q)[2]=V^G=V^H$ is 1-dimensional. $\\delta$ is the composition of the Kummer map with this map.\n\\end{proof}\n\nAt the bad primes $5$, $313$, $14087$ the reduction has a single singular point, an ordinary node of thickness 1, and the fiber is geometrically irreducible (\\code{1.1.12a}). So the Tamagawa number is 1, and the descent image is unramified at these primes. At 3 we do not use this criterion. Hence $S=\\{2,3\\}$.\n\n\\paragraph{Step 2: class groups.}\n\\begin{lem}\\label{lem:1.1.12class}\n$\\Cl(F_{10})[2]=\\Cl(F_{16})[2]=0$.\n\\end{lem}\n\\begin{proof}\nWe apply Proposition~\\ref{thm:B} to both fields. The window is a step function with a single cell, and its autocorrelation is the triangle $f(x)=(1-|x|/T)_+$. In this case the archimedean term of Proposition~\\ref{thm:B} has the closed form\n\\[\nC_\\infty-\\frac{\\pi^2}{4T}-\\frac{2\\alpha\\log2}T+\\frac2T\\sum_{j\\ \\text{odd}}\\frac{e^{-jT}}{j^2}+\\frac{2\\alpha}T\\log(1+e^{-T}).\n\\]\n\nFor $F_{10}$ we take $n=10$, $\\alpha=1/5$, $T=6$. There are 94 prime ideals of norm less than $e^6$ (the largest norm is 401), and we verify exactly, with witnesses for Lemma~\\ref{lem:C}, that all of them are principal. So $k=a$, and $B^->0.0809177>0$ (\\code{1.1.12c}).\n\nFor $F_{16}$ we take $n=16$, $\\alpha=0$, $T=16$. There are $596{,}471$ prime ideals of norm at most $8.9\\cdot10^6$ ($>e^{16}$) in total, and we count the number $a(q)$ for every norm (\\code{1.1.12d}). For all $18{,}074$ prime ideals of norm at most $2\\cdot10^5$ we verify exactly, with witnesses for Lemma~\\ref{lem:C}, that they are principal (\\code{1.1.12e}). Setting $k(q)=a(q)$ for $q\\le2\\cdot10^5$ and $k(q)=0$ otherwise, we get $B^->0.0745721>0$ (\\code{1.1.12e}).\n\nBoth computations are done with 60-digit precision, and the margin is at least $0.07$, so rounding errors do not affect the conclusion. By Proposition~\\ref{thm:B}, neither class group has 2-torsion.\n\\end{proof}\n\n\\paragraph{Step 3: rank 0.}\n\\begin{lem}\\label{lem:1.1.12rank}\n$\\operatorname{rank}J(\\Q)=0$.\n\\end{lem}\n\\begin{proof}\nBy Lemma~\\ref{lem:1.1.12tor2}, $\\delta$ is injective, and its image has square norm and lies in $\\mathcal L(S,2)=\\Q(S,2)\\times F_{10}(S,2)\\times F_{16}(S,2)$ (Proposition~\\ref{thm:T}). We have $\\Q(S,2)=\\langle-1,2,3\\rangle$. There are $2+4$ prime ideals above 2 and 3 in $F_{10}$, and $3+6$ in $F_{16}$. By Lemma~\\ref{lem:1.1.12class},\n\\[\n\\dim F_{10}(S,2)=(2+4)+6=12,\\qquad \\dim F_{16}(S,2)=(0+8)+9=17,\n\\]\nand the whole space has dimension $3+12+17=32$. That explicit elements supported on $S$ form a basis of each space is checked by the rank of their valuation parities and quadratic characters (\\code{1.1.12f}).\n\nWe impose conditions one after another. The condition that the norm be a square (sign, 2-adic valuation, 3-adic valuation) gives 29 dimensions. Imposing the local conditions at the good primes $487,491,499,503,509,521,523,541$, the dimension becomes $26,19,17,12,12,11,9,8$ in turn. At each prime we use all points of $C(\\F_p)$, so this is the condition given by the whole local image (Proposition~\\ref{thm:S}(3)).\n\nAt 2 the extension is tame, and the orbit sizes on the bitangents in the $\\Q$, $F_{10}$, $F_{16}$ components are $(1)$, $(5,5)$, $(1,5,10)$. The inertia group is cyclic of order 5, and Frobenius sends a generator of inertia to its square. Every subgroup of $H$ satisfying this condition and having these orbit sizes has order 20 and a 2-dimensional fixed space in $V$ (\\code{1.1.12b}). Hence $\\dim J(\\Q_2)[2]=2$, and by Proposition~\\ref{thm:S}(1), $\\dim J(\\Q_2)/2J(\\Q_2)=2+3=5$. On the other hand, the following images are independent: those of the divisors obtained by subtracting $O$ from the point with $u=0$ ($=P$), from the 2-adic points with $u=2$ and $u=4$, and from the point with $t=2$ in the disk of $O$; and that of the divisor obtained by subtracting $2O$ from the sum of the point with $u=\\sqrt2$ over $\\Q_2(\\sqrt2)$ and its conjugate. The coordinates of the points are determined by Hensel's lemma, and we check that the error of each image has valuation greater than $2e_{\\mathfrak p}$ at each prime ideal $\\mathfrak p$ above 2. Therefore these five images generate the whole 2-adic local image.\n\nAt 3, $\\mathcal L$ is unramified, so inertia at 3 acts trivially on $E$, and hence on $V$. The Frobenius at 3 has the cycle type above, and its fixed space in $V$ is 3-dimensional (\\code{1.1.12b}). So $\\dim J(\\Q_3)/2J(\\Q_3)=\\dim J(\\Q_3)[2]=3$. The three images of the 3-adic points with $u=0$ ($=P$), $u=1$, $u=3$ are independent, so they generate the whole 3-adic local image.\n\nThe elements of the preceding 8-dimensional space that map into both local images form a 1-dimensional space (\\code{1.1.12f}). Since $\\delta$ is injective, $\\operatorname{rank}J(\\Q)+\\dim J(\\Q)[2]\\le1$, and since $\\dim J(\\Q)[2]=1$, the rank is 0.\n\\end{proof}\n\n\\paragraph{Step 4: torsion and rational points.}\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.1.12}]\nBy Lemma~\\ref{lem:1.1.12rank}, $J(\\Q)$ is a finite group. The numbers of points of $C$ over $\\F_2,\\F_4,\\F_8$ are $2,4,8$ (\\code{1.1.12g}). Hence the numerator of the congruence zeta function is $1-T-4T^5+8T^6$, and $\\#J(\\F_2)=1-1-4+8=4$. Since 2 is a good prime, by \\cite[Appendix]{Katz81} the odd-order torsion of $J(\\Q)$ injects into $J(\\F_2)$. Hence $J(\\Q)$ is a 2-group. Since $J(\\Q)[2]$ is 1-dimensional, $J(\\Q)$ is cyclic.\n\nSince $\\operatorname{div}(v+1)=4P-4O$, we have $4[P-O]=0$. If $2[P-O]=0$, then $2P\\sim2O$, which contradicts \\cite[Section IV.5]{Hartshorne77} since $P\\ne O$. So $[P-O]$ has order 4. Moreover, $[P-O]\\notin2J(\\Q)$. Indeed, the $\\Q$-component of $\\delta([P-O])$ is computed with the rational bitangent function $h_0=v+1$. Since $h_0$ has a zero of order 4 at $P$, its value at $P$ is taken to be the first coefficient $1/3$ with respect to the parameter $u$, and its normalized value at $O$ is 1. So this component is the square class of $3$, which is not a square. If $J(\\Q)$ were cyclic of order at least 8, every element of order 4 would lie in $2J(\\Q)$; hence $J(\\Q)=\\langle[P-O]\\rangle\\cong\\Z/4\\Z$.\n\nNow let $R\\in C(\\Q)$. Since the genus is positive, $R\\mapsto[R-O]$ is injective, and $[R-O]=j[P-O]$ with $0\\le j\\le3$. If $j=0,1$, then $R=O,P$. If $j=2$, then $R+O\\sim2P$, and if $j=3$, then $R+P\\sim2O$. Since $O\\ne P$, in either case two distinct effective divisors of degree 2 are linearly equivalent, which contradicts \\cite[Section IV.5]{Hartshorne77}. Therefore $C(\\Q)=\\{O,P\\}$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+y^3+xy+y-1=0$ \\ ($H=31$)}{x^4+y^3+xy+y-1=0 (H=31)}}\\label{sec:1.1.13}\n\n\\begin{thm}\\label{thm:1.1.13}\nThe only integer solutions of $x^4+y^3+xy+y-1=0$ are $(x,y)=(-1,0),(1,0),(3,-4)$.\n\\end{thm}\n\n\\paragraph{Setup.} Setting $v=-y$, the equation becomes\n\\[\nC:\\quad G(x,v):=x^4-v^3-(x+1)v-1=0.\n\\]\nThe projective completion $x^4-v^3w-(x+w)vw^2-w^4=0$ is a smooth plane quartic (genus 3), and the bad primes are $2,13,17,43,257$ (\\code{1.1.13a}). At the point at infinity $O=(0:1:0)$ the line $w=0$ meets the curve with multiplicity 4, since $x^4=0$, so $O$ is a rational hyperflex. Near $O$ we use $t=x/v$, $w=1/v$. In this chart the curve is\n\\[\nt^4-w-tw^2-w^3-w^4=0,\n\\]\nand $w=t^4-t^9-\\cdots\\in\\Z[[t]]$. Hence $x$ and $v$ have poles of order 3 and 4 at $O$, respectively. The known rational points are $O$ and\n\\[\nP_-=(-1,0),\\qquad P_1=(1,0),\\qquad P_3=(3,4).\n\\]\nSince $G(-1,v)=-v^3$ and $G(x,2x-2)=((x-1)(x-3))^2$,\n\\[\n\\operatorname{div}(x+1)=3P_--3O,\\qquad \\operatorname{div}(v-2x+2)=2P_1+2P_3-4O.\n\\]\nSo $[P_--O]$ is an element of order 3 and $[P_1+P_3-2O]$ is an element of order 2. That both are nonzero follows from \\cite[Section IV.5]{Hartshorne77}.\n\n\\begin{prop}\\label{prop:1.1.13}\n$C(\\Q)=\\{O,P_-,P_1,P_3\\}$.\n\\end{prop}\n\nSince $(x,v)=(-1,0),(1,0),(3,4)$ correspond to $(x,y)=(-1,0),(1,0),(3,-4)$, Theorem~\\ref{thm:1.1.13} follows directly from this proposition.\n\nThe proof has five steps: the bitangent algebra and the Galois structure of $J[2]$ (Step 1), the class groups of two fields (Step 2), the upper bound 1 for the rank (Step 3), the 3-adic logarithm computed from three principal divisors (Step 4), and the six residue disks at $p=3$ (Step 5).\n\n\\paragraph{Step 1: the bitangent algebra and $J[2]$.}\nIf the line $v=mx+b$ is a bitangent, then $x^4-(mx+b)^3-(x+1)(mx+b)-1$ is the square of a quadratic polynomial. The slopes of the 27 bitangents other than the line at infinity are $m=2$ ($b=-2$, that is, the line $v=2x-2$ tangent at $P_1$ and $P_3$) and the roots of\n\\[\n\\begin{aligned}\nf_{10}(m)={}&m^{10}+10m^9+48m^8+144m^7+288m^6+384m^5+344m^4+224m^3+96m^2-16,\\\\\nf_{16}(m)={}&m^{16}-8m^{15}+36m^{14}-112m^{13}+272m^{12}-528m^{11}+872m^{10}-1264m^9+1920m^8\\\\\n&-3008m^7+4256m^6-4896m^5+4224m^4-2560m^3+768m^2-64m+128.\n\\end{aligned}\n\\]\nBoth polynomials are irreducible. Hence the bitangent algebra is $\\mathcal L=\\Q\\times K_{10}\\times K_{16}$, $K_d=\\Q[m]/(f_d)$ (\\code{1.1.13a}), and\n\\[\nK_{10}:\\ (r_1,r_2)=(2,4),\\ |D|=2^8\\cdot17^2\\cdot43^2\\cdot257^2;\\qquad\nK_{16}:\\ (r_1,r_2)=(0,8),\\ |D|=2^{12}\\cdot17^4\\cdot43^4\\cdot257^4.\n\\]\nWe take the bitangent function $h_m=v-mx-b$. Its coefficient of $t^{-4}$ at $O$ is 1.\n\nAs in Section~\\ref{sec:1.1.12}, we use the framework of Proposition~\\ref{thm:T}. $V=J[2]=\\F_2^6$, the quadratic form $q(z)=z_1z_2+z_3z_4+z_5z_6+z_5+z_6$, the correspondence between isotropic vectors and bitangents, the injection $V\\hookrightarrow E=\\F_2^{27}$, and the stabilizer $H$ of the vector $v_0$ of the rational bitangent ($|H|=1920$, with $N$ the kernel of $H\\to S_5$) are as in the proof of Lemma~\\ref{lem:1.1.12gal}.\n\n\\begin{lem}\\label{lem:1.1.13gal}\nThe Galois image $G$ equals $H$. Hence $\\dim_{\\F_2}J(\\Q)[2]=1$ ($J(\\Q)[2]$ is generated by $[P_1+P_3-2O]$), and $\\delta:J(\\Q)/2J(\\Q)\\to\\mathcal L^\\times/\\mathcal L^{\\times2}$ is injective.\n\\end{lem}\n\\begin{proof}\nLet $\\bar G\\subset S_5$ be the image of $G$. Since $f_{10}$ is irreducible, $\\bar G$ is transitive on the five pairs, and its order is a multiple of 5. 3 splits in $K_{10}$, $K_{16}$ with residue degrees $(2,8)$, $(8,8)$, and every element of $H$ with this cycle type maps to a 4-cycle in $S_5$. 5 splits with residue degrees $(4,6)$, $(4,12)$, and every element of $H$ with this cycle type maps to an element of cycle type $(2,3)$ (\\code{1.1.13b}). Hence the order of $\\bar G$ is a multiple of 60 and $\\bar G$ contains an odd permutation, so $\\bar G=S_5$. As in the proof of Lemma~\\ref{lem:1.1.12gal}, $G\\cap N$ is $0$ or $N$, and $0$ contradicts the orbit of size 16. Therefore $G=H$. The rest is as in the proof of Lemma~\\ref{lem:1.1.12tor2}: since $\\dim V^H=1$, $\\dim E^H=3$, $\\dim(E/V)^H=2$, the group $J(\\Q)[2]$ is 1-dimensional and $H^1(\\Q,J[2])\\to H^1(\\Q,E)$ is injective.\n\\end{proof}\n\nAt the bad primes $17,43,257$ the reduction has a single singular point, an ordinary node of thickness 1, and the fiber is geometrically irreducible. So the Tamagawa number is 1, and the descent image is unramified at these primes. At 13 the node has thickness 2, so we keep 13 (\\code{1.1.13a}). Hence $S=\\{2,13\\}$.\n\n\\paragraph{Step 2: class groups.}\n\\begin{lem}\\label{lem:1.1.13class}\n$\\Cl(K_{10})[2]=\\Cl(K_{16})[2]=0$.\n\\end{lem}\n\\begin{proof}\nAs in the proof of Lemma~\\ref{lem:1.1.12class}, we apply Proposition~\\ref{thm:B} with the triangular window $f(x)=(1-|x|/T)_+$. For $K_{10}$ we take $T=5$, and we verify exactly, with witnesses for Lemma~\\ref{lem:C}, that all 32 prime ideals of norm less than $e^5$ (the largest norm is 131) are principal. For $K_{16}$ we take $T=8$, and the same holds for all 465 prime ideals of norm less than $e^8$ (the largest norm is 2957). In both cases $k=a$, and\n\\[\nB^-(K_{10})>0.3436681640333619,\\qquad B^-(K_{16})>0.0228202034642712\n\\]\n(\\code{1.1.13c}). The conclusion follows from Proposition~\\ref{thm:B}.\n\\end{proof}\n\n\\paragraph{Step 3: upper bound for the rank.}\n\\begin{lem}\\label{lem:1.1.13rank}\n$\\operatorname{rank}J(\\Q)\\le1$.\n\\end{lem}\n\\begin{proof}\nBy Lemma~\\ref{lem:1.1.13gal}, $\\delta$ is injective, and its image has square norm and lies in $\\mathcal L(S,2)$ (Proposition~\\ref{thm:T}). We have $\\Q(S,2)=\\langle-1,2,13\\rangle$. There are $2+2$ prime ideals above 2 and 13 in $K_{10}$, and $3+4$ in $K_{16}$. By Lemma~\\ref{lem:1.1.13class},\n\\[\n\\dim K_{10}(S,2)=(2+4)+4=10,\\qquad \\dim K_{16}(S,2)=(0+8)+7=15,\n\\]\nand the whole space has dimension $3+10+15=28$. The explicit bases are checked by valuation parities and quadratic characters (\\code{1.1.13d}). The condition that the norm be a square (sign, 2-adic and 13-adic valuations) gives 25 dimensions, and imposing the local conditions given by the images of all points of $C(\\F_p)$ at the good primes\n\\[\n487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593\n\\]\ngives 7 dimensions (Proposition~\\ref{thm:S}(3)).\n\nAt 2 the extension is tame, and the orbit sizes on the bitangents in the $\\Q$, $K_{10}$, $K_{16}$ components are $(1)$, $(5,5)$, $(5,1,10)$. By the same computation as in the proof of Lemma~\\ref{lem:1.1.12rank}, the decomposition group has order 20 and $\\dim J(\\Q_2)[2]=2$ (\\code{1.1.13b}). Hence $\\dim J(\\Q_2)/2J(\\Q_2)=5$ (Proposition~\\ref{thm:S}(1)). The 2-adic images of the following five divisors are independent (\\code{1.1.13d}).\n\\begin{enumerate}[label=(\\alph*)]\n\\item $P_1-O$. Since $P_1$ lies on the rational bitangent $v=2x-2$, its component is computed, using the identity\n\\[\n(v-2x+2)\\bigl((v+x-1)^2+3x^2-5x+4\\bigr)=((x-1)(x-3))^2\n\\]\non $C$, as the value of $1/\\bigl((v+x-1)^2+3x^2-5x+4\\bigr)$.\n\\item The divisor obtained by subtracting $O$ from the 2-adic point with $x=-3$.\n\\item The divisor obtained by subtracting $O$ from the point with $t=2$ in the disk of $O$.\n\\item $D_1-2O$, for a divisor $D_1$ of degree 2 on the line $v=-5x-7$.\n\\item $D_2-2O$, for a divisor $D_2$ of degree 2 on the line $v=-5x-5$.\n\\end{enumerate}\nIn (d), (e), write the line as $v=kx+b_0$. Then $G(x,kx+b_0)$ splits in $\\Z_2[x]$ as a product of two monic quadratic polynomials with odd resultant (we apply Hensel's lemma to the factorization modulo $2^{50}$). $D_i$ is the effective divisor of degree 2 over $\\Q_2$ determined by one of these quadratics.\nWe check that the approximation error has valuation greater than $2e_{\\mathfrak p}$ at each prime ideal $\\mathfrak p$ above 2, so the square classes are determined exactly. Therefore the five images generate the whole 2-adic local image. The elements of the preceding 7-dimensional space that map into this local image form a 2-dimensional space. Since $\\delta$ is injective and $\\dim J(\\Q)[2]=1$, $\\operatorname{rank}J(\\Q)\\le2-1=1$.\n\\end{proof}\n\n\\paragraph{Step 4: principal divisors and the 3-adic logarithm.}\n3 is a good prime. We take the integral basis of regular differentials\n\\[\n\\boldsymbol\\omega=(\\omega_0,\\omega_1,\\omega_2)=(1,x,v)\\frac{dx}{3v^2+x+1}=(1,x,v)\\frac{dv}{4x^3-v}.\n\\]\nIn the chart at $O$, $\\boldsymbol\\omega=-(w,t,1)\\,dt/(1+2tw+3w^2+4w^3)$. Modulo 3, $C(\\F_3)$ consists of the six points\n\\[\nO,\\quad(2,0),\\quad(1,0),\\quad(0,1),\\quad(1,1),\\quad(1,2).\n\\]\nAbove the first four lie the rational points $O,P_-,P_1,P_3$. Above the last two lie the $\\Q_3$-points $Q_\\pm=(1,\\alpha_\\pm)$, where $\\alpha_\\pm^2=-2$, $\\alpha_+\\equiv1$, $\\alpha_-\\equiv2\\pmod3$; since $G(1,v)=-v(v^2+2)$, $Q_\\pm$ are points over $\\Q(\\sqrt{-2})$.\n\n\\begin{lem}\\label{lem:1.1.13div}\nThere are $h_1\\in\\Q[x,v]$ and $h_\\pm\\in\\Q(\\sqrt{-2})[x,v]$ such that\n\\[\n\\begin{aligned}\n\\operatorname{div}(h_1)&=22P_1+E_1-25O,\\\\\n\\operatorname{div}(h_+)&=P_-+18P_1+Q_++E_+-23O,\\\\\n\\operatorname{div}(h_-)&=2P_-+5P_1+Q_-+E_--11O.\n\\end{aligned}\n\\]\nHere $E_1,E_\\pm$ are effective divisors of degree 3.\n\\end{lem}\n\\begin{proof}\nThe three functions are computed by \\code{1.1.13e} directly, as the kernel of the vanishing conditions (the kernel is one-dimensional, so they are unique up to a constant). In each function there is only one monomial of largest weight ($x$ has weight 3, $v$ has weight 4), so the pole orders are exactly 25, 23, 11. We check the orders of the zeros by Taylor expansion at $P_-$ and $P_1$, and check by substitution that $h_\\pm$ vanishes at $Q_\\pm$ and not at its conjugate. The norm to the $x$-line is the product of the known factors and one irreducible cubic, and this cubic does not vanish at the known $x$-coordinates. The remaining three points are given by a cubic for the $v$-coordinate and by an expression of $x$ as a polynomial in $v$; substituting them, we check $G=h=0$. The sum of the orders of the zeros equals the order of the pole, so there are no other zeros.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.13log}\nLet $L=\\log[P_1-O]$. The 3-adic logarithms with respect to $\\boldsymbol\\omega$ are as follows modulo 27.\n\\[\n\\begin{array}{c|ccc}\n &\\omega_0&\\omega_1&\\omega_2\\\\\\hline\nL&24&15&15\\\\\n\\log(Q_+-O)&12&9&12\\\\\n\\log(Q_--O)&18&3&0\n\\end{array}\n\\]\nIn particular, $v_3(L_0)=1$, so $\\operatorname{rank}J(\\Q)=1$.\n\\end{lem}\n\\begin{proof}\n$[P_--O]$ is a torsion element, so its logarithm is 0. From Lemma~\\ref{lem:1.1.13div},\n\\[\n\\begin{aligned}\nL&=-\\frac{\\log(E_1-3O)}{22},\\\\\n\\log(Q_+-O)&=-\\log(E_+-3O)-18L,\\\\\n\\log(Q_--O)&=-\\log(E_--3O)-5L.\n\\end{aligned}\n\\]\nHere 22 is a 3-adic unit.\n\nThe points of $E_1$ and $E_+$ are defined over the unramified cubic extension of $\\Q_3$, and their $x$-coordinates are 1 and 0 modulo 3, respectively. Over $\\F_3$ the fibers $x=1$ and $x=0$ consist of three distinct points, and $\\operatorname{div}(x-c)=(\\text{fiber }x=c)-3O$. So, pairing each point $e$ of $E$ with the point $e'$ of the fiber in the same residue disk, we get $\\log(E-3O)=\\sum_e\\int_{e'}^{e}\\boldsymbol\\omega$. On these disks $3v^2+x+1$ is a unit, so $x-c$ is a parameter. Writing $\\boldsymbol\\omega(x_e+s)=\\sum_{n\\ge0}a_ns^n\\,ds$ ($a_n$ integral) and setting $\\delta=x_e-c\\in3\\mathcal O$, we have\n\\[\n\\int_{e'}^{e}\\boldsymbol\\omega=\\sum_{n\\ge0}\\frac{(-1)^na_n\\delta^{n+1}}{n+1}.\n\\]\nThe terms with $n+1\\ge6$ have valuation at least $(n+1)-v_3(n+1)\\ge5$. So if we compute the terms with $n+1\\le5$ exactly in the cubic field and take the trace, the result is exact modulo 81.\n\nThe cubic satisfied by the $v$-coordinates of $E_-$ is 3-Eisenstein, so all three points have $v_3(v)=1/3$, and $x$ reduces to $-1$. So $E_-$ lies in the disk of $P_-$. Since $3P_-\\sim3O$, we have $\\log(E_--3O)=\\operatorname{Tr}\\int_{P_-}^{e}\\boldsymbol\\omega$, and with respect to the parameter $v$ the denominator of $\\boldsymbol\\omega=(1,x,v)\\,dv/(4x^3-v)$ is a unit. We use 18 terms of the integral; the remaining terms, of degree $n\\ge19$, have valuation at least $n/3-v_3(n)\\ge6$.\n\nThe values obtained in this way are, modulo 81,\n\\[\n\\log(E_1-3O)\\equiv(39,48,21),\\quad \\log(E_+-3O)\\equiv(69,72,69),\\quad \\log(E_--3O)\\equiv(51,57,33)\n\\]\n(\\code{1.1.13f}). Substituting them into the relations above gives the table. Since $L_0\\equiv24\\pmod{27}$, $L\\ne0$, and together with Lemma~\\ref{lem:1.1.13rank} this gives $\\operatorname{rank}J(\\Q)=1$.\n\\end{proof}\n\n\\paragraph{Step 5: Chabauty--Coleman at $p=3$.}\nSince $v_3(L_0)=1\\le v_3(L_1),v_3(L_2)$,\n\\[\nA=\\Bigl(-\\frac{L_1}{L_0},1,0\\Bigr),\\qquad B=\\Bigl(-\\frac{L_2}{L_0},0,1\\Bigr)\n\\]\nare integral vectors that annihilate $L$. From the table, $A\\equiv(5,1,0)\\pmod9$, $A\\equiv(2,1,0)$, $B\\equiv(2,0,1)\\pmod3$. Since the rank is 1 and $[P_1-O]$ has infinite order, the differentials $A\\boldsymbol\\omega$ and $B\\boldsymbol\\omega$ annihilate the logarithms of all of $J(\\Q)$. Also, from the table,\n\\[\nA\\cdot\\log(Q_+-O)\\equiv15,\\qquad A\\cdot\\log(Q_--O)\\equiv12\\pmod{27},\n\\]\nand both values have 3-adic valuation exactly 1.\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.1.13}]\n$C$ has good reduction at 3, so every rational point lies in one of the six residue disks. We write the points of each disk with a parameter $s\\in3\\Z_3$.\n\nThe disks of $Q_\\pm$. The parameter is $s=x-1$, and at $Q_\\pm$, $3v^2+x+1=-4$ is a unit. If such a disk contains a rational point $R$, then, since $A\\boldsymbol\\omega$ annihilates $J(\\Q)$,\n\\[\n0=A\\cdot\\log(R-O)=A\\cdot\\log(Q_\\pm-O)+\\int_{Q_\\pm}^{R}A\\boldsymbol\\omega.\n\\]\nModulo 3, $A\\boldsymbol\\omega\\equiv(2+x)\\,dx/(3v^2+x+1)$, which vanishes at $x=1$. So the linear term of the integral has valuation at least 2, and the terms of degree $n\\ge2$ also have valuation at least 2, since $n-v_3(n)\\ge2$. Hence the integral lies in $9\\Z_3$. On the other hand, $A\\cdot\\log(Q_\\pm-O)$ has valuation 1, so the equality above cannot hold. These two disks contain no rational points.\n\nThe remaining four disks. The centers, the parameters and the differentials used are as follows.\n\\[\n\\begin{array}{l|cccc}\n\\text{center}&O&P_-&P_1&P_3\\\\\\hline\n\\text{parameter}&t&v&x-1&x-3\\\\\n\\text{differential}&B\\boldsymbol\\omega&A\\boldsymbol\\omega&B\\boldsymbol\\omega&A\\boldsymbol\\omega\\\\\n\\text{coefficient at the center (modulo 3)}&-1&2&1&2\n\\end{array}\n\\]\nAll these coefficients are units, so by the same computation as in the proof of Proposition~\\ref{prop:1.1.11}, the integral $I(3z)$ from the center has the form $3z\\cdot(\\text{unit})$. By \\cite{Coleman85,MP12}, the rational points of a disk are zeros of this integral, so the center is the only one. Therefore $C(\\Q)=\\{O,P_-,P_1,P_3\\}$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+y^3+xy+x+1=0$ \\ ($H=31$)}{x^4+y^3+xy+x+1=0 (H=31)}}\\label{sec:1.1.14}\n\n\\begin{thm}\\label{thm:1.1.14}\nThe only integer solution of $x^4+y^3+xy+x+1=0$ is $(x,y)=(0,-1)$.\n\\end{thm}\n\nThis equation has the same shape as those in Sections~\\ref{sec:1.1.1}--\\ref{sec:1.1.13}, but the method of solution is different. Instead of bitangent 2-descent, an elementary fourth-power descent turns it into a problem about the rational points of a genus 5 curve. From that curve we construct a Prym map to the Jacobian of a genus 2 curve, and we finish with a sieve modulo 7 and 7-adic Chabauty.\n\n\\paragraph{Setup.} Setting $v=y+1$, the equation becomes\n\\begin{equation}\\label{eq:1.1.14-v}\nx^4+v\\,(v^2-3v+x+3)=0\n\\end{equation}\n(\\code{1.1.14a}). In projective coordinates $(x:v:z)$ we use the three quadratic forms\n\\[\nq_1=vz,\\qquad q_2=x^2,\\qquad q_3=-(v^2-3vz+xz+3z^2);\n\\]\nthen the projective completion of \\eqref{eq:1.1.14-v} is the smooth plane quartic $C:\\ q_2^2=q_1q_3$. Let $(x:v:z:r:s)$ be coordinates on $\\mathbb P^4$, and let $D$ be the intersection of the three quadrics\n\\begin{equation}\\label{eq:1.1.14-D}\nQ_1=vz+3r^2,\\qquad Q_2=x^2+3rs,\\qquad Q_3=q_3+3s^2.\n\\end{equation}\nOn $D$ we have $q_1=-3r^2$, $q_2=-3rs$, $q_3=-3s^2$, so $q_1q_3=q_2^2$. Hence $\\pi(x:v:z:r:s)=(x:v:z)$ is a morphism $D\\to C$ (if $x=v=z=0$, then $r=s=0$). A fixed point of the involution $\\sigma:(r,s)\\mapsto(-r,-s)$ must have $r=s=0$, but then $x=0$, $vz=0$, $v^2-3vz+3z^2=0$ force all coordinates to be 0. Hence $\\pi$ is an unramified double cover. $D$ is smooth modulo 7, and hence also smooth over $\\Q$ (\\code{1.1.14b}). Therefore $D$ is a curve of genus 5. We use the two rational points\n\\[\nP_\\pm=(0:0:1:0:\\pm1)\n\\]\nof $D$. Theorem~\\ref{thm:1.1.14} follows from the descent in Step 1 and the following proposition.\n\n\\begin{prop}\\label{prop:1.1.14}\n$D(\\Q)=\\{P_+,P_-\\}$.\n\\end{prop}\n\n\\paragraph{Step 1: elementary descent.}\n\\begin{lem}\\label{lem:1.1.14-vneg}\nInteger solutions of \\eqref{eq:1.1.14-v} satisfy $v\\le0$, and if $v=0$, then $x=0$.\n\\end{lem}\n\\begin{proof}\nSuppose $v\\ge1$. If $x\\ge0$, then $v^2-3v+x+3=(v-1)(v-2)+x+1\\ge1$, so the left-hand side is positive. If $x=-t$ with $t\\ge1$, then the left-hand side is $t^4-tv+(v-1)^3+1$. If $1\\le v\\le t^3$, then $t^4-tv\\ge0$ and $(v-1)^3+1\\ge1$. If $v\\ge t^3+1$, then $(v-1)^2\\ge t^6\\ge t$, so $(v-1)^3\\ge t(v-1)$, and the left-hand side is at least $t^4-t+1>0$. In either case the left-hand side is nonzero. If $v=0$, then $x^4=0$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.14-lift}\nIf $(x,v)$ is an integer solution of \\eqref{eq:1.1.14-v} with $v<0$, then there are integers $r,s$ such that $(x:v:1:r:s)\\in D(\\Q)$.\n\\end{lem}\n\\begin{proof}\nSet $n=-v>0$; then $x^4=n\\,(n^2+3n+x+3)$. If $x=0$, then $n^2+3n+3=0$, which is impossible; so $x\\ne0$, and both factors are positive. If a prime $p$ divides both factors, then $p\\mid x$, and looking at the second factor modulo $p$ gives $p\\mid3$. Hence for $p\\ne3$ the exponent of $p$ in $n$ is a multiple of 4, and we can write\n\\[\nn=du^4,\\qquad d\\in\\{1,3,9,27\\},\\quad u\\in\\Z_{>0}.\n\\]\nIf $d=1$, then $u^4\\mid x^4$, so we write $x=uw$. If $d=3,9,27$, then $3\\mid x$. Writing $x=3x'$, we get $u^4\\mid9x'^4$, so $u\\mid x'$, and we write $x=3uw$. Cancelling the common fourth power gives the following equations.\n\\[\n\\begin{array}{c|l}\nd & \\text{integer equation}\\\\ \\hline\n1 & w^4=u^8+3u^4+uw+3\\\\\n3 & 9w^4=3u^8+3u^4+uw+1\\\\\n9 & 3w^4=27u^8+9u^4+uw+1\\\\\n27 & w^4=243u^8+27u^4+uw+1\n\\end{array}\n\\]\n\n$d=1$: If $u,w$ are both prime to 3, then modulo 3 we get $1\\equiv1+uw$, a contradiction. If one of them is a multiple of 3, then by the equation so is the other, and modulo 9 we get $0\\equiv3$, a contradiction.\n\n$d=9$: With $A=2w^2-6u^4-1$, $B=2w^2+6u^4+1>0$, the equation is equivalent to $3AB=4uw+1$ (\\code{1.1.14a}). From $u^4\\ge u^2$ and $4|uw|\\le2u^2+2w^2$ we get $3B-|4uw+1|\\ge4w^2+16u^2+2>0$. If $A\\ne0$, then $|3AB|\\ge3B>|4uw+1|$; if $A=0$, then $4uw+1=0$ would be required. Both are impossible.\n\n$d=3,27$: Set $r=u^2$ ($d=3$), $r=3u^2$ ($d=27$); then $n=3r^2$. $s=-x^2/(3r)$ is an integer, namely $-3w^2$ and $-w^2$, respectively. Now at $z=1$ we have $Q_1=-n+3r^2=0$ and $Q_2=x^2+3rs=0$. Also $n^2+3n+x+3=x^4/n=x^4/(3r^2)=3s^2$, so $Q_3=-(n^2+3n+x+3)+3s^2=0$.\n\\end{proof}\n\n\\paragraph{Step 2: the Prym map.} Let $M_1,M_2,M_3$ be the $5\\times5$ symmetric matrices of $Q_1,Q_2,Q_3$ in \\eqref{eq:1.1.14-D} ($Q_i(X)=X^{\\mathsf T}M_iX$). In the pencil of quadrics\n\\[\nQ_t=Q_1-2tQ_2+t^2Q_3=(q_1-2tq_2+t^2q_3)+3(r-ts)^2,\n\\]\neach $Q_t$ is a quadric of rank at most 4 with vertex $(0:0:0:t:1)$. Its discriminant is determined by the $(x,v,z)$ part. Indeed,\n\\[\n12\\det\\bigl(M(q_1)-2tM(q_2)+t^2M(q_3)\\bigr)=f(t):=3t^6-18t^5+36t^3+6t\n\\]\n(\\code{1.1.14a}; $M(q_i)$ is the $3\\times3$ symmetric matrix of $q_i$). We have $f=3t\\,(t^5-6t^4+12t^2+2)$, and its discriminant is $-2^6\\cdot3^{10}\\cdot19\\cdot149\\cdot3461$. Let\n\\[\nH:\\ \\eta^2=f(t),\\qquad J=\\operatorname{Jac}(H)\n\\]\nbe the genus 2 curve and its Jacobian. $H$ has good reduction at 5 and 7. If $f(t)\\ne0$, then $Q_t$ has rank exactly 4, and its two families of planes correspond to $\\eta=\\pm\\sqrt{f(t)}$. $D_\\infty$ denotes the sum of the two points at infinity of $H$ (a rational divisor).\n\nThe Bruin construction of \\cite{Bruin08,RR18} gives a morphism $\\phi:D\\to J$ over $\\Q$. Up to an overall sign, $\\phi$ is the composition of $p\\mapsto[2\\sigma(p)-2p]\\in\\operatorname{Prym}(D/C)$ with the isomorphism $\\operatorname{Prym}(D/C)\\cong J$; see \\cite[Proposition 6.2 and Remark 6.3]{Bruin08}. What the proof uses is the following tangent formula. Represent $p\\in D$ by a vector $P$, and choose a vector $w$ that is tangent to $D$ at $p$ and not proportional to $P$ ($P^{\\mathsf T}M_iw=0$, $i=1,2,3$). Then\n\\begin{equation}\\label{eq:1.1.14-tan}\na_p(t)=w^{\\mathsf T}M_1w-2t\\,w^{\\mathsf T}M_2w+t^2\\,w^{\\mathsf T}M_3w\n\\end{equation}\nis nonzero. Replacing $w$ by $aw+bP$ ($a\\ne0$) only multiplies $a_p$ by $a^2$. At a $t$ with $a_p(t)=0$, the tangent line at $p$ is contained in $Q_t$, and the family of planes containing this tangent line determines the sign of $\\eta$. Let $D_p$ be the effective divisor of degree 2 on $H$ obtained in this way. Then\n\\[\n\\phi(p)=[D_p-D_\\infty].\n\\]\nIn particular, the $t$-coordinates of $D_p$ are the roots of $a_p$. This Prym identification, including the quadratic twist, is independently checked by $L_p(D)=L_p(C)\\,L_p(H)$ at $p=5,7,11,13,17$ (\\code{1.1.14b}).\n\n\\begin{lem}\\label{lem:1.1.14-G}\n$A_0=(0,0)$ and $B_0=(24,20748)$ are rational points of $H$, and $\\phi(P_+)=\\pm G$, where\n\\[\nG=[B_0-A_0]=\\bigl(t^2-24t,\\ \\tfrac{1729}{2}t\\bigr)\\in J(\\Q)\n\\]\n(Mumford representation).\n\\end{lem}\n\\begin{proof}\nWe have $f(0)=0$ and $f(24)=20748^2$ (\\code{1.1.14a}). In the coordinate order $(x,v,z,r,s)$, the three gradient vectors at $P_+$ are $(0,1,0,0,0)$, $(0,0,0,3,0)$, $(-1,3,-6,0,6)$, and $w=(1,0,0,0,\\tfrac16)$ is orthogonal to all three. Since $Q_1(w)=0$, $Q_2(w)=1$, $Q_3(w)=3\\cdot\\tfrac1{36}=\\tfrac1{12}$,\n\\[\na_{P_+}(t)=-2t+\\tfrac1{12}t^2=\\tfrac1{12}\\,t\\,(t-24).\n\\]\nThe only point of $H$ above the root $t=0$ is the Weierstrass point $A_0$, and the points above $t=24$ are $(24,\\pm20748)$. Hence $D_{P_+}=A_0+(24,\\varepsilon\\cdot20748)$ with $\\varepsilon=\\pm1$. Since $2A_0\\sim D_\\infty$, $\\phi(P_+)=[(24,\\varepsilon\\cdot20748)-A_0]$. The hyperelliptic involution fixes $A_0$ and acts on $J$ as $-1$, so this is $\\varepsilon G$. The Mumford representation is checked from $t(t-24)$, $b(0)=0$, $b(24)=1729\\cdot12=20748$.\n\\end{proof}\n\n\\paragraph{Step 3: $J(\\Q)$.}\n\\begin{lem}\\label{lem:1.1.14-MW}\n$J(\\Q)\\cong\\Z$. If $H_0$ is a generator and $G=mH_0$, then $m$ is odd. Moreover, the image of the reduction modulo 7, $\\rho_7:J(\\Q)\\to J(\\F_7)$, is $\\{0,\\bar G\\}$.\n\\end{lem}\n\\begin{proof}\n\\code{1.1.14c} verifies the following by exact computation:\n\\[\n\\#\\mathrm{Sel}^{(2)}(J/\\Q)=2,\\qquad \\#J(\\F_5)=23,\\qquad \\#J(\\F_7)=32,\\qquad \\operatorname{ord}\\bar G=2,\\qquad \\bar G\\notin2J(\\F_7).\n\\]\nBy \\cite[Appendix]{Katz81}, torsion of order prime to 5 injects into $J(\\F_5)$, and torsion of order prime to 7 injects into $J(\\F_7)$. If there were a torsion point of prime order $\\ell$, we would need $\\ell\\mid23$ when $\\ell\\ne5$ and $\\ell\\mid32$ when $\\ell\\ne7$; no such $\\ell$ exists. Hence $J(\\Q)$ has no torsion, and in particular $J(\\Q)[2]=0$. By \\cite{Stoll01,PS97,PS99}, $\\#\\mathrm{Sel}^{(2)}=2$ gives $\\operatorname{rank}J(\\Q)\\le1$. Since $G\\ne0$, the rank is 1 and $J(\\Q)\\cong\\Z$. If $m$ were even, then $\\bar G=m\\bar H_0\\in2J(\\F_7)$, a contradiction. Since $\\#J(\\F_7)=32$ and $m$ is odd, $\\bar H_0$ and $\\bar G=m\\bar H_0$ generate the same subgroup, which is $\\{0,\\bar G\\}$.\n\\end{proof}\n\n\\paragraph{Step 4: sieve modulo 7.}\n\\begin{lem}\\label{lem:1.1.14-sieve}\nEvery point of $D(\\Q)$ reduces modulo 7 to $\\bar P_+$ or $\\bar P_-$.\n\\end{lem}\n\\begin{proof}\n$D(\\F_7)$ has eight points, all with $z\\ne0$ (\\code{1.1.14c}). Their coordinates $(x,v,r,s)$ normalized by $z=1$, and the tangent polynomials $a_{\\bar p}$ normalized to be monic, are as follows. Two points paired by $\\sigma$ have the same $a_{\\bar p}$.\n\\[\n\\begin{array}{l|c}\n(x,v,r,s)\\bmod7 & a_{\\bar p}(t)\\\\ \\hline\n(0,0,0,1),\\ (0,0,0,6)\\quad(=\\bar P_+,\\bar P_-) & t^2+4t\\\\\n(0,4,1,0),\\ (0,4,6,0) & t^2+t+4\\\\\n(4,2,2,2),\\ (4,2,5,5) & t^2+t+4\\\\\n(5,2,2,4),\\ (5,2,5,3) & t^2+t+4\n\\end{array}\n\\]\nTake $p\\in D(\\Q)$ and represent it by a primitive vector $P\\in\\Z_7^5$. Since $D$ is smooth over $\\Z_7$, the $3\\times5$ matrix $(P^{\\mathsf T}M_i)_i$ has rank 3 also modulo 7. Its kernel is a saturated submodule of rank 2 containing $P$, so there is $w\\in\\Z_7^5$ that, together with $P$, forms a basis of the kernel. Then $\\bar w$ is a tangent vector at $\\bar p$ and is independent of $\\bar P$. Hence the reduction modulo 7 of $a_p\\in\\Z_7[t]$ is a nonzero constant multiple of $a_{\\bar p}$. Since $H$ has good reduction at 7, the reduction of $\\phi(p)=[D_p-D_\\infty]$ is $[\\bar D_p-\\bar D_\\infty]$, where $\\bar D_p$ is the effective divisor of degree 2 whose $t$-coordinates are the roots of $a_{\\bar p}$.\n\nIf $a_{\\bar p}=t^2+t+4$, its discriminant $1-16\\equiv6$ is not a square modulo 7. So $\\bar D_p$ consists of two conjugate points over $\\F_{49}$ with distinct $t$-coordinates. $\\bar D_p$ is not a fiber of $t$, so $[\\bar D_p-\\bar D_\\infty]\\ne0$, and the first polynomial of its Mumford representation is $t^2+t+4$. The first polynomial of $\\bar G$ is $t^2-24t\\equiv t^2+4t$, so this class is not $\\bar G$ either. On the other hand, by Lemma~\\ref{lem:1.1.14-MW}, $\\rho_7(\\phi(p))\\in\\{0,\\bar G\\}$ (\\cite{BS10}). Hence $\\bar p\\in\\{\\bar P_+,\\bar P_-\\}$.\n\\end{proof}\n\n\\paragraph{Step 5: 7-adic Chabauty in the two residue disks.} The differentials of $H$\n\\[\n\\omega_0=\\frac{dt}{2\\eta},\\qquad \\omega_1=\\frac{t\\,dt}{2\\eta}\n\\]\nform a basis of the regular differentials on the $\\Z_7$-model of $H$, and hence a basis of the invariant differentials of $J$ over $\\Z_7$. Let $\\lambda=(\\lambda_0,\\lambda_1):J(\\Q_7)\\to\\Q_7^2$ be the logarithm with respect to this basis, and write $\\lambda_{\\omega'}$ for the component with respect to a differential $\\omega'$.\n\n\\begin{lem}\\label{lem:1.1.14-beta}\nWrite $\\lambda(G)=(\\ell_0,\\ell_1)$. Then $v_7(\\ell_0)=v_7(\\ell_1)=1$. $\\beta=\\ell_1/\\ell_0$ is a unit of $\\Z_7$ with $\\beta\\equiv24\\pmod{49}$, in particular $\\beta\\equiv3\\pmod7$ (more precisely, $\\beta\\equiv53924\\pmod{7^6}$). The differential\n\\[\n\\omega=\\omega_1-\\beta\\omega_0=\\frac{(t-\\beta)\\,dt}{2\\eta}\n\\]\nannihilates the logarithms of all of $J(\\Q)$.\n\\end{lem}\n\\begin{proof}\nSince $f(24)\\equiv0$ and $f'(24)\\equiv1\\pmod7$, by Hensel's lemma $f$ has a 7-adic root $\\alpha$ with $\\alpha\\equiv24\\pmod7$ ($\\alpha\\equiv24\\pmod{49}$, $\\alpha\\equiv1641\\pmod{7^4}$). Let $W=(\\alpha,0)$. $A_0$ and $W$ are Weierstrass points, so $[W-A_0]$ is 2-torsion and its logarithm is 0. Hence $\\lambda(G)=\\lambda([B_0-W])$. Since $20748=7\\cdot2964$, $B_0$ lies in the same residue disk as $W$, and since $f'(\\alpha)$ is a unit, $\\eta$ is a local parameter on this disk. Since $t=\\alpha+\\eta^2/f'(\\alpha)+O(\\eta^4)$,\n\\[\n\\omega_0=\\Bigl(\\frac1{f'(\\alpha)}+O(\\eta^2)\\Bigr)d\\eta,\\qquad \\omega_1=\\Bigl(\\frac{\\alpha}{f'(\\alpha)}+O(\\eta^2)\\Bigr)d\\eta,\n\\]\nand all coefficients lie in $\\Z_7$. By the tiny integrals of \\cite{Coleman85,MP12}, $\\ell_i=\\int_W^{B_0}\\omega_i$. The terms $\\eta^{2k+1}/(2k+1)$ ($k\\ge1$) have valuation at least $2k+1-v_7(2k+1)\\ge3$ at $\\eta=20748$, so\n\\[\n\\ell_0\\equiv\\frac{20748}{f'(\\alpha)},\\qquad \\ell_1\\equiv\\frac{20748\\,\\alpha}{f'(\\alpha)}\\pmod{7^3}.\n\\]\nHence both have valuation 1, and $\\beta\\equiv\\alpha\\pmod{49}$. The precise value is computed by \\code{1.1.14e}. Since $J(\\Q)=\\Z H_0$ and $G=mH_0$ with $m\\ne0$, we get $\\lambda_\\omega(H_0)=(\\ell_1-\\beta\\ell_0)/m=0$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.14-disk}\nOn the residue disk of $P_+$ (the points of $D(\\Q_7)$ that reduce to $\\bar P_+$ modulo 7), $x$ is a local parameter, and the points of the disk correspond bijectively to $x\\in7\\Z_7$. On this disk,\n\\[\n\\phi^*\\omega=g(x)\\,dx,\\qquad g\\in\\Z_7[[x]],\\qquad g(0)=\\mp\\tfrac{\\beta}{3}\\in\\Z_7^\\times.\n\\]\n\\end{lem}\n\\begin{proof}\nIn the chart $z=1$, the Jacobian determinant of $(Q_1,Q_2,Q_3)$ with respect to $(v,r,s)$ at $P_+$ is\n\\[\n\\det\\begin{pmatrix}1&0&0\\\\0&3&0\\\\3&0&6\\end{pmatrix}=18,\n\\]\na 7-adic unit. Hence, by Hensel's lemma (the implicit function theorem), $v,r,s\\in\\Z_7[[x]]$, and $x\\in7\\Z_7$ corresponds bijectively to the points of the disk. The first few terms are as follows (\\code{1.1.14a}, \\code{1.1.14f}).\n\\[\ns=1+\\tfrac{x}{6}-\\tfrac{x^2}{72}+\\tfrac{x^3}{432}+O(x^4),\\quad\nr=-\\tfrac{x^2}{3}+\\tfrac{x^3}{18}-\\tfrac{x^4}{72}+O(x^5),\\quad\nv=-\\tfrac{x^4}{3}+\\tfrac{x^5}{9}+O(x^6).\n\\]\n\n\\emph{Integrality.} The $\\Z_7$-model of $D$ is smooth, and $J$ is an abelian scheme over $\\Z_7$. By the N\u00e9ron mapping property (\\cite[Section 1.2]{BLR90}), $\\phi$ extends to a morphism over $\\Z_7$. Since $\\omega_0,\\omega_1$ are invariant differentials of $J$ over $\\Z_7$ and $\\beta\\in\\Z_7$, $\\phi^*\\omega$ is a regular differential on the $\\Z_7$-model of $D$. Since $x$ is a parameter at $\\bar P_+$, $\\phi^*\\omega=g(x)\\,dx$ with $g\\in\\Z_7[[x]]$.\n\n\\emph{Constant term.} Substituting the tangent vector $w=(1,v',0,r',s')$ at the point $p(x)$ of the disk into \\eqref{eq:1.1.14-tan}, the coefficients of $a_{p(x)}$ at $x=0$ are $(0,-2,\\tfrac1{12})$, and the two roots are\n\\[\nt_1=\\tfrac23x^2-\\tfrac19x^3+O(x^4),\\qquad t_2=24-\\tfrac{1729}{9}x^3+O(x^4).\n\\]\nSince $f(t_1)=4x^2+O(x^3)$, we have $\\eta_1=\\pm(2x+O(x^2))$ and $dt_1/(2\\eta_1)=\\pm(\\tfrac13+O(x))\\,dx$. Since $dt_2/dx=O(x^2)$, the contribution of the second point is $O(x^2)\\,dx$. Hence\n\\[\n\\phi^*\\omega=(t_1-\\beta)\\frac{dt_1}{2\\eta_1}+(t_2-\\beta)\\frac{dt_2}{2\\eta_2}=\\mp\\frac{\\beta}{3}\\,dx+O(x)\\,dx.\n\\]\nBy Lemma~\\ref{lem:1.1.14-beta}, $\\beta/3\\equiv1\\pmod7$ is a unit. \\code{1.1.14f} computes this expansion exactly up to degree 18 and shows that all coefficients up to degree 14 are 7-adic integers.\n\\end{proof}\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.1.14}]\nLet $R\\in D(\\Q)$. By Lemma~\\ref{lem:1.1.14-sieve}, $R$ lies in the residue disk of $P_+$ or of $P_-$. $\\sigma$ preserves $D(\\Q)$ and interchanges $\\bar P_+$ and $\\bar P_-$, so we may assume that $R$ lies in the disk of $P_+$. Let $\\xi=x(R)\\in7\\Z_7$. An integral within the disk is a difference of logarithms (\\cite{Coleman85,MP12}), so\n\\[\n\\int_{P_+}^{R}\\phi^*\\omega=\\lambda_\\omega\\bigl(\\phi(R)-\\phi(P_+)\\bigr)=0.\n\\]\nThis is because $\\phi(R)-\\phi(P_+)\\in J(\\Q)$, and by Lemma~\\ref{lem:1.1.14-beta}, $\\omega$ annihilates the logarithms of $J(\\Q)$. On the other hand, writing $g=\\sum_{j\\ge0}c_jx^j$ as in Lemma~\\ref{lem:1.1.14-disk},\n\\[\n\\int_{P_+}^{R}\\phi^*\\omega=\\sum_{j\\ge1}\\frac{c_{j-1}}{j}\\,\\xi^{j}.\n\\]\nIf $\\xi\\ne0$, the first term has valuation $v_7(\\xi)$, and the terms with $j\\ge2$ have valuation at least $jv_7(\\xi)-v_7(j)>v_7(\\xi)$ (since $(j-1)v_7(\\xi)\\ge j-1>v_7(j)$). Then the integral has finite valuation $v_7(\\xi)$, so it cannot be 0. Hence $\\xi=0$, that is, $R=P_+$.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.1.14}]\nBy Lemma~\\ref{lem:1.1.14-vneg}, integer solutions have $v\\le0$, and if $v=0$, then $(x,y)=(0,-1)$. This is indeed a solution. If there were a solution with $v<0$, then by Lemma~\\ref{lem:1.1.14-lift} it would give a rational point $(x:v:1:r:s)\\in D(\\Q)$ with nonzero $v$-coordinate. The $v$-coordinates of $P_\\pm$ are 0, so this contradicts Proposition~\\ref{prop:1.1.14}.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4-x^2+xy+y^3=0$ \\ ($H=32$)}{x^4-x^2+xy+y^3=0 (H=32)}}\\label{sec:1.1.15}\n\n\\begin{thm}\\label{thm:1.1.15}\nThe equation $x^4-x^2+xy+y^3=0$ has only the following integer solutions: $(x,y)=(0,0)$, $(1,0)$, $(-1,0)$, $(-1,1)$, $(-1,-1)$, $(2,-2)$, $(4,-6)$.\n\\end{thm}\n\n\\paragraph{Setup.} Unlike the other equations of Section~\\ref{sec:1.1}, the plane quartic is singular: its lowest-degree part $-x^2+xy=x(y-x)$ has two distinct factors, so the origin is a node, and the point $(0:1:0)$ at infinity is smooth. If $x=0$, the equation gives $y=0$. For $x\\ne0$ put\n\\[\nu=-\\frac yx,\\qquad v=-x .\n\\]\nThen $x^4-x^2+xy+y^3=v^2(v^2+u^3v-u-1)$, so the solutions with $x\\ne0$ lie on\n\\begin{equation}\\label{eq:1.1.15:C}\nC:\\quad v^2+u^3v=u+1,\\qquad\\text{equivalently}\\qquad w^2=u^6+4u+4\\quad(w=2v+u^3).\n\\end{equation}\nPut $J=\\Jac(C)$, where $C$ denotes the smooth projective model of \\eqref{eq:1.1.15:C}. Let $O$ and $E$ be the two points at infinity of \\eqref{eq:1.1.15:C}, labelled so that $v\\sim-u^3$ at $O$ and $v\\sim u^{-2}$ at $E$; $O$ corresponds to the point $(0:1:0)$ of the quartic, and $E$ to one of the two branches at the origin. The functions\n\\[\nx=-v,\\qquad y=uv,\\qquad z=-u^2v=y^2/x\n\\]\nhave poles of orders $3,4,5$ at $O$ and no other poles. The affine curve $\\mathcal U=C\\setminus\\{O\\}$ has the integral model\n\\begin{equation}\\label{eq:1.1.15:U}\ny^2=xz,\\qquad x^3-x+y(z+1)=0,\\qquad z^2+z=y(1-x^2).\n\\end{equation}\nOn it $x=0$ forces $y=0$ and $z\\in\\{0,-1\\}$; these are the points $D=(0,0,0)$ and $E=(0,0,-1)$, the two branches at the origin. Over $\\Q$, \\eqref{eq:1.1.15:U} is covered by the chart $z+1\\ne0$, on which $u=(x^2-1)/(z+1)$ and $v=-x$, and the chart $z\\ne0$, on which $s=y/z=x/y$ is a parameter at $E$. Integrally, the proof uses only three facts: every integer solution lifts to an integral point of \\eqref{eq:1.1.15:U} (Lemma~\\ref{lem:1.1.15:lift}); an integral point of \\eqref{eq:1.1.15:U} does not reduce to $O$ modulo any prime (Lemma~\\ref{lem:1.1.15:away}); and the $\\Z_2$-points of \\eqref{eq:1.1.15:U} are described by four residue disks (Step~6).\n\n\\begin{lem}\\label{lem:1.1.15:lift}\nIf $(x,y)$ is an integer solution with $x\\ne0$, then $x\\mid y^2$, and $(x,y,y^2/x)$ is an integral point of \\eqref{eq:1.1.15:U}.\n\\end{lem}\n\\begin{proof}\nLet $\\ell$ be a prime with $\\alpha=v_\\ell(x)>0$, and $\\beta=v_\\ell(y)$. If $\\beta\\ge\\alpha$, then $\\alpha\\le2\\beta$. If $\\beta<\\alpha$, the four terms $x^4,x^2,xy,y^3$ have valuations $4\\alpha,2\\alpha,\\alpha+\\beta,3\\beta$, and the smallest one must occur at least twice. Since $\\alpha+\\beta<2\\alpha<4\\alpha$, this forces $\\alpha+\\beta=3\\beta$, that is, $\\alpha=2\\beta$. So $\\alpha\\le2\\beta$ at every prime, and $x\\mid y^2$. The three relations follow from the equation by substituting $z=y^2/x$.\n\\end{proof}\n\nThe seven solutions of the theorem give the following eight integral points of \\eqref{eq:1.1.15:U} (the origin gives $D$ and $E$). They are used as known points; that they satisfy \\eqref{eq:1.1.15:U} is checked by substitution.\n\\[\n\\begin{array}{@{}c|cccccccc@{}}\n&A&B&C_1&D&E&F_1&G&H\\\\\\hline\n(x,y,z)&(-1,-1,-1)&(-1,0,0)&(-1,1,-1)&(0,0,0)&(0,0,-1)&(1,0,0)&(2,-2,2)&(4,-6,9)\\\\\n(x,y)&(-1,-1)&(-1,0)&(-1,1)&(0,0)&(0,0)&(1,0)&(2,-2)&(4,-6)\n\\end{array}\n\\]\n\n\\begin{lem}\\label{lem:1.1.15:model}\nThe discriminant of \\eqref{eq:1.1.15:C}, normalized as usual for genus 2, is $2^{-12}\\operatorname{disc}(u^6+4u+4)=-8539$, and $8539$ is prime. Modulo $8539$, $f=u^6+4u+4$ satisfies $\\gcd(f,f')=u+1709$ and $\\gcd(f,f',f'')=1$. Hence \\eqref{eq:1.1.15:C} has good reduction at every prime $p\\ne8539$ (in particular at $2$), and at $8539$ the fibre is geometrically irreducible with a single ordinary node of thickness 1. The model is regular, and integral sections do not pass through the node (\\code{1.1.15a}).\n\\end{lem}\n\\begin{proof}\nThe four other roots of $f$ modulo 8539 are simple, so the fibre at 8539 has one ordinary double point and is geometrically irreducible; since $8539$ divides the discriminant exactly once, the node has thickness 1. After an unramified extension the local equation at the node is $ab=8539\\cdot(\\text{unit})$; this is regular, and a section through the node would make both $a$ and $b$ divisible by $8539$, which is impossible.\n\\end{proof}\nSo all fibres are irreducible, and local heights of divisors of degree 0 need no vertical correction. We abbreviate $[P-O]\\in J(\\Q)$ to $P$.\n\nThe proof runs as follows. A 2-descent bounds the rank by 2 (Step~1). With explicit differentials of the second and third kind we write down the Coleman--Gross local height at $p=2$ (Steps~2--3). Since the differential $\\omega_1$ used to normalize the self-height vanishes at the non-Weierstrass point $E$, we add the cross-height with $E$; the local terms at odd primes of this combination vanish at every integral point (Step~4). All periods and the height matrix are obtained from two tiny integrals, and they show that the rank is exactly 2 (Step~5). Finally, on each of the four 2-adic residue disks the resulting quadratic Chabauty function has at most two zeros, and the two known points in each disk account for them (Step~6). This is the method of \\cite{CG89,BBM16}, at $p=2$ and with the cross-height term. The literature quoted for \\cite{CG89,BBM16} does not cover this setting verbatim (it is usually stated for odd $p$, and no second point at infinity enters); the facts about heights used here are those of \\cite{CG89,BB12,BB15}, which hold at every prime of good reduction, and the local heights are identified in Steps~3 and~4.\n\n\\paragraph{Step 1: upper bound for the rank.}\n\\begin{lem}\\label{lem:1.1.15:rank}\n$\\operatorname{rank}J(\\Q)\\le2$.\n\\end{lem}\n\\begin{proof}\nThe 2-descent of \\cite{Stoll01,PS97,PS99} for $w^2=u^6+4u+4$, computed with Magma's \\texttt{RankBound}, gives the upper bound 2 (\\code{1.1.15a}). The class groups used in the descent are computed with the proof bound set to the Minkowski bound, so the bound does not depend on GRH. Equality is proved in Lemma~\\ref{lem:1.1.15:M}.\n\\end{proof}\n\n\\paragraph{Step 2: differentials and principal divisors.}\nPut\n\\[\n\\omega_1=\\frac{dx}{1+3z},\\qquad\\omega_2=\\frac yx\\,\\omega_1,\\qquad\\eta_1=2y\\,\\omega_1,\\qquad\\eta_2=x\\,\\omega_1\n\\]\n(where an apparent denominator vanishes, these are understood as their regular extensions). On \\eqref{eq:1.1.15:C}, $\\omega_1=-du/(2v+u^3)$ and $\\omega_2=u\\,du/(2v+u^3)$, so $\\omega_1,\\omega_2$ form a basis of the holomorphic differentials. As a section of the relative dualizing sheaf of the regular model, $\\omega_1$ has divisor $E+O$, with no vertical component. At $O$ we use the parameter $t=-x/y=1/u$, fixed once and for all:\n\\begin{equation}\\label{eq:1.1.15:infty}\nx=t^{-3}\\rho,\\quad y=-t^{-4}\\rho,\\quad z=t^{-5}\\rho,\\qquad \\rho^2-\\rho=t^5+t^6,\\quad\\rho(0)=1.\n\\end{equation}\nThe leading terms of $\\omega_1,\\omega_2,\\eta_1,\\eta_2$ are $-t\\,dt$, $dt$, $2t^{-3}dt$, $-t^{-2}dt$, and the next terms begin in degrees $6,5,2,3$. Hence the $\\eta_i$ are of the second kind with poles only at $O$, and with the convention $\\langle[\\alpha],[\\beta]\\rangle=\\operatorname{Res}_O((\\int\\alpha)\\beta)$ the cup product matrix of $\\omega_1,\\omega_2,\\eta_1,\\eta_2$ is $\\left(\\begin{smallmatrix}0&-I_2\\\\I_2&0\\end{smallmatrix}\\right)$. So $W=\\langle[\\eta_1],[\\eta_2]\\rangle$ is an isotropic subspace of $H^1_{\\mathrm{dR}}$ complementary to the holomorphic differentials.\n\n\\begin{lem}\\label{lem:1.1.15:div}\nThe following divisors hold on $C$ (\\code{1.1.15b}):\n\\[\n\\begin{aligned}\n\\operatorname{div}(x)&=D+2E-3O,&\\operatorname{div}(y)&=B+F_1+D+E-4O,\\\\\n\\operatorname{div}(y-x)&=A+2D+E-4O,&\\operatorname{div}(x+1)&=A+B+C_1-3O,\\\\\n\\operatorname{div}(x+y)&=C_1+G+D+E-4O,&\\operatorname{div}(z-2x-1)&=3A+C_1+H-5O.\n\\end{aligned}\n\\]\nHence, in $J(\\Q)$,\n\\[\nD=-2E,\\quad B=E-F_1,\\quad A=3E,\\quad C_1=F_1-4E,\\quad G=5E-F_1,\\quad H=-5E-F_1.\n\\]\n\\end{lem}\n\\begin{proof}\nThe orders of zero of the six functions at the eight points are computed from local expansions, and in each case their sum equals the pole order at $O$ (\\code{1.1.15b}). The relations follow successively.\n\\end{proof}\n\n\\paragraph{Step 3: the local height at 2.}\nFor $P=(a,b,c)$ and $Q=(x,y,z)$ put\n\\[\n\\nu_P(Q)=\\frac{z+c+1+by/x}{x-a}\\,\\omega_1(Q).\n\\]\nThis is a differential of the third kind with residue divisor $P-O$: on the other branches over $x=a$ the numerator vanishes, and with the normalized branches it extends to $\\nu_D=\\frac{z+1}x\\omega_1$ and $\\nu_E=\\frac zx\\omega_1$. At $O$,\n\\[\n\\nu_P=\\bigl(-t^{-1}-at^2+bt^3+\\cdots\\bigr)\\,dt,\n\\]\nso the coefficients of $t^0$ and $t^1$ are 0. The bidifferential identity\n\\begin{equation}\\label{eq:1.1.15:kernel}\nd_P\\nu_P(Q)-d_Q\\nu_Q(P)=\\sum_{i=1}^2\\bigl(\\eta_i(P)\\omega_i(Q)-\\omega_i(P)\\eta_i(Q)\\bigr)\n\\end{equation}\nholds: after division by $\\omega_1(P)\\omega_1(Q)$ both sides reduce to $2b-2y+ay/x-xb/a$ on $C\\times C$ (\\code{1.1.15b}).\n\nTake $p=2$ and let $\\log_2$ be the 2-adic logarithm with $\\log_22=0$ (so also $\\log_2(-1)=0$); it is the 2-component $\\chi_2$ of the cyclotomic idele class character of \\cite{CG89,BB12,BB15}. Put\n\\[\nI(P)=\\Bigl(\\int_O^P\\omega_1,\\int_O^P\\omega_2\\Bigr),\\qquad J(P)=\\Bigl(\\int_O^P\\eta_1,\\int_O^P\\eta_2\\Bigr),\\qquad K(P,Q)=\\int_O^Q\\nu_P,\n\\]\nwith the following normalizations at the end points. $J_j(P)=\\Phi_j(P)$, where $\\Phi_j$ is the Coleman integral of $\\eta_j$ whose Laurent expansion in $t$ at $O$ has constant term 0 (this depends on the parameter $t$, not only on $\\partial_t$). $K(P,Q)=\\Lambda_P(Q)$, where $\\Lambda_P$ is the Coleman integral of $\\nu_P$ with $\\Lambda_P+\\log_2t\\to0$ at $O$ (this depends only on $\\partial_t$). For $P\\ne E$ let $v_P$ be the tangent vector at $P$ with $\\omega_1(v_P)=1$, and put $K(P,P)=\\lim_{Q\\to P}\\bigl(\\Lambda_P(Q)-\\log_2z_P(Q)\\bigr)$ for a parameter $z_P$ at $P$ with $dz_P(v_P)=1$; at $E$ we use $\\partial_s$ and $z_E=s$, with $s=x/y$ as in \\eqref{eq:1.1.15:Echart} below. Define\n\\[\n\\mathcal H(P,Q)=K(P,Q)-J(P)\\,I(Q)^{\\mathsf T}.\n\\]\n\n\\begin{lem}\\label{lem:1.1.15:height}\nFor $P,Q\\in\\mathcal U(\\Q_2)$, with the tangent vector $\\partial_t$ at $O$ and, if $Q=P$, the tangent vector $v_P$ (or $\\partial_s$ if $P=E$) at $P$,\n\\[\n\\mathcal H(P,Q)=h_2(P-O,Q-O),\n\\]\nwhere $h_2$ is the local height at 2 of \\cite{CG89,BB12,BB15} for $W$ and $\\chi_2=\\log_2$.\n\\end{lem}\n\\begin{proof}\nBy \\cite[Section 2]{BB12} we need the differential $\\omega_{P-O}$ of the third kind with residue divisor $P-O$ and $\\Psi(\\omega_{P-O})\\in W$. Write $\\Psi(\\nu_P)=\\sum_ia_i[\\omega_i]+w$ with $w\\in W$; by the cup product matrix, $\\langle[\\eta_j],\\Psi(\\nu_P)\\rangle=a_j$. The global symbol of \\cite[Section 2]{BB12} with $\\nu=\\nu_P$, $\\beta=\\eta_j$, $\\Phi_\\beta=\\Phi_j$ has two terms: at $P$ the residue is $\\Phi_j(P)=J_j(P)$, and at $O$ it is 0, because $\\nu_P=(-t^{-1}+0+0\\cdot t+O(t^2))\\,dt$ while $\\Phi_j$ has a pole of order at most 2 and constant term 0. So $a_j=J_j(P)$, and $\\omega_{P-O}=\\nu_P-\\sum_iJ_i(P)\\omega_i$. Hence $\\int_{Q-O}\\omega_{P-O}=K(P,Q)-J(P)I(Q)^{\\mathsf T}$, the integrals being regularized at $O$ (and at $P$ if $Q=P$) by the chosen tangent vectors, as in the definition of $K$. This regularized pairing is bi-additive, agrees with $h_2$ for disjoint supports, and satisfies $h_2(\\operatorname{div}f,\\mathfrak a)=\\log_2f[\\mathfrak a]$ for divisors $\\mathfrak a$ of degree 0, because $\\omega_{\\operatorname{div}f}=df/f$; by \\cite{Gross86,BB15} these properties determine $h_2$.\n\\end{proof}\n\nConsistently with this, \\eqref{eq:1.1.15:kernel} says that the mixed derivative $d_Pd_Q$ of $\\mathcal H(P,Q)-\\mathcal H(Q,P)$ vanishes, as it must since $h_2$ is symmetric for isotropic $W$; with the opposite sign of the term $J(P)I(Q)^{\\mathsf T}$ it would not. Integrating \\eqref{eq:1.1.15:kernel}, with $Q$ replaced by a variable point $R$, from $R=O$ to $R=Q$ gives\n\\[\nd_P\\mathcal H(P,Q)=\\nu_Q(P)-\\sum_i\\omega_i(P)J_i(Q).\n\\]\nThe boundary term at $O$ vanishes: if $R\\to O$ and $t=t(R)$, then $\\nu_R(P)=-t^{-2}\\omega_1(P)+t^{-1}\\omega_2(P)+O(t)$ by \\eqref{eq:1.1.15:infty}, while $\\Phi_1=-t^{-2}+O(t^3)$ and $\\Phi_2=t^{-1}+O(t^4)$; and the normalization of $K(P,\\cdot)$ at $O$ does not depend on $P$.\n\n\\begin{lem}\\label{lem:1.1.15:tau}\nPut $\\tau_*(P)=\\mathcal H(P,P)+\\mathcal H(P,E)$. Then\n\\[\nd\\mathcal H(P,P)=-2\\sum_i\\omega_i(P)J_i(P)-\\nu_E(P),\\qquad d\\mathcal H(P,E)=\\nu_E(P)-\\sum_i\\omega_i(P)J_i(E),\n\\]\nso $d\\tau_*=-\\sum_i\\omega_i\\bigl(2J_i(P)+J_i(E)\\bigr)$, and $\\tau_*$ has no logarithmic singularity at $E$. Its value at $E$, defined by the regular extension, is $2\\mathcal H(E,E)=2h_2(E-O,E-O)$ with respect to $\\partial_s$.\n\\end{lem}\n\\begin{proof}\nOn the diagonal the two regular parts of $\\nu_P(Q)$ and $\\nu_Q(P)$ combine with the term $d\\log$ of the normalization by $v_P$. Let $\\Delta=1+3c$ and $b'=db/da$. Where $x$ is a parameter, the regular coefficient of $\\nu_P$ on the diagonal is $r=(-3bb'/a+c/a)/\\Delta$, and\n\\[\n2r+\\frac d{da}\\log\\Delta=-\\frac c{a\\Delta},\n\\]\nwhich is the coefficient of $-\\nu_E$; the identity extends to the other charts. This gives the first formula; the second is the formula for $d_P\\mathcal H$ above. Near $E$ we use $s=x/y$:\n\\begin{equation}\\label{eq:1.1.15:Echart}\nz+s^5z^2+1-s=0,\\quad z(0)=-1,\\qquad x=s^2z,\\quad y=sz,\\quad\\omega_1=\\frac{s\\,ds}{1+2s^5z}.\n\\end{equation}\nSince $\\omega_1$ vanishes to order 1 at $E$, $v_P$ degenerates as $P\\to E$; the resulting term $-\\log_2s$ in the self-height and the term $+\\log_2s$ in the cross-height cancel, and since the leading coefficient is the unit 1, no constant arises.\n\\end{proof}\n\n\\paragraph{Step 4: local heights away from 2.}\n\\begin{lem}\\label{lem:1.1.15:away}\nLet $\\ell$ be an odd prime and $P\\in\\mathcal U(\\Z)$. With the tangent vectors $\\partial_t$ at $O$, $v_P$ at $P$ and $\\partial_s$ at $E$,\n\\[\nh_\\ell(P-O,P-O)+h_\\ell(P-O,E-O)=0,\n\\]\nwhere for $P=E$ the left-hand side is $2h_\\ell(E-O,E-O)$ with respect to $\\partial_s$.\n\\end{lem}\n\\begin{proof}\nNear the points at infinity use $T=1/u$ and $R=vT^3$, with $R^2+R=T^5+T^6$; then $x=-R/T^3$ and $\\omega_1=T\\,dT/(2R+1)$. The sections $\\bar O$ and $\\bar E$ are $T=0$ together with $R=-1$, resp.\\ $R=0$; they are disjoint at every prime, and $T$ is a local equation of each, since $2R+1=\\mp1$ there.\n\n(i) Integral points do not meet $\\bar O$: if $P\\in\\mathcal U(\\Z)$ reduced to $\\bar O$ modulo $\\ell$, then $T(P)\\in\\ell\\Z_\\ell$ and $R(P)\\in-1+\\ell\\Z_\\ell$, so $v_\\ell(x(P))\\le-3$. They do not pass through the node at 8539 (Lemma~\\ref{lem:1.1.15:model}), all fibres are irreducible, and $\\chi_\\infty=0$.\n\n(ii) By \\cite[(1.3)]{CG89}, (3), $h_\\ell(\\mathfrak a_1,\\mathfrak a_2)=\\chi_\\ell(\\ell)(\\mathfrak a_1\\cdot\\mathfrak a_2)_\\ell=-(\\mathfrak a_1\\cdot\\mathfrak a_2)_\\ell\\log_2\\ell$, also for common support when the tangent vectors at the common points are integral (the self-intersection of a section then contributes 0), and replacing a tangent vector $t_x$ by $\\alpha t_x$ adds $\\chi_\\ell(\\alpha)\\operatorname{ord}_x(\\mathfrak a_1)\\operatorname{ord}_x(\\mathfrak a_2)$.\n\n(iii) The tangent vectors $\\partial_t$ at $O$ and $\\partial_s$ at $E$ ($s=-T$) are integral. Let $P\\ne E$ and $n=(P\\cdot E)_\\ell$. Since $\\operatorname{div}\\omega_1=\\bar E+\\bar O$ with no vertical part and $\\bar P$ meets the special fibre in a smooth point and avoids $\\bar O$, the restriction of $\\omega_1$ to $\\bar P$ vanishes to order exactly $n$. Hence $\\omega_1(t_P)\\in\\ell^n\\Z_\\ell^\\times$ for an integral tangent vector $t_P$, and $v_P=\\alpha t_P$ with $v_\\ell(\\alpha)=-n$ (the adjunction formula $(P\\cdot P)_{v_P}=-(P\\cdot\\operatorname{div}\\omega_1)_\\ell$).\n\nBy (i)--(iii), $h_\\ell(P-O,P-O)=\\chi_\\ell(\\alpha)=n\\log_2\\ell$ and $h_\\ell(P-O,E-O)=-(P\\cdot E)_\\ell\\log_2\\ell=-n\\log_2\\ell$, while $h_\\ell(E-O,E-O)=0$ with respect to $\\partial_s$.\n\\end{proof}\nFor the eight known points, the resulting decomposition $\\mathcal H(P,Q)-I(P)MI(Q)^{\\mathsf T}=\\sum_{\\ell\\ne2}(P\\cdot Q)_\\ell\\log_2\\ell$ ($P\\ne Q$) and $\\mathcal H(P,P)=I(P)MI(P)^{\\mathsf T}$, with $M$ of Lemma~\\ref{lem:1.1.15:M}, was confirmed numerically to 310 bits for all 64 ordered pairs, including $E$; the right-hand side is nonzero only for $\\{A,H\\}$ at $\\ell=5$ and for $\\{C_1,G\\}$, $\\{F_1,H\\}$ at $\\ell=3$. No known point meets $E$ at an odd prime, so the case $n\\ne0$ of (iii) rests on the argument above.\n\n\\begin{lem}\\label{lem:1.1.15:global}\nLet $h$ be the global height pairing on $J(\\Q)$ of \\cite{CG89} for $W$. For every $P\\in\\mathcal U(\\Z)$,\n\\[\n\\tau_*(P)=h(P,P)+h(P,E)\\qquad(\\text{for }P=E\\text{: }\\tau_*(E)=2h(E,E)).\n\\]\n\\end{lem}\n\\begin{proof}\nThe tangent vectors $\\partial_t$ at $O$, $v_P$ at $P\\ne E$ and $\\partial_s$ at $E$ are $\\Q$-rational, so by \\cite{CG89} $h(P,P)+h(P,E)=\\sum_v\\bigl(h_v(P-O,P-O)+h_v(P-O,E-O)\\bigr)$. The term at 2 is $\\tau_*(P)$ by Lemmas~\\ref{lem:1.1.15:height} and \\ref{lem:1.1.15:tau}, the terms at odd $\\ell$ vanish by Lemma~\\ref{lem:1.1.15:away}, and there is no archimedean term.\n\\end{proof}\n\n\\paragraph{Step 5: periods and the height matrix.}\nWrite $\\omega=(\\omega_1,\\omega_2)$, $\\eta=(\\eta_1,\\eta_2)$, and $I_P=I(P)$, $J_P=J(P)$. Put\n\\[\n\\delta_1=\\int_B^{F_1}\\omega,\\quad\\delta_2=\\int_D^G\\omega,\\quad\\epsilon_1=\\int_B^{F_1}\\eta,\\quad\\epsilon_2=\\int_D^G\\eta .\n\\]\nEach of these is a tiny integral within one 2-adic residue disk (Step~6).\n\n\\begin{lem}\\label{lem:1.1.15:periods}\n\\[\nI_E=\\frac{\\delta_1+2\\delta_2}{13},\\quad I_{F_1}=\\frac{7\\delta_1+\\delta_2}{13},\\quad J_E=\\frac{\\epsilon_1+2\\epsilon_2+(4,0)}{13},\\quad J_{F_1}=\\frac{7\\epsilon_1+\\epsilon_2+(2,0)}{13},\n\\]\nand\n\\[\n\\begin{aligned}\nI_A&=3I_E,& I_B&=I_E-I_{F_1},& I_D&=-2I_E,\\\\\nJ_A&=3J_E-(1,1),&J_B&=J_E-J_{F_1},&J_D&=-2J_E,\\\\\nJ_{C_1}&=J_{F_1}-4J_E+(1,1),&J_G&=5J_E-J_{F_1}+(-2,0).\n\\end{aligned}\n\\]\n\\end{lem}\n\\begin{proof}\nThe relations for $I$ follow from Lemma~\\ref{lem:1.1.15:div} and the additivity of abelian integrals ($\\sum_P\\operatorname{ord}_P(f)I(P)=0$ for every rational function $f$). For $J$ the constant terms coming from the second kind must be kept: if $f=ct^k(1+O(t))$ at $O$ with $k=\\operatorname{ord}_Of$, then\n\\[\n\\sum_{P\\ne O}\\operatorname{ord}_P(f)\\,J(P)=\\operatorname{Res}_O\\Bigl(\\log_2\\frac f{ct^k}\\;\\eta\\Bigr).\n\\]\nThis is the global symbol identity $\\sum_x\\operatorname{Res}_x((df/f)\\Phi_j)=\\langle[\\eta_j],\\Psi(df/f)\\rangle=0$ of \\cite[Section 2]{BB12}, after an integration by parts at $O$ that uses the normalization of $\\Phi_j$; the leading term $ct^k$ is divided out, since otherwise $\\log_2f$ would contain $\\log_2t$. For the six functions of Lemma~\\ref{lem:1.1.15:div}, in the order listed there, the residue vectors are $(0,0),(0,0),(-1,-1),(0,0),(-1,1),(-4,0)$; only the coefficients of $t$ and $t^2$ of the normalized logarithms are needed, and they are read off from \\eqref{eq:1.1.15:infty} (\\code{1.1.15b}). Solving the resulting linear relations gives the formulas.\n\\end{proof}\n\nThe base divisors are $D-O$ and $F_1-O$. The integral sections of $D$, $F_1$ and $E$ are pairwise disjoint at every prime, and none of them meets $\\bar O$ (Lemma~\\ref{lem:1.1.15:away}(i)). So $\\omega_1$ is primitive at $D$ and $F_1$ (that is, $n=0$ in Lemma~\\ref{lem:1.1.15:away}(iii)), all local terms away from 2 of the heights among $D-O$ and $F_1-O$ vanish, and by \\cite{CG89} the global heights among these two divisors equal $\\mathcal H$.\n\n\\begin{lem}\\label{lem:1.1.15:K}\nFor $P\\in\\{D,F_1\\}$ put $k_1(P)=\\int_B^{F_1}\\nu_P$ and $k_2(P)=\\int_D^G\\nu_P$. Then\n\\[\nK(P,E)=\\frac{k_1(P)+2k_2(P)}{13},\\qquad K(P,F_1)=\\frac{7k_1(P)+k_2(P)}{13},\\qquad K(P,D)=-2K(P,E).\n\\]\n\\end{lem}\n\\begin{proof}\nBy \\cite{Gross86,BB15} and the symmetry of $h_2$, $\\sum_Q\\operatorname{ord}_Q(f)K(P,Q)=h_2(P-O,\\operatorname{div}f)=\\log_2\\bigl(f[P]/f[O]\\bigr)$, where $f[\\cdot]$ is the value normalized by the chosen tangent vectors (the first equality holds because $\\sum_Q\\operatorname{ord}_Q(f)I(Q)=0$). We use the functions $x$, $y/x$ and $(x+y)(y-x)y/((x+1)x^4)$, with divisors $D+2E-3O$, $B+F_1-E-O$ and $G+F_1-5E+3O$. For $P=D,F_1$ the ratio of the normalized value at $P$ to the leading coefficient at $O$ is always of the form $\\pm2^m$, so all these logarithms are 0, and the formulas follow as in Lemma~\\ref{lem:1.1.15:periods}. In the tiny integrals the poles are subtracted algebraically: on the disk of $D$, with $x=s$ and $y=sV$, $\\nu_D-dx/x=-2V^2\\omega_1$, and on the disk of $B$ and $F_1$, $\\nu_{F_1}-dx/(x-1)=\\frac{2y(x+1)}{z+1}\\omega_1$; the subtracted logarithms take values $\\log_2(\\pm2^m)=0$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.15:M}\nLet $L$ be the matrix with rows $I_D,I_{F_1}$, let $B_h=\\bigl(K(P,Q)-J(P)I(Q)^{\\mathsf T}\\bigr)_{P,Q\\in\\{D,F_1\\}}$, and $M=L^{-1}B_h(L^{-1})^{\\mathsf T}$. Then $v_2(\\det L)=3$, $B_h$ is symmetric, and\n\\[\nI_E\\equiv(2,0),\\quad I_{F_1}\\equiv(2,22),\\quad J_E\\equiv(60,44),\\quad J_{F_1}\\equiv(62,30),\\quad M\\equiv\\begin{pmatrix}56&19\\\\19&53\\end{pmatrix}\\pmod{64}.\n\\]\nIn particular $M\\in M_2(\\Z_2)$, $I_E,I_{F_1}\\in2\\Z_2^2$ and $J_E\\in4\\Z_2^2$. Moreover $\\operatorname{rank}J(\\Q)=2$, and $h(P,Q)=I(P)\\,M\\,I(Q)^{\\mathsf T}$ for all $P,Q\\in J(\\Q)$, where $I$ is extended additively to $J(\\Q)$.\n\\end{lem}\n\\begin{proof}\nThe values are computed by exact arithmetic modulo $2^{40}$ (\\code{1.1.15c}); a 70-bit computation in Magma gives the same values (\\code{1.1.15d}). Since $v_2(\\det L)=3$, the logarithms of $D$ and $F_1$ are independent, so $\\operatorname{rank}J(\\Q)\\ge2$, and with Lemma~\\ref{lem:1.1.15:rank} the rank is 2. Then $\\log\\colon J(\\Q)\\otimes\\Q_2\\to\\Q_2^2$ is an isomorphism, and by \\cite{CG89} the bilinear form $h$ is determined by its values on $D,F_1$, which form the matrix $B_h$ by the remark before Lemma~\\ref{lem:1.1.15:K}. No integral basis of $J(\\Q)$ and no saturation is needed.\n\\end{proof}\n\n\\paragraph{Step 6: the quadratic Chabauty function on the four disks.}\nBy Lemmas~\\ref{lem:1.1.15:global} and \\ref{lem:1.1.15:M}, the function\n\\[\nq(P)=\\tau_*(P)-I(P)\\,M\\,I(P)^{\\mathsf T}-I(P)\\,M\\,I_E^{\\mathsf T}\n\\]\nvanishes at every $P\\in\\mathcal U(\\Z)$. It involves both the self-height and the cross-height with $E$. By Lemma~\\ref{lem:1.1.15:tau},\n\\[\ndq=-\\sum_{i=1}^2\\omega_i\\Bigl(2J_i(P)+J_i(E)+\\sum_{j=1}^2M_{ij}\\bigl(2I_j(P)+I_j(E)\\bigr)\\Bigr).\n\\]\nSolving \\eqref{eq:1.1.15:U} over $\\F_2$ gives the four points $(1,1,1)$, $(1,0,0)$, $(0,0,0)$, $(0,0,1)$; so $\\mathcal U(\\Z_2)$ is the union of four residue disks, with centres and parameters\n\\[\n\\begin{array}{c|c|c|c}\n\\text{centre }P_0&\\text{parameter }s&\\text{known points}&u\\text{ of the second point }(s=2u)\\\\\\hline\nA&y+1&A,\\ C_1&1\\\\\nB&x+1&B,\\ F_1&1\\\\\nD&x&D,\\ G&1\\\\\nE&x/y=y/z&E,\\ H&-1/3\n\\end{array}\n\\]\nEach parameter is primitive over $\\Z_2$, and $s\\in2\\Z_2$ describes the whole disk. The disk of $D$ is given by $V+sV^3+s^2-1=0$, $V(0)=1$, $x=s$, $y=sV$, $z=sV^2$, and the disk of $E$ by \\eqref{eq:1.1.15:Echart}. On the disks of $A$ and $B$ the derivative of the equation with respect to $x$, resp.\\ $y$, is odd, so Newton's method gives a unique series in $\\Z_2[[s]]$. On all four disks $\\omega_i/ds$ and $\\eta_i/ds$ lie in $\\Z_2[[s]]$.\n\nSince the centres are integral points, $q(P_0)=0$, and integrating $dq$ with constant term 0 gives\n\\[\nq_{P_0}(2u)=\\sum_{n\\ge1}c_{P_0,n}u^n .\n\\]\n\\begin{lem}\\label{lem:1.1.15:table}\nThe first seven coefficients, modulo 32, are as follows (\\code{1.1.15c}).\n\\[\n\\begin{array}{c|c|rrrrrrr}\nP_0&e&c_1&c_2&c_3&c_4&c_5&c_6&c_7\\\\\\hline\nA&2&20&28&16&16&16&0&0\\\\\nB&3&24&24&0&16&0&0&0\\\\\nD&2&20&12&0&16&16&0&0\\\\\nE&2&20&4&8&0&16&0&0\n\\end{array}\n\\]\n\\end{lem}\n\\begin{proof}\n\\code{1.1.15c} computes these values by polynomial arithmetic over $\\Z/2^{40}\\Z$ with series of length 64; every series that is inverted has odd constant term, and since the $n$-th term of an integral is $a_{n-1}2^n/n$, the 2-part of $n$ is split off first and only odd parts are inverted. No floating-point approximation is used. Write $\\lambda(n)$ for the integer with $2^{\\lambda(n)}\\le n<2^{\\lambda(n)+1}$. The terms omitted from the tiny integrals are those with $n\\ge62$, and their valuations are at least $n-v_2(n)\\ge n-\\lambda(n)\\ge57$. The entries of $L^{-1}$ have valuation at least $-2$ and those of $B_h$ at least 2, so errors of valuation at least 40 in $L$ and $B_h$ change $M$ only in valuation at least 36: $L^{-1}(\\delta B_h)(L^{-1})^{\\mathsf T}$ has valuation at least $-2+40-2$, and $\\delta(L^{-1})=-L^{-1}(\\delta L)L^{-1}$ has valuation at least 36 while $B_h(L^{-1})^{\\mathsf T}$ has valuation at least 0. So at most four bits are lost, and the five bits needed for the table are guaranteed.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.15:tail}\nOn each of the four disks, $v_2(c_{P_0,n})\\ge n+1-v_2(n)-\\lambda(n-1)$ for $n\\ge2$. In particular this bound is at least 4 for $n\\ge8$, and the series converges on $\\Z_2$.\n\\end{lem}\n\\begin{proof}\nThe series coefficients of $\\omega_i,\\eta_i$ are integers. At the centres, $I(P_0)\\in2\\Z_2^2$ and $J(P_0)\\in\\Z_2^2$, by Lemmas~\\ref{lem:1.1.15:periods} and \\ref{lem:1.1.15:M}; moreover $M$ is integral, $I_E\\in2\\Z_2^2$ and $J_E\\in2\\Z_2^2$. Hence the constant term of the bracket in $dq$ lies in $2\\Z_2$, and the non-constant terms are integral combinations of twice the integrals of integral series. In such an integral the denominator of the coefficient of degree $k\\ge1$ divides $k$, so the coefficient of $s^{n-1}$ in $dq/ds$ has valuation at least $1-\\lambda(n-1)$. Integrating once more and substituting $s=2u$ adds $n-v_2(n)$. If $n=2^k$ with $k\\ge3$, the bound is $2^k+2-2k\\ge4$; if $2^k4$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.1.15:disks}\nEach of the four residue disks contains exactly two points of $\\mathcal U(\\Z)$, namely the two known points of the table.\n\\end{lem}\n\\begin{proof}\nBy Lemmas~\\ref{lem:1.1.15:table} and \\ref{lem:1.1.15:tail}, for the whole series\n\\[\n2^{-e}q_{P_0}(2u)\\equiv u^2+u\\pmod2,\\qquad e_A=e_D=e_E=2,\\quad e_B=3 .\n\\]\nWrite $2^{-e}q_{P_0}(2u)=\\sum_{n\\ge1}b_nu^n$. Then $b_n\\in\\Z_2$, $b_n\\to0$, $b_1$ and $b_2$ are units and $b_n\\in2\\Z_2$ for $n\\ge3$, so by \\cite{Strassmann28} the series has at most two zeros in $\\Z_2$. The two known points lie at $u\\equiv0$ and $u\\equiv1\\pmod2$, and they are zeros of $q$. (The 70-bit computation \\code{1.1.15d} gives the same exponents $e$ and reductions.)\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.1.15}]\nBy Lemma~\\ref{lem:1.1.15:disks}, $\\mathcal U(\\Z)=\\{A,B,C_1,D,E,F_1,G,H\\}$. By Lemma~\\ref{lem:1.1.15:lift}, every integer solution with $x\\ne0$ lifts to one of these points with $x\\ne0$, which gives $(-1,-1)$, $(-1,0)$, $(-1,1)$, $(1,0)$, $(2,-2)$, $(4,-6)$, and the only solution with $x=0$ is $(0,0)$. The genus and the rank are Lemmas~\\ref{lem:1.1.15:model} and \\ref{lem:1.1.15:M}.\n\\end{proof}\n\n\\section{Primitive generalized Fermat equations}\\label{sec:1.2}\nPrimitivity means $\\gcd(x,y,z)=1$. Each proof reduces to finitely many covering curves and then determines the relevant rational or number-field points. All signs in the lists below are independent.\n\n\\subsection{\\texorpdfstring{$x^4+3y^3+z^3=0$ \\ ($H=48$)}{x^4+3y^3+z^3=0 (H=48)}}\\label{sec:1.2.1}\n\n\\begin{thm}\\label{thm:1.2.1}\nThe only primitive integer solutions of $x^4+3y^3+z^3=0$, that is, integer solutions with $\\gcd(x,y,z)=1$, are\n\\[\n(x,y,z)=(\\pm1,0,-1),\\qquad(\\pm895,-6202,4199).\n\\]\n\\end{thm}\n\n\\paragraph{Setup.} Put $X=x$, $Y_0=-y$, $Z_0=-z$. Then the equation becomes\n\\[\nZ_0^3+3Y_0^3=X^4\n\\]\nFor a primitive solution, $X\\ne0$, $\\gcd(Y_0,Z_0)=1$ and $3\\nmid XZ_0$. Indeed, if $X=0$, then $Z_0^3=-3Y_0^3$ gives $Y_0=Z_0=0$. A common prime factor of $Y_0,Z_0$ also divides $X$. If 3 divides one of $X$ and $Z_0$, then by the equation it divides both; then $27\\mid 3Y_0^3$, so $3\\mid Y_0$, a contradiction.\n\nWe use three fields.\n\\begin{itemize}\n\\item $K=\\Q(\\theta)$, $\\theta^3=3$. The unit $\\varepsilon=4+3\\theta+2\\theta^2$, $\\varepsilon^{-1}=\\theta^2-2$.\n\\item $L=\\Q(\\theta,\\xi)$, $\\xi^2=3-2\\theta$ (degree 6). $\\xi$ is a root of $T^6-9T^4+27T^2-3$.\n\\item $M=K(R_0,W)$, $R_0^2=9+6\\theta+4\\theta^2=\\theta^2\\varepsilon$, $W^2=6+2\\theta+2R_0$ (degree 12).\n\\end{itemize}\nThe proof runs as follows. A fourth-power descent over $K$ gives four plane quartic curves $C_j$ (Step 1). The even $j$ are settled by elliptic curves over $K$ (Step 2). The case $j=1$ is eliminated by congruences, and $j=-1$ becomes the problem of finding the rational points of the genus 2 curve $v^2=f(q)$ (Step 3). A two-cover descent on this curve (Step 4) lifts all its points to an elliptic curve $E$ over the degree 12 field $M$ (Step 5). We show $\\Cl(M)[2]=0$ (Step 6) and $\\operatorname{rank}E(M)=6$ (Step 7), and we obtain $q\\in\\{0,-8/3\\}$ by a sieve at 661 (Step 8) and elliptic Chabauty (Step 9).\n\n\\paragraph{The disk argument.} We first record a fact that is used repeatedly in this section and in Sections~\\ref{sec:1.2.3}--\\ref{sec:1.2.4}.\n\\begin{lem}\\label{lem:1.2.1-disk}\nLet $p\\ge3$, and let $\\Lambda(T)=a_0T+\\sum_{n\\ge2}a_{n-1}T^n/n$ with $a_0\\in\\Z_p^\\times$, $a_i\\in\\Z_p$. Then the only $T\\in p\\Z_p$ with $\\Lambda(T)=0$ is $T=0$.\n\\end{lem}\n\\begin{proof}\nIf $T\\ne0$ and $n\\ge2$, then $v_p(a_{n-1}T^n/n)\\ge nv_p(T)-v_p(n)>v_p(T)=v_p(a_0T)$, because $(n-1)v_p(T)\\ge n-1>v_p(n)$. These valuations tend to infinity, so the sum of the tail has larger valuation than the linear term and cannot cancel it.\n\\end{proof}\nIn elliptic Chabauty (Proposition~\\ref{thm:G}), for a local parameter $T$ of a residue disk, we take $\\Lambda$ to be the composition of a global annihilator with the elliptic logarithm. This $\\Lambda$ vanishes at every rational point in the disk. Since $\\Lambda'$ is the pullback differential, if the map and the differential are integral on the disk and $\\Lambda'(0)$ is a unit, then by Lemma~\\ref{lem:1.2.1-disk} the only rational point in the disk is its center.\n\n\\paragraph{Step 1: descent over the cubic field.}\n\\begin{lem}\\label{lem:1.2.1-cubic}\n\\begin{enumerate}[label=(\\arabic*)]\n\\item $\\mathcal O_K=\\Z[\\theta]$, $\\operatorname{disc}K=-243$, $h(K)=1$, $\\mathcal O_K^\\times=\\{\\pm\\varepsilon^n\\}$.\n\\item For each primitive solution we have\n\\[\n\\begin{gathered}\nZ_0+\\theta Y_0=\\varepsilon^j\\beta^4,\\qquad j\\in\\{0,1,2,-1\\},\\qquad \\beta=a+b\\theta+c\\theta^2,\\\\\na,b,c\\in\\Z,\\qquad\\gcd(a,b,c)=1,\\qquad 3\\nmid N\\beta.\n\\end{gathered}\n\\]\nand $|X|=|N\\beta|$. Hence $(a:b:c)$ is a rational point of the plane quartic curve $C_j:\\ [\\varepsilon^j(a+b\\theta+c\\theta^2)^4]_{\\theta^2}=0$. Here $[\\,\\cdot\\,]_{\\theta^2}$ denotes the coefficient of $\\theta^2$ in the basis $1,\\theta,\\theta^2$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(1) $T^3-3$ is Eisenstein at 3 and its discriminant is $-3^5$, so $\\mathcal O_K=\\Z[\\theta]$. The Minkowski constant is $\\frac4\\pi\\cdot\\frac{3!}{3^3}\\sqrt{243}<4.42$, and the only prime ideals of norm 2, 3, 4 are $(\\theta-1)$, $(\\theta)$, $(\\theta^2+\\theta+1)$, so $h(K)=1$. The signature is $(1,1)$, so the unit rank is 1. For a unit with $1<\\eta<\\varepsilon$, the other two conjugates have absolute value less than 1, and solving for the coefficients from the three embeddings gives $\\eta=a+b\\theta+c\\theta^2$ with $0\\le a\\le4$, $0\\le b\\le3$, $0\\le c\\le2$. In this range the only elements whose norm $a^3+3b^3+9c^3-9abc$ equals 1 are 1 and $\\varepsilon$ (\\code{1.2.1a}). Hence $\\varepsilon$ is the fundamental unit.\n\n(2) If a prime ideal $\\mathfrak p$ above $p\\ne3$ divides $Z_0+\\theta Y_0$, then $\\mathfrak p\\nmid Y_0$ (otherwise $\\mathfrak p\\mid Z_0$), and $\\theta\\equiv-Z_0/Y_0\\pmod{\\mathfrak p}$. Since $T^3-3$ has no repeated root modulo $p$, such a $\\mathfrak p$ is the only one among the prime ideals above $p$, and it has residue degree 1. Therefore $v_{\\mathfrak p}(Z_0+\\theta Y_0)=v_p(X^4)$ is a multiple of 4. Since $3\\nmid X$, $(\\theta)$ does not divide it. Hence $(Z_0+\\theta Y_0)$ is the fourth power of an ideal, and by (1), $Z_0+\\theta Y_0=\\pm\\varepsilon^j\\beta^4$. The norm $X^4$ is positive, $N(-1)=-1$ and $N\\varepsilon=1$, so the sign is $+$. A prime dividing all of $a,b,c$ would divide $Y_0,Z_0$, so $\\gcd(a,b,c)=1$. We have $(N\\beta)^4=X^4$ and $3\\nmid X$. Finally, the $\\theta^2$-coefficient of $Z_0+\\theta Y_0$ is 0.\n\\end{proof}\n\n\\paragraph{Step 2: the even case.} For a point of $C_j$, define $Y_0,Z_0\\in\\Q$ by $\\varepsilon^j\\beta^4=Z_0+\\theta Y_0$, and put $n=N\\beta$, $\\nu=n/\\beta^3$, $\\lambda=(\\theta Y_0-Z_0)/(\\theta Y_0+Z_0)$. From $(Z_0+\\theta Y_0)(Z_0^2-\\theta Y_0Z_0+\\theta^2Y_0^2)=Z_0^3+3Y_0^3=n^4$ we get $4\\nu^4=\\varepsilon^{3j}(1+3\\lambda^2)$, and hence\n\\[\n\\varphi_j:\\ C_j\\longrightarrow E_j:\\ V^2=U^3-36\\varepsilon^jU,\\qquad (U,V)=(12\\varepsilon^{-j}\\nu^2,\\ 36\\lambda\\nu)\n\\]\nis a map over $K$. Written in homogeneous coordinates, it has no base points at the primes used below.\n\n\\begin{lem}\\label{lem:1.2.1-even}\n$C_2(\\Q)=\\varnothing$ and $C_0(\\Q)=\\{(1:0:0),(0:1:0)\\}$. The only primitive solutions coming from even $j$ are $(\\pm1,0,-1)$.\n\\end{lem}\n\\begin{proof}\nIf $j$ is even, then $U^3-36\\varepsilon^jU=U(U-6\\varepsilon^{j/2})(U+6\\varepsilon^{j/2})$, so all 2-torsion points of $E_j$ are $K$-rational. We carry out the full 2-descent of \\cite{Simon02,Silverman09} with the square class generators $-1,\\varepsilon,\\theta-1,\\theta^2+\\theta+1,\\theta$. At the two places above 2 the local images have sizes 8 and 16, and at 3 the size is 4. Of the $32^2$ global candidate pairs, 16 survive for $E_0$ and 4 for $E_2$. On $E_0$, the 2-torsion and the two points\n\\[\nA=(-3,9),\\qquad B=(6\\theta-6\\theta^2,\\ 36-36\\theta+12\\theta^2)\n\\]\nfill all 16. Hence $\\operatorname{rank}E_0(K)=2$, $\\operatorname{rank}E_2(K)=0$, and $\\langle A,B,E_0[2]\\rangle$ has odd index. Reduction at the primes 5, 11 ($E_0$) and 61, 67 ($E_2$) of residue degree 1 and \\cite[Appendix]{Katz81} show that the torsion is just $E_j[2]$ (\\code{1.2.1a}).\n\nSince $\\nu\\ne0$, a rational point of $C_2$ maps to a point with $U\\ne0$. For $U=\\pm6\\varepsilon$ we would need $\\pm\\varepsilon^3/2$ to be a square in $K$, and it is not (\\code{1.2.1a}). So the image is not a torsion point, which contradicts rank 0. Hence $C_2(\\Q)=\\varnothing$.\n\nFor $C_0$ we apply \\cite{BS10} with $p=577$. The prime $577$ splits completely with $\\theta\\equiv260,329,565$, and all three reductions have $E_0(\\F_{577})\\cong(\\Z/24)^2$. The subgroup $H$ of the product generated by the reductions of $A,B,E_0[2]$ has order 576. Since $[8]A$, $[8]B$ are independent in the 3-torsion of the product, the index of $\\langle A,B,E_0[2]\\rangle$ is prime to 3; being odd, it is prime to the order $576^2=2^{12}3^4$ of the quotient. Hence the reduction of $E_0(K)$ is exactly $H$. A full scan of $\\mathbb P^2(\\F_{577})$ finds 572 points on $C_0$, and the only ones whose image under $\\varphi_0$ lies in $H$ are the reductions of $(1:0:0)$ and $(0:1:0)$ (\\code{1.2.1b}).\n\nWe apply Proposition~\\ref{thm:G} to the two remaining disks. Lifting the three roots $\\theta$ modulo $577^3$ and computing the logarithm of $\\omega=dU/(2V)$ (Lemma~\\ref{lem:O}), we get, modulo $577^2$,\n\\[\n\\tfrac{1}{577}\\log A\\equiv(4351,4351,4351),\\qquad \\tfrac{1}{577}\\log B\\equiv(55622,183530,93777)\n\\]\nThe cross product of the two normalized logarithms is an integral annihilator that kills all logarithms of $E_0(K)$; modulo 577 it is $(28,304,245)$. With the parameter $b/a$ at $(1:0:0)$ and $a/b$ at $(0:1:0)$, the coefficients of $\\varphi_0^*\\omega$ at the centers are $\\theta$ and $-\\theta^2/3$, respectively, and their combinations with the annihilator are 496 and 241 modulo 577 (\\code{1.2.1b}). $C_0$ is smooth at 577, and the derivatives of the dependent coordinate are 4 and 12, which are units. By Lemma~\\ref{lem:1.2.1-disk}, each disk contains only its center.\n\nThe point $(0:1:0)$ gives $\\beta=\\theta$, $N\\beta=3$, which violates $3\\nmid N\\beta$. The point $(1:0:0)$ gives $\\beta=\\pm1$, $Z_0+\\theta Y_0=1$, so $(X,Y_0,Z_0)=(\\pm1,0,1)$, that is, $(x,y,z)=(\\pm1,0,-1)$.\n\\end{proof}\n\n\\paragraph{Step 3: the odd case and a genus 2 curve.} We use the following polynomials.\n\\begin{align*}\nP(m,n)&=-720m^6+1944m^5n-1620m^4n^2-60m^3n^3+810m^2n^4-432mn^5+73n^6,\\\\\nY(m,n)&=84m^4-216m^3n+216m^2n^2-100mn^3+18n^4,\\\\\nZ(m,n)&=-108m^4+312m^3n-324m^2n^2+144mn^3-23n^4,\\\\\nf(q)&=16q^6+72q^5+180q^4+300q^3+270q^2+108q+9.\n\\end{align*}\nWe have $Z^3+3Y^3=P^2$, and $f$ is irreducible with discriminant $2^{18}3^{25}$ (\\code{1.2.1c}).\n\n\\begin{lem}\\label{lem:1.2.1-odd}\nThere is no primitive solution with $j=1$. For a primitive solution with $j=-1$, there are coprime integers $m,n$ ($n>0$, $2\\mid m$, $\\gcd(n,6)=1$) and $w>0$ such that\n\\[\nw^2=P(m,n),\\qquad (x,y,z)=(\\pm w,\\,-Y(m,n),\\,-Z(m,n))\n\\]\nMoreover, if we put $q=(2n-3m)/(2m-n)$ and $v=w/(2m-n)^3$, then $v^2=f(q)$, and $q$ has even numerator and odd denominator.\n\\end{lem}\n\\begin{proof}\n$j=1$: Modulo 2 the equation of $C_1$ is $b^4\\equiv0$, so $b$ is even. If $b$ is even, then modulo 8 we would need $2a^4+6a^2c^2+4c^4\\equiv0$, but in the three cases where $a,c$ are not both even the values are $2,4,4$ (\\code{1.2.1c}). This contradicts $\\gcd(a,b,c)=1$.\n\n$j=-1$: We have $\\varepsilon^{-1}=\\theta^2-2$. Writing $\\beta^2=A+B\\theta+C\\theta^2$, the equation of $C_{-1}$ becomes the conic\n\\[\nA^2-4AC-2B^2+6BC=0\n\\]\nThe integers $A,B,C$ are coprime. Indeed, if a prime $\\ell$ other than 3 divides all of them, then $\\beta$ is a nilpotent element of $\\Z[\\theta]/\\ell$ (a reduced algebra), so $\\ell\\mid\\beta$; and if 3 divides all of them, then $3\\mid N\\beta$. If $A=0$, then $B=0$ or $B=3C$, and then $N\\beta^2$ is $\\pm9$ or $\\pm90$, which violates $3\\nmid N\\beta$. If $A\\ne0$, the equation is linear in $C$, so putting $B/A=m/n$ (in lowest terms, $n>0$) we get\n\\[\n(A:B:C)=(h_A:h_B:h_C)=\\bigl(2n(3m-2n):2m(3m-2n):2m^2-n^2\\bigr)\n\\]\nThe gcd $g$ of the three forms is 1 if $n$ is odd and 2 if $n$ is even, and $N(h_A+h_B\\theta+h_C\\theta^2)=-P(m,n)$. We have $\\beta^2=\\pm g^{-1}(h_A+h_B\\theta+h_C\\theta^2)$, and $(N\\beta)^2$ must be a perfect square. But if $n$ is even, then $\\pm N(h/2)\\equiv2\\pmod4$, and if $n,m$ are both odd, then $\\pm N(h)\\equiv5,3\\pmod8$. Hence $m$ is even, $n$ is odd, and\n\\[\n\\beta^2=-(h_A+h_B\\theta+h_C\\theta^2),\\qquad (N\\beta)^2=P(m,n)\n\\]\nFrom $P(m,n)\\equiv n^6\\pmod3$ and $3\\nmid N\\beta$ we get $3\\nmid n$. Now $Z_0+\\theta Y_0=(\\theta^2-2)\\beta^4=Z(m,n)+\\theta Y(m,n)$ and $X^4=P(m,n)^2$, so with $w=|N\\beta|$ we get $(x,y,z)=(X,-Y_0,-Z_0)=(\\pm w,-Y(m,n),-Z(m,n))$.\n\nWith $\\ell=2m-n$, $k=2n-3m$ we have $(m,n)=(k+2\\ell,2k+3\\ell)$, and the identity $P(k+2\\ell,2k+3\\ell)=\\ell^6f(k/\\ell)$ gives $v^2=f(q)$. Since $n$ is odd and $m$ is even, $\\ell$ is odd and $k$ is even.\n\\end{proof}\n\n\\paragraph{Step 4: two-cover descent.} Put\n\\[\n\\begin{aligned}\nr&=\\tfrac14\\bigl(-3+\\theta-\\theta^2+(3+3\\theta+\\theta^2)\\xi\\bigr),&\n\\delta&=\\tfrac12(3-3\\theta+\\theta^2)(1+\\xi),\\\\\n\\pi_0&=\\theta-1,&\n\\pi_1&=-1+\\theta-\\theta^2+2\\theta\\xi+\\delta.\n\\end{aligned}\n\\]\nThen $f(r)=0$.\n\n\\begin{lem}\\label{lem:1.2.1-twocover}\nThe pair $(q,v)$ of Lemma~\\ref{lem:1.2.1-odd} satisfies\n\\[\nq-r=c\\,\\pi_1\\gamma^2,\\qquad c\\in\\Q^\\times,\\ \\gamma\\in L^\\times\n\\]\n\\end{lem}\n\\begin{proof}\nAn integral basis of $L$ is $(1,\\theta,\\theta^2,\\xi,\\theta\\xi,\\delta)$, and $\\operatorname{disc}L=2^43^{11}$, $h(L)=1$. Above 2 there are the prime ideals $(\\pi_0)$, $(\\pi_1)$ of norm 4, and $2/(\\pi_0\\pi_1^2)$ is a unit. The prime 3 is totally ramified as $(\\xi)^6$. The square classes of units are generated by $-1$, $\\theta^2-2$, $u_2=-1+\\theta\\xi+\\delta$, $u_3=\\theta-1-\\xi$, and the identity $3/\\xi^6=(\\theta^2-2)(52+36\\theta+25\\theta^2)^2$ holds (\\code{1.2.1d}).\n\nBy \\cite{BS09}, the class of $q-r$ in $L^\\times/L^{\\times2}\\Q^\\times$ is unramified outside the primes 2, 3 dividing the leading coefficient and the discriminant of $f$. Since $N(q-r)=f(q)/16=(v/4)^2$ and $(\\xi)$ is the only prime ideal above 3 (of residue degree 1), $v_\\xi(q-r)$ is even. Modulo $\\Q^\\times$ the classes of $-1$ and $\\theta^2-2\\equiv3$ disappear, and since $2\\equiv\\pi_0\\cdot(\\text{unit})$, the class of $\\pi_0$ also becomes a unit class. Hence the global candidates are the eight classes $u_2^au_3^b\\pi_1^c$ ($a,b,c\\in\\{0,1\\}$).\n\nBy Lemma~\\ref{lem:1.2.1-odd}, $q\\in2\\Z_2$. For $q_0=0$ and for $q_0=2$, the $(\\pi_0,\\pi_1)$-valuations of $q_0-r$ are $(-1,-1)$, and those of $4/(q_0-r)$ are $(3,5)$, which exceed $2v(2)=(2,4)$. By Hensel's lemma, the square class of $q-r$ is constant on $4\\Z_2$ and on $2+4\\Z_2$. We now compare the local square classes of $-r$ and $2-r$ with the eight candidates multiplied by the scalars $\\pm1,\\pm2,\\pm5,\\pm10$ of $\\Q_2$. The comparison is exact: we check against the 576 squares of units of $\\mathcal O_L/8\\mathcal O_L$. If $q\\in4\\Z_2$, the only matching candidate is $\\pi_1$; if $q\\in2+4\\Z_2$, no candidate matches (\\code{1.2.1d}). Hence $q\\in4\\Z_2$ and the class of $q-r$ is $\\pi_1$.\n\\end{proof}\n\n\\paragraph{Step 5: an elliptic curve over the degree 12 field.} Let $\\xi_1,\\xi_2$ be the two roots of $T^2-WT+R_0$. Put\n\\[\nR(T)=\\tfrac1{16}(T^5-T^4-12T^3+4T^2+39T-15),\\qquad \\Pi(T)=\\tfrac18(T^5-T^4-8T^3+8T^2+27T-11)\n\\]\nThen $r=R(\\xi)$ and $\\pi_1=\\Pi(\\xi)$. Put $r_i=R(\\xi_i)$ and $D_*=\\Pi(\\xi_1)\\Pi(\\xi_2)$. Also put\n\\[\nd=-3-2\\theta+3\\theta^2+\\bigl(\\theta+\\tfrac56\\theta^2\\bigr)W+\\bigl(1-\\tfrac12\\theta^2\\bigr)W^2-\\tfrac{\\theta}{12}W^3,\\qquad\nE:\\ y^2=x^3+2dx^2+2d^2x\n\\]\nWe have $c_4(E)=-32d^2$, $\\Delta_E=-256d^6$, $j(E)=128$, $N_M(d)=-5184=-2^63^4$.\n\n\\begin{lem}\\label{lem:1.2.1-cover}\n\\begin{enumerate}[label=(\\arabic*)]\n\\item $[M:\\Q]=12$, and $M$ has signature $(2,5)$.\n\\item All points of Lemma~\\ref{lem:1.2.1-twocover} lift to $M$-points $(q,V)$, $q\\in\\Q$, of the quartic curve\n\\[\n\\mathcal Q:\\ V^2=Q(q):=D_*\\,\\frac{f(q)}{(q-r_1)(q-r_2)}\n\\]\nHere $Q$ is a separable quartic over $M$, and $Q(0)=(2\\theta^2)^2$.\n\\item Write $Q(q)=a_4q^4+a_3q^3+a_2q^2+a_1q+e^2$ with $e=2\\theta^2$, and put\n\\[\nX'=\\frac{2e(V+e)+a_1q}{q^2},\\quad Y'=\\frac{(X'^2-4e^2a_4)q-(a_1X'+2e^2a_3)}{2e},\\quad x=\\frac{X'-h_0}{s_0},\\quad y=\\frac{Y'}{s_0e}\n\\]\n($s_0=12\\theta$, $h_0=(2ds_0-a_2)/3$). Then $\\varphi:(q,V)\\mapsto(x,y)$ is a map $\\mathcal Q\\to E$, and $\\varphi^*\\bigl(dx/(2y)\\bigr)=-\\theta^2\\,dq/V$.\n\\item The two points $(0,e)$, $(0,-e)$ above $q=0$ map to $O$ and to a point $P$, and the two points above $q=-8/3$ map to $P_1$ and $P-P_1$. Here $P,P_1\\in E(M)$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(1) $\\varepsilon$ is not a square in $K$, because its residue at the prime ideal above 5 with $\\theta\\equiv2$ is 3. $N_{K(R_0)/K}(W^2)=(6+2\\theta)^2-4R_0^2=-12\\theta^2$ is negative at the real embedding of $K$, so $W^2$ is not a square in $K(R_0)$. Since $\\varepsilon>0$, $K(R_0)$ has two real embeddings, and the two values of $W^2$ at them have negative product, so exactly one of them is positive. Hence $M$ has 2 real embeddings.\n\n(2) By the identity $T^6-9T^4+27T^2-3=(T^2-3+2\\theta)(T^2-WT+R_0)(T^2+WT+R_0)$, the maps $\\xi\\mapsto\\xi_i$ are two embeddings $\\sigma_i$ of $L$ into $\\overline M$. Applying $\\sigma_1,\\sigma_2$ to the relation of Lemma~\\ref{lem:1.2.1-twocover} and multiplying gives $(q-r_1)(q-r_2)=D_*H^2$ with $H=c\\,\\sigma_1(\\gamma)\\sigma_2(\\gamma)$. The elements $H$, $r_1+r_2$, $r_1r_2$, $D_*$ are symmetric under $\\xi_1\\leftrightarrow\\xi_2$, so they lie in $M$. Hence $Q(q)=(v/H)^2$. From $r_1r_2=\\theta^2D_*/4$ we get $Q(0)=4\\cdot9/\\theta^2=(2\\theta^2)^2$.\n\n(3), (4) By the standard Weierstrass formulas for a quartic, $Y'^2=X'^3+a_2X'^2+(a_3a_1-4a_4e^2)X'+a_3^2e^2+a_4a_1^2-4a_4a_2e^2$, and a change of coordinates gives $E$. All identities are checked by polynomial division in $M$. The coordinates of $P$, $P_1$ and the two limits are also checked by exact substitution (\\code{1.2.1e}).\n\\end{proof}\n\n\\paragraph{Step 6: the class group of $M$.}\n\\begin{lem}\\label{lem:1.2.1-class}\n$\\Cl(M)[2]=0$.\n\\end{lem}\n\\begin{proof}\nWe use twice the ambiguous class number formula for a quadratic extension $B/A$ (\\cite[Theorem 1]{Lemmermeyer13})\n\\[\n|\\Cl(B)^{\\operatorname{Gal}(B/A)}|=\\frac{h(A)\\,2^{t-1}}{[\\mathcal O_A^\\times:\\mathcal O_A^\\times\\cap N_{B/A}B^\\times]}\n\\]\n($t$ is the number of ramified places, infinite places included). If this value is odd, then $h(B)$ is odd as well. Indeed, the generator $\\sigma$ acts as an involution on the $\\F_2$-space $\\Cl(B)[2]$, and an involution on a nonzero space has a nonzero fixed vector.\n\nPut $F=K(\\kappa)$, $\\kappa=R_0/\\theta$, $\\kappa^2=\\varepsilon$. Since $\\varepsilon$ is a unit and is positive at the real embedding, $F/K$ can ramify only at places above 2. At the dyadic place of degree 1 we have $\\theta\\equiv3$ and $\\varepsilon\\equiv7\\pmod8$, and at the dyadic place of degree 2 we have $\\theta^2+3\\theta+1\\equiv0$ and $\\varepsilon\\equiv2+\\theta\\pmod4$, which is not a square; so both places ramify. Hence $t=2$, $\\mathcal O_F=\\Z[\\theta,\\kappa]$ and $\\operatorname{disc}F=2^63^{10}$. At the dyadic place of degree 1, $-1$ is not a norm from $\\Q_2(\\sqrt7)$ ($a^2-7b^2\\equiv-1\\pmod4$ is impossible). So the unit norm index is at least 2, and the formula gives $1\\cdot2/2=1$. Hence $h(F)$ is odd.\n\nWe have $M=F(W)$. From an explicit integral basis of $M$ we get $\\operatorname{disc}M=-2^{14}3^{21}$ (\\code{1.2.1e}), so the norm of the relative discriminant of $M/F$ is $2^{14}3^{21}/(2^63^{10})^2=12$. A ramified dyadic quadratic extension has discriminant exponent at least 2, so the dyadic prime ideal of $F$ of norm 4 is unramified, and the dyadic place of norm 2 ramifies with exponent 2. The remaining factor 3 comes from the ramification of one place above 3. At the place above 3 with $\\kappa\\equiv1$ we have $(\\kappa+2)(\\kappa-2)=\\varepsilon-4=3\\theta+2\\theta^2$, so $v_\\theta(\\kappa+2)=2$, and $W^2=6-2\\theta+2\\theta(\\kappa+2)$ has valuation 1. So the ramified 3-adic place is this one. Of the two real places of $F$, only the one with $\\kappa<0$ becomes complex (see the proof of Lemma~\\ref{lem:1.2.1-cover}(1)). Therefore $t=3$. The units $-1$, $\\kappa$ have norm obstruction vectors $(1,1)$, $(1,0)$ at the real place that becomes complex and at the ramified 3-adic place (a unit that is a local norm there has a square residue in the residue field $\\F_3$), so the unit norm index is at least 4. Since squares of units are norms, this index is a power of 2; since the value $h(F)\\cdot4/[\\,\\cdot\\,]$ of the formula is an integer and $h(F)$ is odd, the index is exactly 4. Hence $|\\Cl(M)^{\\operatorname{Gal}}|=h(F)$ is odd, and $\\Cl(M)[2]=0$ (\\code{1.2.1f}).\n\\end{proof}\n\n\\paragraph{Step 7: the rank.} We use the 2-isogenous curve $E':\\ y^2=x^3-4dx^2-4d^2x$ and the isogenies $\\phi$, $\\hat\\phi$ between $E$ and $E'$. The maps $\\alpha:E(M)\\to M^\\times/M^{\\times2}$ and $\\alpha':E'(M)\\to M^\\times/M^{\\times2}$ send a point to the square class of its $x$-coordinate, and $\\alpha(T)=2$, $\\alpha'(T')=-1$ ($T=(0,0)$, $T'=(0,0)$). By \\cite{Simon02,Silverman09},\n\\[\n2^{\\operatorname{rank}E(M)}=\\frac{|\\alpha(E(M))|\\,|\\alpha'(E'(M))|}{4}.\n\\]\n\n\\begin{lem}\\label{lem:1.2.1-rank}\n$\\operatorname{rank}E(M)=6$. For points $G_1,\\dots,G_4\\in E(M)$ (their coordinates are in the input of \\code{1.2.1g}) and $P,Q,T$, the subgroup $G=\\langle G_1,G_2,G_3,G_4,P,Q,T\\rangle$ has odd index. Moreover, $E(M)_{\\mathrm{tors}}=\\{O,T\\}$.\n\\end{lem}\n\\begin{proof}\nBoth images consist of classes with even valuation outside 2, 3 ($N_M(d)=-2^63^4$). By Lemma~\\ref{lem:1.2.1-class}, an ideal whose square is principal is itself principal. So the candidates are the $2^{12}=4096$ classes generated by 7 unit square classes (unit rank 6 for the signature $(2,5)$, together with $\\pm1$) and 5 generators of the prime ideals above 2 and 3. The decomposition of 2 is $(e,f)=(4,1),(2,2),(2,2)$, and that of 3 is $(6,1),(3,2)$. The sizes of the local images are as follows.\n\\begin{center}\n\\begin{tabular}{lccc}\n\\toprule Places & Local degree & $|\\alpha_v|$ & $|\\alpha'_v|$\\\\ \\midrule\nThree places above 2 & 4 & 16 & 4\\\\\nTwo places above 3 & 6 & 2 & 2\\\\\n\\bottomrule\n\\end{tabular}\n\\end{center}\nAt each place the product of the two sizes equals the value of the local isogeny quotient formula ($2^{4+2}$ at a dyadic place, 4 at an odd place), so these images, generated by local point witnesses, are complete. At the real places, $x^3+2dx^2+2d^2x=x\\bigl((x+d)^2+d^2\\bigr)$, so $x>0$ on $E$. The numbers of candidates remaining after each condition are as follows.\n\\begin{center}\n\\begin{tabular}{lcc}\n\\toprule Condition & $E$ & $E'$\\\\ \\midrule\nFirst dyadic place & 1024 & 256\\\\\nSecond dyadic place & 256 & 16\\\\\nThird dyadic place & 64 & 8\\\\\nTwo places above 3 & 64 & 8\\\\\nTwo real places & 32 & 8\\\\\n\\bottomrule\n\\end{tabular}\n\\end{center}\nOn the other hand, $\\alpha(T),\\alpha(G_1),\\dots,\\alpha(G_4)$ are independent, and for the points $Q_0,D'$ on $E'$, $\\alpha'(T'),\\alpha'(Q_0),\\alpha'(D')$ are also independent (\\code{1.2.1g}). These match the upper bounds, so $|\\alpha(E(M))|=32$, $|\\alpha'(E'(M))|=8$, and $2^{\\operatorname{rank}}=32\\cdot8/4=64$.\n\nThe dual isogeny $\\hat\\phi(x,y)=\\bigl((x-4d-4d^2/x)/4,\\ y(1+4d^2/x^2)/8\\bigr)$ sends $Q_0\\mapsto P$, $D'\\mapsto Q$ and $T'\\mapsto O$. Therefore $T,G_1,\\dots,G_4$ generate $E(M)/\\hat\\phi E'(M)$, $P,Q$ generate $\\hat\\phi E'(M)/2E(M)$, and $G$ generates $E(M)/2E(M)$. Hence the index is odd. At the places $(p,\\theta,d)=(23,12,9)$, $(83,11,12)$ of residue degree 1 the reductions have orders 28 and 90, so by \\cite[Appendix]{Katz81} the order of the torsion divides 2.\n\\end{proof}\n\n\\paragraph{Step 8: a sieve at 661.} The prime $p=661$ splits completely in $M$. Listing the twelve embeddings as $(\\theta,d)\\bmod p$, we get\n\\[\n\\begin{array}{llll}\n(261,34) & (261,334) & (261,454) & (261,500)\\\\\n(481,390) & (481,441) & (481,513) & (481,639)\\\\\n(580,17) & (580,153) & (580,517) & (580,635)\n\\end{array}\n\\]\nand in this order $\\#E_i(\\F_p)$ is $(628,696,628,696,696,696,628,628,696,696,696,696)$. Here $628=4\\cdot157$ and $696=8\\cdot3\\cdot29$.\n\n\\begin{lem}\\label{lem:1.2.1-sieve}\nIf $q\\in\\Q$ and $(q,V)\\in\\mathcal Q(M)$, then $q\\equiv0$ or $q\\equiv438\\equiv-8/3\\pmod{661}$. The sign patterns of $V$ at the twelve embeddings are restricted to 64.\n\\end{lem}\n\\begin{proof}\nThe subgroup $H$ of the product generated by the reductions of $G$ has index $2^{22}3^229^2$. Its 2-primary part has order 1024 and index $2^{22}$. For odd primes $\\ell$, the matrix of $\\ell$-components of the free generators $G_1,\\dots,G_4,P,Q$ is $8\\times6$ of rank 6 for $\\ell=3$, $8\\times6$ of rank 6 for $\\ell=29$, and $4\\times6$ of rank 4 (the whole image) for $\\ell=157$. Since the column rank is full for $\\ell=3,29$, no nonzero combination of the generators modulo $\\ell$ can lie in $\\ell E(M)$ (multiplying by $\\#E_i(\\F_p)/\\ell$ in each factor would kill that combination). The torsion has order 2, so $[E(M):G]$ is prime to 3 and 29; being odd, it is prime to the quotient order $2^{22}3^229^2$. Hence, by \\cite{BS10}, the reduction of $E(M)$ is exactly $H$.\n\nFor each $q\\in\\mathbb P^1(\\F_p)$ we run over all signs of the ordinates of $V^2=Q(q)$ at the twelve embeddings (including zero ordinates and removable poles of the map). There are 27 values of $q$ with points in every factor, and 106512 sign patterns. After the 2-primary test 6146 remain, after the 3-primary test 1152, and after the 29-primary test 64. All 64 remaining patterns have $q\\equiv0$ or $q\\equiv438$ (\\code{1.2.1h}).\n\\end{proof}\n\n\\paragraph{Step 9: 661-adic logarithms.}\n\\begin{lem}\\label{lem:1.2.1-chab}\nIf $q\\in\\Q$ and $(q,V)\\in\\mathcal Q(M)$, then $q=0$ or $q=-8/3$.\n\\end{lem}\n\\begin{proof}\nAt each embedding we use the logarithm of $\\omega=dx/(2y)$. We pass to the short model $X=x+2d/3$, $Y^2=X^3+\\frac23d^2X-\\frac{20}{27}d^3$, and multiply a point $G$ by the order $N_i$ (prime to $p$) of its reduction to put it into the formal group. Since $\\log\\tau=\\tau+O(\\tau^5)$ for $\\tau=-X/Y$, computing $\\tau([N_i]G)$ modulo $p^3$ determines $\\log(G)/p$ modulo $p^2$ (Lemma~\\ref{lem:O}). We compute with two kinds of arithmetic (projective scalar multiplication and division polynomials). The $6\\times12$ matrix of the normalized logarithms of $G_1,\\dots,G_4,P,Q$ reduced modulo $p$ has rank 6, and the minor of its first six columns is a unit. Therefore we can choose an integral basis $c^{(1)},\\dots,c^{(6)}$ of the kernel of the exact normalized logarithms whose last six columns form the identity matrix. The first row is\n\\[\nc^{(1)}\\equiv(74,2,659,439,29,256,1,0,0,0,0,0)\\pmod{661}\n\\]\n(the full matrix and the logarithm of $P_1$ are in \\code{1.2.1i}). Since $G$ has finite index, these six annihilators kill the logarithms of all points of $E(M)$.\n\nFor each pattern of Lemma~\\ref{lem:1.2.1-sieve} we take the center $q_0=0$ or $q_1=-8/3$. The image of the center in factor $i$ is $O$ or $P_i$ for $q_0$, and $(P_1)_i$ or $P_i-(P_1)_i$ for $q_1$, so the normalized logarithm vector $\\ell$ is determined. Writing $q=q_j+pT$ with $T\\in\\Z_p$, Lemma~\\ref{lem:1.2.1-cover}(3) gives the differential vector $D_i\\equiv-\\theta_i^2/V_i\\pmod p$, and the ordinates of the centers are all units. If the disk contains a rational point, then for every $c^{(k)}$\n\\[\nc^{(k)}\\cdot\\ell+T\\,(c^{(k)}\\cdot D)\\equiv0\\pmod p\n\\]\nThe terms of degree at least 2 in $pT$ are still 0 modulo $p$ after division by $p$, so this condition is necessary on the whole disk. For 60 of the 64 patterns, no $T$ satisfies these six equations simultaneously. The remaining four are, for each center, the two patterns with all signs equal (\\code{1.2.1i}).\n\nThe centers of the four remaining disks are preimages of the actual global points $O$, $P$, $P_1$, $P-P_1$, so the annihilating logarithms vanish exactly there. The derivative coefficients for $c^{(1)}$ are as follows.\n\\begin{center}\n\\begin{tabular}{lcc}\n\\toprule Center & Sign on the side of $O$ or $P_1$ & Opposite sign\\\\ \\midrule\n$q=0$ & 592 & 69\\\\\n$q=-8/3$ & 266 & 395\\\\\n\\bottomrule\n\\end{tabular}\n\\end{center}\nAll of them are nonzero. The map and the differential are integral on these smooth disks, so by Proposition~\\ref{thm:G} and Lemma~\\ref{lem:1.2.1-disk} each disk contains only its center. Points above parameter infinity were already eliminated by the sieve of Step 8.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.2.1}]\nBy Lemma~\\ref{lem:1.2.1-even}, even $j$ gives $(\\pm1,0,-1)$. There is no solution with $j=1$. By Lemmas~\\ref{lem:1.2.1-odd}, \\ref{lem:1.2.1-twocover} and \\ref{lem:1.2.1-cover}, a primitive solution with $j=-1$ gives a point of $\\mathcal Q(M)$, and by Lemma~\\ref{lem:1.2.1-chab}, $q\\in\\{0,-8/3\\}$. If $q=0$, then $2n=3m$, so $3\\mid n$, which contradicts $\\gcd(n,6)=1$. If $q=-8/3$, then $7m=2n$, so $(m,n)=(2,7)$, and\n\\[\nP(2,7)=895^2,\\qquad Y(2,7)=6202,\\qquad Z(2,7)=-4199\n\\]\ngives $(x,y,z)=(\\pm895,-6202,4199)$. Substituting these values, we get $895^4+3(-6202)^3+4199^3=0$, and $\\gcd(895,6202,4199)=1$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$2x^4-y^4+z^3=0$ \\ ($H=56$)}{2x^4-y^4+z^3=0 (H=56)}}\\label{sec:1.2.3}\n\n\\begin{thm}\\label{thm:1.2.3}\nThe only primitive integer solutions ($\\gcd(x,y,z)=1$) of $2x^4-y^4+z^3=0$ are\n\\[\n(x,y,z)=(0,\\pm1,1),\\qquad(\\pm1,\\pm1,-1)\n\\]\n(with independent signs).\n\\end{thm}\n\n\\paragraph{Setup.} The equation is $y^4-2x^4=z^3$. For a primitive solution, $\\gcd(x,y)=1$ and $y,z$ are odd. Indeed, if $y$ were even, then $x$ would be odd and $v_2(y^4-2x^4)=1$, which is impossible for a cube.\n\nThe ring $\\Z[\\sqrt2]$ is norm-Euclidean: rounding the two coefficients leaves a remainder $a+b\\sqrt2$ with $|a|,|b|\\le1/2$ and $|a^2-2b^2|\\le1/2$. The units are $\\pm(1+\\sqrt2)^n$. A unit with $1<\\eta<1+\\sqrt2$ has a conjugate of absolute value less than 1, so writing $\\eta=a+b\\sqrt2$ we get $a=1$, $b\\in\\{0,1\\}$, which are the two endpoints of the interval.\n\nWe use the two polynomials\n\\[\nf(A,B)=A^3+6A^2B+6AB^2+4B^3,\\qquad g(A,B)=A^3+3A^2B+6AB^2+2B^3\n\\]\nand $F(t)=f(t,1)g(t,1)=t^6+9t^5+30t^4+60t^3+60t^2+36t+8$. We have $\\operatorname{disc}F=2^{26}3^6$. The two genus 2 curves\n\\[\nC_+:\\ w^2=F(t),\\qquad C_-:\\ w^2=-F(t)\n\\]\nare understood as their smooth projective models. $C_+$ has the points at infinity $\\infty_+,\\infty_-$.\n\nThe proof runs as follows. A cube descent over $\\Q(\\sqrt2)$ gives $C_\\pm$ (Step 1). Over the cubic field $K=\\Q(h)$, a 2-adic two-cover descent eliminates $C_-$ and lifts the points of $C_+$ to an elliptic curve $E$ over $K$ (Steps 2--4). We show $\\operatorname{rank}E(K)=2$ (Step 5), and a sieve at 29 (Step 6) and elliptic Chabauty (Step 7) give $C_+(\\Q)=\\{\\infty_+,\\infty_-\\}$.\n\n\\paragraph{Step 1: cube descent.}\n\\begin{lem}\\label{lem:1.2.3-red}\nFor each primitive solution, $y^2+x^2\\sqrt2=(1+\\sqrt2)^j(a+b\\sqrt2)^3$ with $j\\in\\{-1,0,1\\}$ and $\\gcd(a,b)=1$. If $j=0$, then $(x,y,z)=(0,\\pm1,1)$. If $j=\\pm1$ and $b\\ne0$, we get a finite rational point of $C_{\\pm}$. Hence, if\n\\[\nC_-(\\Q)=\\varnothing,\\qquad C_+(\\Q)=\\{\\infty_+,\\infty_-\\}\n\\]\nthen Theorem~\\ref{thm:1.2.3} holds.\n\\end{lem}\n\\begin{proof}\nThe norm of $y^2\\pm x^2\\sqrt2$ is the odd number $z^3$, so both elements are units above 2; a common odd prime ideal would divide both $x$ and $y$, so the two elements are coprime. By unique factorization, $y^2+x^2\\sqrt2$ is a unit times a cube, and the sign of the unit and $(1+\\sqrt2)^{3k}$ are absorbed into the cube.\n\n$j=0$: $y^2=a(a^2+6b^2)$ and $x^2=b(3a^2+2b^2)$. Since $y$ is odd, $a>0$ is odd and $b\\ge0$. If $b=0$, primitivity gives $(x,y,z)=(0,\\pm1,1)$. If $b>0$, then $\\gcd(b,3a^2+2b^2)\\mid3$. If $3\\nmid b$, then $b$ and $3a^2+2b^2$ are both squares, but the latter is 2 modulo 3. If $3\\mid b$, then $3a^2+2b^2$ has 3-adic valuation 1, so $b=3v^2$. From $\\gcd(a,a^2+6b^2)=1$ we get $a=u^2$ and $(x/(3v))^2=u^4+6v^4$. Then $X=u^2/v^2$, $Y=u x/(3v^3)$ is a rational point of $E_6:\\ Y^2=X^3+6X$ with $X\\ne0$. But $E_6(\\Q)=\\{O,(0,0)\\}$. In the 2-isogeny descent of \\cite{Simon02,Silverman09}, the image for $E_6$ lies in the positive classes $\\{1,2,3,6\\}$; the class 2 is excluded because $W^2=2U^4+3V^4$ is impossible modulo 16, and 3 is excluded after multiplying by $6$, so the image is $\\{1,6\\}$. The image for the partner curve $Y^2=X^3-24X$ contains $\\{1,-6\\}$, and the representatives $-1,-2,2$ of the other three cosets are excluded because $W^2=-U^4+24V^4$, $-2U^4+12V^4$, $2U^4-12V^4$ are impossible modulo 16, 16, 32, respectively, for $(U,V)$ not both even. Hence $2^{\\operatorname{rank}}=2\\cdot2/4=1$. The reductions at 5, 7, 13 have orders 4, 8, 10, so the torsion has order 2 (\\code{1.2.3a}).\n\n$j=1$: $y^2=f(a,b)$ and $x^2=g(a,b)$. $j=-1$: $y^2=f(-a,b)$ and $x^2=-g(-a,b)$. If $b\\ne0$, then $t=a/b$ or $-a/b$, together with $w=xy/b^3$, is a finite rational point of $C_+$ or $C_-$. If $b=0$: for $j=-1$, $y^2=-a^3$, $x^2=a^3$ is incompatible with a primitive solution; for $j=1$, $y^2=x^2=a^3$, so $a=1$, that is, $(x,y,z)=(\\pm1,\\pm1,-1)$.\n\\end{proof}\n\n\\paragraph{Step 2: the cubic field.} Put\n\\[\nK=\\Q(h),\\quad h^3+3h-2=0,\\quad e=1-h-h^2,\\quad \\rho=h-1,\\quad \\pi=-3-h-h^2,\n\\]\n\\[\nr_f=-4-h-h^2=\\frac{2}{h-1},\\qquad r_g=h-1.\n\\]\nThe elements $r_f$, $r_g$ are roots of $f(t,1)$, $g(t,1)$. The two polynomials have discriminants $-864$, $-216$, and $\\operatorname{Res}(f,g)=-512$.\n\n\\begin{lem}\\label{lem:1.2.3-K}\n$\\mathcal O_K=\\Z[h]$, $\\operatorname{disc}K=-216$, $\\Cl(K)=0$, $\\mathcal O_K^\\times=\\{\\pm e^n\\}$. The prime ideals above 2 are $(h)$, $(\\rho)$, and the prime ideal above 3 is $(\\pi)$. The square classes of elements with even valuation outside 2, 3 are generated by the ordered basis $\\mathcal B=(-1,e,\\rho,h,\\pi)$.\n\\end{lem}\n\\begin{proof}\nThe polynomial $T^3-3T^2+6T-6$ obtained by the substitution $h=T-1$ is Eisenstein at 3, so $\\Z[h]$ is maximal at 3. The polynomial discriminant is $-216=-2^33^3$, so the only other candidate index prime is 2; but if the index were 2, the field discriminant would be $-54$, which violates the condition that a discriminant is 0 or 1 modulo 4 (Stickelberger). The signature is $(1,1)$, and the Minkowski constant $\\frac4\\pi\\cdot\\frac{3!}{3^3}\\sqrt{216}$ is less than 5. Modulo 2, $h^3+3h-2\\equiv h(h+1)^2$, and modulo 3, $h^3+3h-2\\equiv(h+1)^3$, so the only prime ideals of norm less than 5 are $(h)$, $(\\rho)$, $(\\pi)$, of norms 2, 2, 3, and $\\Cl(K)=0$. We have $e^{-1}=17+3h+5h^2$ and $Ne=1$. Using the real root $0.592v_\\omega(2)=4$, squares modulo 8 lift to squares. The seven-bit labels of the elements of $\\mathcal B$ are $(41,49,122,13,11)$.\n\nFor $t\\in a+2^n\\Z_2$, the class of the $\\Q_2$-component of $t-r$ is constant if $n-v_2(a-r)>2$, and the class of the $\\Q_2(\\omega)$-component is constant if $2n-v_\\omega(a-r)>4$. Splitting balls repeatedly, we cover $\\Z_2$ by 42 disjoint balls. On 40 of them all four classes are constant; on the two root balls $10+64\\Z_2$, $45+64\\Z_2$ only the scalar class of the vanishing factor varies, so we test all eight values. The remaining chart $u=1/t\\in2\\Z_2$ is covered by $u\\equiv0,2,4,6\\pmod8$, and there we use $1-ur_f$, $1-ur_g$. The admissible local labels, modulo a common $\\Q_2$ scalar, are $\\{0,1032,9328,9715\\}$ for $\\sigma=+1$ and $\\{1,1160,9329,9714\\}$ for $\\sigma=-1$. Comparing the 16 global candidate pairs with these sets, only the trivial pair survives for $\\sigma=+1$, and nothing survives for $\\sigma=-1$ (\\code{1.2.3c}). Since $C_-$ has leading coefficient $-1$, it has no rational point at infinity either.\n\\end{proof}\n\n\\paragraph{Step 4: an elliptic curve over the cubic field.} By Lemma~\\ref{lem:1.2.3-2adic}, $(t-r_f)(t-r_g)$ is a square in $K$. Let\n\\[\nq(t)=t^4+(4-h^2)t^3+(8+2h-2h^2)t^2+(8-2h^2)t+4\n\\]\nso that $(t-r_f)(t-r_g)q(t)=F(t)$. Then the finite rational points of $C_+$ lift to $K$-points ($t\\in\\Q$) of $v^2=q(t)$. Put\n\\[\nk=2-\\tfrac12h^2,\\quad m=2+\\tfrac34h+\\tfrac38h^2,\\quad n=\\tfrac32-\\tfrac92h-\\tfrac{21}8h^2,\\quad r_1=6h+3h^2,\\quad d=2-h+h^2,\n\\]\n\\[\nX=2(v+t^2+kt+m),\\qquad Y=(2t+k)X+n,\\qquad x_E=4X-r_1,\\qquad y_E=8Y.\n\\]\nThen\n\\[\nE:\\ y_E^2=x_E(x_E-12d)(x_E+4d),\\qquad \\phi^*\\frac{dx_E}{2y_E}=\\frac{dt}{4v}\n\\]\nThe two points at infinity with $v/t^2\\to+1$, $-1$ map to $O$ and to\n\\[\nQ=(-6h-3h^2,\\ -12+36h+21h^2)\n\\]\nrespectively. Writing $u=1/t$, the formal square root of $u^4q(1/u)$ begins with $1+ku+mu^2+\\frac12nu^3+O(u^4)$. All identities are checked by polynomial division using $h^3+3h-2=0$ and $v^2=q(t)$ (\\code{1.2.3d}).\n\n\\paragraph{Step 5: the rank.}\n\\begin{lem}\\label{lem:1.2.3-rank}\n$\\operatorname{rank}E(K)=2$ and $E(K)_{\\mathrm{tors}}=E[2]$. The subgroup $G$ generated by\n\\[\nP=(-8h+4h^2,\\ -16+56h),\\qquad Q=(-6h-3h^2,\\ -12+36h+21h^2)\n\\]\nand $T_0=(0,0)$, $T_1=(12d,0)$ has index prime to 6.\n\\end{lem}\n\\begin{proof}\nWe carry out the full 2-descent of \\cite{Simon02,Silverman09} on the isomorphic model $y^2=x(x-3d)(x+d)$ with the Kummer map $\\delta=(x,x-3d)$. Its values at $T_0,T_1$ are $(-3d^2,-3d)$, $(3d,12d^2)$. From the differences of the roots and $N(d)=16$, all Kummer values have even valuation outside 2, 3, so the global candidates are the $32^2=1024$ pairs written in $\\mathcal B$. The local images have dimensions 3 and 4 at the two places above 2 and dimension 2 above 3, and they are filled by the torsion and three local points ($x=-6-7h-5h^2$, $-7-6h-7h^2$, $-7-6h+3h^2$). At the real place the two signs must agree. Of the 1024 pairs, 16 remain. The mask pairs of $T_0,T_1,P,Q$ are $(18,29)$, $(28,19)$, $(24,26)$, $(24,24)$; they are independent, so they fill all 16 pairs (\\code{1.2.3e}). Hence the rank is 2 and the index of $G$ is odd.\n\nAt the places $(13,h-9)$, $(29,h-6)$ of residue degree 1 the reductions have orders 16 and 36 (\\cite[Appendix]{Katz81}), so the order of the torsion divides 4, and all 2-torsion points are rational.\n\nWe check coprimality to 3 at 29. The prime 29 splits completely with $h\\equiv6,9,14$, and in the first two factors the exponents of the groups are 18 and 12. Multiplying by one third of the exponent, we get $[6]P=[6]Q=(16,28)$ at $h\\equiv6$, and $[4]P=(22,17)$, $[4]Q=(22,12)=-[4]P$ at $h\\equiv9$; all of these have order 3. If $aP+bQ\\in3E(K)$, then $a+b\\equiv0$ and $a-b\\equiv0\\pmod3$, so $a\\equiv b\\equiv0$. The torsion has no 3-part, so the index is prime to 3 (\\code{1.2.3f}).\n\\end{proof}\n\n\\paragraph{Step 6: a sieve at 29.}\n\\begin{lem}\\label{lem:1.2.3-sieve}\nIf $(t,w)$ is a rational point of $C_+$ and $t$ is a 29-adic integer, we get a contradiction. Hence $u=1/t\\in29\\Z_{29}$, and the point lies in one of the two disks centered at the two points at infinity $\\infty_\\pm$.\n\\end{lem}\n\\begin{proof}\nIn the three factors, $\\#E(\\F_{29})=36,24,36$, the exponents are $18,12,18$, the orders of $P$ are $18,12,3$, and the orders of $Q$ are $9,3,9$. Adding $P,Q,T_0,T_1$ one at a time, the generated subgroups have sizes $36,324,648,1296$, and the index in the product, of order $36\\cdot24\\cdot36$, is 24. By Lemma~\\ref{lem:1.2.3-rank}, the index of $G$ is prime to 24, so by \\cite{BS10} the reduction of $E(K)$ equals this subgroup $H$.\n\nSuppose that $t$ is a 29-adic integer. By Lemma~\\ref{lem:1.2.3-2adic}, $t-r_f$ and $t-r_g$ are the same $c$ times squares at all three embeddings. If $v_{29}(c)$ is odd, all six values $t-r$ must be divisible by 29; but the residues of the six roots, $(r_f)_i=(12,22,18)$ and $(r_g)_i=(5,8,13)$, are distinct, so this is impossible. Hence $v_{29}(c)$ is even, and the quadratic characters of the nonzero residues $t-r$ must all be equal. Testing all $t=0,\\dots,28$, none satisfies this condition (\\code{1.2.3f}). Therefore $u=1/t\\in29\\Z_{29}$. In this chart, $\\hat v=u^2v$ satisfies $\\hat v^2=u^4q(1/u)\\equiv1$, so it reduces to $\\pm1$ at each of the three embeddings, and the corresponding elliptic reductions are the eight tuples whose components are $O$ or $Q_i$. Among them, only $(O,O,O)$ and $(Q_1,Q_2,Q_3)$ lie in $H$. That is, the three signs are all equal.\n\\end{proof}\n\n\\paragraph{Step 7: 29-adic logarithms.}\n\\begin{lem}\\label{lem:1.2.3-chab}\n$C_+(\\Q)=\\{\\infty_+,\\infty_-\\}$.\n\\end{lem}\n\\begin{proof}\nLifting $h$ at the three embeddings modulo $29^3$ gives $13172$, $14132$, $21474$. At each embedding we pass to a short model $y^2=x^3+Ax+B$, multiply points by the orders of their reductions to put them into the formal group, and use $\\log\\tau=\\tau+O(\\tau^5)$ with $\\tau=-x/y$ (Lemma~\\ref{lem:O}). Computing by two methods, projective arithmetic and division polynomials, we find that the normalized logarithms of $\\omega=dx_E/(2y_E)$ are, modulo $29^2$,\n\\[\n\\tfrac1{29}\\log P\\equiv(647,368,410),\\qquad \\tfrac1{29}\\log Q\\equiv(672,302,764)\n\\]\nModulo 29 they are $(9,20,4)$ and $(5,12,10)$, which are independent. The cross product $c$ of the two exact normalized logarithms is an integral annihilator, with $c\\equiv(7,17,8)\\pmod{29}$ and $c_1+c_2+c_3\\equiv3$. Since $P,Q$ span the logarithm space and torsion points have logarithm 0, $c$ kills all logarithms of $E(K)$ (\\code{1.2.3g}).\n\nOn the disks of Lemma~\\ref{lem:1.2.3-sieve}, $\\hat v$ is an integral power series whose constant term at each embedding is $\\varepsilon=\\pm1$ (the same for all three embeddings), and $\\phi^*(dx_E/2y_E)=-du/(4\\hat v)$. The constant term of the pullback differential combined with the annihilator is $-\\varepsilon(c_1+c_2+c_3)/4\\equiv\\mp3/4$, that is, 21 or 8 modulo 29. Both are units. The centers $\\infty_\\pm$ of the disks map to the global points $O$, $Q$, so the annihilating logarithm vanishes there. By Proposition~\\ref{thm:G} and Lemma~\\ref{lem:1.2.1-disk}, each disk contains only its center.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.2.3}]\nBy Lemmas~\\ref{lem:1.2.3-2adic} and \\ref{lem:1.2.3-chab}, $C_-(\\Q)=\\varnothing$ and $C_+(\\Q)=\\{\\infty_+,\\infty_-\\}$. By Lemma~\\ref{lem:1.2.3-red}, the only primitive solutions are $(0,\\pm1,1)$ and $(\\pm1,\\pm1,-1)$. Substituting gives $0-1+1=0$ and $2-1-1=0$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^5+y^4=2z^2$ \\ ($H=56$)}{x^5+y^4=2z^2 (H=56)}}\\label{sec:1.2.4}\n\n\\begin{thm}\\label{thm:1.2.4}\nThe only primitive integer solutions ($\\gcd(x,y,z)=1$) of $x^5+y^4=2z^2$ are\n\\[\n(x,y,z)=(-1,\\pm1,0),\\qquad(1,\\pm1,\\pm1)\n\\]\n(with independent signs).\n\\end{thm}\n\n\\paragraph{Setup.} The three numbers of a primitive solution are pairwise coprime. Modulo 2, $x$ and $y$ have the same parity; if both were even, $2z^2$ would be a multiple of 16, so $z$ would be even as well. Hence $x,y$ are odd. If $z=0$, then $(x,y,z)=(-1,\\pm1,0)$. From now on $z\\ne0$.\n\nPut $d=\\sqrt2$ and $\\varepsilon=1+d$. The ring $\\Z[d]$ is norm-Euclidean and its units are $\\pm\\varepsilon^n$ (for a unit with $1<\\eta<\\varepsilon$, the $d$-coefficient $(\\eta-N(\\eta)/\\eta)/(2d)$ would have to lie between 0 and 1). We use the following forms.\n\\[\nF=a^5+20a^3b^2+20ab^4,\\quad G=5a^4b+20a^2b^3+4b^5,\\quad F_1=F+2G,\\quad F_2=3F+4G.\n\\]\nWe have $(a+bd)^5=F+Gd$. The quintic field is\n\\[\nL=\\Q(\\theta),\\qquad g(\\theta)=\\theta^5+5\\theta^3+5\\theta-2=0\n\\]\nand we use the following elements.\n\\begin{align*}\nu_1&=1-\\theta-\\theta^3, & u_2&=1-3\\theta+\\theta^2-\\theta^3,\\\\\nq&=-1+2\\theta+2\\theta^2+\\theta^3, & \\ell&=1+\\theta^2,\\\\\n\\eta&=-\\theta^4-\\theta^3-5\\theta^2-4\\theta-6, & \\chi&=\\theta^4+\\theta^3+3\\theta^2+6\\theta-4,\\\\\n\\delta&=\\theta^4+\\theta^3+3\\theta^2+3\\theta-1.&&\n\\end{align*}\nThe proof runs as follows. A fifth-power descent over $\\Q(\\sqrt2)$ splits the problem into five cases according to the unit exponent $j$ (Step 1). The case $j=0$ is settled by a rank 0 elliptic curve over $\\Q$ (Step 2). The case $j=2$ is eliminated by a computation modulo 8 in $L$, and $j=1$ lifts to an elliptic curve $E$ over $L$ (Steps 3--4). We show $\\operatorname{rank}E(L)=2$ (Step 5) and finish with a sieve at 751 (Step 6) and elliptic Chabauty (Step 7).\n\n\\paragraph{Step 1: fifth-power descent.}\n\\begin{lem}\\label{lem:1.2.4-descent}\nFor each primitive solution ($z\\ne0$) we have\n\\[\ny^2+zd=\\varepsilon^j(a+bd)^5,\\qquad j\\in\\{-2,-1,0,1,2\\},\\quad\\gcd(a,b)=1,\\quad a\\ \\text{odd},\\qquad x=(-1)^{j+1}(a^2-2b^2)\n\\]\nIf $j=0,1,2$, then $y^2=F$, $y^2=F_1$, $y^2=F_2$, respectively. Taking conjugates changes $(j,a,b,z)$ into $(-j,(-1)^ja,(-1)^{j+1}b,-z)$, so it suffices to consider $j=0,1,2$.\n\\end{lem}\n\\begin{proof}\nThe product of $y^2\\pm zd$ is $-x^5$, and their norms are odd. A common prime ideal does not lie above 2, and if there were one, it would give a common prime factor of $y,z$. Hence the two elements are coprime, and by unique factorization $y^2+zd$ is a unit times a fifth power. The sign of the unit is absorbed into the fifth power, since 5 is odd. Taking norms gives $-x^5=(-1)^j(a^2-2b^2)^5$. Since $x$ is odd, $a$ is odd. The rational parts of $(1+d)(F+Gd)$ and $(3+2d)(F+Gd)$ are $F_1$ and $F_2$. Since $\\bar\\varepsilon=-\\varepsilon^{-1}$, the rule for conjugation follows.\n\\end{proof}\n\n\\paragraph{Step 2: $j=0$.}\n\\begin{lem}\\label{lem:1.2.4-j0}\nIf $j=0$, the only solutions are $(x,y,z)=(-1,\\pm1,0)$. In particular, there is no solution with $z\\ne0$.\n\\end{lem}\n\\begin{proof}\nWe have $F=a(a^4+20a^2b^2+20b^4)=y^2$, and the second factor is positive, so $a>0$. The gcd of the two factors divides $20$, and $a$ is odd, so the gcd is 1 or 5. If $a=5u^2$, then $F\\equiv5$ or $13\\pmod{16}$, which cannot be an odd square. Hence $a=u^2$ ($u$ odd, $\\gcd(u,5b)=1$) and $c^2=u^8+20u^4b^2+20b^4$.\n\nSuppose $b\\ne0$. The positive integers $m,k=(u^4+10b^2\\pm c)/2$ satisfy $mk=20b^4$ and are coprime. Indeed, a common prime factor divides $20b^4$ and $m+k=u^4+10b^2$; but it cannot be a prime factor of $b$, the sum is odd, and $5\\nmid u$. Up to order, the two factors have the form $(r^4,20s^4)$ or $(5r^4,4s^4)$ ($|b|=rs$, $\\gcd(r,s)=1$). In the second case, $u^4=5r^4-10r^2s^2+4s^4$ is impossible modulo 16. In the first case, $u^4=r^4-10r^2s^2+20s^4$, and we get a rational point\n\\[\n(X,Y)=\\Bigl(\\frac{r^2}{s^2},\\frac{ru^2}{s^3}\\Bigr),\\quad X\\ne0,\\qquad Y^2=X^3-10X^2+20X\n\\]\nBut the only rational points of this curve are $O$ and $(0,0)$. In the 2-isogeny descent of \\cite{Simon02,Silverman09}, the partner curve is $Y^2=X^3+20X^2+20X$, and the candidate classes for the two curves are $\\pm1,\\pm2,\\pm5,\\pm10$. The class 5 is given by $(0,0)$. On the first curve, the negative classes are excluded by the sign, and the class 2 is excluded because $W^2=2U^4-10U^2V^2+10V^4$ is impossible modulo 25 for pairs primitive at 5. On the partner curve, the representatives $2,-2$ of the other two cosets are excluded modulo 25, and $-1$ is excluded because $W^2=-U^4+20U^2V^2-20V^4$ is impossible modulo 16 for pairs primitive at 2. Both images are $\\{1,5\\}$, so $2^{\\operatorname{rank}}=2\\cdot2/4=1$. The reductions at 3 and 7 have orders 2 and 10 (\\cite[Appendix]{Katz81}), so the torsion has order 2 (\\code{1.2.4a}). Hence $b=0$, and $y^2=a^5$ together with primitivity gives $a=1$, $z=0$.\n\\end{proof}\n\n\\paragraph{Step 3: the quintic field and $j=1,2$.}\n\\begin{lem}\\label{lem:1.2.4-L}\n$\\mathcal O_L=\\Z[\\theta]$, $\\operatorname{disc}L=200000=2^65^5$, $\\Cl(L)=0$, $\\mathcal O_L^\\times/\\mathcal O_L^{\\times2}=\\langle-1,u_1,u_2\\rangle$.\n\\end{lem}\n\\begin{proof}\n$g(T+2)=T^5+10T^4+45T^3+110T^2+145T+80$ is Eisenstein at 5. Modulo 2 we have $g=T(T^2+T+1)^2$, and $(g-T(T^2+T+1)^2)/2=-T^4+T^3-T^2+2T-1$ is coprime to $T^2+T+1$ modulo 2, so by Dedekind's criterion \\cite[Section~6.1]{Cohen93} $\\Z[\\theta]$ is also maximal at 2. Since $\\operatorname{disc}g=2^65^5$, we get $\\mathcal O_L=\\Z[\\theta]$. Since $g'(T)=5(T^4+3T^2+1)>0$, the signature is $(1,2)$. The Minkowski constant $(4/\\pi)^2(5!/5^5)\\sqrt{200000}$ is less than 29. The prime ideals of norm less than 29 above primes less than 29 are generated by $\\theta$ (2), $q$ (4), $3+\\theta+2\\theta^2$ (3), $\\ell$ (5), $3+\\theta^2$ (7), $-1+3\\theta+2\\theta^3$ (11), $1+\\theta$ (13), $-1+\\theta+4\\theta^2+\\theta^4$ (17), $-1+2\\theta-\\theta^2+\\theta^3$ (23), and factoring $g$ modulo $p$ shows that this list is complete (\\code{1.2.4b}). Hence $h(L)=1$. We have $Nu_1=Nu_2=1$, and at the places $(7,\\theta-5)$, $(17,\\theta-3)$ of residue degree 1 the rows of quadratic characters of $u_1,u_2$ are $(0,1)$, $(1,0)$. The unit rank is 2, and since $u_1,u_2$ are positive at the real embedding, the class of $-1$ is independent of them.\n\\end{proof}\n\nThe following norm identities hold (\\code{1.2.4b}).\n\\[\nN(a-\\eta b)=F_1(a,b),\\qquad N(3a-\\chi b)=81F_2(a,b).\n\\]\nThe minimal polynomials of $\\eta$ and $\\chi$ are $Z^5+10Z^4+20Z^3+40Z^2+20Z+8$ and $Z^5+20Z^4+180Z^3+720Z^2+1620Z+1296$, and their discriminants are $2^{22}5^5$ and $2^{22}3^{12}5^5$.\n\n\\begin{lem}\\label{lem:1.2.4-j12}\nThere is no primitive solution with $j=2$. If $j=1$, then $a-\\eta b=w^2$ with $w\\in\\mathcal O_L$.\n\\end{lem}\n\\begin{proof}\nFirst, $5\\nmid y$. Indeed, $F_1\\equiv(a-2b)^5$ and $F_2\\equiv3(a-3b)^5\\pmod5$; the values $F_1(2,1)=560$, $F_2(3,1)=4885$ at the roots have 5-adic valuation 1, and the partial derivatives with respect to $a$ are divisible by 5, so the valuation remains 1 when the root is lifted. This is incompatible with $y^2$.\n\nPut $\\gamma_1=a-\\eta b$ and $\\gamma_2=3a-\\chi b$. Outside the primes dividing the discriminant, a prime ideal dividing $\\gamma_j$ has residue degree 1 and is the only one above its rational prime (its residue is $\\eta=a/b$ or $\\chi=3a/b$). By the norm identities its valuation is even. Since $y$ is odd, $\\gamma_j$ is a unit above 2, and by the previous paragraph it is also a unit above 5. For $\\gamma_1$ the argument above also applies above 3. For $\\gamma_2$: modulo 3 we have $g\\equiv(T-1)(T^4+T^3-1)$, the element $\\delta$ ($N\\delta=81$) generates the prime ideal $\\mathfrak p_4$ of degree 4, and $\\chi$ has $N\\chi=-1296$, is a unit at the 3-adic place of degree 1, and has $v_{\\mathfrak p_4}(\\chi)=1$. If $3\\mid b$, then $3\\nmid a$ and $v_{\\mathfrak p_4}(\\gamma_2)=1$. If $3\\nmid b$, then $F_2(a,b)$ is a 3-adic unit, so the norm gives $v_{\\mathfrak p_4}(\\gamma_2)=1$. In either case the valuation at the 3-adic place of degree 1 is even. Therefore, from the unit classes and the positivity of the norm ($N(-1)=-1$ in a field of odd degree),\n\\[\n\\gamma_1=u_1^iu_2^kw^2,\\qquad\\gamma_2=\\delta u_1^iu_2^kw^2,\\qquad i,k\\in\\{0,1\\},\\ w\\in\\mathcal O_L\n\\]\nThe ring $R=(\\Z/8\\Z)[T]/(g)$ has 32768 elements and 336 distinct squares. For $a$ odd and $b\\bmod8$, the residues of $\\gamma_j$ take 32 values. Comparing them with the four sets $u_1^iu_2^kR^2$, $\\delta u_1^iu_2^kR^2$, the sizes of the intersections in the order $(i,k)=(0,0),(1,0),(0,1),(1,1)$ are $2,0,0,0$ for $\\gamma_1$ and $0,0,0,0$ for $\\gamma_2$ (\\code{1.2.4c}). The two residues of $\\gamma_1$ have coefficients $(1,0,0,0,0)$ and $(1,0,4,4,4)$.\n\\end{proof}\n\n\\paragraph{Step 4: the elliptic cover.} Suppose $j=1$ and $b\\ne0$. Putting $t=a/b$ and $v=y/(b^2w)$, we get\n\\[\nv^2=q(t)=t^4+At^3+Bt^2+Ct+D,\\qquad q(t)=\\frac{N(t-\\eta)}{t-\\eta}\n\\]\nwhere $A=10+\\eta$, $B=20+10\\eta+\\eta^2$, $C=40+20\\eta+10\\eta^2+\\eta^3$, $D=20+40\\eta+20\\eta^2+10\\eta^3+\\eta^4$. Here $t\\in\\Q$ and $v\\in L$. Put\n\\[\nU=2v+2t^2+At,\\quad V=2\\bigl(U+B-\\tfrac{A^2}4\\bigr)t+\\tfrac A2U+C,\\quad R_\\theta=2\\theta^3-4,\\quad \\xi=\\frac{U-R_\\theta}4,\\quad \\zeta=\\frac V8.\n\\]\nThen $(\\xi,\\zeta)$ is a point of\n\\[\nE:\\ \\zeta^2=\\xi^3-5\\theta\\xi^2+5\\theta^2\\xi\n\\]\nand for $\\omega=d\\xi/(2\\zeta)$ we have $\\phi^*\\omega=dt/v$ ($dU/dt=V/v$). The two points at infinity with $v/t^2\\to+1$, $-1$ map to $O$ and to\n\\[\nP=\\Bigl(\\frac{-5\\theta^4-25\\theta^2+10\\theta}{8},\\ \\frac{35\\theta^4-5\\theta^3+195\\theta^2-20}{32}\\Bigr)\n\\]\nrespectively (\\code{1.2.4d}).\n\n\\paragraph{Step 5: the rank.} The partner curve is $E':\\ \\zeta^2=\\xi^3+10\\theta\\xi^2+5\\theta^2\\xi$. We use the 2-isogeny descent of \\cite{Simon02,Silverman09}. For $E_{a,b}:y^2=x^3+ax^2+bx$, the map $\\alpha$ sends a point to the square class of $x$, and a class $\\mu$ lies in the image if and only if $\\mu W^2=\\mu^2U^4+a\\mu U^2V^2+bV^4$ has a suitable nonzero point. If both curves have only one rational 2-torsion point (which holds, since $\\sqrt5\\notin L$), then\n\\[\n2^{\\operatorname{rank}E(L)}=\\frac{|\\alpha(E(L))|\\,|\\alpha'(E'(L))|}{4}.\n\\]\n\n\\begin{lem}\\label{lem:1.2.4-rank}\n$\\operatorname{rank}E(L)=2$ and $E(L)_{\\mathrm{tors}}=\\{O,T_0\\}$ ($T_0=(0,0)$). For\n\\[\nQ=(4\\theta+4\\theta^2+3\\theta^3+2\\theta^4,\\ 12-24\\theta-7\\theta^2-21\\theta^3-3\\theta^4)\n\\]\nthe subgroup $\\langle P,Q,T_0\\rangle$ has odd index.\n\\end{lem}\n\\begin{proof}\nOutside the primes above 2 and 5, the $x$-coordinate has even valuation, so the candidates are the 64 classes generated by the ordered basis $(-1,u_1,u_2,\\theta,q,\\ell)$. We impose necessary conditions one after another.\n\\begin{itemize}\n\\item Real place: $x\\ge0$ on $E$.\n\\item 5: Put $\\lambda=\\theta-2$; then $v_\\lambda(5)=5$ and $\\lambda^5/5\\equiv-1\\pmod\\lambda$. For both curves, $a,b$ have valuation 5, and the normalized leading unit of $b$ is a square. If we take $U,V$ integral with one of them a unit, and take the representative of $\\mu$ of valuation 0 or 1, then a class of even valuation must have a square unit part, and a class of odd valuation must have the class of $b$.\n\\item 2: The 2-adic completions of $L$ are one of degree 1 and one of degree 4 (the even root of $g$ is 178 modulo 256, and the quartic factor is $T^4+2T^3+9T^2+2T+9$ modulo 16). We scan the charts $V=1$ ($U$ arbitrary) and $U=1$ ($V$ a nonunit) completely, modulo 256 for the linear factor and modulo 16 for the quartic factor. The ring of the quartic factor has 65536 elements, 49152 units and 1648 distinct squares.\n\\end{itemize}\nThe numbers of remaining candidates, for $E$ and $E'$ respectively, are 16, 32 after the real place and 5; 16, 16 after the dyadic place of degree 1; and 4, 4 after the dyadic place of degree 4. In both cases the masks are $0,6,32,38$, that is, $1,u_1u_2,\\ell,u_1u_2\\ell$. On the other hand, the images of $T_0,Q$ have masks $32,38$, and the images of the point $T_0'=(0,0)$ of $E'$ and of\n\\[\nS=(50+5\\theta+50\\theta^2+10\\theta^4,\\ 380+100\\theta+320\\theta^2+20\\theta^3+60\\theta^4)\n\\]\nare also $32,38$ ($5\\theta^2/\\ell$, $\\xi(Q)/(u_1u_2\\ell)$, $\\xi(S)/(u_1u_2\\ell)$ are squares in $L$). Hence both images have exactly four elements, and $\\operatorname{rank}E(L)=2$ (\\code{1.2.4e}).\n\nFor the dual isogeny $\\hat\\phi(x',y')=\\bigl((x'+10\\theta+5\\theta^2/x')/4,\\ y'(5\\theta^2-x'^2)/(8x'^2)\\bigr)$ we have $\\hat\\phi(S)=P+T_0$ and $\\hat\\phi(T_0')=O$. Since $T_0,Q$ generate $E(L)/\\hat\\phi E'(L)$ and $T_0',S$ generate $E'(L)/\\phi E(L)$, the points $T_0,Q,P+T_0$, that is, $P,Q,T_0$, generate $E(L)/2E(L)$, and the index is odd. At the places $(3,\\theta-1)$, $(11,\\theta-5)$ of residue degree 1 the reductions of the two curves have orders 6 and 16 (\\cite[Appendix]{Katz81}), so the torsion subgroups are $\\{O,T_0\\}$ and $\\{O,T_0'\\}$.\n\\end{proof}\n\n\\paragraph{Step 6: a sieve at 751.}\n\\begin{lem}\\label{lem:1.2.4-sieve}\nFor a point of $v^2=q(t)$ ($t\\in\\Q$, $v\\in L$), $t$ is not a 751-adic integer. So $u=1/t\\in751\\Z_{751}$, and the signs of $\\hat v_i=u^2v_i$ at the five embeddings are all equal.\n\\end{lem}\n\\begin{proof}\nThe prime $p=751$ splits completely with $\\theta\\equiv65,168,348,386,535$. Each reduction is $\\Z/384\\times\\Z/2$ (of order 768), and $T_0$ has coordinates $(192,0)$ in every factor. The subgroup $H$ of the product of the five factors generated by $P,Q,T_0$ satisfies\n\\[\n|H|=36864=2^{12}3^2,\\qquad[\\textstyle\\prod_iE_i(\\F_p):H]=2^{28}3^3\n\\]\nIf $mP+nQ\\in3E(L)$, then multiplying by 128 and looking at the 3-components in each factor, we find that $(m,n)$ modulo 3 lies in the kernel of the matrix\n\\[\n\\begin{pmatrix}2&1&2&2&0\\\\2&1&0&1&1\\end{pmatrix}^{\\!\\top}\n\\]\nThis matrix has rank 2, so $m\\equiv n\\equiv0\\pmod3$. The torsion has no 3-part, so the index is prime to 3; being odd, it is prime to $2^{28}3^3$. Hence, by \\cite{BS10}, the reduction of $E(L)$ is exactly $H$.\n\nFor each $t\\in\\F_p$ we check whether the five conjugate quartics $q_i(t)$ are squares, and we apply the map for all choices of signs of the ordinates. At $t=\\infty$ we choose $O$ or $P_i$ independently in each factor. There are 57 parameter residues (including $\\infty$) that are squares in every factor, and 1674 product points are tested; the only ones in $H$ are $(O,O,O,O,O)$ and $(P_1,\\dots,P_5)$ at $t=\\infty$ (\\code{1.2.4f}). If $t$ is a $p$-adic integer, the reduction of the point is one of the finite tuples tested, so it is excluded. Otherwise $\\hat v_i\\equiv\\pm1$, and the sieve leaves only the two patterns with all signs equal.\n\\end{proof}\n\n\\paragraph{Step 7: 751-adic logarithms.}\n\\begin{lem}\\label{lem:1.2.4-chab}\nThe curve $v^2=q(t)$ has no finite point with $t\\in\\Q$.\n\\end{lem}\n\\begin{proof}\nThe five roots lift modulo $p^3=423564751$ to $30368252$, $51283705$, $229643381$, $365409950$, $170424214$. We pass to the short model $Y^2=X^3-\\frac{10}3\\theta^2X-\\frac{25}{27}\\theta^3$, and we multiply $P$ by $192,192,192,192,64$ and $Q$ by $384,384,128,384,384$ to put them into the formal group (all these numbers are prime to $p$). Since $\\log\\tau=\\tau+O(\\tau^5)$ (Lemma~\\ref{lem:O}), we get, modulo $p^2$,\n\\begin{align*}\n\\tfrac1p\\log P&\\equiv(423722,191178,352807,294331,252200),\\\\\n\\tfrac1p\\log Q&\\equiv(330447,456587,117975,48293,396869)\n\\end{align*}\nThe first three coordinates are independent modulo $p$. Let $c$ be the cross product of the first three coordinates of the exact normalized logarithms, followed by two zeros. Then $c$ is an integral annihilator, and\n\\[\nc\\equiv(626,131,473,0,0)\\pmod p,\\qquad \\textstyle\\sum_ic_i\\equiv479\\pmod p\n\\]\n(\\code{1.2.4g}). Since $P,Q$ span $E(L)\\otimes\\Q$, $c$ kills all logarithms of $E(L)$.\n\nOn the remaining disks the common parameter is $u=1/t$, and $\\hat v_i^2=1+A_iu+B_iu^2+C_iu^3+D_iu^4$. The sign at $u=0$ fixes an integral analytic square root. Since $\\phi^*\\omega=dt/v=-du/\\hat v$, the combined differential is $-\\sum_ic_i\\,du/\\hat v_i$, and on the two disks with uniform signs its constant coefficients are $-\\sum c_i$ and $\\sum c_i$, that is, 272 and 479 modulo 751. Both are units. The centers map to the global points $O$, $P$, so the annihilating logarithm vanishes there. By Proposition~\\ref{thm:G} and Lemma~\\ref{lem:1.2.1-disk}, the disks contain only the center $u=0$, and this is not a finite point.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.2.4}]\nBy Lemmas~\\ref{lem:1.2.4-j12} and \\ref{lem:1.2.4-chab}, if $j=1$ then $b=0$. Then $y^2=a^5$, $z=a^5$, and primitivity gives $a=1$, so $(x,y,z)=(1,\\pm1,1)$. By conjugation, $j=-1$ gives $(1,\\pm1,-1)$. By Lemma~\\ref{lem:1.2.4-j12} there is nothing for $j=\\pm2$, and by Lemma~\\ref{lem:1.2.4-j0}, $j=0$ gives only $(-1,\\pm1,0)$. Substituting gives $-1+1=0$ and $1+1=2$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^5+y^4=3z^2$ \\ ($H=60$)}{x^5+y^4=3z^2 (H=60)}}\\label{sec:1.2.6}\n\n\\begin{thm}\\label{thm:1.2.6}\nThe only primitive integer solutions ($\\gcd(x,y,z)=1$) of $x^5+y^4=3z^2$ are\n\\[\n(x,y,z)=(-1,\\pm1,0),\\qquad (11,\\pm29,\\pm538)\n\\]\n(independent signs).\n\\end{thm}\n\n\\paragraph{Setup.} The proof goes as follows. We perform a fifth-power descent in $\\Z[\\sqrt3]$ and eliminate the cases with unit exponent $j\\ne0$ by a square-class obstruction in a quintic field (Steps 1--2). The remaining case leads to the plane quartic curve\n\\[\n\\mathcal C:\\quad u^4=r^4-15r^2s^2+45s^4\n\\]\n(Step 3). A fourth-power descent over $\\Q(\\sqrt5)$ turns the points with $s\\ne0$ into points of the genus 2 curve\n\\[\n\\mathcal H:\\quad Y^2=f(X):=X(X^2+30X+45)(X^2-45)\n\\]\nwith $X\\in\\Q^{\\times2}\\cup-\\Q^{\\times2}$ (Step 4). We lift these points by pointwise 2-descent to three elliptic curves over $K=\\Q(\\sqrt5)$, and find them all using ranks, a coset sieve and elliptic Chabauty (Steps 5--8).\n\nLet $K=\\Q(d)$, $d=\\sqrt5$, $e=(1+d)/2$. Then $\\mathcal O_K=\\Z[e]$, $h_K=1$ (Minkowski bound $\\sqrt5/2<2$), the unit group is $\\{\\pm e^n\\}$, and $N(e)=-1$. The primes 2 and 3 are inert, and $d$ is a prime element above 5. Further, putting\n\\[\n\\rho=-15+6d=-21+12e,\\qquad \\tau=3d=-3+6e,\n\\]\nwe have $X^2+30X+45=(X-\\rho)(X-\\bar\\rho)$ and $X^2-45=(X-\\tau)(X+\\tau)$.\n\n\\paragraph{Step 1: descent in $\\Z[\\sqrt3]$.}\n\\begin{lem}\\label{lem:1.2.6-basic}\nFor a primitive solution, $x,y,z$ are pairwise coprime, $3\\nmid xy$, and $x\\equiv2\\pmod3$. The parities of $y$ and $z$ differ, and $x$ is odd. Also $x,y\\ne0$, and if $z=0$ then $(x,y)=(-1,\\pm1)$.\n\\end{lem}\n\\begin{proof}\nIf 3 divides $x$ and $y$, then $3^4\\mid x^5+y^4=3z^2$, so $3\\mid z$. If another prime divides two of the variables, then by the equation it also divides the third. Hence they are pairwise coprime. Modulo 3, $3\\mid x$ implies $3\\mid y$ and conversely, so $3\\nmid xy$, and $x^5\\equiv-y^4\\equiv-1$ gives $x\\equiv2\\pmod3$. If $y,z$ are both odd, then $v_2(y^4-3z^2)=1$, which is impossible since $y^4-3z^2=-x^5$. Therefore the parities differ and $x$ is odd. If $x=0$, then $y^4=3z^2$ gives $y=z=0$. If $y=0$, then $x^5=3z^2$ gives $3\\mid x$. If $z=0$, then $x^5=-y^4$ gives $x=-1$, $y=\\pm1$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.2.6-sqrt3}\nFor every primitive solution there exist $j\\in\\{-2,-1,0,1,2\\}$ and integers $a,b$ such that\n\\[\ny^2+z\\sqrt3=(2+\\sqrt3)^j(a+b\\sqrt3)^5,\\qquad \\gcd(a,b)=1,\\quad a+b\\ \\text{odd},\\quad 3\\nmid a,\\quad x=3b^2-a^2.\n\\]\n\\end{lem}\n\\begin{proof}\n$\\Z[\\sqrt3]$ is norm-Euclidean: rounding the two coefficients gives a remainder $A+B\\sqrt3$ with $|A|,|B|\\le\\frac12$ and $|A^2-3B^2|\\le\\frac34$. The unit group is $\\{\\pm(2+\\sqrt3)^n\\}$. There is no unit of norm $-1$, by reduction modulo 3, and a unit of norm 1 between $1$ and $2+\\sqrt3$ would have to have $\\sqrt3$-coefficient between 0 and 1. The product of $y^2\\pm z\\sqrt3$ is $y^4-3z^2=-x^5$. The norms of the two factors are units at 2 and 3, and any other common prime factor would divide both $y$ and $z$. Hence the two factors are coprime, and $y^2+z\\sqrt3=\\pm(2+\\sqrt3)^m\\gamma^5$. Absorbing $-1$ and $(2+\\sqrt3)^5$ into $\\gamma^5$, we get $j\\in\\{-2,\\dots,2\\}$. A common prime factor of the coefficients of $\\gamma=a+b\\sqrt3$ divides $y$ and $z$, so $\\gcd(a,b)=1$. Since $N(2+\\sqrt3)=1$, comparing norms gives $a^2-3b^2=-x$. Since $x$ is odd, $a+b$ is odd, and since $3\\nmid x$, $3\\nmid a$.\n\\end{proof}\n\n\\paragraph{Step 2: elimination of $j\\ne0$.} Writing $(a+b\\sqrt3)^5=F+G\\sqrt3$, we have\n\\[\nF=a(a^4+30a^2b^2+45b^4),\\qquad G=b(5a^4+30a^2b^2+9b^4).\n\\]\nMultiplying by $(2+\\sqrt3)^1$ and $(2+\\sqrt3)^2=7+4\\sqrt3$, we get, for $j=1,2$,\n\\[\ny^2=F_1(a,b):=2F+3G,\\qquad y^2=F_2(a,b):=7F+12G.\n\\]\nTaking conjugates changes $(j,b,z)$ into $(-j,-b,-z)$, so it suffices to eliminate $j=1,2$.\n\nWe use the quintic field $L=\\Q(\\vartheta)$, $g(\\vartheta)=0$, $g(T)=T^5-5T^3+5T-4$. The following facts are checked by \\code{1.2.6a}.\n\\begin{itemize}\n\\item $\\operatorname{disc}(g)=2^4\\cdot3^2\\cdot5^5$ and $\\mathcal O_L=\\Z[\\vartheta]$ ($g(T-1)$ is Eisenstein at 5, and at 2 and 3 we use Dedekind's criterion). The signature is $(1,2)$.\n\\item $h_L=1$. The Minkowski bound is less than 43, and every prime ideal of norm less than 43 is generated by an element of the same norm.\n\\item $e_1=1-\\vartheta+\\vartheta^3$ and $e_2=1+2\\vartheta^2+3\\vartheta^3+\\vartheta^4$ are units of norm 1, and $-1,e_1,e_2$ form a basis of $\\mathcal O_L^\\times/\\mathcal O_L^{\\times2}$.\n\\item $\\varpi=\\vartheta-2$ and $\\kappa=\\vartheta^2+\\vartheta-1$ have norms 2 and 4, and $(2)=(\\varpi)(\\kappa)^2$. There is one prime ideal above 5, and its residue degree is 1.\n\\item For $\\mu_1=\\vartheta^4+2\\vartheta^3-5\\vartheta^2-8\\vartheta+1$ and $\\mu_2=-\\vartheta^4-\\vartheta^3+3\\vartheta^2+2\\vartheta$,\n\\[\nN(2a-\\mu_1 b)=16F_1(a,b),\\qquad N(2a-\\mu_2(a+b))=8F_2(a,b).\n\\]\nThe discriminants of the minimal polynomials of $\\mu_1$ and $\\mu_2$ are $2^{24}3^{10}5^5$ and $2^{16}3^{10}5^5$.\n\\end{itemize}\n\n\\begin{lem}\\label{lem:1.2.6-j}\nIn Lemma~\\ref{lem:1.2.6-sqrt3}, $j=0$.\n\\end{lem}\n\\begin{proof}\nSuppose $j\\in\\{1,2\\}$, and put $\\gamma=2a-\\mu_1 b$ ($j=1$) or $\\gamma=2a-\\mu_2(a+b)$ ($j=2$). Then $N(\\gamma)=16y^2$ or $8y^2$, and $y\\ne0$.\n\nSuppose a prime ideal $\\mathfrak P$ above $p\\notin\\{2,3,5\\}$ divides $\\gamma$. The coefficient of $\\mu_1$ or $\\mu_2$ ($b$ or $a+b$) is not a multiple of $p$; otherwise $p\\mid2a$, and $p$ divides both $a$ and $b$. Thus the residue of $\\mu_1$ (or $\\mu_2$) is determined as an element of $\\F_p$. Since $p$ does not divide the discriminants of $\\Z[\\mu_1]$ and $\\Z[\\mu_2]$, only one prime ideal above $p$ divides $\\gamma$, and its residue degree is 1. So $v_{\\mathfrak P}(\\gamma)=v_p(N\\gamma)$ is even. At 3 we have $F_1\\equiv2a^5$ and $F_2\\equiv a^5\\pmod3$, so $N\\gamma$ is a unit. There is one prime ideal above 5, of residue degree 1, so its valuation is also $v_5(N\\gamma)$, which is even. At 2, $v_2(N\\gamma)=v_\\varpi(\\gamma)+2v_{\\kappa}(\\gamma)$, so $v_\\varpi(\\gamma)\\equiv v_2(N\\gamma)\\equiv j-1\\pmod2$. Since $h_L=1$,\n\\[\n\\gamma=\\varpi^{\\,j-1}e_1^ie_2^k\\kappa^{\\ell}w^2,\\qquad i,k,\\ell\\in\\{0,1\\},\\ w\\in\\mathcal O_L.\n\\]\nThe factor $-1$ does not appear, because $N(-1)=-1$ and the norms of all the other factors are positive. And $w$ is integral, because all the remaining valuations are even and nonnegative.\n\nNow we compare in $\\mathcal O_L/8\\mathcal O_L=R=(\\Z/8)[T]/(g)$. $R$ has $8^5=32768$ elements, and exactly 336 of them are squares. For $a,b\\bmod8$ with $a+b$ odd, the left side $\\gamma\\bmod8$ takes 16 values for each of $j=1,2$. The right side is, for each of the eight $(i,k,\\ell)$, the set of elements $\\varpi^{j-1}e_1^ie_2^k\\kappa^\\ell\\cdot(\\text{square})$. The intersection of the two sets is empty for $j=1,2$ and all eight $(i,k,\\ell)$ (\\code{1.2.6a}). This is a contradiction.\n\\end{proof}\n\n\\paragraph{Step 3: the quartic curve $\\mathcal C$.}\n\\begin{lem}\\label{lem:1.2.6-quartic}\nThe primitive solutions are obtained from integral points $(u,r,s)$ of $\\mathcal C$ with $u,r>0$, $s\\ge0$, $\\gcd(r,s)=1$, by\n\\[\nx=3r^2s^2-u^4,\\qquad y=\\pm u(r^4-45s^4),\\qquad z=\\pm rs(5u^8+30u^4r^2s^2+9r^4s^4).\n\\]\nThe solutions with $z=0$ come from $(u,r,s)=(1,1,0)$.\n\\end{lem}\n\\begin{proof}\nBy Lemma~\\ref{lem:1.2.6-j}, $y^2=aP$ with $P=a^4+30a^2b^2+45b^4>0$, and $z=b(5a^4+30a^2b^2+9b^4)$. A common prime factor of $a$ and $P$ divides $45b^4$, and since $3\\nmid a$, it can only be 5. Since $y\\ne0$, $a>0$. If $5\\nmid a$, then $a=u^2$. If $5\\mid a$, then $v_5(P)=1$, so $a=5u^2$; but then $y^2=aP\\equiv a^5\\equiv a\\equiv2u^2\\equiv2\\pmod3$, a contradiction. Hence $a=u^2$, $c^2:=P(u^2,b)=u^8+30u^4b^2+45b^4$, and $\\gcd(u,b)=\\gcd(u,15)=1$. If $u$ is even, then $b$ is odd and $c^2\\equiv13\\pmod{16}$, which is impossible (\\code{1.2.6b}). Therefore $u$ is odd, $b$ is even and $c$ is odd. If $b=0$, then $u=1$.\n\nIf $b\\ne0$, then $m=(u^4+15b^2+c)/2$ and $k=(u^4+15b^2-c)/2$ are positive integers with $mk=45b^4$. A common prime factor would divide $45b^4$ and $u^4+15b^2$, which contradicts $\\gcd(u,b)=\\gcd(u,15)=1$; and the sum is odd. Distributing the fourth powers, we get, up to order, $(m,k)=(r^4,45s^4)$ or $(5r^4,9s^4)$, with $|b|=rs$ and $\\gcd(r,s)=1$. In the latter case the sum is 2 modulo 3, which is impossible since $m+k\\equiv u^4\\equiv1$. In the former case, $r^4+45s^4=u^4+15r^2s^2$ is $\\mathcal C$, $c=|r^4-45s^4|$, and $y=\\pm uc$. The remaining formulas follow by substituting $a=u^2$, $b=\\pm rs$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.2.6-props}\nEvery primitive integral point ($\\gcd(u,r,s)=1$) of $\\mathcal C$ satisfies $\\gcd(r,s)=1$, $\\gcd(u,30)=1$, $\\gcd(r,15)=1$, $\\gcd(u,rs)=1$. Moreover, there is no point with $u=0$ or $r=0$.\n\\end{lem}\n\\begin{proof}\nA common prime factor of $r,s$ also divides $u$. Modulo 16, the right-hand side is $7$ or $15$ if $r,s$ are both odd, $13$ if $4\\mid r$ and $s$ is odd, and $5$ if $r$ is odd and $s\\equiv2\\pmod4$. In the remaining cases ($r\\equiv2\\pmod4$ and $s$ odd, or $r$ odd and $4\\mid s$) it is 1 (\\code{1.2.6b}). Hence $u$ is odd. If $3\\mid u$, then $3\\mid r$, $3\\nmid s$, and the 3-adic valuation of the right-hand side is exactly 2. If $5\\mid u$, then in the same way the 5-adic valuation is exactly 1. If $3\\mid r$ or $5\\mid r$, then $u$ is also divisible by that prime. A common prime factor of $u$ and $r$ divides $45s^4$, so it is 3 or 5, or it divides $s$, a contradiction. A common prime factor of $u$ and $s$ divides $r$. If $u=0$, then $r^2/s^2$ is a root of a quadratic polynomial of discriminant 45, and if $r=0$, then $u^4=45s^4$; both are impossible.\n\\end{proof}\n\n\\paragraph{Step 4: descent over $\\Q(\\sqrt5)$.}\n\\begin{lem}\\label{lem:1.2.6-sqrt5}\nIf a primitive integral point of $\\mathcal C$ has $s\\ne0$, then there exist $\\sigma\\in\\{\\pm1\\}$ and $t\\in\\Q^\\times$ such that $(X,Y)=(9\\sigma t^2,\\,Y)$ is a point of $\\mathcal H(\\Q)$. In particular, $X\\ne0$ and $X\\in\\sigma\\Q^{\\times2}$. Moreover, if $X=-9$, then $(u,r,s)=(\\pm1,\\pm2,\\pm1)$.\n\\end{lem}\n\\begin{proof}\nPut $\\alpha=r^2+\\frac{-15+3d}{2}s^2$. Then $N(\\alpha)=u^4>0$, so the two real embeddings of $\\alpha$ have the same sign. Call this sign $\\sigma$. A common prime factor of $(\\alpha)$ and $(\\bar\\alpha)$ divides $3ds^2$. Those above 3 and 5 cannot divide $N\\alpha=u^4$ because $\\gcd(u,15)=1$, and one above a prime factor of $s$ would also divide $r$. Hence all valuations of $(\\alpha)$ are multiples of 4, and $\\alpha=\\sigma e^j\\beta^4$ with $j\\in\\{0,2\\}$. In the residue field $\\F_9$ above 3 we have $\\alpha\\equiv r^2\\equiv1$, the fourth powers are $\\pm1$, and $e^2\\notin\\F_3$; hence $j=0$. Writing $\\beta^2=A+Bd$, we get\n\\[\n\\sigma(A^2+5B^2)=r^2-\\tfrac{15}{2}s^2,\\qquad 4AB=3\\sigma s^2,\\qquad A^2-5B^2=u^2.\n\\]\nThen $B\\ne0$, and putting $t=s/(2B)$ we get $A=3\\sigma Bt^2$ and\n\\[\n(r/B)^2=\\sigma(9t^4+5)+30t^2,\\qquad (u/B)^2=9t^4-5.\n\\]\nThen $X=9\\sigma t^2$ and $Y=27tru/B^2$ satisfy $Y^2=f(X)$ (\\code{1.2.6b}). If $X=-9$, then $\\sigma=-1$, $t^2=1$, and $|r/B|=4$, $|u/B|=2$, $|s/B|=2$, so $(u,r,s)=(\\pm1,\\pm2,\\pm1)$.\n\\end{proof}\n\n\\begin{prop}\\label{prop:1.2.6}\nThe only rational points of $\\mathcal H$ with $X\\in\\Q^{\\times2}\\cup-\\Q^{\\times2}$ are $(X,Y)=(-9,\\pm216)$.\n\\end{prop}\n\n\\paragraph{Step 5: pointwise descent and three elliptic curves.}\n\\begin{lem}\\label{lem:1.2.6-pointwise}\nLet $(X,Y)\\in\\mathcal H(\\Q)$ with $X=\\sigma q^2\\ne0$. Then the class of $(X-\\rho,\\,X-\\tau)$ in $K^\\times/K^{\\times2}$ is $(1,1)$ if $\\sigma=1$, and $(-3e,-6)$ or $(3ed,-3d)$ if $\\sigma=-1$.\n\\end{lem}\n\\begin{proof}\nWe have $f(X)=X\\cdot N(X-\\rho)\\cdot N(X-\\tau)$. Since $\\operatorname{disc}(f)=2^{14}3^{20}5^{10}$, the five roots are distinct at prime ideals coprime to 30. At such a prime ideal, if $X$ is integral, then at most one of the five linear factors of $f$ has positive valuation, and that valuation is even. If $X$ is not integral, then all factors have valuation $v(X)=2v(q)$, which is even. Therefore both classes are represented by subproducts of $(-1,e,2,3,d)$. Imposing the norm condition $\\sigma N(X-\\rho)N(X-\\tau)\\in\\Q^{\\times2}$ leaves 256 pairs for each sign.\n\nNow we compute the local classes of the two numbers for all $q\\in\\Q_2$ and $q\\in\\Q_3$. At 2, we test $q\\in\\Z_2$ modulo 16, and if $q\\notin\\Z_2$ we test $v=1/q\\in2\\Z_2$ modulo 16 (in the latter case we use the square-equivalent pair $(\\sigma-\\rho v^2,\\sigma-\\tau v^2)$). On each ball the valuations of the two factors are at most 2, and changing the representative by 16 changes the factors by multiples of 32. So the ratio of the normalized units is 1 modulo 8, and it is a square in the unramified quadratic extension of $\\Q_2$. At 3, we test the balls $q\\bmod3$ and $v\\in3\\Z_3$; a change by 3 does not change the normalized residues. As a result, after the condition at 2, 4 pairs remain if $\\sigma=1$ and 8 pairs if $\\sigma=-1$; after the condition at 3, 1 pair and 2 pairs remain, respectively. The remaining pairs are those above (\\code{1.2.6c}).\n\\end{proof}\n\nWe define three elliptic curves\n\\[\nE_0:\\ \\eta^2=\\xi(\\xi-\\rho)(\\xi+\\tau),\\quad\nE_1:\\ \\eta^2=\\xi(\\xi+2e\\rho)(\\xi-2e\\tau),\\quad\nE_2:\\ \\eta^2=\\xi(\\xi-e\\rho)(\\xi-e\\tau).\n\\]\nThe three cases of Lemma~\\ref{lem:1.2.6-pointwise} give, respectively, the point $\\xi=X$ of $E_0$, the point $\\xi=-2eX$ of $E_1$, and the point $\\xi=eX$ of $E_2$. For example, in the middle case, if $X-\\rho=-3ea_1^2$ and $X-\\tau=-6a_2^2$, then taking conjugates gives $X+\\tau=-6\\bar a_2^2$, and $X(X-\\rho)(X+\\tau)=-2e(3qa_1\\bar a_2)^2$. In general, if $X(X-r_1')(X-r_2')=\\lambda V^2$, then $(\\xi,\\eta)=(\\lambda X,\\lambda^2V)$ is a point on $\\eta^2=\\xi(\\xi-\\lambda r_1')(\\xi-\\lambda r_2')$; here $\\lambda=-2e$, and it is a point of $E_1$. In the third case, $X(X-\\rho)(X-\\tau)=e(3dqa_1a_2)^2$. Under the 2-descent map $\\delta(\\xi,\\eta)=(\\xi,\\xi-r_1)$ (roots $0,r_1,r_2$), the classes of these points are $(2e,6)$ on $E_1$ and $(-e,3d)$ on $E_2$.\n\n\\paragraph{Step 6: rank.}\n\\begin{lem}\\label{lem:1.2.6-rank}\nThe ranks of $E_0,E_1,E_2$ over $K$ are $0,1,1$, and their torsion subgroups are $E_i[2]$. For $P_1=(18e,72)\\in E_1(K)$ and $P_2=(1-2e,5-5e)\\in E_2(K)$, the subgroup $\\langle P_i,E_i[2]\\rangle$ has odd index. The points obtained in Step 5 lie in $P_1+2E_1(K)$ on $E_1$, and in $T_0+2E_2(K)$ on $E_2$ ($T_0=(0,0)$).\n\\end{lem}\n\\begin{proof}\nWe use the complete 2-descent of \\cite{Simon02,Silverman09}. The differences of the roots are supported only above 2, 3, 5, so the candidates are the $32^2=1024$ pairs of classes of $(-1,e,2,3,d)$. The local images have dimensions $4,2,2$ at 2, 3, 5. At 3 and 5, the classes of the two torsion points span the local image. At 2, we add 2-adic points with the following $\\xi$: $-1-e$, $-4+4e$ on $E_0$; $-2-e$, $1+e$ on $E_1$; $e$, $1-2e$ on $E_2$. At each of these points the valuation of the right-hand side is even and the normalized unit is a square modulo 8, so by Hensel's lemma they are genuine local points. Imposing the conditions at 2, 3, 5 and at the two real places in turn, the numbers of remaining candidates are $64,16,4,4,4$ for $E_0$, and $64,16,8,8,8$ for $E_1$ and $E_2$. The remaining candidates are generated by the classes of the torsion points and of $P_1$, $P_2$ (\\code{1.2.6d}). Since $\\dim E_i(K)[2]=2$, the ranks are $0,1,1$. Also $\\langle P_i,E_i[2]\\rangle+2E_i(K)=E_i(K)$, so multiplication by 2 is surjective on the finitely generated abelian group $E_i(K)/\\langle P_i,E_i[2]\\rangle$, which is therefore finite of odd order.\n\nTorsion: at the two prime ideals above 11, the orders of the reduced groups are $(8,12)$ for $E_0,E_1$ and $(12,16)$ for $E_2$; above 19 they are $(16,12)$, $(16,28)$, $(28,24)$. By \\cite[Appendix]{Katz81}, the order of the prime-to-11 part of the torsion divides $\\gcd(8,12)=\\gcd(12,16)=4$, and since the orders above 19 are not multiples of 11, the 11-part is trivial. Hence the torsion is $E_i[2]$ (\\code{1.2.6d}).\n\nOn $E_1$ the root is $r_1=-2e\\rho=18e-24$, so $\\delta(P_1)=(18e,24)=(2e\\cdot3^2,\\,6\\cdot2^2)\\equiv(2e,6)$. On $E_2$ we have $r_1=e\\rho$, $r_2=e\\tau$, and $\\delta(T_0)=(r_1r_2,-r_1)=\\big((-e)(3d/e)^2,\\,3d(e-1)^2\\big)\\equiv(-e,3d)$. The kernel of $\\delta$ is $2E_i(K)$, so the last claim follows.\n\\end{proof}\n\nThe case $\\sigma=1$ does not occur, because $E_0(K)=E_0[2]$ and none of the $\\xi$-coordinates $0,\\rho,-\\tau$ of the torsion points lies in $\\Q^\\times$.\n\n\\paragraph{Step 7: coset sieve.}\n\\begin{lem}\\label{lem:1.2.6-sieve}\nThe points of $E_1$ from Step 5 have $X\\equiv-9\\pmod{89}$ and map to $\\pm P_1$ in the two reductions above 89. The points of $E_2$ have $X\\equiv0\\pmod{11}$ and map to $T_0$ in the two reductions above 11.\n\\end{lem}\n\\begin{proof}\nThe roots of $e^2-e-1$ are $10,80$ modulo 89 and $4,8$ modulo 11. Let $H_i$ be the subgroup of the product of the two reductions generated by the images of $P_i$ and $E_i[2]$. For $E_1$, the two reduced groups above 89 have orders $80,96$, and $|H_1|=480$ (index 16); for $E_2$, the orders above 11 are $12,16$, and $|H_2|=96$ (index 2). Since these indices are powers of 2 and the global index is odd, the image of $E_i(K)$ under reduction is $H_i$. Therefore the reductions of the cosets of Lemma~\\ref{lem:1.2.6-rank} are $P_1+2H_1$ (60 elements) and $T_0+2H_2$ (12 elements).\n\nThe $\\xi$-coordinate of the point is $\\lambda_iX$ ($\\lambda_1=-2e$, $\\lambda_2=e$, $X\\in\\Q$). Testing all residues $X$ and all signs of $\\eta$ at the two embeddings, the only ones that land in the coset are $X\\equiv80\\equiv-9$ with the points $((2,72),(16,72))$ or $((2,17),(16,17))$, that is, $\\pm P_1$, on $E_1$, and $X\\equiv0$ with the point $(T_0,T_0)$ on $E_2$ (\\code{1.2.6e}). Since $\\lambda_i$ is a unit, if $X$ is a pole then the point maps to $(O,O)$, which lies in neither coset. Therefore $X$ is integral at the prime in question.\n\\end{proof}\n\n\\paragraph{Step 8: elliptic Chabauty.}\n\\begin{lem}\\label{lem:1.2.6-chab}\nThe only point from Step 5 on $E_1$ is the one with $X=-9$, and there is none on $E_2$.\n\\end{lem}\n\\begin{proof}\nWe apply Proposition~\\ref{thm:G} with $\\omega=d\\xi/(2\\eta)$ and $p=89$ ($E_1$), $p=11$ ($E_2$). The two $p$-adic embeddings give a logarithm $\\log:E_i(K)\\to\\Q_p^2$, and since the rank is 1, its image is generated by $\\log P_i$. Put $\\ell_i=\\log(P_i)/p$ and $c_i=((\\ell_i)_2,-(\\ell_i)_1)$; then $c_i$ kills the logarithms of all global points. Multiplying $P_i$ by its finite orders $n$ ($20,24$ at 89, $6,8$ at 11) to bring it into the formal group, and computing $t=-x_{\\rm short}/\\eta$ modulo $p^3$ ($\\log=t+O(t^3)$), we get\n\\[\n\\begin{gathered}\n\\ell_1\\equiv(2490,2948)\\pmod{89^2},\\quad c_1\\equiv(11,2)\\pmod{89},\\\\\n\\ell_2\\equiv(117,76)\\pmod{11^2},\\quad c_2\\equiv(10,4)\\pmod{11}\n\\end{gathered}\n\\]\n(\\code{1.2.6f}). The $c_i$ are primitive.\n\n$E_1$: by Step 7, the centers of the disks are $\\pm P_1$, and $T=X+9\\in89\\Z_{89}$. The pullback of $\\omega$ is $\\lambda_1\\,dX/(\\pm144)$, and its coefficients for the positive sign at the two embeddings are $(32,78)$ modulo 89. The dot product with $c_1$ is $63$ or $26$, a unit. Since $\\eta\\equiv\\pm72$ is a unit, the map and the differential have integral coefficients on the disk.\n\n$E_2$: here $X=-q^2$ with $q\\in11\\Z_{11}$, and the point maps to $T_0$ in both reductions. Resolving this double contact by $\\xi=-eq^2$, $\\eta=qW$, we get\n\\[\nW^2=-e^3(q^2+\\rho)(q^2+\\tau)=45-(12+6e)q^2-(1+2e)q^4.\n\\]\nThe square roots of 45 modulo 11 are $\\pm1$, and we allow all four combinations of signs at the two embeddings. The pullback is $\\omega=-(e/W)\\,dq$, and for the sign combinations $(1,1),(1,-1),(-1,1),(-1,-1)$ of $W$ its dot products with $c_2$ are $5,3,8,6$, all units (\\code{1.2.6f}). Since $2W$ is a unit, each branch is an analytic function with integral coefficients, and the center is $T_0$, whose logarithm is 0.\n\nOn every disk the annihilating logarithm has the form $L(T)=vT+\\sum_{n\\ge2}a_{n-1}T^n/n$ ($v\\in\\Z_p^\\times$, $a_i\\in\\Z_p$, $T\\in p\\Z_p$), and it vanishes at the center and at all global points. If $T\\ne0$, then $v_p(a_{n-1}T^n/n)\\ge nv_p(T)-v_p(n)>v_p(T)$, so $L(T)\\ne0$. Hence on $E_1$ only $X=-9$ remains, and on $E_2$ only $q=0$ remains, which contradicts $X\\ne0$.\n\\end{proof}\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.2.6}]\nIf there is a rational point with $X=\\sigma q^2\\ne0$, then by Lemma~\\ref{lem:1.2.6-pointwise} it gives a point on one of $E_0,E_1,E_2$. The case $\\sigma=1$ ($E_0$) was eliminated at the end of Step 6, and $E_2$ is eliminated by Lemma~\\ref{lem:1.2.6-chab}. What remains is $X=-9$ on $E_1$, and $f(-9)=46656=216^2$.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.2.6}]\nIf $z=0$, then the solution is $(-1,\\pm1,0)$ by Lemma~\\ref{lem:1.2.6-basic}. If $z\\ne0$, then the point $(u,r,s)$ of Lemma~\\ref{lem:1.2.6-quartic} has $s\\ne0$, and it is primitive since $\\gcd(r,s)=1$. By Lemma~\\ref{lem:1.2.6-sqrt5} and Proposition~\\ref{prop:1.2.6}, $X=-9$ and $(u,r,s)=(1,2,1)$. Substituting gives $x=11$, $y=\\pm(16-45)=\\mp29$, $z=\\pm2(5+120+144)=\\pm538$. The equation is invariant under $y\\mapsto-y$ and $z\\mapsto-z$, so all four sign combinations are solutions, and all of them are primitive.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^5+y^4+3z^2=0$ \\ ($H=60$)}{x^5+y^4+3z^2=0 (H=60)}}\\label{sec:1.2.7}\n\n\\begin{thm}\\label{thm:1.2.7}\nThe only primitive integer solutions ($\\gcd(x,y,z)=1$) of $x^5+y^4+3z^2=0$ are $(x,y,z)=(-1,1,0),\\ (-1,-1,0)$.\n\\end{thm}\n\n\\paragraph{Setup.} Put $n=-x$. Then the equation becomes\n\\[\ny^4+3z^2=n^5.\n\\]\nThe proof has three steps. A fifth-power descent in the Eisenstein integers leads to the plane quartic curve $u^4=r^4+15r^2s^2+45s^4$ (Step 1). A fourth-power descent over $\\Q(\\sqrt5)$ leads to rational points with $X\\ne0$ on the genus 2 curve\n\\[\n\\mathcal H:\\quad Y^2=f(X):=X(X^2-30X+45)(X^2-45)\n\\]\n(Step 2). Finally, we show $J(\\Q)\\cong(\\Z/2)^2$ for the Jacobian $J$ of $\\mathcal H$, which gives $\\mathcal H(\\Q)=\\{\\infty,(0,0)\\}$ (Step 3).\n\n\\paragraph{Step 1: descent in the Eisenstein integers.}\n\\begin{lem}\\label{lem:1.2.7-basic}\nFor a primitive solution, $n>0$ and $n,y,z$ are pairwise coprime. Moreover, $3\\nmid ny$, the parities of $y$ and $z$ differ, and $n$ is odd. Also $y\\ne0$, and if $z=0$ then $n=1$, $y=\\pm1$.\n\\end{lem}\n\\begin{proof}\nIf $n\\le0$, then $y=z=0$ and $n=0$, contradicting primitivity. If a prime $p$ divides $n$ and $y$, then $p\\mid3z^2$. If $p\\ne3$, then $p\\mid z$. If $p=3$, then $3^4\\mid n^5-y^4=3z^2$, so again $3\\mid z$. If $p\\mid n,z$, then $p\\mid y^4$, and if $p\\mid y,z$, then $p\\mid n^5$. Hence they are pairwise coprime. Modulo 3, $3\\mid n$ implies $3\\mid y$, and $3\\mid y$ implies $3\\mid n$, so $3\\nmid ny$. If $y,z$ are both odd, then $y^4+3z^2\\equiv4\\pmod8$, so $v_2(n^5)=2$, which is not a multiple of 5. Therefore the parities differ and $n$ is odd. If $y=0$, then $3z^2=n^5$ gives $3\\mid n$, a contradiction. If $z=0$, then $y^4=n^5$ and $\\gcd(n,y)=1$, so $n=1$, $y=\\pm1$.\n\\end{proof}\n\nLet $d_0=\\sqrt{-3}$, $\\omega=(-1+d_0)/2$, and put\n\\[\nF(a,b)=a^4-30a^2b^2+45b^4.\n\\]\n\n\\begin{lem}\\label{lem:1.2.7-eis}\nFor every primitive solution there exist coprime integers $a,b$ of different parity ($3\\nmid a$) such that $y^2+zd_0=(a+bd_0)^5$. Hence\n\\[\nn=a^2+3b^2,\\qquad y^2=a\\,F(a,b),\\qquad z=b(5a^4-30a^2b^2+9b^4).\n\\]\n\\end{lem}\n\\begin{proof}\n$\\Z[\\omega]$ is norm-Euclidean (rounding the two coefficients gives a remainder of norm at most $3/4$). The product of $y^2\\pm zd_0$ is $n^5$. A common prime factor of the two factors divides $2y^2$ and $2zd_0$; since the norm $n^5$ is coprime to 6, it would divide both $y$ and $z$, a contradiction. Hence the two factors are coprime, and since all six units are fifth powers of units, $y^2+zd_0=\\gamma^5$ ($\\gamma\\in\\Z[\\omega]$). In $\\Z[\\omega]/2\\Z[\\omega]\\cong\\F_4$ we have $y^2+zd_0\\equiv y^2+z\\equiv1$, and $\\F_4^\\times$ has order 3, so $\\gamma^5=\\gamma^2=1$ gives $\\gamma\\equiv1\\pmod2$. That is, the $\\omega$-coefficient of $\\gamma$ is even, $\\gamma=a+bd_0$ ($a,b\\in\\Z$), and $a+b$ is odd. A common prime factor of $a,b$ divides $y^2$ and $z$, so $\\gcd(a,b)=1$. Comparing norms gives $n=a^2+3b^2$, and since $3\\nmid n$, $3\\nmid a$. The last two formulas come from expanding $(a+bd_0)^5$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.2.7-square}\nIn Lemma~\\ref{lem:1.2.7-eis}, $a=u^2$ and $F(u^2,b)=c^2$, with $\\gcd(u,b)=\\gcd(u,15)=1$. Moreover, $u,c$ are odd and $b$ is even.\n\\end{lem}\n\\begin{proof}\nSince $y\\ne0$, $F\\ne0$. A common prime factor of $a$ and $F$ divides $45b^4$, and since $\\gcd(a,b)=1$ and $3\\nmid a$, it can only be 5.\n\nIf $5\\nmid a$, then $\\gcd(a,F)=1$ and $aF=y^2$, so $a=\\pm u^2$, $F=\\pm c^2$ (same sign). Since $F\\equiv a^4\\equiv1\\pmod3$, $F=-c^2$ is impossible, and $a=u^2$.\n\nWe rule out the case $5\\mid a$. In this case $v_5(F)=v_5(45b^4)=1$, so $a=\\pm5u^2$, $F=\\pm5c^2$ (same sign). Since $F\\equiv1\\pmod3$ and $5c^2\\equiv2c^2\\not\\equiv1\\pmod3$, the sign is negative:\n\\[\na=-5u^2,\\qquad F=-5c^2 .\n\\]\nWe compare these two equations modulo 16. If $a$ is odd, then $b$ is even, $45b^4\\equiv0$, $a^4\\equiv1$, and $30a^2b^2\\equiv0$ or $8\\pmod{16}$, so $F\\equiv1$ or $9$. If $a$ is even, then $u$ is even by $a=-5u^2$, so $4\\mid a$; and $b$ is odd, so $F\\equiv45b^4\\equiv13\\pmod{16}$. Hence $F\\bmod16\\in\\{1,9,13\\}$. On the other hand, $c^2\\bmod16\\in\\{0,1,4,9\\}$, so $-5c^2\\bmod16\\in\\{0,3,11,12\\}$. The two sets are disjoint, so this case does not occur (\\code{1.2.7a}).\n\nTherefore $a=u^2$, $c^2=u^8-30u^4b^2+45b^4$, $\\gcd(u,b)=1$ and $\\gcd(u,15)=1$. If $u$ is even, then $b$ is odd and $c^2\\equiv45\\equiv13\\pmod{16}$, a contradiction. Hence $u$ is odd, $b$ is even and $c$ is odd.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.2.7-quartic}\nIf there is a primitive solution with $z\\ne0$, then there are integers $u,r,s$ with $\\gcd(r,s)=1$ and $urs\\ne0$ satisfying\n\\[\n\\mathcal C:\\quad u^4=r^4+15r^2s^2+45s^4 .\n\\]\n\\end{lem}\n\\begin{proof}\nIf $z\\ne0$, then $b\\ne0$. For $u,b,c$ as in Lemma~\\ref{lem:1.2.7-square},\n\\[\nm=\\frac{u^4-15b^2+c}{2},\\qquad k=\\frac{u^4-15b^2-c}{2}\n\\]\nare integers with $mk=45b^4$ and $m+k=u^4-15b^2$. A common prime factor of $m,k$ divides $45b^4$ and $u^4-15b^2$; if it is a prime factor of $b$ it also divides $u$, and if it is 3 or 5 it divides $u$, so this is impossible. Hence $m,k$ are coprime. Distributing the fourth powers, up to swapping $m$ and $k$, $\\{m,k\\}$ is $\\{\\pm r^4,\\pm45s^4\\}$ or $\\{\\pm9r^4,\\pm5s^4\\}$ (same sign, $|b|=rs$, $\\gcd(r,s)=1$). Since $m+k\\equiv u^4\\equiv1\\pmod3$, only $(r^4,45s^4)$ and $(-9r^4,-5s^4)$ remain. In the latter case, after renaming $r,s$, we get $u^4=-5r^4+15r^2s^2-9s^4$, and since exactly one of $r,s$ is even, the right-hand side is one of $3,7,11$ modulo 16. This contradicts $u^4\\equiv1\\pmod{16}$ (\\code{1.2.7a}). In the former case, $r^4+45s^4=u^4-15r^2s^2$ is exactly $\\mathcal C$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.2.7-props}\nEvery primitive integral point ($\\gcd(u,r,s)=1$) of $\\mathcal C$ satisfies $\\gcd(r,s)=1$, $\\gcd(ur,30)=1$ and $4\\mid s$.\n\\end{lem}\n\\begin{proof}\nA common prime factor of $r,s$ also divides $u$, so $\\gcd(r,s)=1$. Modulo 16, the right-hand side is $5$ or $13$ if $r,s$ are both odd, $9$ or $13$ if $r$ is even, $13$ if $r$ is odd and $s\\equiv2\\pmod4$, and $1$ if $r$ is odd and $4\\mid s$ (\\code{1.2.7a}). Fourth powers are 0 or 1 modulo 16, so $u,r$ are odd and $4\\mid s$. If $3\\mid u$, then modulo 3 we get $3\\mid r$ and $3\\nmid s$, and the 3-adic valuation of the right-hand side is exactly 2, so it is not a fourth power. If $5\\mid u$, then in the same way the 5-adic valuation of the right-hand side is exactly 1. If $3\\mid r$ or $5\\mid r$, then, modulo 3 or 5, $u$ is also divisible by that prime, which gives the contradiction just seen.\n\\end{proof}\n\n\\paragraph{Step 2: descent over $\\Q(\\sqrt5)$.} Let $K=\\Q(d)$, $d=\\sqrt5$, $e=(1+d)/2$. Then $\\mathcal O_K=\\Z[e]$, and since the Minkowski bound is $\\sqrt5/2<2$, $h_K=1$. The unit group is $\\{\\pm e^j\\}$ (if there were a unit $\\rho$ with $1<\\rho0$ such that $x=\\varepsilon a^4$ and $N(y-\\alpha x)=\\varepsilon b^4$. Moreover, there exist $s=\\pm1$, $0\\le k\\le3$ and $\\beta\\in\\mathcal O_F$ such that\n\\[\ny-\\alpha x=\\delta\\beta^4,\\qquad \\delta=s\\alpha^k,\\qquad \\varepsilon=N(\\delta)=s(-1)^k.\n\\]\nIn particular, $t=y/x\\in\\Q$ and $Y=b/(a^2\\beta)\\in F^\\times$ satisfy\n\\[\nY^4=(-\\alpha)^k\\,g(t).\n\\]\n\\end{lem}\n\\begin{proof}\nThe equation is $z^4=x(x^3+x^2y+y^3)=x\\,N(y-\\alpha x)$, and $\\gcd(x,N(y-\\alpha x))=\\gcd(x,y^3)=1$. Since $z\\ne0$, the two factors are coprime integers of the same sign, hence $x=\\varepsilon a^4$ and $N(y-\\alpha x)=\\varepsilon b^4$.\n\nWe show that $(y-\\alpha x)$ is the fourth power of an ideal. If a prime ideal $\\mathfrak R$ divides both $y-\\alpha x$ and $G(x,y)$, then $\\mathfrak R\\nmid x$ (if $\\mathfrak R\\mid x$, then $\\mathfrak R\\mid y$, contradicting $\\gcd(x,y)=1$). But $G(x,y)\\equiv G(x,\\alpha x)=Ax^2\\pmod{y-\\alpha x}$, so $\\mathfrak R\\mid A$, that is, $\\mathfrak R=\\mathfrak P$. Hence, if $\\mathfrak R\\ne\\mathfrak P$, then $v_{\\mathfrak R}(y-\\alpha x)=v_{\\mathfrak R}(N(y-\\alpha x))=4v_{\\mathfrak R}(b)\\equiv0\\pmod 4$. Since $\\mathfrak P$ and $\\mathfrak Q$ have degree 1, $v_{\\mathfrak P}(y-\\alpha x)=4v_{31}(b)-v_{\\mathfrak Q}(y-\\alpha x)\\equiv0\\pmod4$. Since $h_F=1$, $y-\\alpha x=\\delta\\beta^4$ with $\\delta=s\\alpha^k$, and comparing norms gives $\\varepsilon=N(\\delta)=s(-1)^k$.\n\nSince $x\\ne0$, $t=y/x$ is defined, and $x^2g(t)=G(x,y)=N(y-\\alpha x)/(y-\\alpha x)=\\varepsilon b^4/(\\delta\\beta^4)$. Since $x^2=a^8$, we get $Y^4=b^4/(a^8\\beta^4)=(\\delta/\\varepsilon)g(t)$, and $\\delta/\\varepsilon=\\alpha^k(-1)^k$.\n\\end{proof}\n\n\\paragraph{Step 2: local elimination of $k=2,3$.} The two lemmas below treat the system\n\\[\nx=\\varepsilon a^4,\\qquad y-\\alpha x=\\delta\\beta^4,\\qquad \\gcd(x,y)=1,\\qquad \\varepsilon=N(\\delta)\\tag{$\\ast$}\n\\]\nlocally. The curve $Y^4=(-\\alpha)^kg(t)$ alone is not enough. For example, the curve $Y^4=(\\alpha+1)g(t)$ for $k=3$ has the $F$-point $(t,Y)=(-1,1)$ ($(\\alpha+1)(\\alpha^2-\\alpha+2)=\\alpha^3+\\alpha+2=1$).\n\n\\begin{lem}\\label{lem:1.3.1-k3}\nIf $\\delta=s\\alpha^3$, then $(\\ast)$ has no solution in $\\Z_3$.\n\\end{lem}\n\\begin{proof}\nModulo 3, $T^3+T+1=(T-1)(T^2+T+2)$. The residue field of $\\mathfrak P_1=(3,\\alpha-1)$ is $\\F_3$, and the residue field of $\\mathfrak P_2$, of degree 2, is $\\F_9=\\F_3[\\alpha]$. We have $\\F_9^{\\times4}=\\F_3^\\times$ and $\\varepsilon=-s$. If $3\\mid x$, then $y$ is a unit and $y-\\alpha x\\equiv y\\pmod{\\mathfrak P_2}$, so we would need $y/(s\\alpha^3)\\in\\F_3^\\times$, that is, $\\alpha^3=-\\alpha-1\\in\\F_3$, which is false. If $3\\nmid x$, then $x\\equiv\\varepsilon=-s\\pmod3$. Modulo $\\mathfrak P_2$ we have $y-\\alpha x=\\lambda s\\alpha^3=-\\lambda s(1+\\alpha)$ ($\\lambda\\in\\F_3^\\times$), and comparing the coefficients of $1$ and $\\alpha$ gives $y=-\\lambda s$, $x=\\lambda s$. Hence $\\lambda=-1$ and $y\\equiv s\\pmod3$. Then at $\\mathfrak P_1$ ($\\alpha\\equiv1$) we get $(y-\\alpha x)/\\delta\\equiv(s+s)/s=2\\equiv-1$, which is not a square in $\\F_3$ and so cannot be a fourth power.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.1-k2}\nIf $\\delta=s\\alpha^2$, then $(\\ast)$ has no solution in $\\Z_{13}$.\n\\end{lem}\n\\begin{proof}\nModulo 13, $T^3+T+1=(T-7)(T^2+7T+11)$. The residue field of $\\mathfrak P_1=(13,\\alpha-7)$ is $\\F_{13}$, and that of $\\mathfrak P_2$ is $\\F_{169}$. We have $\\F_{13}^{\\times4}=\\{1,3,9\\}$, and $w\\in\\F_{169}^\\times$ is a fourth power if and only if its norm to $\\F_{13}$ lies in $\\{1,3,9\\}$. At $\\mathfrak P_2$ the norm of $\\alpha$ is 11, and $\\varepsilon=s$.\n\nIf $13\\mid x$, then $y-\\alpha x\\equiv y$ at both prime ideals. At $\\mathfrak P_1$, $y/(10s)\\in\\{1,3,9\\}$, so $y/s$ is a square modulo 13. Taking norms at $\\mathfrak P_2$ gives $(y/s)^2/4\\in\\{1,3,9\\}$, so $y/s\\in\\{2,5,6,7,8,11\\}$, that is, a nonsquare. This is a contradiction.\n\nIf $13\\nmid x$, then $t=y/x\\in\\Z_{13}$ and $t-\\alpha=\\alpha^2(\\beta/a)^4$. Taking norms at $\\mathfrak P_2$ gives $(t^2+7t+11)/4\\in\\{1,3,9\\}$. At $\\mathfrak P_1$, $t\\equiv7$ or $(t-7)/10\\in\\{1,3,9\\}$, so $t\\in\\{4,6,7,11\\}$. For these four values, $(t^2+7t+11)/4\\equiv4,6,11,10$, and none of them lies in $\\{1,3,9\\}$.\n\\end{proof}\n\nThe conclusions of the two lemmas are also confirmed by an exhaustive check over the residue fields (\\code{1.3.1b}). Therefore a solution with $z\\ne0$ and $\\gcd(x,y)=1$ gives, for $t=y/x\\in\\Q$ and $Y\\in F^\\times$, a point on\n\\[\nG_0:\\ Y^4=g(t)\\quad(k=0)\\qquad\\text{or}\\qquad G_1:\\ Y^4=-\\alpha\\,g(t)\\quad(k=1).\n\\]\n\n\\paragraph{Step 3: two elliptic curves.}\n\\begin{lem}\\label{lem:1.3.1-curves}\nSmooth models of $G_0$ and $G_1$ are isomorphic over $F$ to\n\\[\n\\begin{gathered}\nE_0:\\ y^2=x^3+(3\\alpha^2+4)x,\\qquad E_1:\\ y^2=x^3+k_1x,\\\\\nk_1=\\frac{39936\\alpha^2-205568\\alpha+169216}{29791}=(3\\alpha^2+\\alpha+1)\\Big(\\frac{40\\alpha^2-4\\alpha+28}{31}\\Big)^4,\n\\end{gathered}\n\\]\nrespectively. Hence each $F$-point $(t,Y)$ of $G_k$ corresponds to exactly one $R\\in E_k(F)$, with $t(R)=t$. On $E_0$, $t=(3\\alpha^2+4-2\\alpha x-x^2)/(4x)$, and the only poles of this function are $O$ and $T=(0,0)$. On $E_1$, $t=(a_P(x)+b_P(x)y)/c_P(x)$ ($c_P$ monic of degree 4, $\\deg a_P=3$, $\\deg b_P=2$), and the points with $t=0$ are $O$ and\n\\[\nR_1=\\Big(\\frac{264\\alpha^2-324\\alpha-212}{961},\\ \\frac{23104\\alpha^2+33848\\alpha+49008}{29791}\\Big).\n\\]\n\\end{lem}\n\\begin{proof}\n$G_0$: put $U=Y^2$, $m=U-t$, $x=2m-\\alpha$. Then $U^2=g(t)$ gives $t=(3\\alpha^2+4-2\\alpha x-x^2)/(4x)$ and $Y^2=(x^2+3\\alpha^2+4)/(4x)$, hence $(2xY)^2=x^3+(3\\alpha^2+4)x$. Putting $y=2xY$ gives a point of $E_0$.\n\n$G_1$: the conic $U^2=-\\alpha g(t)$ has the point $(t,U)=(0,1)$ ($-\\alpha(\\alpha^2+1)=1$). Parametrizing by lines through this point gives $t=-(\\alpha^2+2m)/(m^2+\\alpha)$, $U=(\\alpha-\\alpha^2m-m^2)/(m^2+\\alpha)$. Then $Y^2=U$ becomes $V^2=(\\alpha-\\alpha^2m-m^2)(m^2+\\alpha)$ ($V=Y(m^2+\\alpha)$), and this quartic takes the square value $(m_0^2+\\alpha)^2$ at $m_0=-\\alpha^2/2$. Substituting $m=m_0+1/s$ and dividing by $(m_0^2+\\alpha)^2$ gives a monic quartic whose $s^2$-coefficient is 0, and the standard Weierstrass map of a monic quartic gives $E_1$. The second expression for $k_1$ shows that $E_1$ is isomorphic to $y^2=x^3+(3\\alpha^2+\\alpha+1)x$.\n\nEach map in the chain is verified by identities in function fields: each map lands on the target curve, and the two compositions are the identity (\\code{1.3.1c}). The function $t$ has degree 4 on $E_0$, $E_1$ and $G_k$, so each map $E_k\\to G_k$ has degree 1; being a birational map between smooth projective curves, it is an isomorphism. The points of $G_1$ with $t=0$ are $(0,\\pm1)$, and they map to $O$ and $R_1$.\n\\end{proof}\n\n\\paragraph{Step 4: Mordell--Weil groups.}\n\\begin{lem}\\label{lem:1.3.1-mw}\nFor $E\\in\\{E_0,E_1\\}$, $E(F)\\cong\\Z\\oplus\\{O,T\\}$. For $P=(-\\alpha,2)\\in E_0(F)$ and $R_1\\in E_1(F)$, the index $[E(F):\\langle P,T\\rangle]$ (or $[E_1(F):\\langle R_1,T\\rangle]$) is prime to 2, 3, 47.\n\\end{lem}\n\\begin{proof}\nRank: in the 2-isogeny descent (\\cite{Simon02,Silverman09}) between $E_A:y^2=x^3+Ax$ and $E'_A:y^2=x^3-4Ax$, we have $2^{\\operatorname{rank}}=|\\operatorname{Im}\\alpha_A|\\,|\\operatorname{Im}\\alpha'_A|/4$, and the two images lie in the Selmer groups. With $S=\\{(2),\\mathfrak Q\\}$, the dimensions of the Selmer groups are $(2,1)$ for $E_0$ ($A=3\\alpha^2+4$) and $(1,2)$ for $E_1$ ($A=3\\alpha^2+\\alpha+1$) (\\code{1.3.1d}). Hence both curves have rank at most 1. On $E_0$, $\\alpha_A(P)=-\\alpha$ and $\\alpha_A(T)=A$ fill $\\operatorname{Sel}(\\alpha)$.\n\nTorsion: $\\#E(\\F_v)=48$ at the three prime ideals above 47, and $\\#E(\\F_v)=68$ at the three prime ideals above 67 (for both curves). By \\cite[Appendix]{Katz81}, the order of the torsion divides $\\gcd(48,68)=4$. Torsion of order 4 occurs only if $A$ or $-A$ is a square in $F$, and this is not the case since $N(3\\alpha^2+4)=31$ and $N(k_1)=2^{24}/31^3$. Hence the torsion is $\\{O,T\\}$, $P$ and $R_1$ have infinite order, and the rank is 1.\n\nIndex: if 2 divides the index, then $P$ or $P+T$ lies in $2E(F)$. But the halving quartic $(x^2-A)^2-4x_R(x^3+Ax)$ has no root in $F$ for $R=P$, $P+T$ (for example, for $P$ on $E_0$ it has no root modulo $(13,\\alpha-7)$, and for $P+T$ none modulo $(23,\\alpha-4)$). For an odd prime $\\ell$: if there is a place $v$ of degree 1 such that $\\ell\\mid N=\\#E(\\F_v)$, $N/\\ell$ is even and $(N/\\ell)\\bar P\\ne O$, then $\\ell$ does not divide the index. For $\\ell=3$ we take $v=(11,\\alpha-2)$, $N=12$, and for $\\ell=47$ we take $v=(1879,\\alpha-342)$, $N=1880$. The same places work for both curves (\\code{1.3.1d}).\n\\end{proof}\n\n\\paragraph{Step 5: Mordell--Weil sieve at 47.}\n\\begin{lem}\\label{lem:1.3.1-sieve}\nIf $R\\in E_k(F)$ and $t(R)\\in\\mathbb P^1(\\Q)$, then there is $R_0$, with $R_0\\in\\{O,T\\}$ on $E_0$ and $R_0\\in\\{O,R_1\\}$ on $E_1$, such that $R-R_0$ reduces to $O$ at all three prime ideals above 47.\n\\end{lem}\n\\begin{proof}\nThe prime 47 splits completely in $F$. At the three places $v_1,v_2,v_3$ we have $\\alpha\\equiv25,34,35$. Both curves have good reduction at the three places, and $\\#E(\\F_{v_j})=48$. The function $t$ is well defined as a function on the reduced curve at each $v_j$; that is, at every reduced point there is an expression for $t$ whose numerator and denominator do not vanish simultaneously (on $E_0$ the formula above works as it is, since $A$ is a 47-adic unit; \\code{1.3.1e}). Therefore, if $t(R)\\in\\mathbb P^1(\\Q)$, the values of $t$ at the three reductions are equal in $\\mathbb P^1(\\F_{47})$.\n\nThe exponent of $\\prod_jE(\\F_{v_j})$ divides 48, and $[E(F):\\langle P,T\\rangle]$ is prime to 48. Hence $\\bar R=n\\bar P+e\\bar T$ ($n\\bmod24$, $e\\in\\{0,1\\}$). The orders of $\\bar P$ are $24,4,12$ on $E_0$ and $24,6,6$ on $E_1$ ($P=R_1$). Among the 48 pairs $(n,e)$, the only ones with three equal $t$-values are $O$ and $T$ ($t=\\infty$) on $E_0$, and $O$ and $R_1$ ($t=0$) on $E_1$ (\\code{1.3.1e}). This is the claim (\\cite{BS10}).\n\\end{proof}\n\n\\paragraph{Step 6: Strassmann argument at 47.}\n\\begin{lem}\\label{lem:1.3.1-strass}\nIn Lemma~\\ref{lem:1.3.1-sieve}, $R=R_0$.\n\\end{lem}\n\\begin{proof}\nLet $Q=24P$. Since the order of $\\bar P$ divides 24 at the three places, $Q$ lies in the group $K_1$ of points that reduce to $O$ at all three places. $K_1$ is infinite cyclic ($T\\notin K_1$), and by Lemma~\\ref{lem:1.3.1-mw}, $[K_1:\\langle Q\\rangle]$ is prime to 47. Therefore $R-R_0=sQ$ with $s\\in\\Z_{(47)}$, and for the three embeddings $\\sigma_j:F\\to\\Q_{47}$ we have $\\sigma_j(R)=\\sigma_j(R_0)+[s]\\sigma_j(Q)$ with the same $s$.\n\nWe use the framework of Proposition~\\ref{thm:G}. Put $f=1/t$ on $E_0$ and $f=t$ on $E_1$, and let $\\lambda_j=\\log z(\\sigma_jQ)$ ($z$ the formal group parameter). A computation gives $v(\\lambda_j)=1$. Put\n\\[\nh(s)=f\\big(\\sigma_1(R_0)+[s]\\sigma_1Q\\big)-f\\big(\\sigma_2(R_0)+[s]\\sigma_2Q\\big)=\\sum_{n\\ge0}a_ns^n.\n\\]\nThen $h(s)=0$ when $t(R)\\in\\Q$. Near $R_0$, $f$ lies in $\\Z_{47}[[z]]$: at $O$ and $T$ on $E_0$ because $A$ is a 47-adic unit, and at $R_1$ on $E_1$ because $R_1$ is 47-adically integral and $c_P(x(R_1))$ is a 47-adic unit. The coefficients $e_n$ of the formal exponential satisfy $n!e_n\\in\\Z_{47}$, so $v(a_n)\\ge n-(n-1)/46$.\n\n$E_0$: $t$ is a function of $x$ alone, so $t(-R)=t(R)$, and $-T=T$. Hence $h(-s)=h(s)$, and since $f(O)=f(T)=0$, $a_0=a_1=0$. A computation gives $v(a_2)=2$, and by the inequality above $v(a_n)>2$ for $n\\ge3$. By Strassmann's theorem, $h$ has at most two zeros in $\\Z_{47}$ counted with multiplicity, and since $s=0$ is a double zero, there are no other zeros.\n\n$E_1$: $a_0=0$, $v(a_1)=1$, and $v(a_n)>1$ for $n\\ge2$. Hence the only zero is $s=0$.\n\nIn both cases $s=0$, that is, $R=R_0$ (\\code{1.3.1f}).\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.3.1}]\nIf $d=\\gcd(x,y)>1$, then $d^4\\mid z^4$, so $(x/d,y/d,z/d)$ is also a solution. Hence we may assume $\\gcd(x,y)=1$. If $z=0$, then $x\\,N(y-\\alpha x)=0$, and since $\\alpha\\notin\\Q$, $N(y-\\alpha x)\\ne0$ when $x\\ne0$. Therefore $x=0$, and the solution is $(0,y,0)$.\n\nIf $z\\ne0$, then by Lemmas~\\ref{lem:1.3.1-descent}, \\ref{lem:1.3.1-k3}, \\ref{lem:1.3.1-k2} we get a point of $G_0$ or $G_1$, and by Lemma~\\ref{lem:1.3.1-curves} there is $R\\in E_k(F)$ with $t(R)=y/x$. By Lemmas~\\ref{lem:1.3.1-sieve} and \\ref{lem:1.3.1-strass}, on $E_0$ we have $R\\in\\{O,T\\}$ and $t(R)=\\infty$, which is impossible since $x=\\varepsilon a^4\\ne0$. On $E_1$ we have $R\\in\\{O,R_1\\}$ and $t=0$, that is, $y=0$, $x=\\pm1$, $z=\\pm1$. Returning to the original solution, we get $(x,0,\\pm x)$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4-y^4+x^2yz+yz^3=0$ \\ ($H=64$)}{x^4-y^4+x^2yz+yz^3=0 (H=64)}}\\label{sec:1.3.2}\n\n\\begin{thm}\\label{thm:1.3.2}\nThe only integer solutions of $x^4-y^4+x^2yz+yz^3=0$ are $(0,0,n)$, $(0,n,n)$, $(n,n,0)$, $(-n,n,0)$ $(n\\in\\Z)$.\n\\end{thm}\n\n\\paragraph{Setup.} Let $C\\subset\\mathbb P^2$ be the projective curve defined by the equation in the theorem. The partial derivatives of $F=x^4-y^4+x^2yz+yz^3$ are\n\\[\nF_x=2x(2x^2+yz),\\qquad F_y=-4y^3+x^2z+z^3,\\qquad F_z=y(x^2+3z^2).\n\\]\n$F_z=0$ gives $y=0$ or $x^2=-3z^2$. If $y=0$, then $F_x=F_y=0$ gives $x=z=0$. If $x^2=-3z^2$, then $F_x=0$ gives $x=0$ (and then $z=0$, $y=0$) or $y=6z$, and in the latter case $F_y=-866z^3=0$. Hence $C$ is a smooth plane quartic curve (genus 3). The points with $xyz=0$ are found directly. If $x=0$, then $y(z^3-y^3)=0$ gives $(0:0:1),(0:1:1)$; if $y=0$, then $x=0$; and if $z=0$, then $x^4=y^4$ gives $(\\pm1:1:0)$. Hence the theorem is equivalent to the statement that there is no rational point with $xyz\\ne0$. Such points lie in the chart $x\\ne0$, so we work with\n\\[\nr=y/x,\\qquad t=z/x,\\qquad F(r,t):=1+rt+rt^3-r^4=0,\\qquad rt\\ne0.\n\\]\n\nThe map $\\iota(x:y:z)=(-x:y:z)$ is an involution of $C$. The Ritzenthaler--Romagny construction of \\cite{Bruin08,RR18} maps the chart $x\\ne0$ into the intersection of the three quadrics in $\\mathbb P^4$ (coordinates $(x_1:x_2:x_3:u:v)$)\n\\begin{equation}\\label{eq:1.3.2-Q}\n\\begin{aligned}\nQ_1&=-x_1x_2-x_2^2-x_1x_3-u^2,\\\\\nQ_2&=-x_2^2-x_1x_3-uv,\\\\\nQ_3&=x_1x_2+2x_2^2+2x_1x_3+x_2x_3-v^2\n\\end{aligned}\n\\end{equation}\nby\n\\[\nV(r,t)=\\bigl(r(t-r):1:r^2+rt+t^2:r:t\\bigr).\n\\]\nIndeed, $Q_1(V)=Q_2(V)=-F$ and $Q_3(V)=2F$. Let $M_i$ be the $5\\times5$ symmetric matrix of $Q_i$, and $M_i'$ its upper left $3\\times3$ block. Then\n\\[\nh(s):=-4\\det(M_1'-2sM_2'+s^2M_3')=6s^6+22s^5+15s^4-14s^3-7s^2+6s-1\n\\]\n(\\code{1.3.2a}), $h=(2s^2+2s-1)(3s^4+8s^3+s^2-4s+1)$, and the two factors are irreducible over $\\Q$. By \\cite{Bruin08,RR18}, the Prym of the cover $C\\to C/\\iota$ is isogenous to the Jacobian of the genus 2 curve\n\\[\nH:\\ \\eta^2=h(s),\\qquad J=\\operatorname{Jac}(H).\n\\]\nLet $D_\\infty$ be the sum of the two points at infinity of $H$ (a rational divisor), and let $\\kappa:J\\to\\mathcal K\\subset\\mathbb P^3$ be the Kummer map. In Kummer coordinates $\\kappa(0)=(0:0:0:1)$, and the first three coordinates of $[(s_1,\\eta_1)+(s_2,\\eta_2)-D_\\infty]$ are $(1:s_1+s_2:s_1s_2)$. The proof below does not use the Prym identification itself. The required map $C\\to J$ is obtained directly in Lemma~\\ref{lem:1.3.2-map} by a computation over the function field.\n\n\\paragraph{Step 1: the map $\\phi:C\\to J$.} At a point $P$ of $C$ ($rt\\ne0$) we take the tangent direction\n\\[\nw=\\frac1{2\\Delta}\\bigl(-N_1,\\ 4r^3-t^3-t,\\ -N_3,\\ 2\\Delta,\\ 0\\bigr),\\qquad \\Delta=r^4-rt^3+1,\n\\]\n\\[\n\\begin{aligned}\nN_1&=2r^4t-3r^2t^3+r^2t+rt^4-rt^2+4r-2t,\\\\\nN_3&=2r^4t+4r^3t^2+3r^2t^3-r^2t+rt^4-rt^2-4r-t^5-t^3-2t.\n\\end{aligned}\n\\]\nThe following hold (\\code{1.3.2c}).\n\\begin{enumerate}[label=(\\roman*)]\n\\item $V^{\\mathsf T}M_iw=0$ ($i=1,2,3$), and the left $3\\times3$ minor of the tangent matrix $(V^{\\mathsf T}M_i)_i$ is $\\Delta/4$.\n\\item On $C$, $\\Delta=rt+2$. If $rt=-2$, then multiplying $F=0$ by $-r^2$ gives $r^6+r^2+8=0$; so $\\Delta\\ne0$ at rational points.\n\\item The fifth coordinate of $w$ is 0 and the fifth coordinate of $V$ is $t\\ne0$, so $w$ is not proportional to $V$.\n\\end{enumerate}\nNow put\n\\[\nq_i=w^{\\mathsf T}M_iw\\quad(i=1,2,3),\\qquad A_P(s)=q_1(P)-2s\\,q_2(P)+s^2q_3(P).\n\\]\nThe $q_i$ are rational functions on $C$ whose denominators are powers of $\\Delta$. If we replace the tangent direction by $aw+bV$ ($a\\ne0$), then, since $V^{\\mathsf T}M_iV=0$ and $V^{\\mathsf T}M_iw=0$, $A_P$ is only multiplied by $a^2$.\n\n\\begin{lem}\\label{lem:1.3.2-map}\nThere is a map $\\phi:C\\to J$ over $\\Q$ with the following properties.\n\\begin{enumerate}[label=(\\alph*)]\n\\item For $P\\in C(\\Q)$ with $rt\\ne0$, $(q_1,q_2,q_3)(P)\\ne(0,0,0)$ and $\\phi(P)=[D_P-D_\\infty]$. Here $D_P$ is an effective divisor of degree 2 on $H$, and its $s$-coordinates are the roots of the quadratic form $A_P$ (if $q_3(P)=0$, one root is $\\infty$).\n\\item For the two quartics $\\Phi_1,\\Phi_2$ given in \\code{1.3.2a}, \\code{1.3.2b}, we have $\\kappa(\\phi(P))\\in\\Gamma:=\\{\\Phi_1=\\Phi_2=0\\}$ for all $P\\in C$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\nWe compute over the function field $K=\\Q(C)$ (\\code{1.3.2b}). At the generic point, $A(s)=q_1-2sq_2+s^2q_3\\in K[s]$ is an irreducible quadratic. There are exactly two elements $\\pm\\phi_K$ of $J(K)$ whose Mumford representation has first polynomial $A/q_3$. Their Kummer images coincide, and the coordinates $(1:2q_2/q_3:q_1/q_3:k_4)$ satisfy $\\Phi_1$, $\\Phi_2$ and the equation of the Kummer surface.\n\nWe choose one $\\phi_K$. Then $\\phi_K\\in J(K)$ is a rational map $C\\dashrightarrow J$ over $\\Q$. Since $C$ is a smooth projective curve and $J$ is a projective variety, it extends to a morphism $\\phi:C\\to J$. For the same reason, an effective divisor of degree 2 over $K$ representing $\\phi_K$ gives a morphism $\\psi:C\\to\\operatorname{Sym}^2H$, and $\\phi(P)=[\\psi(P)-D_\\infty]$. The composition of $\\psi$ with the $s$-projection $\\operatorname{Sym}^2H\\to\\operatorname{Sym}^2\\mathbb P^1=\\mathbb P^2$ is $(q_1:-2q_2:q_3)$ at the generic point. Hence, at points where the three functions are regular and not all zero, it equals their value.\n\n(a) At rational points with $rt\\ne0$ we have $\\Delta\\ne0$, so the $q_i$ are regular. If $q_2(P)=q_3(P)=0$, then the ideal memberships\n\\[\n(r-1)^2(r+1)^2(r^2+1)^2,\\quad t-r^7+r^3\\ \\in\\ \\bigl(F,\\ \\operatorname{num}q_2,\\ \\operatorname{num}q_3\\bigr)\\subset\\Q[r,t]\n\\]\n(\\code{1.3.2c}) give $r=\\pm1$ and $t=r^7-r^3=0$, a contradiction. Hence the $s$-coordinates of $D_P:=\\psi(P)$ are the roots of $A_P$.\n\n(b) $\\Phi_i\\circ\\kappa\\circ\\phi$ is a section of a line bundle on $C$ that vanishes at the generic point, so it is identically 0.\n\\end{proof}\n\n\\paragraph{Step 2: $J(\\Q)$.}\n\\begin{lem}\\label{lem:1.3.2-MW}\n$J(\\Q)=\\langle T\\rangle\\oplus\\langle G\\rangle\\cong\\Z/2\\oplus\\Z$, where, in Mumford representation,\n\\[\nT=\\bigl(s^2+s-\\tfrac12,\\ 0\\bigr),\\qquad G=\\bigl(s^2+2s-1,\\ 2s-1\\bigr).\n\\]\n\\end{lem}\n\\begin{proof}\nSince $h$ is the product of an irreducible quadratic and an irreducible quartic over $\\Q$, $J(\\Q)[2]=\\langle T\\rangle\\cong\\Z/2$. The 2-Selmer group has order 8, and 2 is the only place at which $H$ is deficient. Since the number of deficient places is odd, $\\mathrm{Sha}(J)[2]\\ne0$, and by \\cite{Stoll01,PS97,PS99}, $\\operatorname{rank}J(\\Q)\\le3-1-1=1$. Since $G$ has infinite order, the rank is 1. That the torsion is only $\\langle T\\rangle$ and that $T,G$ generate all of $J(\\Q)$ is proved by a saturation computation using height constants (\\cite{CF96,Stoll99,Stoll02}). All of this is checked separately by \\code{1.3.2a} and \\code{1.3.2d}.\n\\end{proof}\n\n\\paragraph{Step 3: Mordell--Weil sieve.} For $P\\in C(\\Q)$ we write $\\phi(P)=nG+eT$ ($n\\in\\Z$, $e\\in\\{0,1\\}$). By Lemma~\\ref{lem:1.3.2-map}(b), $\\Phi_i(\\kappa(nG+eT))=0$. Kummer coordinates are normalized to primitive integer vectors. $H$ has good reduction at 5, 29, 113.\n\n\\begin{lem}\\label{lem:1.3.2-sieve}\n$e=0$ and $n\\equiv0,\\pm2,\\pm14\\pmod{31}$.\n\\end{lem}\n\\begin{proof}\nReduction is compatible with the group law and with the Kummer map, so $\\kappa(n\\bar G+e\\bar T)\\in\\Gamma(\\F_{29})$ (\\cite{BS10}). The order of $\\bar G\\in J(\\F_{29})$ is 31. Testing all 62 pairs $(n\\bmod31,e)$ leaves only $(0,0),(2,0),(14,0),(17,0),(29,0)$ (\\code{1.3.2a}). Here $17\\equiv-14$ and $29\\equiv-2$. (At $p=5$ the order of $\\bar G$ is also 31, and 13 classes remain. They contain all five classes above, so nothing more is removed.)\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.2-lift}\n$n\\not\\equiv\\pm14\\pmod{31}$.\n\\end{lem}\n\\begin{proof}\nPut $Q=31G$; then $\\bar Q=0$. Let $J^k$ be the kernel of reduction modulo $29^k$. Then $Q\\in J^1$, and $z([29^k]Q)\\equiv29^kz(Q)\\pmod{29^{k+2}}$ from Lemma~\\ref{lem:O} gives $[29^k]Q\\in J^{k+1}$. Hence, if $n\\equiv n'\\pmod{31\\cdot29^k}$, then $nG-n'G\\in J^{k+1}$. Since the Kummer map is defined over $\\Z_{29}$, the primitively normalized vectors $\\kappa(nG)$ and $\\kappa(n'G)$ agree modulo $29^{k+1}$ up to a unit multiple. Therefore $\\Phi_i(\\kappa(n'G))\\equiv0\\pmod{29^{k+1}}$ must hold.\n\n$k=1$: if $n\\equiv14\\pmod{31}$, then among $n'=14+31d$ ($0\\le d\\le28$) only $231$ satisfies this condition. Similarly, from $17$ only $668$ remains. $k=2$: among $231+899d$ ($0\\le d\\le28$) only $18211$ remains, and among $668+899d$ only $7860$ remains (\\code{1.3.2a}). Hence $n\\equiv18211$ or $7860\\pmod{31\\cdot29^2}$, and modulo $29^2$, $n\\equiv550$ or $291$.\n\nAt $p=113$ the order of $\\bar G$ is $6728=2^3\\cdot29^2$. For the 16 classes of $n\\bmod6728$ with $n\\bmod841\\in\\{291,550\\}$, none of the points $\\kappa(n\\bar G)$ lies in $\\Gamma(\\F_{113})$ (\\code{1.3.2a}). This is a contradiction.\n\\end{proof}\n\n\\paragraph{Step 4: 29-adic isolation of the three remaining disks.}\n\\begin{lem}\\label{lem:1.3.2-iso}\n$n\\in\\{0,2,-2\\}$.\n\\end{lem}\n\\begin{proof}\nLet $z=(z_1,z_2)$ be the 29-adic formal group parameter of $J$; then $J^1$ corresponds to $z\\in(29\\Z_{29})^2$. Near the origin, writing the Kummer coordinates as $(\\kappa_1:\\kappa_2:\\kappa_3:1)$, the $\\kappa_j\\in\\Z_{29}[[z]]$ have no constant term. Since $\\kappa\\circ[-1]=\\kappa$ and $[-1]z=-z+O(z^2)$, they have no linear term either. Hence $\\kappa_j=B_j(z)+O(|z|^3)$ ($B_j$ quadratic forms). The primitive Kummer coordinates $(k_1,k_2,k_3,k_4)$ of $Q=31G$ have valuations $(2,2,2,0)$, and $(k_1,k_2,k_3)\\equiv29^2\\cdot(9,10,6)\\pmod{29^3}$ (\\code{1.3.2a}). Therefore $z(Q)=29\\zeta$ with $\\zeta\\in\\Z_{29}^2$, and $B(\\zeta)\\equiv c\\,(9,10,6)\\pmod{29}$ ($c$ a unit).\n\n(a) $n\\equiv0\\pmod{31}$: write $n=31m$, $m=29^eu\\ne0$ ($u$ a unit). By Lemma~\\ref{lem:O}, $z([m]Q)=29^{1+e}(u\\zeta+O(29))$, so\n\\[\n(\\kappa_1,\\kappa_2,\\kappa_3)([m]Q)=29^{2+2e}\\bigl(u^2B(\\zeta)+O(29)\\bigr).\n\\]\nSince $\\Phi_i(k_1,k_2,k_3,1)$ has no terms $k_4^4$, $k_4^3k_j$, its lowest-order part is the quadratic form given by the coefficient of $k_4^2$:\n\\[\nL_1=-336k_1k_2+540k_1k_3-135k_2^2+672k_3^2,\\qquad L_2=-192k_1k_2+388k_1k_3-97k_2^2+384k_3^2.\n\\]\nHence $\\Phi_1(\\kappa([m]Q))=29^{4+4e}\\bigl(u^4c^2L_1(9,10,6)+O(29)\\bigr)$. Since $L_1(9,10,6)\\equiv13\\not\\equiv0\\pmod{29}$ (and $L_2(9,10,6)\\equiv24$), the valuation is $4+4e$, which is finite. That is, if $m\\ne0$, then $\\kappa(nG)\\notin\\Gamma$; so $n=0$.\n\n(b) $n\\equiv2\\pmod{31}$: write $n=2+31m$, $m=29^eu\\ne0$. In the patch $k_1=1$, $\\kappa(2G)\\equiv b=(1,25,2,27)\\pmod{29}$. Translation by $2G$ is an automorphism over $\\Z_{29}$, so for $Y\\in J^1$ we have $\\kappa(2G+Y)=\\kappa(2G)+\\Lambda z(Y)+O(|z(Y)|^2)$ ($\\Lambda$ a matrix over $\\Z_{29}$). From the difference for $m=1$ we get $\\Lambda\\zeta\\equiv d=(0,17,9,15)\\pmod{29}$ (\\code{1.3.2a}). Hence $\\kappa(2G+[m]Q)=\\kappa(2G)+29^{1+e}\\bigl(u\\,d+O(29)\\bigr)$. Since $\\Phi_i(\\kappa(2G))=0$,\n\\[\n\\Phi_i\\bigl(\\kappa(2G+[m]Q)\\bigr)=29^{1+e}\\bigl(u\\,D_d\\Phi_i(b)+O(29)\\bigr),\n\\]\nand since $(D_d\\Phi_1(b),D_d\\Phi_2(b))\\equiv(23,9)\\pmod{29}$, the valuation is $1+e$, which is finite. Hence $n=2$.\n\n(c) If $n\\equiv-2\\pmod{31}$, then $\\kappa(nG)=\\kappa(-nG)$ and $-n\\equiv2\\pmod{31}$, so $-n=2$ by (b).\n\\end{proof}\n\n\\paragraph{Step 5: fibers over the three classes.}\n\\begin{lem}\\label{lem:1.3.2-fib}\nFor $P\\in C(\\Q)$ with $rt\\ne0$, $\\phi(P)\\notin\\{0,2G,-2G\\}$.\n\\end{lem}\n\\begin{proof}\n(a) Suppose $\\phi(P)=\\pm2G$. Since $\\kappa(\\pm2G)=(32:-128:-52:-441)$, the first Mumford polynomial of $\\pm2G$ is $s^2+4s-\\tfrac{13}{8}$. In genus 2, the effective divisor $E$ of degree 2 in a nonzero class $[E-D_\\infty]$ is unique, so $D_P$ of Lemma~\\ref{lem:1.3.2-map}(a) is that divisor. Then $A_P$ is a constant multiple of $s^2+4s-\\tfrac{13}{8}$, and at $P$\n\\[\n2q_2+4q_3=0,\\qquad 8q_1+13q_3=0.\n\\]\nThe lexicographic Gr\u00f6bner basis of the ideal of $\\Q[r,t]$ generated by these two equations (with denominators cleared) and $F$ is\n\\[\nr^4-rt-1,\\qquad (r^2-1)t^2,\\qquad t^3\n\\]\n(\\code{1.3.2e}). Hence $t=0$, contradicting $rt\\ne0$.\n\n(b) Suppose $\\phi(P)=0$. Then $D_P\\sim D_\\infty$. The complete linear system of $D_\\infty$ is the unique $g^1_2$ of $H$, that is, the fibers of $s$, so the $s$-image of $D_P$ is a single point. Hence the discriminant $q_2^2-q_1q_3$ of $A_P$ vanishes at $P$. The resultant with respect to $t$ of $F$ and the numerator of this discriminant is\n\\[\n\\tfrac1{64}\\,r^4(r-1)^4(r+1)^4(r^2+1)^4A_8(r)B_8(r)C_{24}(r),\n\\]\nwhere $A_8$, $B_8$, $C_{24}$ are irreducible polynomials over $\\Q$ of degrees 8, 8, 24 (\\code{1.3.2c}). For example, $A_8=27r^8+16r^6-19r^4-6r^2-1$ and $B_8=28r^8+16r^6-18r^4+2r^2-1$. Therefore $r\\in\\{0,\\pm1\\}$. But $r\\ne0$, and $F(\\pm1,t)=\\pm t(t^2+1)$ gives $t=0$, a contradiction.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.3.2}]\nSuppose there is $P\\in C(\\Q)$ with $xyz\\ne0$. Then $rt\\ne0$. By Lemma~\\ref{lem:1.3.2-MW} we can write $\\phi(P)=nG+eT$. By Lemmas~\\ref{lem:1.3.2-sieve}, \\ref{lem:1.3.2-lift}, \\ref{lem:1.3.2-iso}, $\\phi(P)\\in\\{0,\\pm2G\\}$, which contradicts Lemma~\\ref{lem:1.3.2-fib}. The rational points with $xyz=0$ are the four points found in the setup, and the integer solutions above them are the four forms in the theorem.\n\\end{proof}\nAt $(\\pm1:1:0)$, the tangent quadratic computed with a different tangent direction is proportional to $s^2+4s-\\tfrac{13}{8}$, and the only elements of $J(\\Q)$ with this first polynomial are $\\pm2G$ (\\code{1.3.2a}). So $\\pm2G$ necessarily survive the sieve; they are indeed the images of these two points.\n\n\\subsection{\\texorpdfstring{$x^4+x^2y^2+y^3z-yz^3=0$ \\ ($H=64$)}{x^4+x^2y^2+y^3z-yz^3=0 (H=64)}}\\label{sec:1.3.3}\n\n\\begin{thm}\\label{thm:1.3.3}\nThe only integer solutions of $x^4+x^2y^2+y^3z-yz^3=0$ are $(0,0,n)$, $(0,n,0)$, $(0,n,n)$, $(0,n,-n)$ $(n\\in\\Z)$.\n\\end{thm}\n\n\\paragraph{Setup.} Let $C\\subset\\mathbb P^2$ be the projective curve defined by the equation in the theorem, and put $J_C=\\Jac(C)$. $C$ is a smooth plane quartic curve (\\code{1.3.3a}). Hence it has genus 3 and is not hyperelliptic. The map $\\iota(x:y:z)=(-x:y:z)$ is an involution of $C$. Putting $x^2=X$, we get $(2X+y^2)^2=y^4-4y^3z+4yz^3$, so the quotient curve $E=C/\\langle\\iota\\rangle$ is $W^2=y^4-4y^3z+4yz^3$. $E$ has the rational point $(y:z:W)=(0:1:0)$ and is isomorphic over $\\Q$ to the elliptic curve $Y^2=X^3-16X+16$ of conductor 37. The point $Q_0=(0:0:1)$ is a rational fixed point of $\\iota$. For $P\\in C(\\Q)$ put\n\\[\n\\delta_P=[P-\\iota(P)]\\in J_C(\\Q).\n\\]\nThen $\\delta_P=(1-\\iota_*)[P-Q_0]$, so $\\delta_P$ is a rational point of the Prym variety $\\operatorname{Prym}(C/E)=(1-\\iota_*)J_C$.\n\nIn the form of Ritzenthaler--Romagny,\n\\[\nC:\\ x^4-h_0x^2+f_0g_0=0,\\qquad f_0=yz,\\quad h_0=-y^2,\\quad g_0=y^2-z^2.\n\\]\nThe matrix of coefficients of $(f_0,h_0,g_0)$ with respect to $(y^2,yz,z^2)$ and its inverse are\n\\[\nA=\\begin{pmatrix}0&1&0\\\\-1&0&0\\\\1&0&-1\\end{pmatrix},\\qquad\nA^{-1}=\\begin{pmatrix}0&-1&0\\\\1&0&0\\\\0&-1&-1\\end{pmatrix}.\n\\]\nLet $(a_i,b_i,c_i)$ be the rows of $A^{-1}$, and put $a(s)=a_1+2a_2s+a_3s^2$, and $b(s)$, $c(s)$ in the same way. Then $a=2s$, $b=-(s^2+1)$, $c=-s^2$. By \\cite{Bruin08,RR18}, $\\operatorname{Prym}(C/E)$ is isogenous over $\\Q$ to the Jacobian $J_H$ of\n\\[\nH:\\ \\eta^2=b(b^2-ac)=-(s^2+1)(s^4+2s^3+2s^2+1)\n\\]\n(\\code{1.3.3a}). This identification, including the quadratic twist, is confirmed by $L_p(C)=L_p(E)\\,L_p(H)$ at all good primes $3\\le p\\le79$ (\\code{1.3.3b}).\n\n\\paragraph{Step 1: the rank of the Prym.}\n\\begin{lem}\\label{lem:1.3.3-rank}\n$\\operatorname{rank}J_H(\\Q)=0$. Hence $\\operatorname{Prym}(C/E)(\\Q)$ is finite, and for every $P\\in C(\\Q)$, $\\delta_P$ is a torsion point of $J_C(\\Q)$.\n\\end{lem}\n\\begin{proof}\nThe 2-descent of \\cite{Stoll01,PS97,PS99} gives the upper bound 0 for $\\operatorname{rank}J_H(\\Q)$ (\\code{1.3.3a}: the lower and upper bounds for the rank are both 0). In fact, $J_H(\\Q)=\\langle(s^2+1,\\,0)\\rangle\\cong\\Z/2$ (\\code{1.3.3c}). Isogenies preserve the rank, so $\\operatorname{Prym}(C/E)(\\Q)$ is a finite group, and its element $\\delta_P$ is torsion.\n\\end{proof}\n\n\\paragraph{Step 2: the order of $\\delta_P$.}\n\\begin{lem}\\label{lem:1.3.3-ord}\nFor every $P\\in C(\\Q)$, $2\\delta_P=0$.\n\\end{lem}\n\\begin{proof}\n$C$ has good reduction at 3 and 5, and\n\\[\nJ_C(\\F_3)\\cong\\Z/2\\oplus\\Z/14,\\qquad J_C(\\F_5)\\cong\\Z/2\\oplus\\Z/176\n\\]\n(\\code{1.3.3a}). The orders are $L_3(1)=28$ and $L_5(1)=352$, respectively, where\n\\[\nL_3(T)=1+27T^6,\\qquad L_5(T)=1+4T+15T^2+32T^3+75T^4+100T^5+125T^6.\n\\]\nLet $\\ell$ be a prime dividing the order of $\\delta_P$. By \\cite[Appendix]{Katz81}, if $\\ell\\ne3$ then $\\ell\\mid28$, and if $\\ell\\ne5$ then $\\ell\\mid352$. If $\\ell=3$ we would need $3\\mid352$, and if $\\ell=5$ we would need $5\\mid28$; both are impossible. In the remaining cases $\\ell\\mid\\gcd(28,352)=4$, so $\\ell=2$. Hence the order of $\\delta_P$ is a power of 2, and by \\cite[Appendix]{Katz81} the group generated by $\\delta_P$ maps injectively into $J_C(\\F_3)$. The 2-part of $J_C(\\F_3)$ is $(\\Z/2)^2$, which has exponent 2, so $2\\delta_P=0$.\n\\end{proof}\n\n\\paragraph{Step 3: fixed points.}\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.3.3}]\nLet $P\\in C(\\Q)$ with $P\\ne\\iota(P)$. By Lemma~\\ref{lem:1.3.3-ord}, $2[P-\\iota(P)]=0$. This contradicts \\cite[Section IV.5]{Hartshorne77} ($C$ is a smooth plane quartic curve, so it is not hyperelliptic). Hence $P=\\iota(P)$. The fixed points of $\\iota$ are the points on the line $x=0$ and $(1:0:0)$, and $(1:0:0)$ does not lie on $C$. If $x=0$, then $yz(y-z)(y+z)=0$, so $C(\\Q)$ consists of the four points $(0:0:1)$, $(0:1:0)$, $(0:1:1)$, $(0:-1:1)$. The integer solutions above these four points are the four forms in the theorem.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+y^4+x^2yz-yz^3=0$ \\ ($H=64$)}{x^4+y^4+x^2yz-yz^3=0 (H=64)}}\\label{sec:1.3.4}\n\n\\begin{thm}\\label{thm:1.3.4}\nThe only integer solutions of $x^4+y^4+x^2yz-yz^3=0$ are $(0,0,n)$ and $(0,n,n)$ $(n\\in\\Z)$.\n\\end{thm}\n\n\\paragraph{Setup.} Since the equation is homogeneous, it suffices to determine the rational points of the projective plane quartic curve\n\\[\nC:\\quad X^4+Y^4+X^2YZ-YZ^3=0.\n\\]\n$C$ is smooth (\\code{1.3.4a}). Hence it has genus 3 and, by \\cite[Section IV.5]{Hartshorne77}, it is not hyperelliptic. Theorem~\\ref{thm:1.3.4} follows directly from the next proposition, because a nonzero integer solution gives a rational point of $C$, and the integer solutions above the two points $(0:0:1)$, $(0:1:1)$ are $(0,0,n)$, $(0,n,n)$.\n\n\\begin{prop}\\label{prop:1.3.4}\n$C(\\Q)=\\{(0:0:1),(0:1:1)\\}$.\n\\end{prop}\n\nThe involution $\\iota(X:Y:Z)=(-X:Y:Z)$ preserves $C$. The fixed points of $\\iota$ in the plane are the line $X=0$ and the point $(1:0:0)$, and $(1:0:0)$ does not lie on $C$. In the chart $Y=1$, with $u=X/Y$, $t=Z/Y$, the curve $C$ is $u^4+1+u^2t-t^3=0$. The functions $w=4t$, $v=4(2u^2+t)$ satisfy\n\\[\nv^2-(w^3+w^2-64)=64\\,(u^4+1+u^2t-t^3),\n\\]\nso the quotient curve $E=C/\\iota$ is the elliptic curve $v^2=w^3+w^2-64$ (conductor 431). Let $P_C=\\operatorname{im}(1-\\iota_*)\\subset J_C$ be the Prym variety of the cover $C\\to E$. It is an abelian variety of dimension 2, and $J_C$ is isogenous to $E\\times P_C$.\n\nWriting $C$ in the form $X^4-hX^2+fg=0$, we have $f=Y(Y-Z)$, $h=-YZ$, $g=Y^2+YZ+Z^2$. The matrix whose rows are the coefficients of $(Y^2,YZ,Z^2)$ in $f,h,g$, in this order, and its inverse are\n\\[\nA=\\begin{pmatrix}1&-1&0\\\\0&-1&0\\\\1&1&1\\end{pmatrix},\\qquad\nA^{-1}=\\begin{pmatrix}1&-1&0\\\\0&-1&0\\\\-1&2&1\\end{pmatrix}.\n\\]\nForming $\\alpha_1+2\\alpha_2s+\\alpha_3s^2$ from each column $(\\alpha_1,\\alpha_2,\\alpha_3)^{\\mathsf T}$ of $A^{-1}$ gives, in order, $a(s)=1-s^2$, $b(s)=2s^2-2s-1$, $c(s)=s^2$. By \\cite{Bruin08,RR18}, $P_C$ is isogenous over $\\Q$ to the Jacobian $J_H$ of the genus 2 curve\n\\[\nH:\\quad y^2=f_H(s),\\qquad\n\\begin{aligned}\nf_H&=b(b^2-ac)=10s^6-26s^5+9s^4+18s^3-5s^2-6s-1\\\\\n&=(2s^2-2s-1)(5s^4-8s^3-s^2+4s+1).\n\\end{aligned}\n\\]\nThese polynomial identities are checked by \\code{1.3.4a}. The same code also checks $L_p(C,T)=L_p(E,T)\\,L_p(H,T)$ at the good primes $p=5,7,11$. These finite comparisons check the formula and twist; the isogeny itself follows from the cited construction.\n\nThe proof has three steps. We show $\\operatorname{rank}J_H(\\Q)=0$ (Lemma~\\ref{lem:1.3.4-rank}), show that the torsion of $J_C(\\Q)$ has order at most 2 (Lemma~\\ref{lem:1.3.4-tors}), and use these two facts to show that every rational point is a fixed point of $\\iota$ (Lemma~\\ref{lem:1.3.4-fix}).\n\n\\paragraph{Step 1: the rank of $J_H$.}\n\\begin{lem}\\label{lem:1.3.4-rank}\n$\\operatorname{rank}J_H(\\Q)=0$. Hence $P_C(\\Q)$ is a finite group.\n\\end{lem}\n\\begin{proof}\nLet $D_\\infty$ be the sum of the two points at infinity of $H$ (a rational divisor). For the two roots $\\alpha,\\bar\\alpha$ of $2s^2-2s-1$, the class $T=[(\\alpha,0)+(\\bar\\alpha,0)-D_\\infty]$, with Mumford representation $(s^2-s-\\tfrac12,\\,0)$, is an element of order 2 of $J_H(\\Q)$. Hence $\\dim_{\\F_2}J_H(\\Q)[2]\\ge1$.\n\nThe 2-Selmer group has 4 elements, that is, $\\dim_{\\F_2}\\operatorname{Sel}^{2}(\\Q,J_H)=2$ (\\code{1.3.4b}). Moreover, the only place where $H$ is deficient, that is, where it has no $\\Q_v$-rational divisor of degree 1, is $v=2$ (\\code{1.3.4b}). In particular, $H(\\Q_2)=\\emptyset$, because $f_H(s)\\equiv3,7\\pmod8$ if $s\\in\\Z_2$, and $s^{-6}f_H(s)\\equiv2\\pmod4$ if $s\\notin\\Z_2$. On the other hand, at $\\infty$ there are real points since the leading coefficient is $10>0$, and at the odd bad primes $3$, $431$ there are $\\Q_p$-points. Since the number of deficient places is odd, the Poonen--Stoll version of \\cite{Stoll01,PS97,PS99} gives $\\mathrm{Sha}(J_H)[2]\\ne0$ and\n\\[\n\\dim\\operatorname{Sel}^{2}\\ \\ge\\ \\operatorname{rank}J_H(\\Q)+\\dim J_H(\\Q)[2]+1\\ \\ge\\ \\operatorname{rank}J_H(\\Q)+2.\n\\]\nTherefore $\\operatorname{rank}J_H(\\Q)=0$. Magma's \\texttt{RankBounds} gives the same upper bound $0$ (\\code{1.3.4a}). The rank does not change under isogeny, so $\\operatorname{rank}P_C(\\Q)=0$, and $P_C(\\Q)$ is a finite group.\n\\end{proof}\n\n\\paragraph{Step 2: torsion of $J_C(\\Q)$.}\n\\begin{lem}\\label{lem:1.3.4-tors}\n$J_C(\\Q)_{\\mathrm{tors}}$ has order at most 2. In particular, every torsion element $x\\in J_C(\\Q)$ satisfies $2x=0$.\n\\end{lem}\n\\begin{proof}\n$C$ has good reduction at $5$, $7$, $11$, and the Jacobians of the reductions are\n\\[\nJ_C(\\F_5)\\simeq\\Z/110,\\qquad J_C(\\F_7)\\simeq\\Z/2\\oplus\\Z/140,\\qquad J_C(\\F_{11})\\simeq\\Z/17\\oplus\\Z/68\n\\]\n(\\code{1.3.4a}). Their orders are $110=2\\cdot5\\cdot11$, $280=2^3\\cdot5\\cdot7$, $1156=2^2\\cdot17^2$, respectively. Suppose an odd prime $\\ell$ divides $\\#J_C(\\Q)_{\\mathrm{tors}}$. If $\\ell\\ne5$, then $\\ell\\mid110$ by \\cite[Appendix]{Katz81}, so $\\ell=11$. But $11\\nmid280$, a contradiction at $p=7$. If $\\ell=5$, then $5\\nmid1156$ gives a contradiction at $p=11$. Hence $J_C(\\Q)_{\\mathrm{tors}}$ is a 2-group, and by \\cite[Appendix]{Katz81} it injects into the 2-part $\\Z/2$ of $J_C(\\F_5)$.\n\\end{proof}\n\n\\paragraph{Step 3: rational points are fixed points of $\\iota$.}\n\\begin{lem}\\label{lem:1.3.4-fix}\nFor every $P\\in C(\\Q)$, $\\iota(P)=P$.\n\\end{lem}\n\\begin{proof}\n$Q_0=(0:0:1)\\in C(\\Q)$ is a fixed point of $\\iota$. For $P\\in C(\\Q)$,\n\\[\n\\delta_P=[P-\\iota(P)]=(1-\\iota_*)[P-Q_0]\\in P_C(\\Q).\n\\]\nBy Lemma~\\ref{lem:1.3.4-rank}, $\\delta_P$ is a torsion element, and by Lemma~\\ref{lem:1.3.4-tors}, $2\\delta_P=0$, that is, $2P\\sim2\\iota(P)$. If $P\\ne\\iota(P)$, this contradicts \\cite[Section IV.5]{Hartshorne77}. Hence $P=\\iota(P)$.\n\\end{proof}\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.3.4}]\nBy Lemma~\\ref{lem:1.3.4-fix}, rational points are fixed points of $\\iota$, and since $(1:0:0)\\notin C$, we have $X=0$. Substituting $X=0$ gives\n\\[\nY^4-YZ^3=Y(Y-Z)(Y^2+YZ+Z^2)=0.\n\\]\nSince $Y^2+YZ+Z^2$ has discriminant $-3$, it has no rational root with $(Y,Z)\\ne(0,0)$. The remaining points are $(0:0:1)$ and $(0:1:1)$, and both lie on $C$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4-x^2y^2+y^3z+yz^3=0$ \\ ($H=64$)}{x^4-x^2y^2+y^3z+yz^3=0 (H=64)}}\\label{sec:1.3.5}\n\n\\begin{thm}\\label{thm:1.3.5}\nThe only integer solutions of $x^4-x^2y^2+y^3z+yz^3=0$ are $(0,0,n)$, $(0,n,0)$, $(n,n,0)$, $(-n,n,0)$ $(n\\in\\Z)$.\n\\end{thm}\n\n\\paragraph{Setup.} The projective plane quartic curve\n\\[\nC:\\quad F(X,Y,Z)=X^4-X^2Y^2+Y^3Z+YZ^3=0\n\\]\nis smooth modulo 3 (\\code{1.3.5a}). Hence it is smooth over $\\Q$ as well, has genus 3, and by \\cite[Section IV.5]{Hartshorne77} is not hyperelliptic. Theorem~\\ref{thm:1.3.5} is equivalent to the following proposition.\n\n\\begin{prop}\\label{prop:1.3.5}\n$C(\\Q)=\\{(0:0:1),(0:1:0),(1:1:0),(-1:1:0)\\}$.\n\\end{prop}\n\n\\emph{Involution and Prym model.} Let $\\iota(X:Y:Z)=(-X:Y:Z)$. In the chart $Y=1$, with $r=X/Y$, $t=Z/Y$, $R=r^2$, the curve $C$ is $r^4-r^2+t+t^3=0$, and the quotient curve $E=C/\\iota$ is $R^2-R+t+t^3=0$ (an elliptic curve of conductor 91). Let $P_C=\\operatorname{im}(1-\\iota_*)\\subset J_C$ be the Prym variety of the cover $C\\to E$. $C$ has the form $X^4-hX^2+fg=0$ with $f=YZ$, $h=Y^2$, $g=Y^2+Z^2$. Applying the construction of \\cite{Bruin08,RR18} to these data, we obtain three quadratic forms in $(a,b,c)$\n\\[\nq_1=b^2+ac,\\qquad q_2=ab,\\qquad q_3=-b^2-ac+bc\n\\]\nand the curve $D:\\ q_1=u^2,\\ q_2=uv,\\ q_3=v^2$ in $\\mathbf P^4$. The map\n\\[\n\\pi:\\ C\\to D,\\qquad (X:Y:Z)\\mapsto(a:b:c:u:v)=(YZ:X^2:Y^2+Z^2:XY:XZ)\n\\]\nsatisfies $q_1-u^2=F$, $q_2-uv=0$, $q_3-v^2=-F$, so it indeed maps to $D$. On $X\\ne0$, $\\pi$ is an isomorphism onto its image, and the image lies in the smooth part $U$ of $D$ ($b=X^2\\ne0$; \\cite{Bruin08,RR18}). On $C$, $Y=0$ implies $X=0$, so the points with $X\\ne0$ lie in the chart $Y=1$.\n\nLet $N_i$ be the $3\\times3$ symmetric matrix of $q_i$, and let $M_i$ be the $5\\times5$ symmetric matrices of the three equations $q_1-u^2$, $q_2-uv$, $q_3-v^2$ of $D$. The genus 2 curve is\n\\[\n\\begin{aligned}H:\\quad y^2&=-4\\det(N_1-2sN_2+s^2N_3)\\\\&=-s^6-2s^5+3s^4+2s^3-3s^2+1\\\\&=-(s^2-1)(s^4+2s^3-2s^2+1).\\end{aligned}\n\\]\n(\\code{1.3.5b}), and the prime factors of its discriminant are 2, 7, 13. $D_\\infty$ is the sum of the two points at infinity of $H$ (a rational divisor). At a smooth point $\\mathbf v$ of $D$ (viewed as a vector), the three rows $\\mathbf v^{\\mathsf T}M_i$ have rank 3, and their common kernel $W_{\\mathbf v}$ is a 2-dimensional space containing $\\mathbf v$. For $\\mathbf w\\in W_{\\mathbf v}\\setminus\\Q\\mathbf v$ we call\n\\[\n\\tau_{\\mathbf v}(s)=\\mathbf w^{\\mathsf T}(M_1-2sM_2+s^2M_3)\\,\\mathbf w\n\\]\nthe \\emph{tangent quadratic} at $\\mathbf v$. Since $\\mathbf v^{\\mathsf T}M_i\\mathbf v=\\mathbf v^{\\mathsf T}M_i\\mathbf w=0$, replacing $\\mathbf w$ by $\\alpha\\mathbf w+\\beta\\mathbf v$ only multiplies $\\tau_{\\mathbf v}$ by $\\alpha^2$. In the chart $Y=1$, at the image $\\mathbf v_{\\mathrm{gen}}=(t:R:1+t^2:r:rt)$ of the generic point of $C$, the tangent quadratic is proportional to $A_2s^2+Bs+A_0$, formed from\n\\[\n\\begin{aligned}\nA_2&=-R^4+4R^3t-2R^3-R^2+12Rt^2-4Rt-4R-4t^2,\\\\\nB&=2(3R^2t^2+7R^2+3Rt^2-5R+4t),\\\\\nA_0&=-4R^3t+13R^2t-12Rt^2-Rt+4R+3t^2-1\n\\end{aligned}\n\\]\n(\\code{1.3.5b}).\n\n\\emph{Kummer surface.} Let $\\kappa:J_H\\to K_H\\subset\\mathbf P^3$ be the Kummer map in Cassels--Flynn coordinates $(k_1:k_2:k_3:k_4)$. Then $\\kappa(0)=(0:0:0:1)$, and $\\kappa(x)=\\kappa(y)$ is equivalent to $x=\\pm y$. For an effective divisor $P_1+P_2$, $P_i=(x_i,y_i)$, that is not a hyperelliptic fiber, $\\kappa([P_1+P_2-D_\\infty])=(1:x_1+x_2:x_1x_2:\\ast)$. $\\Phi_1,\\Phi_2\\in\\Z[k_1,\\dots,k_4]$ are the two quartic forms given in \\code{1.3.5b} (28 terms each). In the chart $k_4=1$, $\\Phi_1$ has no constant or linear term, and\n\\[\n\\Phi_1=512k_1k_2-992k_1k_3+248k_2^2+512k_2k_3+(\\text{terms of degree 3 and 4})\n\\]\n(\\code{1.3.5d}).\n\nThe proof goes as follows. We construct a map $\\varphi:C\\to J_H$ over $\\Q$ from the tangent quadratic (Lemma~\\ref{lem:1.3.5-map}), determine $J_H(\\Q)$ (Lemma~\\ref{lem:1.3.5-mw}), and show $\\varphi(C(\\Q))\\subset\\{0,\\pm4G\\}$ by a sieve modulo 3 and 3-adic analysis (Lemma~\\ref{lem:1.3.5-image}). Finally, we determine the two fibers (Lemmas~\\ref{lem:1.3.5-fib4}, \\ref{lem:1.3.5-fib0}).\n\n\\paragraph{Step 1: the map $\\varphi$.}\n\\begin{lem}\\label{lem:1.3.5-map}\nThere is a map $\\varphi:C\\to J_H$ defined over $\\Q$ such that the following hold.\n\\begin{enumerate}[label=(\\roman*)]\n\\item For all $P\\in C$, $\\Phi_1(\\kappa(\\varphi(P)))=\\Phi_2(\\kappa(\\varphi(P)))=0$.\n\\item If $Y(P)\\ne0$ and $(A_2,B,A_0)(P)\\ne(0,0,0)$, then $\\varphi(P)=[D_P-D_\\infty]$. Here $D_P$ is an effective divisor of degree 2 on $H$, and its $x$-image is the zero set in $\\mathbf P^1$ of $A_2(P)s^2+B(P)s+A_0(P)$.\n\\item If $X(P)\\ne0$ and $\\varphi(P)=0$, then $2[P-\\iota(P)]=0$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\nOver the function field $\\Q(C)=\\Q(r,t)$, \\code{1.3.5b} checks the following. The generic point $\\mathbf v_{\\mathrm{gen}}=(t:R:1+t^2:r:rt)$ lies on $D$, and $\\dim W_{\\mathbf v_{\\mathrm{gen}}}=2$. The tangent quadratic has degree 2, is irreducible over $\\Q(C)$, and is proportional to $A_2s^2+Bs+A_0$. There are exactly two points $\\pm\\varphi_{\\mathrm{gen}}$ of $J_H(\\Q(C))$ whose Mumford polynomial is the monic version of this quadratic, and their common Kummer point satisfies $\\Phi_1=\\Phi_2=0$ and $k_2A_2+k_1B=0$, $k_3A_2-k_1A_0=0$.\n\n$\\varphi_{\\mathrm{gen}}\\in J_H(\\Q(C))$ is a rational map $C\\dashrightarrow J_H$ defined over $\\Q$. Since $C$ is a smooth projective curve and $J_H$ is a projective variety, it extends to a morphism $\\varphi:C\\to J_H$. Likewise, the effective divisor of degree 2 determined by the Mumford representation of $\\varphi_{\\mathrm{gen}}$ is a $\\Q(C)$-point of $\\operatorname{Sym}^2H$, and it extends to a morphism $\\psi:C\\to\\operatorname{Sym}^2H$. The two maps $\\varphi$ and $P\\mapsto[\\psi(P)-D_\\infty]$ agree at the generic point, hence everywhere. Put $D_P=\\psi(P)$.\n\n(i) $\\kappa\\circ\\varphi$ is a morphism, and $\\Phi_i\\circ\\kappa\\circ\\varphi$ vanishes at the generic point. Since zero sets are closed, it vanishes on all of $C$.\n\n(ii) The composition of $\\psi$ with $\\operatorname{Sym}^2H\\to\\operatorname{Sym}^2\\mathbf P^1\\simeq\\mathbf P^2$ (the coefficients of the quadratic form of the $x$-image) is a morphism $C\\to\\mathbf P^2$, and it equals $(A_2:B:A_0)$ at the generic point. In the chart $Y\\ne0$, $A_2,B,A_0$ are polynomials in $R,t$, so at points where the three values are not all 0, the value of this morphism is $(A_2(P):B(P):A_0(P))$.\n\n(iii) By \\cite{Bruin08,RR18}, on the smooth part $U$ of $D$ the map given by the tangent construction is $\\lambda\\circ d$. Here $d(Q)=[2\\iota(Q)-2Q]$ is the map to the Prym scheme $P'$ of $D$ (the identity component of the kernel of the norm in $\\operatorname{Pic}^0D$), and $\\lambda:P'\\to J_H$ is an isomorphism over $\\Q$. At the generic point, the value of this map is the class whose Mumford polynomial is the tangent quadratic, so it is $\\pm\\varphi_{\\mathrm{gen}}$. Hence $\\varphi=\\pm\\lambda\\circ d\\circ\\pi$ on $\\pi^{-1}(U)\\supset\\{X\\ne0\\}$. Moreover, the pullback $\\nu:P'\\to P_C\\subset J_C$ under the normalization $C\\to D$ is an isogeny, and $\\nu(d(\\pi(P)))=2[\\iota(P)-P]$. Therefore, if $X(P)\\ne0$ and $\\varphi(P)=0$, then $d(\\pi(P))=0$ and $2[P-\\iota(P)]=0$.\n\\end{proof}\n\n\\paragraph{Step 2: $J_H(\\Q)$.}\n\\begin{lem}\\label{lem:1.3.5-mw}\n$J_H(\\Q)=\\langle T\\rangle\\oplus\\langle G\\rangle\\simeq\\Z/2\\oplus\\Z$, where, in Mumford representation,\n\\[\nT=(s^2-1,\\ 0)=[(1,0)+(-1,0)-D_\\infty],\\qquad G=(s^2+s,\\ -s-1)=[(0,-1)+(-1,0)-D_\\infty],\n\\]\nand $\\kappa(4G)=(32:16:-12:73)$.\n\\end{lem}\n\\begin{proof}\n\\code{1.3.5b} computes this with Magma's \\texttt{MordellWeilGroupGenus2}. The rank upper bound from 2-descent (\\cite{Stoll01,PS97,PS99}) is 1, the torsion subgroup is $\\langle T\\rangle$, and $G$ has infinite order. That $\\langle T,G\\rangle$ is saturated is proved using bounds for the canonical height (\\cite{CF96,Stoll99,Stoll02}), and both proof flags are true. The same code also computes $\\kappa(4G)$.\n\\end{proof}\n\n\\paragraph{Step 3: sieve modulo 3.} $H$ has good reduction at 3. The order of $\\bar G$ in $J_H(\\F_3)$ is 5. Put $S=5G$; then $S$ lies in the kernel $J_1$ of reduction modulo 3.\n\\begin{lem}\\label{lem:1.3.5-sieve}\nIf $P\\in C(\\Q)$ and $\\varphi(P)=eT+nG$ $(e\\in\\{0,1\\},\\ n\\in\\Z)$, then $e=0$ and $n\\equiv0,1,4\\pmod5$. Hence, for some $m\\in\\Z$, $\\kappa(\\varphi(P))=\\kappa([m]S)$ or $\\kappa(\\varphi(P))=\\kappa(4G+[m]S)$.\n\\end{lem}\n\\begin{proof}\nBy Lemma~\\ref{lem:1.3.5-map}(i), the primitive integer coordinates of $\\kappa(\\varphi(P))$ satisfy $\\Phi_1=\\Phi_2=0$, and so do their reductions modulo 3. Reduction modulo 3 commutes with the Kummer map (\\cite{BS10}), so the Kummer point of $\\overline{\\varphi(P)}=e\\bar T+n\\bar G$ must satisfy $\\Phi_1\\equiv\\Phi_2\\equiv0\\pmod3$. Among the 10 classes $e\\bar T+n\\bar G$ $(e\\in\\{0,1\\},\\ 0\\le n<5)$ of $J_H(\\F_3)$, only $(e,n)=(0,0),(0,1),(0,4)$ satisfy this (\\code{1.3.5c}). If $n=5m$, then $\\varphi(P)=[m]S$; if $n=4+5m$, then $\\varphi(P)=4G+[m]S$. If $n=1+5m'$, then $-\\varphi(P)=4G+[-1-m']S$, and $\\kappa(-x)=\\kappa(x)$.\n\\end{proof}\n\n\\paragraph{Step 4: 3-adic analysis.} $J_H$ extends to an abelian scheme over $\\Z_3$, and $J_1$ is identified with $(3\\Z_3)^2$ through the formal group $\\hat F$ with integral formal parameter $z=(z_1,z_2)$. By Lemma~\\ref{lem:O}, the formal logarithm $L$ and its inverse $\\mathrm{Ex}$ are mutually inverse bijections of $(3\\Z_3)^2$ that preserve valuations. Moreover, $L([m]Q)=mL(Q)$ $(m\\in\\Z_3)$, and $\\partial^\\alpha\\mathrm{Ex}(0)\\in\\Z_3^2$ for every multi-index $\\alpha$. The Kummer map also extends over $\\Z_3$ (\\cite{BS10}). So, if $B\\in J_H(\\Q)$ and $k_j$ is a 3-adic unit in the primitive integer coordinates of $\\kappa(B)$, then on the disk $B+J_1$ the function $Q\\mapsto(k_i/k_j)(\\kappa(B+Q))$ is a power series in $z(Q)$ with coefficients in $\\Z_3$. This is because translation by $B$ is an automorphism of the abelian scheme over $\\Z_3$. The next two lemmas hold for any odd prime $p$ and any abelian scheme of dimension $g$ over $\\Z_p$. We use the same symbols $z=(z_1,\\dots,z_g)$, $J_1$, $\\hat F$, $L$, $\\mathrm{Ex}$.\n\n\\begin{lem}[Formal translation]\\label{lem:1.3.5-mahler}\nLet $S\\in J_1(\\Q_p)$, $\\mathcal F\\in\\Z_p[[z]]$, and $f(m)=\\mathcal F(z([m]S))$ $(m\\in\\Z_p)$. Put $a_j=\\sum_{k=0}^{j}(-1)^{j-k}\\binom jk f(k)$. Then $v_p(a_j)\\ge j$, and $f(m)=\\sum_{j\\ge0}a_j\\binom mj$ for all $m\\in\\Z_p$.\n\\end{lem}\n\\begin{proof}\nWe have $z_S=z(S)\\in(p\\Z_p)^g$. In the formal group law $\\hat F(z,w)$, all terms other than $z$ have $w$ as a factor, so $\\hat F(z,z_S)=z+p\\,h(z)$ with $h\\in\\Z_p[[z]]^g$. For $\\mathcal G\\in\\Z_p[[z]]$ put $\\tau\\mathcal G(z)=\\mathcal G(\\hat F(z,z_S))$. In the Taylor expansion\n\\[\n\\tau\\mathcal G-\\mathcal G=\\sum_{\\beta\\ne0}\\frac{\\partial^\\beta\\mathcal G}{\\beta!}(z)\\,p^{|\\beta|}h(z)^\\beta\n\\]\nwe have $\\partial^\\beta\\mathcal G/\\beta!\\in\\Z_p[[z]]$, so $\\tau\\mathcal G-\\mathcal G\\in p\\,\\Z_p[[z]]$. Iterating gives $(\\tau-1)^j\\mathcal F\\in p^j\\Z_p[[z]]$. Since $z([k]S)=\\hat F(z([k-1]S),z_S)$, we have $(\\tau^k\\mathcal F)(0)=f(k)$, and hence $a_j=((\\tau-1)^j\\mathcal F)(0)\\in p^j\\Z_p$. The series $\\sum a_j\\binom mj$ converges in $\\Z_p$ and equals $f(m)$ for $m\\in\\Z_{\\ge0}$ (Newton's forward difference formula). Both sides are continuous in $m$ ($[p^k]S\\to0$), so they agree on all of $\\Z_p$.\n\\end{proof}\n\n\\begin{lem}[Logarithmic coordinates]\\label{lem:1.3.5-log}\nSuppose $\\kappa\\in\\Z_p[[z]]$ satisfies $\\kappa(0)=0$ and $\\kappa\\circ[-1]=\\kappa$. Then $\\kappa(\\mathrm{Ex}(\\ell))=\\sum_{n\\ge2,\\ n\\text{ even}}\\kappa_n(\\ell)$, where $\\kappa_n$ is homogeneous of degree $n$ and its coefficients have valuation at least $-(n-1)/(p-1)$. Hence, if $Q\\in J_1(\\Q_p)$, $\\ell_Q=L(z(Q))$, $m\\in\\Z_p$ and $e=v_p(m)$, then\n\\[\n\\kappa([m]Q)=m^2\\kappa_2(\\ell_Q)+\\varepsilon,\\qquad v_p(\\varepsilon)\\ge4(e+1)-\\frac{3}{p-1}.\n\\]\n\\end{lem}\n\\begin{proof}\nSince $L\\circ[-1]=-L$, we have $\\mathrm{Ex}(-\\ell)=[-1]\\mathrm{Ex}(\\ell)$, so $\\kappa\\circ\\mathrm{Ex}$ is an even function. Since $\\kappa(0)=0$, it has no constant term. By the chain rule and $\\partial^\\alpha\\mathrm{Ex}(0)\\in\\Z_p^g$, we have $\\partial^\\alpha(\\kappa\\circ\\mathrm{Ex})(0)\\in\\Z_p$. Therefore the coefficient of $\\ell^\\alpha$ lies in $\\Z_p/\\alpha!$, and $v_p(\\alpha!)\\le(|\\alpha|-1)/(p-1)$. Since $v_p(\\ell_Q)\\ge1$, the valuation of $L([m]Q)=m\\ell_Q$ is at least $e+1$, and $z([m]Q)=\\mathrm{Ex}(m\\ell_Q)$. The term of degree $n$, $m^n\\kappa_n(\\ell_Q)$, has valuation at least $n(e+1)-(n-1)/(p-1)$. This bound increases with $n$, so all terms with $n\\ge4$ have valuation at least $4(e+1)-3/(p-1)$.\n\\end{proof}\n\nNow we use $\\kappa_i=k_i/k_4$ $(i=1,2,3)$ on the disk of the origin. These functions are $[-1]$-invariant, vanish at the origin, and lie in $\\Z_3[[z]]$.\n\n\\begin{lem}\\label{lem:1.3.5-id}\nIf $m\\in\\Z$ and $\\Phi_1(\\kappa([m]S))=0$, then $m=0$.\n\\end{lem}\n\\begin{proof}\nPut $f(m)=\\Phi_1(\\kappa_1,\\kappa_2,\\kappa_3,1)([m]S)$. Since $\\Phi_1$ has integer coefficients, Lemma~\\ref{lem:1.3.5-mahler} applies.\n\nThe case $3\\nmid m$. By \\code{1.3.5d}, the Mahler coefficients are $a_0=0$, $v_3(a_1)=v_3(a_2)=5$, $v_3(a_3)=7$, $v_3(a_4)=8$, $v_3(a_5)=7$, with $a_1/3^5\\equiv1$ and $a_2/3^5\\equiv2\\pmod3$. For $j\\ge6$, $v_3(a_j)\\ge j\\ge6$. Hence\n\\[\n3^{-5}f(m)\\equiv\\binom m1+2\\binom m2=m^2\\pmod3,\n\\]\nand $f(m)\\ne0$ if $3\\nmid m$.\n\nThe case $m=3^ea$, $e\\ge1$, $3\\nmid a$. We apply Lemma~\\ref{lem:1.3.5-log} with $p=3$ to the $\\kappa_i$, and write $\\kappa_{i,2}$ for the quadratic part of $\\kappa_i\\circ\\mathrm{Ex}$. The error has valuation at least $4e+\\tfrac52$, and hence, since valuations are integers, at least $4e+3$. By \\code{1.3.5d}, the valuations of $\\kappa_1(3S),\\kappa_2(3S),\\kappa_3(3S)$ are $6,5,4$, and dividing them by $3^6,3^5,3^4$, respectively, gives $1$ modulo 3. For $m=3$ the error is a multiple of $3^7$, so $v_3(\\kappa_{i,2}(\\ell_S))=4,3,2$ $(i=1,2,3)$, and the normalized residues are all 1. For general $e\\ge1$ we have $\\kappa_i([m]S)=3^{2e}a^2\\kappa_{i,2}(\\ell_S)+O(3^{4e+3})$, and since $4e+3>2e+4$,\n\\[\nv_3(\\kappa_1)=2e+4,\\quad v_3(\\kappa_2)=2e+3,\\quad v_3(\\kappa_3)=2e+2,\n\\]\nwith normalized residues $a^2\\equiv1$. The numbers $512=2^9$, $992=2^5\\cdot31$, $248=2^3\\cdot31$ are 3-adic units. In the quadratic part of $\\Phi_1$, the valuation of $512\\kappa_2\\kappa_3$ is exactly $4e+5$, those of $992\\kappa_1\\kappa_3$ and $248\\kappa_2^2$ are $4e+6$, and that of $512\\kappa_1\\kappa_2$ is $4e+7$. The terms of degree 3 and higher have valuation at least $3(2e+2)>4e+5$. Hence $v_3(f(m))=4e+5$ and $f(m)\\ne0$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.5-4G}\nIf $m\\in\\Z$ and $\\Phi_1(\\kappa(4G+[m]S))=0$, then $m=0$.\n\\end{lem}\n\\begin{proof}\nIn $\\kappa(4G)=(32:16:-12:73)$ the coordinate $32$ is a 3-adic unit, so we use the chart $k_1=1$ on the whole disk $4G+J_1$. Then Lemma~\\ref{lem:1.3.5-mahler} applies to $h(m)=\\Phi_1(1,k_2/k_1,k_3/k_1,k_4/k_1)(\\kappa(4G+[m]S))$. By \\code{1.3.5d}, the Mahler coefficients satisfy\n\\[\na_0=0,\\qquad 3^{-2}a_1\\equiv2,\\qquad 3^{-2}a_2\\equiv2,\\qquad 3^{-3}a_3\\equiv1\\pmod3,\n\\]\nand $v_3(a_j)\\ge j$ for $j\\ge3$. The Mahler coefficients $b_j=a_j/9$ of $g=h/9$ satisfy $b_1\\equiv b_2\\equiv2\\pmod3$ and $v_3(b_j)\\ge j-2$ $(j\\ge3)$.\n\n(a) Modulo 3, $g(m)\\equiv2\\binom m1+2\\binom m2=m(m+1)$, so $g(m)\\ne0$ if $m\\equiv1\\pmod3$.\n\n(b) Suppose $m\\equiv2\\pmod3$. Choose $r\\in\\{2,5,8\\}$ with $r\\equiv m\\pmod9$. By \\code{1.3.5d}, $v_3(h(r))=3$, that is, $v_3(g(r))=1$. By the Vandermonde identity,\n\\[\ng(m)-g(r)=\\sum_{j\\ge1}b_j\\sum_{i=1}^{j}\\binom{m-r}{i}\\binom{r}{j-i},\n\\]\nand $v_3\\binom{m-r}{i}\\ge2-v_3(i)$. If $j\\le2$, then $v_3(i)=0$, and if $j\\ge3$, then $v_3(b_j)\\ge j-2\\ge v_3(i)$. Hence $g(m)\\equiv g(r)\\not\\equiv0\\pmod9$.\n\n(c) Suppose $m\\equiv0\\pmod3$, $m\\ne0$, and $e=v_3(m)$. Then\n\\[\n\\frac{h(m)}{9m}=\\frac{a_1}{9}+\\frac{a_2}{9}\\cdot\\frac{m-1}{2}+\\frac{a_3}{27}\\cdot\\frac{(m-1)(m-2)}{2}+\\frac1{9m}\\sum_{j\\ge4}a_j\\binom mj.\n\\]\nSince $\\binom mj=\\frac mj\\binom{m-1}{j-1}$, for $j\\ge4$ we have $v_3(a_j\\binom mj)\\ge j+e-v_3(j)\\ge e+3$, so the tail is 0 modulo 3. If $m\\equiv0$, then $(m-1)/2\\equiv1$ and $(m-1)(m-2)/2\\equiv1\\pmod3$, so $h(m)/(9m)\\equiv2+2+1\\equiv2\\pmod3$. Hence $h(m)\\ne0$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.5-image}\nFor every $P\\in C(\\Q)$, $\\varphi(P)\\in\\{0,\\,4G,\\,-4G\\}$.\n\\end{lem}\n\\begin{proof}\nApplying Lemma~\\ref{lem:1.3.5-map}(i) and Lemmas~\\ref{lem:1.3.5-id}, \\ref{lem:1.3.5-4G} to the two cases of Lemma~\\ref{lem:1.3.5-sieve} gives $m=0$. Hence $\\kappa(\\varphi(P))$ is $\\kappa(0)$ or $\\kappa(4G)$, and $\\varphi(P)=0$ or $\\pm4G$.\n\\end{proof}\n\n\\paragraph{Step 5: the two fibers.}\n\\begin{lem}\\label{lem:1.3.5-fib4}\nIf $P\\in C(\\Q)$, $Y(P)\\ne0$ and $\\varphi(P)=\\pm4G$, then $P=(\\pm1:1:0)$.\n\\end{lem}\n\\begin{proof}\nIn the chart $Y\\ne0$ of $C$, the only point with $A_2=B=0$ is $(R,t)=(0,0)$, and there $A_0=-1$ (\\code{1.3.5e}). Therefore, by Lemma~\\ref{lem:1.3.5-map}(ii), $\\varphi(P)=[D_P-D_\\infty]$, and the $x$-image of $D_P$ is the zero set of $A_2(P)s^2+B(P)s+A_0(P)$. Since the class $\\pm4G$ is nonzero, by Riemann--Roch there is only one effective divisor in the class $\\pm4G+[D_\\infty]$. Since $\\kappa(4G)=(32:16:-12:73)$, the two $x$-coordinates of that divisor satisfy $x_1+x_2=\\tfrac12$, $x_1x_2=-\\tfrac38$. That is, the $x$-image is the zero set of $8s^2-4s-3$, and the same holds for $-4G$. Hence $(A_2:B:A_0)(P)=(8:-4:-3)$, that is,\n\\[\n2B+A_2=0,\\qquad 8A_0+3A_2=0\n\\]\nhold at $(R,t)=(r^2,t)$. The Gr\u00f6bner basis of the ideal $(R^2-R+t+t^3,\\ 2B+A_2,\\ 8A_0+3A_2)$ of $\\Q[R,t]$ is $\\{R-1,\\ t\\}$ (\\code{1.3.5e}). Therefore $R=1$, $t=0$, $r=\\pm1$, and $P=(\\pm1:1:0)$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.5-fib0}\nIf $P\\in C(\\Q)$ and $\\varphi(P)=0$, then $X(P)=0$.\n\\end{lem}\n\\begin{proof}\nSuppose $X(P)\\ne0$. By Lemma~\\ref{lem:1.3.5-map}(iii), $2P\\sim2\\iota(P)$. On the other hand, $P\\ne\\iota(P)$, because the only fixed points of $\\iota$ are the line $X=0$ and $(1:0:0)\\notin C$. This contradicts \\cite[Section IV.5]{Hartshorne77}.\n\\end{proof}\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.3.5}]\nLet $P\\in C(\\Q)$. If $X(P)\\ne0$, then $Y(P)\\ne0$, and by Lemma~\\ref{lem:1.3.5-fib0}, $\\varphi(P)\\ne0$. By Lemma~\\ref{lem:1.3.5-image}, $\\varphi(P)=\\pm4G$, and by Lemma~\\ref{lem:1.3.5-fib4}, $P=(\\pm1:1:0)$. If $X(P)=0$, then $YZ(Y^2+Z^2)=0$, so $P=(0:0:1)$ or $(0:1:0)$. All four points lie on $C$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4+x^2y^2+y^3z+z^4=0$ \\ ($H=64$)}{x^4+x^2y^2+y^3z+z^4=0 (H=64)}}\\label{sec:1.3.6}\n\n\\begin{thm}\\label{thm:1.3.6}\nThe only integer solutions of $x^4+x^2y^2+y^3z+z^4=0$ are $(0,n,0)$ and $(0,n,-n)$ $(n\\in\\Z)$.\n\\end{thm}\n\n\\paragraph{Setup.} The projective plane quartic curve\n\\[\nC:\\quad F(X,Y,Z)=X^4+X^2Y^2+Y^3Z+Z^4=0\n\\]\nhas good reduction at $5,7,11,13,47$ (\\code{1.3.6a}). Hence it is smooth over $\\Q$, has genus 3, and by \\cite[Section IV.5]{Hartshorne77} is not hyperelliptic. Theorem~\\ref{thm:1.3.6} is equivalent to the following proposition.\n\n\\begin{prop}\\label{prop:1.3.6}\n$C(\\Q)=\\{(0:1:0),(0:1:-1)\\}$.\n\\end{prop}\n\n\\emph{Involution and Prym model.} The quotient curve $E=C/\\iota$ by $\\iota(X:Y:Z)=(-X:Y:Z)$ is $w^2=Y^4-4Y^3Z-4Z^4$, and it is isomorphic to the elliptic curve $y^2=x^3+16x-64$ (conductor 248). Let $P_C=\\operatorname{im}(1-\\iota_*)\\subset J_C$ be the Prym variety of the cover $C\\to E$. $C$ has the form $X^4-hX^2+fg=0$ with $f=Z(Y+Z)$, $h=-Y^2$, $g=Y^2-YZ+Z^2$. Applying the construction of \\cite{Bruin08,RR18}, we obtain three quadratic forms in $(a,b,c)$\n\\[\nq_1=-(b^2+ac),\\qquad q_2=\\tfrac12(ab-b^2-ac-bc),\\qquad q_3=\\tfrac12(ab+b^2+ac+bc)\n\\]\nand the curve $D:\\ q_1=u^2,\\ q_2=uv,\\ q_3=v^2$ ($\\subset\\mathbf P^4$). The map\n\\[\n\\pi:\\ C\\to D,\\qquad (X:Y:Z)\\mapsto(a:b:c:u:v)=\\bigl(Z(Y+Z):X^2:Y^2-YZ+Z^2:XY:XZ\\bigr)\n\\]\nsatisfies $q_1-u^2=-F$, $q_2-uv=-\\tfrac12F$, $q_3-v^2=\\tfrac12F$, so it maps to $D$. On $X\\ne0$, $\\pi$ is an isomorphism onto its image, and the image lies in the smooth part $U$ of $D$ ($b=X^2\\ne0$; \\cite{Bruin08,RR18}). With $N_i$ the $3\\times3$ symmetric matrix of $q_i$, the genus 2 curve is\n\\[\n\\begin{aligned}H:\\quad y^2&=-16\\det(N_1-2sN_2+s^2N_3)\\\\&=2s^5+6s^4-4s^3-10s^2+12s-4\\\\&=2(s^2+2s-2)(s^3+s^2-2s+1).\\end{aligned}\n\\]\n(\\code{1.3.6a}). The Ritzenthaler--Romagny model $y^2=-\\tfrac12(s^2-2s-2)(s^3-s^2-2s-1)$ of \\cite{Bruin08,RR18} becomes $H$ under $s\\mapsto-s$, $y\\mapsto y/2$. The prime factors of the discriminant of $H$ are 2, 3, 31. $H$ has one point at infinity $\\infty$, and we put $D_\\infty=2\\infty$. \\code{1.3.6a} also checks $L_p(C,T)=L_p(E,T)\\,L_p(H,T)$ at $p=5,7,11,13,47$. The tangent quadratic is defined as in Section~\\ref{sec:1.3.5}, using the $5\\times5$ symmetric matrices $M_i$ of the three equations of $D$.\n\n\\emph{Kummer surface.} $\\kappa:J_H\\to K_H\\subset\\mathbf P^3$ is the Kummer map in Cassels--Flynn coordinates $(k_1:k_2:k_3:k_4)$, and $\\kappa(0)=(0:0:0:1)$. $\\Phi_1,\\Phi_2\\in\\Z[k_1,\\dots,k_4]$ are the two primitive quartic forms printed by \\code{1.3.6a} (28 terms each). In the chart $k_4=1$, neither has a constant or linear term, and their quadratic parts are\n\\[\nQ_1=48k_1^2-4k_1k_3+k_2^2+24k_2k_3,\\qquad Q_2=-48k_1^2+240k_1k_3-60k_2^2-24k_2k_3\n\\]\n(\\code{1.3.6a}).\n\nThe proof goes as in Section~\\ref{sec:1.3.5}. We construct a map $\\varphi:C\\to J_H$, determine $J_H(\\Q)$, show $\\varphi(C(\\Q))=\\{0\\}$ by a sieve modulo 47 and 47-adic analysis, and then determine the zero fiber.\n\n\\paragraph{Step 1: the map $\\varphi$.}\n\\begin{lem}\\label{lem:1.3.6-map}\nThere is a map $\\varphi:C\\to J_H$ defined over $\\Q$ such that the following hold.\n\\begin{enumerate}[label=(\\roman*)]\n\\item For all $P\\in C$, $\\Phi_1(\\kappa(\\varphi(P)))=\\Phi_2(\\kappa(\\varphi(P)))=0$.\n\\item If $X(P)\\ne0$ and $\\varphi(P)=0$, then $2[P-\\iota(P)]=0$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\nOver the function field $\\Q(C)$, \\code{1.3.6a} checks the following. At the image $\\pi(X:Y:Z)$ of the generic point, the tangent quadratic has degree 2 and is irreducible. There are exactly two points $\\pm\\varphi_{\\mathrm{gen}}$ of $J_H(\\Q(C))$ whose Mumford polynomial is its monic version, and their common Kummer point satisfies $\\Phi_1=\\Phi_2=0$. The rest is as in the proof of Lemma~\\ref{lem:1.3.5-map}. $\\varphi_{\\mathrm{gen}}$ extends to a morphism $\\varphi:C\\to J_H$, and (i) holds because a closed condition holds at the generic point. (ii) follows from \\cite{Bruin08,RR18}. On the smooth part of $D$, the map given by the tangent construction is $\\lambda\\circ d$, where $d(Q)=[2\\iota(Q)-2Q]$ is the map to the Prym scheme $P'$ and $\\lambda:P'\\to J_H$ is an isomorphism. Therefore $\\varphi=\\pm\\lambda\\circ d\\circ\\pi$ on $\\{X\\ne0\\}$. The isogeny $\\nu:P'\\to P_C$ given by the normalization sends $d(\\pi(P))$ to $2[\\iota(P)-P]$.\n\\end{proof}\n\n\\paragraph{Step 2: $J_H(\\Q)$.}\n\\begin{lem}\\label{lem:1.3.6-mw}\n$J_H(\\Q)=\\langle T\\rangle\\oplus\\langle G\\rangle\\simeq\\Z/2\\oplus\\Z$, where, in Mumford representation,\n\\[\nT=(s^2+2s-2,\\ 0)=[(\\alpha,0)+(\\bar\\alpha,0)-2\\infty],\\qquad G=(s+\\tfrac52,\\ -\\tfrac94)=[(-\\tfrac52,-\\tfrac94)-\\infty],\n\\]\nand $\\alpha,\\bar\\alpha$ are the two roots of $s^2+2s-2$.\n\\end{lem}\n\\begin{proof}\n\\code{1.3.6a} computes this with Magma. The rank upper bound from 2-descent (\\cite{Stoll01,PS97,PS99}) is 1, and $G$ has infinite order, so the rank is 1. The torsion subgroup is $\\langle T\\rangle\\simeq\\Z/2$. \\texttt{MordellWeilGroupGenus2} proves, using bounds for the canonical height (\\cite{CF96,Stoll99,Stoll02}), that $\\langle T,G\\rangle$ is all of $J_H(\\Q)$, and both proof flags are true.\n\\end{proof}\n\n\\paragraph{Step 3: sieve modulo 47.} $H$ and $C$ have good reduction at 47. In $J_H(\\F_{47})$, $\\bar T$ has order 2 and $\\bar G$ has order 28. Put $R=28G$; then $R$ lies in the kernel $J_1$ of reduction modulo 47.\n\\begin{lem}\\label{lem:1.3.6-sieve}\nFor every $P\\in C(\\Q)$ there is $m\\in\\Z$ such that $\\varphi(P)=[m]R$.\n\\end{lem}\n\\begin{proof}\nWrite $\\varphi(P)=eT+nG$ $(e\\in\\{0,1\\},\\ n\\in\\Z)$. By Lemma~\\ref{lem:1.3.6-map}(i), the primitive integer coordinates of $\\kappa(\\varphi(P))$ satisfy $\\Phi_1=\\Phi_2=0$, and reduction modulo 47 commutes with the Kummer map (\\cite{BS10}). Among the 56 classes $e\\bar T+n\\bar G$ $(e\\in\\{0,1\\},\\ 0\\le n<28)$ of $J_H(\\F_{47})$, the only one whose Kummer point satisfies $\\Phi_1=\\Phi_2=0$ modulo 47 is $(e,n)=(0,0)$ (\\code{1.3.6a}). Hence $e=0$ and $28\\mid n$.\n\\end{proof}\n\n\\paragraph{Step 4: 47-adic analysis.} $J_H$ extends to an abelian scheme over $\\Z_{47}$, and $\\kappa_i=k_i/k_4$ $(i=1,2,3)$ are power series with coefficients in $\\Z_{47}$ in the integral formal parameters on the disk $J_1$ of the origin (\\cite{BS10}). These functions are $[-1]$-invariant and vanish at the origin. By \\code{1.3.6a}, the 47-adic valuations of the primitive integer coordinates of $\\kappa(R)$ are $(2,2,2,0)$, and\n\\[\n\\kappa_i(R)/47^2\\equiv(24,\\,7,\\,1)_i\\pmod{47},\\qquad Q_1(24,7,1)\\equiv39,\\quad Q_2(24,7,1)\\equiv8\\pmod{47}.\n\\]\n\n\\begin{lem}\\label{lem:1.3.6-padic}\nIf $m\\in\\Z$ and $m\\ne0$, then $\\Phi_1(\\kappa([m]R))\\ne0$. More precisely, $v_{47}\\bigl(\\Phi_1(\\kappa_1,\\kappa_2,\\kappa_3,1)([m]R)\\bigr)=4v_{47}(m)+4$.\n\\end{lem}\n\\begin{proof}\nWe apply Lemma~\\ref{lem:1.3.5-log} with $p=47$ to the $\\kappa_i$, and let $\\kappa_{i,2}$ be the quadratic part of $\\kappa_i\\circ\\mathrm{Ex}$. Writing $e=v_{47}(m)$ and $m=47^eu$, the error has valuation at least $4(e+1)-\\tfrac3{46}$, that is, at least $4e+4$. For $m=1$ we have $\\kappa_i(R)=\\kappa_{i,2}(\\ell_R)+O(47^4)$, so $\\kappa_{i,2}(\\ell_R)=47^2(d_i+O(47^2))$ with $(d_1,d_2,d_3)\\equiv(24,7,1)\\pmod{47}$. For general $m$,\n\\[\n\\kappa_i([m]R)=m^2\\kappa_{i,2}(\\ell_R)+O(47^{4e+4})=47^{2e+2}\\bigl(u^2d_i+O(47)\\bigr).\n\\]\nSince $\\Phi_1$ has integer coefficients,\n\\[\n\\Phi_1(\\kappa_1,\\kappa_2,\\kappa_3,1)([m]R)=47^{4e+4}\\bigl(u^4Q_1(d)+O(47)\\bigr)+O(47^{6e+6}).\n\\]\nSince $Q_1(d)\\equiv39\\not\\equiv0\\pmod{47}$ and $6e+6>4e+4$, the valuation is exactly $4e+4$.\n\\end{proof}\n\n\\paragraph{Step 5: the zero fiber.}\n\\begin{lem}\\label{lem:1.3.6-fix}\nFor every $P\\in C(\\Q)$, $X(P)=0$.\n\\end{lem}\n\\begin{proof}\nBy Lemma~\\ref{lem:1.3.6-sieve}, $\\varphi(P)=[m]R$, and by Lemma~\\ref{lem:1.3.6-map}(i) and Lemma~\\ref{lem:1.3.6-padic}, $m=0$, that is, $\\varphi(P)=0$. Suppose $X(P)\\ne0$. By Lemma~\\ref{lem:1.3.6-map}(ii), $2P\\sim2\\iota(P)$. The only fixed points of $\\iota$ are the line $X=0$ and $(1:0:0)\\notin C$, so $P\\ne\\iota(P)$, and this contradicts \\cite[Section IV.5]{Hartshorne77}.\n\\end{proof}\n\n\\begin{proof}[Proof of Proposition~\\ref{prop:1.3.6}]\nBy Lemma~\\ref{lem:1.3.6-fix}, $X=0$. Substituting gives\n\\[\nY^3Z+Z^4=Z(Y+Z)(Y^2-YZ+Z^2)=0.\n\\]\nSince $Y^2-YZ+Z^2$ has discriminant $-3$, it has no rational root with $(Y,Z)\\ne(0,0)$. The remaining points are $(0:1:0)$ and $(0:1:-1)$, and both lie on $C$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^3z+y^3x+y^2z^2-z^3y=0$ \\ ($H=64$)}{x^3z+y^3x+y^2z^2-z^3y=0 (H=64)}}\\label{sec:1.3.7}\n\n\\begin{thm}\\label{thm:1.3.7}\nThe only integer solutions of $x^3z+y^3x+y^2z^2-z^3y=0$ are $(n,0,0)$, $(0,n,0)$, $(0,0,n)$, $(0,n,n)$ $(n\\in\\Z)$.\n\\end{thm}\n\n\\paragraph{Setup.} Let $C\\subset\\mathbb P^2$ be the curve defined by the equation in the theorem, and put $J=\\Jac(C)$. Denote the following rational points by\n\\[\nP_1=(1:0:0),\\quad P_2=(0:1:0),\\quad P_3=(0:0:1),\\quad P_4=(0:1:1),\n\\]\nand set $G=[P_3-P_1]$. Write $F=x^3z+y^3x+y^2z^2-z^3y$. The proof runs as follows. $C$ is a smooth plane quartic with bad primes $2,11,41269$, $J(\\Q)$ is torsion-free and $G$ has infinite order (Step~1). The 28 bitangents of $C$ are conjugate; their field of definition $K$ has degree 28, and their Galois group is $\\operatorname{Sp}_6(\\F_2)$ (Step~2). The descent map of Proposition~\\ref{thm:AB} by the bitangents is then injective, with image in $K(2,S)$ modulo $\\Q^\\times$ (Step~3). The class number of $K$ is odd, proved without GRH with Proposition~\\ref{thm:B} (Step~4), so $K(2,S)$ is spanned by 29 explicit $S$-units (Step~5). The local conditions at 2 and 11 cut the image down to dimension 1, so $\\operatorname{rank}J(\\Q)=1$ (Step~6), and Chabauty--Coleman at $p=3$ shows that each of the four residue disks of $C(\\F_3)$ contains only one rational point (Step~7). Proposition~\\ref{thm:A} does not apply here: no bitangent of $C$ is rational, so $C$ has no rational hyperflex.\n\n\\paragraph{Step 1: the curve.}\n\\begin{lem}\\label{lem:1.3.7-bad}\n$C$ is smooth over $\\Q$, so it has genus 3. The plane model $\\mathcal C=\\{F=0\\}\\subset\\mathbb P^2_\\Z$ is smooth over $\\Z_p$ for every prime $p\\notin\\{2,11,41269\\}$. For $p\\in\\{2,11,41269\\}$ the reduction has exactly one singular point over $\\overline\\F_p$; it is $\\F_p$-rational and an ordinary double point, and $v_p(F)=1$ at an integral lift (\\code{1.3.7a}):\n\\[\n\\begin{array}{c|c|c}\np&\\text{node}&\\text{type}\\\\\\hline\n2&(1:1:1)&\\text{split}\\\\\n11&(1:1:7)&\\text{non-split}\\\\\n41269&(1:12101:2748)&\\text{split}\n\\end{array}\n\\]\nFor $p=11,41269$ the model $\\mathcal C_{\\Z_p}$ is regular with geometrically irreducible special fibre, and the Tamagawa number $c_p(J)$ is 1; at every prime $p\\notin\\{2,11,41269\\}$ also $c_p(J)=1$.\n\\end{lem}\n\\begin{proof}\nIn each of the three affine charts let $R_1,R_2,R_3$ be the resultants, with respect to one variable, of the pairs $(f,f_x)$, $(f,f_y)$, $(f_x,f_y)$ of the dehomogenized polynomial and its partial derivatives, and take the three pairwise resultants of the $R_i$ with respect to the other variable. In each chart some of these integers are 0 (in the charts $z=1$ and $x=1$, $R_1$ and $R_2$ have the common factor $x$, resp.\\ $y^2$), but their greatest common divisor is $2\\cdot11\\cdot41269$. A singular point over $\\overline\\F_p$ in some chart makes $p$ divide all three integers of that chart, and a singular point over $\\overline\\Q$ would make them all 0. At $p=2,11,41269$ the singular points were found from the gcds of $f,f_x,f_y$; there is one, with nonzero discriminant of the quadratic part (\\code{1.3.7a}). At $p=11,41269$, the linear part of $F$ at an integral lift of the node vanishes modulo $p$ and $F(\\text{lift})\\notin p^2\\Z_p$, so $F\\notin\\mathfrak m^2$ and the model is regular there. The special fibre is reduced, and it is geometrically irreducible: two components $C',C''$ would meet only at the node, with $i(C',C'')=\\deg C'\\deg C''\\ge3$ by B\u00e9zout, whereas each contains exactly one of the two branches there, which meet with multiplicity 1. By Raynaud's theorem \\cite[9.6, Theorem~1]{BLR90} the component group of the N\u00e9ron model is trivial.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.7-points}\n(1) The points of $C$ with $xyz=0$ are $P_1,\\dots,P_4$: $F(0,y,z)=yz^2(y-z)$, $F(x,0,z)=x^3z$, $F(x,y,0)=xy^3$.\n(2) $\\operatorname{div}(z)=3P_1+P_2$, $\\operatorname{div}(y)=P_1+3P_3$, $\\operatorname{div}(x)=2P_2+P_3+P_4$. Hence $[P_2-P_1]=3G$ and $[P_4-P_1]=-4G$.\n(3) The numbers $N_k=\\#C(\\F_{p^k})$, the $L$-polynomials and $\\#J(\\F_p)=L_p(1)$ are (\\code{1.3.7a})\n\\[\n\\begin{array}{c|c|l|r}\np&(N_1,N_2,N_3)&L_p(T)&\\#J(\\F_p)\\\\\\hline\n3&(4,10,37)&1+3T^3+27T^6&31\\\\\n5&(6,26,171)&1+15T^3+125T^6&141=3\\cdot47\\\\\n7&(10,66,313)&1+2T+10T^2+7T^3+70T^4+98T^5+343T^6&531=3^2\\cdot59\\\\\n17&(30,308,4884)&1+12T+81T^2+386T^3+1377T^4+3468T^5+4913T^6&10238=2\\cdot5119\n\\end{array}\n\\]\n(4) $J(\\Q)_{\\mathrm{tors}}=0$, and $G$ has infinite order.\n\\end{lem}\n\\begin{proof}\n(2) $\\operatorname{div}(z/y)=2P_1+P_2-3P_3$ and $\\operatorname{div}(x/y)=2P_2+P_4-P_1-2P_3$. (3) With $s_k=p^k+1-N_k$, $L_p(T)=1+a_1T+a_2T^2+a_3T^3+pa_2T^4+p^2a_1T^5+p^3T^6$ with $a_1=-s_1$, $a_2=(s_1^2-s_2)/2$, $a_3=-(s_1^3-3s_1s_2+2s_3)/6$. (4) Since $\\gcd(141,10238)=1$, \\cite[Appendix]{Katz81} gives $J(\\Q)_{\\mathrm{tors}}=0$. Since $P_3\\ne P_1$ and the genus is positive, $G\\ne0$, so $G$ has infinite order.\n\\end{proof}\n\n\\paragraph{Step 2: the bitangents and the field $K$.}\nLet\n\\begin{align*}\nB(m)&=m^{28}-208m^{26}-1024m^{25}+9344m^{24}-33792m^{22}-83636m^{21}+32256m^{20}+131816m^{19}\\\\\n&\\quad-44352m^{17}-23872m^{15}+87462m^{14}+28512m^{12}+5968m^{10}-3828m^{7}-504m^{5}+1,\\\\\ng(w)&=w^{28}-288w^{21}-1028w^{19}-1440w^{17}-960w^{15}-346w^{14}-256w^{13}-748w^{12}\\\\\n&\\quad-528w^{10}-128w^{8}-56w^{7}-68w^{5}-16w^{3}+1,\n\\end{align*}\nand $K=\\Q(w)$ with $g(w)=0$. Put $n=-1/w^2$, and let $a\\in K$ be the degree-27 polynomial in $w$ recorded in \\texttt{data/a.txt} of \\code{1.3.7b}.\n\n\\begin{lem}\\label{lem:1.3.7-bit}\nThe following hold (\\code{1.3.7b}).\n\\begin{enumerate}[label=(\\arabic*)]\n\\item The line $y=mx+nz$ is a bitangent of $C$ only if $B(m)=0$. $B$ is irreducible over $\\Q$ and squarefree.\n\\item $B(a)=0$, so $K=\\Q(a)$, and $F(x,ax+nz,z)=a^3(x^2+uxz+vz^2)^2$ for some $u,v\\in K$. So $\\ell=y-ax-nz$ defines a bitangent, and its 28 conjugates are the 28 bitangents of $C$.\n\\item The maximal order of $K$ is certified without GRH; $d_K=2^{42}\\cdot11^6\\cdot41269^6$, and $K$ has signature $(4,12)$. $a$ is a unit, and $-n=w^{-2}$ is a square.\n\\item The prime ideals of $K$ above $2$, $11$, $41269$ have $(e,f)$\n\\[\n\\begin{gathered}\n2:\\ (4,1),(2,3),(2,3),(4,3);\\qquad 11:\\ (1,1),(1,3),(1,6),(1,6),(2,6);\\\\\n41269:\\ (2,2),(2,4),(1,8),(1,8).\n\\end{gathered}\n\\]\nLet $S$ be the set of these 13 prime ideals.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\nSubstituting $y=mx+nz$ gives $F(x,mx+nz,z)=\\sum_kc_kx^kz^{4-k}$ with $c_4=m^3$, $c_3=1+3m^2n$, $c_2=m^2+3mn^2$, $c_1=n^3+(2n-1)m$, $c_0=n^2-n$. This is $c_4(x^2+uxz+vz^2)^2$ if and only if $u=c_3/(2c_4)$, $v=(4c_2c_4-c_3^2)/(8c_4^2)$, $8c_1c_4^2=c_3(4c_2c_4-c_3^2)$ and $64c_0c_4^3=(4c_2c_4-c_3^2)^2$, and the resultant of the last two with respect to $n$ is $m^{24}B(m)$ up to a constant. For $m=0$ the line $y=nz$ meets $C$ in $z(x^3+n^3xz^2+(n^2-n)z^3)$, which vanishes to odd order at $P_1$. The rest is exact arithmetic in $K$; the 28 conjugates of $(a,n)$ have distinct slopes, and a smooth plane quartic has exactly 28 bitangents.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.7-galois}\nThe Galois group of $B$ is $\\operatorname{Sp}_6(\\F_2)$. In particular, $K$ has no quadratic subfield.\n\\end{lem}\n\\begin{proof}\nBy Proposition~\\ref{thm:AB}(1) the Galois group $\\Gamma$ of $B$ is a subgroup of $\\operatorname{Sp}_6(\\F_2)$. $B$ is squarefree modulo $13$, $29$ and $3$, with factors of degrees $(3,5,5,15)$, $(7,7,7,7)$ and $(1,9,9,9)$ (\\code{1.3.7b}), so $\\Gamma$ contains elements of orders 15, 7 and 9. The maximal subgroups of $\\operatorname{Sp}_6(\\F_2)$ are $U_4(2){:}2$, $S_8$, $2^5{:}S_6$, $U_3(3){:}2$, $2^6{:}L_3(2)$, $2.[2^6]{:}(S_3\\times S_3)$, $S_3\\times S_6$ and $L_2(8){:}3$ \\cite[p.~46]{ATLAS85}, of orders $2^73^45$, $2^73^25\\cdot7$, $2^93^25$, $2^63^37$, $2^93\\cdot7$, $2^93^2$, $2^53^35$, $2^33^37$. Only $S_8$ has order divisible by $5\\cdot7$, and $S_8$ has no element of order 9. So $\\Gamma=\\operatorname{Sp}_6(\\F_2)$, which is simple; hence it has no subgroup of index 2, and $K$ contains no quadratic field.\n\\end{proof}\n\n\\paragraph{Step 3: the descent map.}\nWe use Proposition~\\ref{thm:AB} with $\\ell=y-ax-nz$. Since $\\ell(1,0,0)=-a$, for $P\\in C(k)$ not on a bitangent the class $\\delta_k([P-P_1])$ is represented by $\\ell(\\tilde P)\\,a$ for any coordinate vector $\\tilde P$ of $P$. In particular $\\delta(G)=\\ell(P_3)/\\ell(P_1)=(-n)/(-a)\\equiv a$, because $-n$ is a square.\n\n\\begin{lem}\\label{lem:1.3.7-kernel}\nLet $V=\\F_2^6$ with the standard symplectic form, $\\Theta$ the 28 quadratic forms of Arf invariant 1, $\\Gamma=\\operatorname{Sp}_6(\\F_2)$, $M=\\F_2^\\Theta/\\F_2\\mathbf1$ and $\\iota(T)=(q(T))_{q\\in\\Theta}$. Then for $T\\ne0$ exactly 12 forms satisfy $q(T)=0$, the 63 sets $\\{q:q(T)=0\\}$ are distinct, $\\iota$ is injective, $V^\\Gamma=0$ and $(M/\\iota V)^\\Gamma=0$ (\\code{1.3.7c}). Hence $J(\\Q)[2]=0$ and $\\delta=\\delta_\\Q$ is injective.\n\\end{lem}\n\\begin{proof}\nThe 63 transvections generate a permutation group of order $1451520=\\#\\operatorname{Sp}_6(\\F_2)$ on $\\Theta$, and the space of $m\\in\\F_2^{28}$ with $\\gamma m-m\\in\\F_2\\mathbf1+\\iota V$ for all 63 generators $\\gamma$ has dimension $7=\\dim(\\F_2\\mathbf1+\\iota V)$. The conclusion follows from Proposition~\\ref{thm:AB}(1), (2) and Lemma~\\ref{lem:1.3.7-galois}.\n\\end{proof}\nSince $J(\\Q)[2]=0$, injectivity gives $\\operatorname{rank}J(\\Q)\\le\\dim_{\\F_2}\\Sigma$ for every subgroup $\\Sigma$ containing $\\delta(J(\\Q)/2J(\\Q))$.\n\n\\begin{lem}\\label{lem:1.3.7-KS}\nEvery class in $\\delta(J(\\Q)/2J(\\Q))$ has a representative in\n\\[\nK(2,S)=\\{\\kappa\\in K^\\times/K^{\\times2}:\\ v_{\\mathfrak p}(\\kappa)\\equiv0\\pmod2\\text{ for all prime ideals }\\mathfrak p\\notin S\\},\n\\]\nand the image of $K(2,S)$ in $K^\\times/K^{\\times2}\\Q^\\times$ is $K(2,S)/\\Q(2,S)$, where $\\Q(2,S)=\\langle-1,2,11,41269\\rangle$ has dimension 4. Moreover, for such a representative, $(v_{\\mathfrak p}(\\kappa)\\bmod2)_{\\mathfrak p\\mid11}\\in\\{0,(1,1,1,1,0)\\}$ and $(v_{\\mathfrak p}(\\kappa)\\bmod2)_{\\mathfrak p\\mid41269}\\in\\{0,(0,0,1,1)\\}$.\n\\end{lem}\n\\begin{proof}\nAt $p\\notin\\{2,11,41269\\}$, $K/\\Q$ is unramified and $c_p=1$, so by Proposition~\\ref{thm:AB}(3) all $v_{\\mathfrak p}(\\kappa)$, $\\mathfrak p\\mid p$, have the same parity; multiplying $\\kappa$ by suitable powers of these finitely many $p$ gives a representative in $K(2,S)$. At $p=11,41269$, $c_p=1$ (Lemma~\\ref{lem:1.3.7-bad}), and Proposition~\\ref{thm:AB}(3) gives the two conditions, with $(e_{\\mathfrak p}\\bmod2)$ read off from Lemma~\\ref{lem:1.3.7-bit}(4). If $c\\in\\Q^\\times$ lies in $K(2,S)K^{\\times2}$, then $v_p(c)$ is even for $p\\notin\\{2,11,41269\\}$, so $c\\in\\Q(2,S)\\Q^{\\times2}$; and $\\Q(2,S)\\to K^\\times/K^{\\times2}$ is injective because $K$ has no quadratic subfield.\n\\end{proof}\n\n\\paragraph{Step 4: the class group of $K$.}\n\\begin{lem}\\label{lem:1.3.7-principal}\nEvery prime ideal of $\\mathcal O_K$ of norm $0\n\\end{gathered}\n\\]\n(\\code{1.3.7d}; the GP script of \\code{1.3.7d} gives the same value in floating point).\n\\end{proof}\n\n\\paragraph{Step 5: $S$-units.}\n\\begin{lem}\\label{lem:1.3.7-sunits}\nLet $u_1,\\dots,u_{15}$ and $\\pi_1,\\dots,\\pi_{13}$ be the elements recorded in \\texttt{data/paper\\_C2.json} of \\code{1.3.7e}. Then $-1,u_1,\\dots,u_{15},\\pi_1,\\dots,\\pi_{13}$ is an $\\F_2$-basis of $K(2,S)$, which has dimension 29.\n\\end{lem}\n\\begin{proof}\nEach $u_i$ is integral with norm $\\pm1$, so it is a unit. Each $\\pi_j$ is integral, and the ideals $(\\pi_1),\\dots,(\\pi_{13})$ are the 13 prime ideals of $S$, in the order of Lemma~\\ref{lem:1.3.7-bit}(4) (\\code{1.3.7e}). By Dirichlet's $S$-unit theorem, $\\mathcal O_{K,S}^\\times\\cong\\{\\pm1\\}\\times\\Z^{r_1+r_2-1+\\#S}=\\{\\pm1\\}\\times\\Z^{28}$ ($K$ has a real place, so its only roots of unity are $\\pm1$), hence $\\dim\\mathcal O_{K,S}^\\times/\\mathcal O_{K,S}^{\\times2}=29$. The 29 elements are independent in $K^\\times/K^{\\times2}$: their quadratic characters at the 29 degree-one prime ideals $(q,w-r)$ with\n\\[\n\\begin{gathered}\n(q,r)=(3,2),(5,1),(7,5),(19,10),(23,14),(23,16),(37,32),(41,10),(43,11),(47,15),\\\\\n(47,18),(59,29),(67,18),(71,20),(79,38),(89,54),(103,29),(103,94),(107,92),(109,5),\\\\\n(109,39),(113,76),(131,89),(137,16),(157,84),(157,116),(167,98),(173,9),(181,38)\n\\end{gathered}\n\\]\nform an invertible $29\\times29$ matrix over $\\F_2$. So they form a basis of $\\mathcal O_{K,S}^\\times/\\mathcal O_{K,S}^{\\times2}$. Finally $0\\to\\mathcal O_{K,S}^\\times/\\mathcal O_{K,S}^{\\times2}\\to K(2,S)\\to\\Cl(\\mathcal O_{K,S})[2]\\to0$ is exact, and $\\Cl(\\mathcal O_{K,S})$ is a quotient of $\\Cl(K)$, which has odd order (Lemma~\\ref{lem:1.3.7-cl}).\n\\end{proof}\n\n\\paragraph{Step 6: local images and the rank.}\n\\begin{lem}\\label{lem:1.3.7-dim2}\n$\\dim_{\\F_2}J(\\Q_2)/2J(\\Q_2)\\le4$.\n\\end{lem}\n\\begin{proof}\nBy Proposition~\\ref{thm:A}(5), $\\dim J(\\Q_2)/2J(\\Q_2)=3+\\dim J(\\Q_2)[2]$. The orbits of the image $\\Delta$ of $\\operatorname{Gal}(\\overline\\Q_2/\\Q_2)$ on $\\Theta$ correspond to the prime ideals above 2, so they have sizes $4,6,6,12$. By Proposition~\\ref{thm:AB}(1) and Lemma~\\ref{lem:1.3.7-kernel}, a nonzero $T\\in J[2]$ is fixed by $\\Delta$ if and only if the 12-element set $\\{\\theta:q_\\theta(T)=0\\}$ is $\\Delta$-stable (these sets determine $T$), that is, a union of orbits: the 12-orbit or the union of the two 6-orbits. So $J(\\Q_2)[2]=J[2]^\\Delta$ has at most two nonzero elements, hence at most one, and $\\dim J(\\Q_2)[2]\\le1$.\n\\end{proof}\n\nTo compute in $(K\\otimes\\Q_2)^\\times/(K\\otimes\\Q_2)^{\\times2}=\\prod_{\\mathfrak p\\mid2}K_{\\mathfrak p}^\\times/K_{\\mathfrak p}^{\\times2}$ we use, for each $\\mathfrak p\\mid2$ with ramification index $e$, a uniformizer $\\pi_{\\mathfrak p}$ and record $v_{\\mathfrak p}(x)$ modulo $2$, together with the discrete-logarithm coordinates modulo $2$ of the unit $x\\pi_{\\mathfrak p}^{-v_{\\mathfrak p}(x)}$ in $(\\mathcal O_K/\\mathfrak p^{2e+1})^\\times$. This is an isomorphism $K_{\\mathfrak p}^\\times/K_{\\mathfrak p}^{\\times2}\\to\\F_2^{2+ef}$, because a unit that is a square modulo $\\mathfrak p^{2e+1}$ is a square (Hensel's lemma). Together they give an isomorphism $\\mathrm{loc}_2:(K\\otimes\\Q_2)^\\times/(\\text{squares})\\to\\F_2^{36}$, under which the images of $-1,2,5$ are independent.\n\n\\begin{lem}\\label{lem:1.3.7-W2}\nLet $Q_1,\\dots,Q_4\\in C(\\Q_2)$ be the points $(x_0:y_0:1)$ with\n\\[\n\\begin{gathered}\n(x_0,y_0)=(-40,\\ 591131412711573423326720+O(2^{84})),\\\\\n(-38,\\ 864734735839869549293544+O(2^{80})),\\\\\n(-38,\\ 273263295199333829574543+O(2^{81})),\\\\\n(-36,\\ 648823393722996630116800+O(2^{80})).\n\\end{gathered}\n\\]\nLet $W_2^+\\subseteq\\F_2^{36}$ be the span of $\\mathrm{loc}_2(\\ell(Q_i)a)$ ($i=1,\\dots,4$) and of $\\mathrm{loc}_2(-1),\\mathrm{loc}_2(2),\\mathrm{loc}_2(5)$. Then $\\dim W_2^+=7$, and $W_2^+$ is the full preimage in $\\F_2^{36}$ of $\\delta_{\\Q_2}(J(\\Q_2)/2J(\\Q_2))$ (\\code{1.3.7f}).\n\\end{lem}\n\\begin{proof}\nFor an integer $x_0$ and $h(Y)=F(x_0,Y,1)$, an integer $Y$ with $v_2(h(Y))>2v_2(h'(Y))$ determines a unique root $y_0\\in\\Z_2$ with $v_2(y_0-Y)\\ge N=v_2(h(Y))-v_2(h'(Y))$. The exact element $(Y-ax_0-n)a$ is used only when $Ne_{\\mathfrak p}\\ge v_{\\mathfrak p}((Y-ax_0-n)a)+2e_{\\mathfrak p}+1$ for every $\\mathfrak p\\mid2$, so that it has the same square class as $\\ell(Q)a$. The seven vectors span a space of dimension 7, and the last three span $\\mathrm{loc}_2(\\Q_2^\\times)$. So the classes $\\delta_{\\Q_2}([Q_i-P_1])$ span a space of dimension 4 in the image of $\\delta_{\\Q_2}$, which has dimension at most 4 by Lemma~\\ref{lem:1.3.7-dim2}. All 82 points of $C(\\Q_2)$ with $x_0\\in[-40,40]$, and the four displayed points, give the same space.\n\\end{proof}\n\nLet $\\Sigma\\subseteq K(2,S)/\\Q(2,S)$ consist of the classes $\\kappa$ satisfying only\n\\[\n(v_{\\mathfrak p}(\\kappa)\\bmod2)_{\\mathfrak p\\mid11}\\in\\{0,(1,1,1,1,0)\\},\n\\qquad \\mathrm{loc}_2(\\kappa)\\in W_2^+.\n\\]\nThese conditions are independent of the representative modulo $\\Q(2,S)$. By Lemmas~\\ref{lem:1.3.7-KS} and~\\ref{lem:1.3.7-W2}, this space contains $\\delta(J(\\Q)/2J(\\Q))$.\n\n\\begin{lem}\\label{lem:1.3.7-sel}\n$\\dim_{\\F_2}\\Sigma=1$, and $\\Sigma$ is spanned by $\\delta(G)=[a]$. Hence $\\operatorname{rank}J(\\Q)=1$ and $J(\\Q)\\cong\\Z$.\n\\end{lem}\n\\begin{proof}\nIn the 29-element basis of Lemma~\\ref{lem:1.3.7-sunits}, the two local conditions give an $\\F_2$-linear system whose kernel has dimension 5. It contains the four-dimensional space $\\Q(2,S)$ and the class of $a$, which is independent of that space (\\code{1.3.7h}, the computation using only $p=2$ and $p=11$). Thus $\\Sigma=\\langle[a]\\rangle$ has dimension 1. The descent map is injective and $J(\\Q)$ is torsion-free, so the rank is at most 1; the nonzero class $G$ has infinite order, so the rank is exactly 1.\n\\end{proof}\n\n\\paragraph{Step 7: Chabauty--Coleman at $p=3$.}\nBy Lemma~\\ref{lem:1.3.7-bad}, $C$ has good reduction at 3, and $C(\\F_3)=\\{\\bar P_1,\\bar P_2,\\bar P_3,\\bar P_4\\}$. $\\#J(\\F_3)=31$, so $31G$ reduces to 0. Since $J(\\Q)\\cong\\Z$, every element of $J(\\Q)$ has a nonzero multiple in $\\Z\\cdot31G$; so if $\\eta$ is a regular differential with $\\int_{31G}\\eta=0$, then $\\int_{P_i}^P\\eta=0$ for all $P\\in C(\\Q)$ (\\cite[Sections 4--5]{MP12}).\n\nThe differential $\\Omega=(x\\,dy-y\\,dx)/F_z=(y\\,dz-z\\,dy)/F_x=(z\\,dx-x\\,dz)/F_y$ is well defined on $C$, and $\\omega_x=x\\Omega$, $\\omega_y=y\\Omega$, $\\omega_z=z\\Omega$ form a basis of the regular differentials, regular on the plane model at every good prime. We use the local parameters $t=y/x$ at $P_1$, $t=z/y$ at $P_2$, and $t=x/z$ at $P_3$ and $P_4$. At these points the relevant partial derivative ($F_z$, $F_x$, $F_y$, $F_y$) is $\\pm1$, so the remaining affine coordinate is a power series in $t$ with integer coefficients ($z=-t^3+\\cdots$ at $P_1$, $x=-t^2+\\cdots$ at $P_2$, $y=t^3+\\cdots$ at $P_3$, $y=1-t+\\cdots$ at $P_4$), and $\\Omega=w_\\Omega(t)\\,dt$ with $w_\\Omega$ a unit of $\\Z[[t]]$. All series were computed exactly to $O(t^{140})$; after the substitution $t=3s$ the coefficient of $s^j$ in $\\int_0^t\\omega$ has valuation at least $j-\\log_3j$.\n\n\\begin{lem}\\label{lem:1.3.7-E}\nLet $E$ be the effective divisor of degree 3 consisting of the three points $(x:V(x):1)$, where $x$ runs over the roots of\n\\[\n80621568x^3+19551871x^2-576258756x+551007360,\\qquad V(x)=\\tfrac{27648}{10517}x^2+\\tfrac{154341055}{30667572}x-\\tfrac{31989800}{2555631}.\n\\]\nThen $E\\sim P_1+P_2+P_3+31G$. The three points of $E$ are $\\Q_3$-rational and lie in the residue disks of $P_1$, $P_3$, $P_2$, with $v_3(t)=3,1,5$ respectively (\\code{1.3.7i}).\n\\end{lem}\n\\begin{proof}\nThe forms of degree 12 in the 46 monomials not divisible by $xy^3$ (a basis of $\\Q[x,y,z]_{12}/(F)$) that vanish to order at least 44 at $P_1$ and at least 1 at $P_3$ form a space of dimension 1; let $\\Gamma$ be a generator. The resultant $\\operatorname{Res}_y(F(x,y,1),\\Gamma(x,y,1))$ is $x$ times the cubic above (up to a constant), and the gcd of $F(x,y,1)$ and $\\Gamma(x,y,1)$ over $\\Q[x]/(\\text{cubic})$ is $y-V(x)$. Since $\\deg\\operatorname{div}\\Gamma=48=44+1+3$, $\\operatorname{div}\\Gamma=44P_1+P_3+E$, and $\\operatorname{div}(\\Gamma/(y^{11}z))=E+30P_1-32P_3-P_2$, that is, $E\\sim P_2+32P_3-30P_1=P_1+P_2+P_3+31(P_3-P_1)$. The cubic has three roots in $\\Q_3$, and the points reduce to $P_1,P_3,P_2$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.7-logs}\nWith $L_\\bullet=\\int_{31G}\\omega_\\bullet$, which is a sum of three tiny integrals by Lemma~\\ref{lem:1.3.7-E},\n\\[\nL_x\\equiv642322739790,\\qquad L_y\\equiv657631671201,\\qquad L_z\\equiv233976154908\\pmod{3^{25}},\n\\]\nwith valuations $2,4,1$; the values are known modulo $3^{55}$. The same computation for $62G$ (forms of degree 22 vanishing to order 85 at $P_1$) gives $2(L_x,L_y,L_z)$ (\\code{1.3.7i}).\n\\end{lem}\n\nThe differentials $\\eta_1=L_z\\omega_x-L_x\\omega_z$ and $\\eta_2=L_z\\omega_y-L_y\\omega_z$ annihilate $J(\\Q)$ and are independent ($L_z\\ne0$). For $Q$ in the disk of $P_i$ with $t(Q)=3s$ put $I_k(s)=\\int_{P_i}^Q\\eta_k=\\sum_jc_j^{(k)}s^j$.\n\n\\begin{lem}\\label{lem:1.3.7-disks}\n(1) In the disks of $P_1$, $P_2$, $P_4$ one of $I_1,I_2$ has Strassmann bound 1, so $P_i$ is the only rational point in its disk. (2) In the disk of $P_3$, $I_1$ has Strassmann bound 2; its zeros in $\\Z_3$ are $s=0$ and $s=U^*\\equiv589926054506\\pmod{3^{25}}$, and $v_3(I_2(U^*))=6$. So $P_3$ is the only rational point in its disk (\\code{1.3.7i}).\n\\end{lem}\n\\begin{proof}\nThe valuations of $c_1,\\dots,c_8$ ($\\infty$ means that the coefficient is 0) are:\n\\[\n\\begin{array}{c|c|c|c}\n\\text{disk}&\\text{differential}&v_3(c_1),\\dots,v_3(c_8)&\\text{bound}\\\\\\hline\nP_1&\\eta_1&2,\\infty,\\infty,6,\\infty,6,\\infty,10&1\\\\\nP_2&\\eta_2&2,6,\\infty,\\infty,\\infty,7,9,10&1\\\\\nP_3&\\eta_1&3,3,\\infty,6,6,\\infty,10,10&2\\\\\nP_3&\\eta_2&5,\\infty,\\infty,5,\\infty,\\infty,9,13&4\\\\\nP_4&\\eta_2&2,3,4,5,6,7,8,12&1\n\\end{array}\n\\]\nAll $c_j$ with $j\\le140$ were computed, and the bounds take all of them into account; for $j>140$ the tail bound gives $v_3(c_j)\\ge j-\\log_3j>130$. The errors from knowing $L_\\bullet$ modulo $3^{55}$ have valuation at least 55. This proves (1) and the bound in (2), by \\cite{Strassmann28}. For (2), $J_1(s)=I_1(s)/s$ satisfies $v_3(J_1(s_0))=43>2v_3(J_1'(s_0))=6$ at the Newton approximation $s_0$, so by Hensel's lemma it has a unique zero $U^*\\equiv s_0\\pmod{3^{40}}$, and $U^*\\not\\equiv0\\pmod3$. Since the coefficients of $I_2$ are integral, $I_2(U^*)\\equiv I_2(s_0)\\equiv168750803736\\pmod{3^{25}}$, of valuation 6. So $U^*$ is not a common zero of $I_1,I_2$, while every rational point of the disk satisfies $I_1=I_2=0$.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.3.7}]\nEvery point of $C(\\Q)$ lies in one of the four residue disks of $C(\\F_3)$, and by Lemma~\\ref{lem:1.3.7-disks} (which uses Lemma~\\ref{lem:1.3.7-sel}) each disk contains only its centre. So $C(\\Q)=\\{P_1,P_2,P_3,P_4\\}$. An integer solution $(x,y,z)\\ne(0,0,0)$ is $d$ times a primitive coordinate vector of one of these points, $d=\\gcd(x,y,z)$, which gives the four forms in the theorem. $J(\\Q)\\cong\\Z$ is Lemma~\\ref{lem:1.3.7-sel}.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$x^4-y^3z+xyz^2+xz^3=0$ \\ ($H=64$)}{x^4-y^3z+xyz^2+xz^3=0 (H=64)}}\\label{sec:1.3.8}\n\n\\begin{thm}\\label{thm:1.3.8}\nThe only integer solutions of $x^4-y^3z+xyz^2+xz^3=0$ are $(0,n,0)$, $(0,0,n)$, $(-n,0,n)$ $(n\\in\\Z)$.\n\\end{thm}\n\n\\paragraph{Setup.} Let $C\\subset\\mathbb P^2$ be the curve defined by the equation in the theorem, and put $J=\\Jac(C)$. Write\n\\[\n\\infty=(0:1:0),\\qquad P_0=(0:0:1),\\qquad P_1=(-1:0:1).\n\\]\nWrite $F=x^4-y^3z+xyz^2+xz^3$ and, in the chart $z=1$, $f=F(x,y,1)=x^4-y^3+xy+x$, so that $C$ is $y^3=x^4+xy+x$ there. Put $T=[P_0-\\infty]$ and $G_1=[P_1-\\infty]$ in $J(\\Q)$. The line $z=0$ meets $C$ only at $\\infty$, with multiplicity 4, so $\\infty$ is a rational hyperflex and the 2-descent of Proposition~\\ref{thm:A} applies. The proof runs as follows. $C$ is smooth, its odd bad primes are $11$ and $652081$, all odd Tamagawa numbers are 1, $J(\\Q)_{\\mathrm{tors}}=\\langle T\\rangle\\cong\\Z/3$, and $G_1$ has infinite order (Step~1). The other 27 bitangents are conjugate, with field of definition $K$ of degree 27 (Step~2). The descent map is injective, with image in the totally positive part of $K(\\{2\\},2)$ (Step~3). The class group of $K$ has odd order, proved without GRH with Proposition~\\ref{thm:B} (Step~4); so $K(\\{2\\},2)$ is spanned by 19 explicit $S$-units, and the condition at 2 cuts the image down to dimension 1, so $\\operatorname{rank}J(\\Q)=1$ (Step~5). Chabauty--Coleman at $p=3$ shows that each of the three residue disks of $C(\\F_3)$ contains only one rational point (Step~6).\n\n\\paragraph{Step 1: the curve.}\n\\begin{lem}\\label{lem:1.3.8-zero}\nThe points of $C$ with $x=0$ are $\\infty$ and $P_0$; with $y=0$ they are $P_0$, $P_1$ and the two points $(\\zeta:0:1)$ with $\\zeta^2-\\zeta+1=0$; with $z=0$ only $\\infty$. So $\\infty,P_0,P_1$ are the only rational points of $C$ with a zero coordinate.\n\\end{lem}\n\\begin{proof}\n$F(0,y,z)=-y^3z$, $F(x,0,z)=x(x+z)(x^2-xz+z^2)$, $F(x,y,0)=x^4$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.8-bad}\n(1) $C$ is smooth over $\\Q$, so it has genus 3. (2) For an odd prime $p$, $C$ has good reduction at $p$ unless $p\\in\\{11,652081\\}$. (3) For $p\\in\\{11,652081\\}$ the reduction has exactly one singular point over $\\overline\\F_p$, namely $(x_0:y_0:1)$ with $y_0\\equiv-9/5$, $x_0\\equiv3y_0^2\\pmod p$; it is an ordinary node, and the scheme $\\{F=0\\}\\subset\\mathbb P^2_{\\Z_p}$ is regular. (4) For every odd prime $p$ the Tamagawa number $c_p(J)$ is 1 (\\code{1.3.8a}).\n\\end{lem}\n\\begin{proof}\nOn $z=0$ the only point is $\\infty$, and $F_z(0,1,0)=-1$, so $\\infty$ is a smooth point of every reduction. For affine points, $f_x=4x^3+y+1$ and $f_y=x-3y^2$, and for odd $p$ Euler's identity shows that an affine point is singular if and only if $f=f_x=f_y=0$. Over $\\F_3$ and $\\F_5$ the ideal $(f,f_x,f_y)$ has Gr\u00f6bner basis $\\{1\\}$. For $p\\ne3$, $f_y=0$ gives $x=3y^2$, and then $f_x=108y^6+y+1$ and $f=y^2(81y^6+2y+3)$. If $y=0$, then $x=0$ and $f_x=1$. Otherwise $4(81y^6+2y+3)-3(108y^6+y+1)=5y+9$, so for $p\\ne5$ a singular point has $y=-9/5$, and then $108y^6+y+1=57383128/5^6=2^3\\cdot11\\cdot652081/5^6$. This proves (1), (2) and the first part of (3). At $p=11$ the node is $(4,7)$, the Hessian determinant $f_{xx}f_{yy}-f_{xy}^2$ is $9\\not\\equiv0$, and $f(4,7)\\equiv66\\not\\equiv0\\pmod{11^2}$; at $p=652081$ the node is $(573841,521663)$, the Hessian determinant is $217362\\not\\equiv0$, and $f(x_0,y_0)\\equiv91909512788\\not\\equiv0\\pmod{p^2}$. Since $f_x,f_y$ vanish at the node modulo $p$, the Taylor expansion shows that $f\\in\\mathfrak m^2$ ($\\mathfrak m=(p,x-x_0,y-y_0)$) if and only if $f(x_0,y_0)\\equiv0\\pmod{p^2}$; so $f\\notin\\mathfrak m^2$, and the local ring at the node is regular. (4) The special fibre at $p=11,652081$ is reduced and geometrically irreducible: components would meet with total intersection number at least 3 (B\u00e9zout), only at singular points, but there is only one singular point, an ordinary node, where two branches meet with multiplicity 1. By Raynaud's theorem \\cite[9.6, Theorem~1]{BLR90} the component group of the N\u00e9ron model is trivial.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.8-counts}\nThe numbers $N_k=\\#C(\\F_{p^k})$, the coefficients of the $L$-polynomials and $\\#J(\\F_p)=L_p(1)$ are as follows (\\code{1.3.8a}).\n\\[\n\\begin{array}{r|c|l|r}\np&(N_1,N_2,N_3)&\\text{coefficients of }L_p(t)&\\#J(\\F_p)\\\\\\hline\n3&(3,9,27)&1,-1,0,0,0,-9,27&18=2\\cdot3^2\\\\\n5&(5,29,119)&1,-1,2,-4,10,-25,125&108=2^2\\cdot3^3\\\\\n7&(7,67,352)&1,-1,9,-6,63,-49,343&360=2^3\\cdot3^2\\cdot5\\\\\n17&(29,313,4856)&1,11,72,329,1224,3179,4913&9729=3^2\\cdot23\\cdot47\\\\\n29&(27,871,23904)&1,-3,19,-210,551,-2523,24389&22224=2^4\\cdot3\\cdot463\n\\end{array}\n\\]\nMoreover $C(\\F_3)=\\{\\bar\\infty,\\bar P_0,\\bar P_1\\}$.\n\\end{lem}\n\n\\begin{lem}\\label{lem:1.3.8-tors}\n$J(\\Q)_{\\mathrm{tors}}=\\langle T\\rangle\\cong\\Z/3$, and $G_1$ has infinite order.\n\\end{lem}\n\\begin{proof}\nBy \\cite[Appendix]{Katz81}, the torsion subgroup $J(\\Q)_{\\mathrm{tors}}$ injects into $J(\\F_p)$ for every odd prime $p$ of good reduction; $\\#J(\\F_{17})$ is odd and $\\gcd(108,360,9729,22224)=3$, so $\\#J(\\Q)_{\\mathrm{tors}}$ divides 3. The line $x=0$ meets $C$ in $3P_0+\\infty$ and $z=0$ in $4\\infty$, so $\\operatorname{div}(x/z)=3P_0-3\\infty$ and $3T=0$; $T\\ne0$ since the genus is positive. The function $x/z$ has a pole of order exactly 3 at $\\infty$, and $\\dim L(3\\infty)\\le2$, so $L(3\\infty)=\\langle1,x/z\\rangle$. If $G_1$ were torsion, then $3G_1=0$ and some $a+b\\,x/z$ would have divisor $3P_1-3\\infty$; vanishing at $P_1$ forces $a=b$, but $F(-z,y,z)=-yz(y^2+z^2)$ shows that $(x+z)/z$ has only a simple zero at $P_1$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.8-real}\n$C(\\R)$ is connected. Hence $J(\\R)/2J(\\R)=0$ (\\code{1.3.8a}).\n\\end{lem}\n\\begin{proof}\nFor real $x$, the cubic $y^3-xy-(x^4+x)$ has discriminant $x^2\\bigl(4x-27(x^3+1)^2\\bigr)$. The second factor has no real root and is $-27$ at $x=0$, so the discriminant is negative for $x\\ne0$, and for $x=0$ the cubic is $y^3$. So for every real $x$ there is exactly one real $y$, depending continuously on $x$; the affine real locus is a graph over $\\R$, and $C(\\R)$ is its closure. The rest is \\cite{GH81}.\n\\end{proof}\n\n\\paragraph{Step 2: the bitangents and the field $K$.}\nLet\n\\[\n\\begin{aligned}\nB(m)={}&m^{27}-48m^{22}+1344m^{18}+144m^{17}-3264m^{13}+832m^{12}-40704m^9\\\\\n&-4608m^8-2560m^7-39936m^4-15360m^3-1024m^2+4096,\n\\end{aligned}\n\\]\nlet $\\theta$ be a root, and $K=\\Q(\\theta)$.\n\n\\begin{lem}\\label{lem:1.3.8-bit}\n(1) $B$ is irreducible, and\n\\[\n\\operatorname{disc}(B)=2^{318}\\cdot11^6\\cdot41^2\\cdot198839^2\\cdot652081^6\\cdot17743299257028546229859^2\n\\]\n(all factors prime).\n(2) For the line $y=mx+k$ write $f(x,mx+k)=x^4+c_3x^3+c_2x^2+c_1x+c_0$. It is the square of $x^2+ux+v$ if and only if $u=c_3/2=-m^3/2$, $v=(c_2-u^2)/2=(m-3m^2k-u^2)/2$, $E_1:=c_1-2uv=0$ and $E_2:=c_0-v^2=0$. The resultant of $E_1,E_2$ with respect to $k$ is $B(m)/4096$ (equivalently, that of the primitive integer polynomials $8E_1$, $64E_2$ is $512B(m)$), and the leading coefficient of $E_2$ in $k$ is $-1$; so $E_1(m_0,k)$ and $E_2(m_0,k)$ have a common root if and only if $B(m_0)=0$. Over $K$ the gcd of $E_1(\\theta,k)$ and $E_2(\\theta,k)$ is linear in $k$, with root $k(\\theta)\\in K$ (recorded in \\texttt{descent/k\\_paper.gp} of \\code{1.3.8b}), and $f(x,\\theta x+k(\\theta))=(x^2+u(\\theta)x+v(\\theta))^2$ in $K[x]$.\n(3) The 28 bitangents of $C$ are $z=0$ and the 27 lines $\\ell_\\theta:\\ y=\\theta x+k(\\theta)z$, $\\theta$ running over the roots of $B$ (\\code{1.3.8b}).\n\\end{lem}\n\\begin{proof}\n(3) A line through $\\infty$ other than $z=0$ is $x=cz$; it meets $C$ at $\\infty$ with multiplicity 1, so it is not a bitangent. Every other line is $y=mx+kz$, and by (2) it is a bitangent if and only if $B(m)=0$ and $k=k(m)$. These are 27 distinct lines.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.8-K}\n$K$ has signature $(3,12)$ and discriminant $d_K=2^{34}\\cdot11^6\\cdot652081^6$; its maximal order is certified without GRH. The prime 2 factors as $2\\mathcal O_K=\\mathfrak p_1^2\\mathfrak p_2^{10}\\mathfrak p_3^5\\mathfrak p_4^5$ with residue degrees $1,1,1,2$; equivalently, $B$ factors over $\\Q_2$ into irreducible factors of degrees $2,10,5,10$ (\\code{1.3.8b}, \\code{1.3.8c}).\n\\end{lem}\n\n\\paragraph{Step 3: the descent map.}\nFor each root $\\theta$ of $B$ put $h_\\theta=(y-\\theta x-k(\\theta)z)/z$. At $\\infty$ the function $X=x/y$ is a uniformizer, $z/y=X^4+O(X^9)$ and $h_\\theta=X^{-4}(1+O(X))$, so $h_\\theta$ is normalized as in Proposition~\\ref{thm:A}(2), and for an affine point $P=(x:y:1)$ that is not a point of contact,\n\\[\n\\delta([P-\\infty])=y-\\theta x-k(\\theta)\\in K^\\times/K^{\\times2}.\n\\]\nIn particular $\\delta(G_1)=\\theta-k(\\theta)$ and $\\delta(T)=-k(\\theta)$.\n\n\\begin{lem}\\label{lem:1.3.8-theta}\nFor a root $\\theta$ of $B$ let $D_\\theta$ be the contact divisor of $\\ell_\\theta$ (so $\\operatorname{div}h_\\theta=2D_\\theta-4\\infty$) and $w_\\theta=[D_\\theta-2\\infty]\\in J[2]$. Then $\\iota:J[2]\\to\\F_2^{27}$, $\\varepsilon\\mapsto(e_2(\\varepsilon,w_\\theta))_\\theta$, is injective, and the nonzero vectors of $V=\\iota(J[2])$ have weight 12 (36 vectors) or 16 (27 vectors); in particular $\\mathbf 1\\notin V$ (\\code{1.3.8d}).\n\\end{lem}\n\\begin{proof}\n$q(w)=h^0(2\\infty+w)+h^0(2\\infty)\\bmod2$ is a quadratic form on $J[2]$ with polar form $e_2$, whose zeros are $0$ and the 27 classes $w_\\theta$; so it has Arf invariant 1, and $\\iota(\\varepsilon)_\\theta=e_2(\\varepsilon,w_\\theta)$. All quadratic forms of Arf invariant 1 on $\\F_2^6$ are equivalent, so it suffices to enumerate the 64 vectors for $q(a)=a_1a_2+a_3a_4+a_5^2+a_5a_6+a_6^2$.\n\\end{proof}\nThis is the computation behind Proposition~\\ref{thm:A}(1), (2).\n\n\\begin{lem}\\label{lem:1.3.8-desc}\n$J(\\Q)[2]=0$, and $\\delta:J(\\Q)/2J(\\Q)\\to K^\\times/K^{\\times2}$ is injective. Every element of $\\delta(J(\\Q))$ lies in\n\\[\nK(2,S)=\\{a\\in K^\\times/K^{\\times2}:\\ v_{\\mathfrak p}(a)\\text{ even for all }\\mathfrak p\\notin S\\},\\qquad S=\\{\\mathfrak p_1,\\mathfrak p_2,\\mathfrak p_3,\\mathfrak p_4\\},\n\\]\nand is totally positive.\n\\end{lem}\n\\begin{proof}\n$B$ is irreducible of degree 27, so Proposition~\\ref{thm:A}(1), (2) give the first statement. Since $c_p(J)=1$ for all odd $p$ (Lemma~\\ref{lem:1.3.8-bad}), the set $S$ of Proposition~\\ref{thm:A}(3) is $\\{2\\}$. At the real place, $\\delta_\\R$ is defined on $J(\\R)/2J(\\R)=0$ (Lemma~\\ref{lem:1.3.8-real}) and is compatible with restriction (Proposition~\\ref{thm:A}(3)).\n\\end{proof}\n\n\\paragraph{Step 4: the class group of $K$.}\n\\begin{lem}\\label{lem:1.3.8-principal}\nEvery prime ideal of $K$ of norm $\\le10^6$ is principal. There are $77{,}813$ of them ($77{,}583$ of degree 1, $193$ of degree 2, $18$ of degree 3, $15$ of degree 5, $3$ of degree 6, $1$ of degree 10) (\\code{1.3.8e}).\n\\end{lem}\n\\begin{proof}\nFor each prime ideal $\\mathfrak p$ a generator $g$ was proposed by \\texttt{bnfisprincipal} (used only as a proposer). The checker, which does not use PARI's class group functions, enumerates the prime ideals itself (for $p>1000$ not dividing $\\operatorname{disc}B$ through the roots $r$ of $B$ modulo $p$, $\\mathfrak p=(p,\\theta-r)$; otherwise with \\texttt{idealprimedec} in the certified maximal order), and verifies for each $\\mathfrak p$: $g\\in\\mathcal O_K$ ($g$ is stored as a polynomial in $\\theta$ divided by an integer, and its coordinates on the certified integral basis computed by the running PARI are integers; the check was run with PARI 2.15.4 and with PARI 2.17.4), $g\\in\\mathfrak p$, and $|N_{K/\\Q}(g)|=N\\mathfrak p$, where $N(g)$ is computed exactly as a resultant. Then $(g)\\subseteq\\mathfrak p$ and both have the same norm, so $(g)=\\mathfrak p$. Each generator is used for exactly one prime ideal.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.8-counts2}\nLet $R=5\\cdot10^8$. There are $26{,}365{,}548$ prime ideals of $K$ of norm $0$ and $\\Cl(K)[2]=0$. $\\Cl(\\mathcal O_{K,S})$ is a quotient of $\\Cl(K)$.\n\\end{proof}\nThe window was chosen as the top eigenvector of the symmetric Toeplitz matrix $\\Lambda$ with $B^-(f)=\\mathbf h^{\\mathsf T}\\Lambda\\mathbf h/\\mathbf h^{\\mathsf T}\\mathbf h$ for the vector $\\mathbf h$ of heights (\\code{1.3.8g}, floating point; this only selects the window). If $f$ has knots $f_k=f(k\\delta)$ ($\\delta=T/64$), then $f=\\sum_kw_k(1-|x|/k\\delta)_+$ with $w_k=k(f_{k-1}-2f_k+f_{k+1})$, and $C_\\infty-\\int_0^\\infty(1-f)W=\\sum_kw_kA(k\\delta)$ with\n\\[\nA(a)=C_\\infty-\\frac{\\pi^2}{4a}-\\frac{2\\alpha\\log2}a+\\frac2a\\Bigl(\\operatorname{Li}_2(e^{-a})-\\frac{\\operatorname{Li}_2(e^{-2a})}4\\Bigr)+\\frac{2\\alpha}a\\log(1+e^{-a}).\n\\]\n\n\\paragraph{Step 5: $S$-units, the local image at 2, and the rank.}\n\\begin{lem}\\label{lem:1.3.8-sunits}\nLet $\\varepsilon_1,\\dots,\\varepsilon_{14}$ and $\\pi_1,\\dots,\\pi_4$ be the 14 units and 4 $S$-units recorded in \\path{descent/paper_sunits.json} of \\code{1.3.8i}. Then $-1,\\varepsilon_1,\\dots,\\varepsilon_{14},\\pi_1,\\dots,\\pi_4$ is a basis of $\\mathcal O_{K,S}^\\times/\\mathcal O_{K,S}^{\\times2}$ and of $K(2,S)$, and $\\dim_{\\F_2}K(2,S)=19$ (\\code{1.3.8h}, \\code{1.3.8i}).\n\\end{lem}\n\\begin{proof}\nEach $\\varepsilon_i$ is integral with $N(\\varepsilon_i)=\\pm1$, and each $\\pi_j$ is integral with $N(\\pi_j)\\in\\{\\pm2,\\pm4\\}$, so all are $S$-units. Their quadratic characters at the 400 degree-one prime ideals $(q,\\theta-r)$ with $q\\le2791$, $q\\nmid\\operatorname{disc}B$, form a matrix of rank 19 over $\\F_2$, so the 19 elements are independent in $K^\\times/K^{\\times2}$. By Dirichlet's $S$-unit theorem, $\\mathcal O_{K,S}^\\times\\cong\\{\\pm1\\}\\times\\Z^{r_1+r_2-1+\\#S}=\\{\\pm1\\}\\times\\Z^{18}$, so $\\dim\\mathcal O_{K,S}^\\times/\\mathcal O_{K,S}^{\\times2}=19$. The exact sequence $0\\to\\mathcal O_{K,S}^\\times/\\mathcal O_{K,S}^{\\times2}\\to K(2,S)\\to\\Cl(\\mathcal O_{K,S})[2]\\to0$ and Lemma~\\ref{lem:1.3.8-cl} give $K(2,S)=\\mathcal O_{K,S}^\\times/\\mathcal O_{K,S}^{\\times2}$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.8-two}\n$\\dim_{\\F_2}J(\\Q_2)[2]\\le1$, so $\\dim_{\\F_2}\\delta_{\\Q_2}(J(\\Q_2))\\le4$. The four points $P=(x,y)\\in C(\\Q_2)$ with\n\\[\n\\begin{array}{r|r}\nx&y\\bmod2^{60}\\\\\\hline\n-40&177036671367769442\\\\\n-39&271477316397691054\\\\\n-37&408928458825745180\\\\\n-35&1073474074041454754\n\\end{array}\n\\]\nhave classes $\\delta_{\\Q_2}([P-\\infty])$ that span a subspace $W_2\\subset\\prod_{\\mathfrak p\\mid2}K_{\\mathfrak p}^\\times/K_{\\mathfrak p}^{\\times2}$ of dimension 4. Hence $\\delta_{\\Q_2}(J(\\Q_2))=W_2$ (\\code{1.3.8d}, \\code{1.3.8h}).\n\\end{lem}\n\\begin{proof}\n$J(\\Q_2)[2]\\cong V^D$ (Lemma~\\ref{lem:1.3.8-theta}), where $D$ is the image of $\\operatorname{Gal}(\\overline\\Q_2/\\Q_2)$; its orbits on the 27 coordinates have sizes $2,5,10,10$ (Lemma~\\ref{lem:1.3.8-K}). A $D$-invariant vector is a union of orbits, of weight in $\\{0,2,5,7,10,12,15,17,20,22,25,27\\}$, so by Lemma~\\ref{lem:1.3.8-theta} a nonzero invariant vector of $V$ has weight $12=2+10$; there are at most two such unions, and their sum has weight 20, which does not occur. So $\\dim V^D\\le1$, and by Proposition~\\ref{thm:A}(5) $\\dim J(\\Q_2)/2J(\\Q_2)=3+\\dim J(\\Q_2)[2]\\le4$.\n\nThe values $y$ are the roots in $\\Z_2$ of $y^3-xy-(x^4+x)$, computed to precision $2^{80}$. For each $\\mathfrak p\\mid2$ with ramification index $e$, the class of $a\\in K_{\\mathfrak p}^\\times$ modulo squares is determined by $v_{\\mathfrak p}(a)\\bmod2$ and by the class of the unit $a\\pi^{-v(a)}$ in $(\\mathcal O_K/\\mathfrak p^{2e+1})^\\times$ modulo squares, read off from the discrete logarithm; the number of even cyclic factors of $(\\mathcal O_K/\\mathfrak p^{2e+1})^\\times$ is $1+[K_{\\mathfrak p}:\\Q_2]$ in all four cases, as it must be. This gives coordinates in $\\F_2^{35}$. The integer $Y\\equiv y\\pmod{2^{80}}$ satisfies $v_{\\mathfrak p}(Y-y)-v_{\\mathfrak p}(Y-\\theta x-k)\\ge2e+1$ for all $\\mathfrak p\\mid2$, so $Y-\\theta x-k$ has the same square class as $y-\\theta x-k$. The four class vectors have rank 4. (All 47 points of $C(\\Q_2)$ with $x\\in\\Z\\cap[-40,40]$, and the four points with $x=-24,-23,-21,-19$, give classes in $W_2$.)\n\\end{proof}\n\nLet $\\Sigma=\\{a\\in K(2,S):\\ a\\text{ is totally positive and }(a)_{\\mathfrak p\\mid2}\\in W_2\\}$. By Lemmas~\\ref{lem:1.3.8-desc} and \\ref{lem:1.3.8-two}, $\\operatorname{rank}J(\\Q)=\\dim_{\\F_2}J(\\Q)/2J(\\Q)\\le\\dim_{\\F_2}\\Sigma$.\n\n\\begin{lem}\\label{lem:1.3.8-sel}\n$\\dim_{\\F_2}\\Sigma=1$, and $\\Sigma$ is generated by $\\theta-k(\\theta)=\\delta(G_1)$. Hence $\\operatorname{rank}J(\\Q)=1$, and $J(\\Q)\\cong\\Z\\oplus\\Z/3$.\n\\end{lem}\n\\begin{proof}\nIn the basis of Lemma~\\ref{lem:1.3.8-sunits}, $\\Sigma$ is the kernel of an explicit $\\F_2$-linear map: the three real signs (computed with rigorous isolation of the real roots of $B$ in ball arithmetic, and confirmed by PARI's \\texttt{nfeltsign}) and the 35 coordinates at $\\mathfrak p\\mid2$ taken modulo $W_2$. The kernel has dimension 1 (\\code{1.3.8h}); in this basis it is generated by $\\varepsilon_1\\varepsilon_2\\varepsilon_3\\varepsilon_4$, which equals $\\theta-k(\\theta)$ modulo squares: both lie in $K(2,S)$ ($\\theta-k(\\theta)$ has even valuation at every prime ideal outside $S$), and their quadratic characters agree at 399 prime ideals (\\code{1.3.8i}). So $\\operatorname{rank}J(\\Q)\\le1$, and by Lemma~\\ref{lem:1.3.8-tors} $\\operatorname{rank}J(\\Q)\\ge1$ and $J(\\Q)_{\\mathrm{tors}}\\cong\\Z/3$. (Consistently, $\\theta-k(\\theta)$ is totally positive with local class in $W_2$, and $\\delta(T)=-k(\\theta)$ is a square in $K$.)\n\\end{proof}\nThe condition at 2 alone already gives the bound: in the coordinates of Lemma~\\ref{lem:1.3.8-sunits} and on the basis of $W_2$ given by the four points of Lemma~\\ref{lem:1.3.8-two}, the condition $(a)_{\\mathfrak p\\mid2}\\in W_2$ is a homogeneous system of 35 linear equations over $\\F_2$ in $19+4$ unknowns of rank 22, and the four basis vectors of $W_2$ are independent; so $\\{a\\in K(2,S):(a)_{\\mathfrak p\\mid2}\\in W_2\\}$ has dimension 1 (\\code{1.3.8h}). Hence Lemma~\\ref{lem:1.3.8-sel} holds without the sign condition, and without the norm condition of Proposition~\\ref{thm:A}(4).\n\n\\paragraph{Step 6: Chabauty--Coleman at $p=3$.}\nBy Lemma~\\ref{lem:1.3.8-bad}, $C$ has good reduction at 3, and by Lemma~\\ref{lem:1.3.8-counts}, $C(\\Q_3)$ is the union of the three residue disks $U_\\infty,U_{P_0},U_{P_1}$ of the points of $C(\\F_3)$, where $U_R$ is the set of points of $C(\\Q_3)$ that reduce to $\\bar R$; for a finite extension $M$ of $\\Q_3$, $U_R(M)$ denotes the set of points of $C(M)$ that reduce to $\\bar R$.\n\nLet $\\Omega=dx/f_y(x,y)$ and $w_L=L\\,\\Omega$ for $L\\in\\{z,x,y\\}$. These form a $\\Z_3$-basis of the regular differentials of the smooth model over $\\Z_3$, and $w_L$ vanishes exactly where $L$ does. In the chart $y=1$, with $X=x/y$ and $Z=z/y$, $F(X,1,Z)=X^4-Z+XZ^2+XZ^3$, and the equation $Z=X^4+XZ^2+XZ^3$ has a unique solution $Z(X)\\in X^4\\Z[[X]]$; so $w_L=\\phi_L(X)\\,dX$ with $\\phi_L\\in\\Z[[X]]$:\n\\[\n\\phi_z=X^4+\\cdots,\\qquad\\phi_x=X+2X^6+\\cdots,\\qquad\\phi_y=1+2X^5+\\cdots .\n\\]\n\n\\begin{lem}\\label{lem:1.3.8-log}\nLet $\\lambda=\\log(-9G_1)\\in\\Q_3^3$ be the vector of the abelian integrals of $w_z,w_x,w_y$ over $-9G_1$. Then $v_3(\\lambda)=(5,2,6)$, and $3^{-2}\\lambda$ is, up to a unit, congruent to $(432,1,81)$ modulo $3^6$. In particular, modulo 3, $\\log G_1$ is proportional to $(0,1,0)$ (\\code{1.3.8j}).\n\\end{lem}\n\\begin{proof}\nThe functions $x^iy^j$ ($j\\le2$, $3i+4j\\le14$; $x,y$ have poles of orders 3 and 4 at $\\infty$) form a basis of $L(14\\infty)$. With the parameter $s=x+1$ at $P_1$ (where $f_y=-1$) and $y(s)\\in\\Z[[s]]$, the condition $\\operatorname{ord}_{P_1}\\ge9$ cuts out a 3-dimensional subspace, which contains\n\\[\n\\begin{aligned}\ng={}&49412858216+191259723096x+291125394027x^2\\\\\n&+206187126854x^3+56908597707x^4+37163261480y\\\\\n&+102426117246xy+100459295010x^2y+35217797652x^3y+836804043y^2+36xy^2,\n\\end{aligned}\n\\]\nwith $\\operatorname{ord}_{P_1}g=9$ exactly and pole order 13 at $\\infty$; its reduction modulo 3 is nonzero with pole order exactly 9 at $\\bar\\infty$. So $\\operatorname{div}g=9P_1+\\mathcal E-13\\infty$ with $\\mathcal E$ effective of degree 4, and $\\operatorname{div}\\bar g=9\\bar P_1-9\\bar\\infty$; since divisors specialize on the smooth model, $\\mathcal E$ reduces to $4\\bar\\infty$. Thus $[\\mathcal E-4\\infty]=-9G_1$. The $X$-coordinates of the points of $\\mathcal E$ are the roots of the irreducible polynomial $\\operatorname{Res}_Z(F(X,1,Z),Z^4g(X/Z,1/Z))/X^3$,\n\\[\n\\begin{aligned}\n\\mathcal E(X)={}&268895426627707157987116133388416X^4+320337638116517237204091843045891X^3\\\\\n&+219672860573908519668631358279748X^2+157894577001790646570719666475904X\\\\\n&+85988850899990436755428562963712,\n\\end{aligned}\n\\]\nwhose four roots all have 3-adic valuation $3/4$ (the coefficients of $X^0,\\dots,X^4$ have valuations $3,3,2,5,0$); their $Z$-coordinates have valuation 3. Since $3/4$ has denominator 4, $\\mathcal E(X)$ is irreducible over $\\Q_3$, and any of its roots generates a totally ramified extension $M$ of $\\Q_3$ of degree 4. So the four points of $\\mathcal E$ are conjugate over $\\Q_3$ and lie in $U_\\infty(M)$, where $X$ takes values in the maximal ideal of $\\mathcal O_M$. The divisor $\\mathcal E-4\\infty$ is defined over $\\Q_3$, and by \\cite[Section 3]{KRZB16}\n\\[\n\\lambda_L=\\sum_{Q\\in\\mathcal E}\\int_\\infty^Qw_L=\\operatorname{Tr}_{M/\\Q_3}\\int_\\infty^{Q_1}w_L=\\sum_{k\\ge0}\\frac{\\phi_{L,k}}{k+1}\\,p_{k+1},\\qquad p_j=\\sum_{Q\\in\\mathcal E}X(Q)^j,\n\\]\nwhere $Q_1$ is any one of the four points and $p_j\\in\\Q$ is computed exactly by Newton's identities from $\\mathcal E(X)$. Since $v_3(p_j)\\ge3j/4$, the terms with $k\\ge159$ have valuation greater than 115. As a check, the same computation with $\\operatorname{ord}_{P_1}\\ge18$ in $L(23\\infty)$ (a function of pole order 22, again with $\\deg\\mathcal E=4$) gives $\\log(-18G_1)=2\\lambda$ to precision $3^{114}$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.3.8-disks}\nEach residue disk $U_\\infty,U_{P_0},U_{P_1}$ contains exactly one rational point (\\code{1.3.8j}).\n\\end{lem}\n\\begin{proof}\nSince $\\operatorname{rank}J(\\Q)=1$ and $G_1$ has infinite order (Lemma~\\ref{lem:1.3.8-sel}), every $\\omega=c_zw_z+c_xw_x+c_yw_y$ with $c\\cdot\\lambda=0$ satisfies $\\int_R^P\\omega=0$ for all $P,R\\in C(\\Q)$ (\\cite[Sections 4--5]{MP12}). By Lemma~\\ref{lem:1.3.8-log}, $\\lambda/9$ has unit $x$-coordinate, so for any $c_z,c_y\\in\\Z_3$ there is a unique $c_x\\in\\Z_3$ with $c\\cdot\\lambda=0$, and then $c_x\\equiv0\\pmod3$.\n\nLet $R\\in\\{\\infty,P_0,P_1\\}$ and let $t$ be the local parameter $X$, $y$, $x+1$ respectively (at $P_0$, $f_x=1$ and $x(y)\\in y^3\\Z[[y]]$; at $P_1$, $f_y=-1$ and $y(s)\\in\\Z[[s]]$). The map $Q\\mapsto t(Q)$ is a bijection $U_R\\to3\\Z_3$, and every regular differential is $(a_0+a_1t+\\cdots)\\,dt$ with $a_k\\in\\Z_3$ and $a_0\\equiv(\\text{unit})\\cdot(c_z,c_x,c_y)\\cdot(z,x,y)(R)\\pmod3$. The reductions $(z,x,y)(R)\\bmod3$ are $(0,0,1)$, $(1,0,0)$, $(1,2,0)$. Taking $(c_z,c_y)=(0,1)$ for $R=\\infty$ and $(1,0)$ for $R=P_0,P_1$ gives annihilating differentials with $a_0\\not\\equiv0\\pmod3$ (in fact $a_0\\equiv1,-1,41849\\pmod{3^{10}}$). For $Q\\in U_R\\cap C(\\Q)$ write $t(Q)=3s$; then\n\\[\n0=\\frac13\\int_R^Q\\omega=a_0s+\\sum_{k\\ge1}a_k\\frac{3^k}{k+1}s^{k+1},\n\\]\nand $v_3(3^k/(k+1))=k-v_3(k+1)\\ge1$ for $k\\ge1$. By \\cite{Strassmann28} this power series has at most one zero in $\\Z_3$, namely $s=0$. So $Q=R$.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.3.8}]\n$C(\\Q)\\subseteq U_\\infty\\cup U_{P_0}\\cup U_{P_1}$, and by Lemma~\\ref{lem:1.3.8-disks} each disk contains only its centre. So $C(\\Q)=\\{\\infty,P_0,P_1\\}$. An integer solution $(x,y,z)\\ne(0,0,0)$ is $\\gcd(x,y,z)$ times a primitive coordinate vector of one of these points, which gives the three forms in the theorem. $J(\\Q)\\cong\\Z\\oplus\\Z/3$ is Lemma~\\ref{lem:1.3.8-sel}.\n\\end{proof}\n\n\\section{Homogeneous surfaces and diagonal quintics}\\label{sec:1.4}\nThe first three cubic surfaces are excluded by cubic reciprocity, and the diagonal quartic by Hilbert reciprocity. The remaining six equations use the common Frey-curve framework below.\n\n\\subsection{\\texorpdfstring{$x^3+2x^2y+y^3+y^2z+xz^2+z^3+t^2x-t^2y-t^2z+tyz+t^3=0$ \\ ($H=96$)}{x^3+2x^2y+y^3+y^2z+xz^2+z^3+t^2x-t^2y-t^2z+tyz+t^3=0 (H=96)}}\\label{sec:1.4.1}\n\n\n\\begin{thm}\\label{thm:1.4.1}\nThe only integer solution of\n\\[\nF(x,y,z,t):=x^3+2x^2y+y^3+y^2z+xz^2+z^3+t^2x-t^2y-t^2z+tyz+t^3=0\n\\]\nis $(0,0,0,0)$.\n\\end{thm}\n\n\\paragraph{Setup.} Let $S\\subset\\mathbb P^3$ be the cubic surface $F=0$. We prove that $S(\\Q)=\\varnothing$ by a Brauer--Manin obstruction of order 3 (Proposition~\\ref{thm:AD}). Let\n\\[\nK=\\Q(s),\\quad s^2=-23,\\qquad h(T)=T^3-T+1,\\qquad L=K(a),\\quad h(a)=0,\n\\]\nlet $\\tau(a)=-\\bigl(23a+s(6a^2+9a-4)\\bigr)/46\\in L$ (by Lemma~\\ref{lem:1.4.1-field}(i), $a\\mapsto\\tau(a)$ defines a generator $\\tau$ of $\\operatorname{Gal}(L/K)$),\nand let $G$ be the cubic form\n\\[\n\\begin{aligned}\nG={}&(102-18s)x^2y-(281+13s)x^2z-(119+19s)x^2t+288xy^2+(124-4s)xyz-(416-32s)xyt\\\\\n&+(75-9s)y^3+(107-41s)y^2z+(112-16s)y^2t\\\\\n&+(59-89s)(xz^2+xt^2+yzt-yt^2+z^3-zt^2+t^3).\n\\end{aligned}\n\\]\nWe write $G=G_0+sG_1$ with $G_0,G_1\\in\\Z[x,y,z,t]$. If a prime $p$ splits in $K$, then for each of the two places $w\\mid p$ of $K$ we have $K_w=\\Q_p$, $s\\mapsto\\sigma_w\\in\\Z_p$ with $\\sigma_w^2=-23$, and we put $G^{(w)}=G_0+\\sigma_wG_1\\in\\Z_p[x,y,z,t]$; $\\bar w$ denotes the other place above $p$. Points of $S(\\Q_p)$ are always given by primitive coordinates in $\\Z_p^4$, and $\\bar P$ is the reduction of $P$ modulo $p$. Local invariants $\\operatorname{inv}_w$ and Frobenius elements $\\operatorname{Frob}_w\\in\\operatorname{Gal}(L/K)$ are those of \\cite[Chapters V--VI]{Neukirch99}.\n\nThe proof goes as follows. We construct a twisted cubic $C\\subset S_L$ with $\\divv_S(G)=C+\\tau C+\\tau^2C$ (Step 2), so that the cyclic algebra $\\mathcal B=(L/K,\\tau,G/(288x^3))$ lies in $\\operatorname{Br}(S_K)$ (Step 3). After determining the reduction of $S$ modulo all primes (Step 4), we show that for every prime $p$ and every $P\\in S(\\Q_p)$ the sum of the local invariants of $\\mathcal B(P)$ at the places above $p$ is $0$ if $p\\ne3$ (Step 5) and $2/3$ if $p=3$ (Step 6). At a rational point the sum over all places would be $0$ (Step 7).\n\n\\paragraph{Step 1: the fields.}\n\\begin{lem}\\label{lem:1.4.1-field}\n\\begin{enumerate}[label=(\\roman*)]\n\\item $h$ is irreducible over $K$. Put $\\tau^2(a):=-\\bigl(23a-s(6a^2+9a-4)\\bigr)/46$ (the expression for $\\tau(a)$ with $s$ replaced by $-s$). Then $a,\\tau(a),\\tau^2(a)$ are the three roots of $h$ in $L$, and the $K$-automorphism $\\tau$ of $L$ with $a\\mapsto\\tau(a)$ maps $\\tau(a)$ to $\\tau^2(a)$ and $\\tau^2(a)$ to $a$. Hence $L/K$ is cyclic of degree 3 and $\\operatorname{Gal}(L/K)=\\langle\\tau\\rangle$.\n\\item Let $w$ be a place of $K$ above a prime $p$. If $p$ is inert in $K$ or $p=23$, then $h$ splits into linear factors over $K_w$, so $L\\otimes_KK_w\\cong K_w^3$. If $p$ splits in $K$, then either $h\\bmod p$ has three distinct roots and $L\\otimes_KK_w\\cong K_w^3$, or $h\\bmod p$ is irreducible; in the latter case $L_w:=L\\otimes_KK_w$ is the unramified cubic extension of $K_w=\\Q_p$, $\\operatorname{Frob}_w=\\tau^{e}$ and $\\operatorname{Frob}_{\\bar w}=\\tau^{-e}$ for some $e\\in\\{1,2\\}$. In particular $L/K$ is unramified at all places.\n\\item The primes $2,3,29,31$ split in $K$, and $h$ is irreducible modulo each of them; $59$ splits in $K$, and $h$ has the roots $17,46,55$ modulo 59; $7,337,9013$ are inert in $K$. Let $w_+$ and $w_-$ be the places of $K$ above 3 with $\\sigma_{w_+}\\equiv2$ and $\\sigma_{w_-}\\equiv-2\\pmod{27}$. Then $\\operatorname{Frob}_{w_+}=\\tau$ and $\\operatorname{Frob}_{w_-}=\\tau^2$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(i) $h(\\pm1)\\ne0$, so $h$ is irreducible over $\\Q$, and a root in the quadratic field $K$ would generate a cubic subfield. That $\\tau(a)$ is a root of $h$ and that $\\tau(\\tau(a))=\\tau^2(a)$, $\\tau(\\tau^2(a))=a$ are identities in $L$ (\\code{1.4.1a}).\n\n(ii) We have $\\operatorname{disc}h=-23$. Let $p\\ne2,23$, and let $\\delta=(r_1-r_2)(r_1-r_3)(r_2-r_3)$ for the roots $r_i$ of $h\\bmod p$ in $\\bar\\F_p$. Then $\\delta^2=-23\\ne0$, and the Frobenius $u\\mapsto u^p$ maps $\\delta$ to $\\pm\\delta$ according to the parity of the permutation it induces on the roots. Hence $h\\bmod p$ has exactly one root if $\\bigl(\\frac{-23}p\\bigr)=-1$, and three roots or none if $\\bigl(\\frac{-23}p\\bigr)=1$. If $p$ is inert, Hensel's lemma gives $h=(T-r)g(T)$ over $\\Z_p$, and $\\operatorname{disc}g\\cdot g(r)^2=\\operatorname{disc}h=-23$ shows that $g$ splits over $K_w=\\Q_p(\\sqrt{-23})$. Modulo 23 we have $h\\equiv(T-20)(T-13)^2$ with coprime factors, and the same argument applies, with $g(r)\\equiv(20-13)^2\\equiv3\\pmod{23}$ a unit. If $p$ splits and $h\\bmod p$ has three roots, they lift to $\\Z_p$. If $h\\bmod p$ is irreducible, $L\\otimes_KK_w\\cong\\Q_p[T]/(h)$ ($a\\mapsto T$, $s\\mapsto\\sigma_w$) is the unramified cubic extension of $\\Q_p$, and $\\tau$ acts on it as the automorphism $\\alpha_w\\colon T\\mapsto P(T,\\sigma_w)$, $P(T,s)=-(23T+s(6T^2+9T-4))/46$; $\\alpha_w\\ne1$ because $\\tau(a)\\ne a$. By (i), $P(P(a,s),s)=\\tau^2(a)=P(a,-s)$, so $\\alpha_{\\bar w}=\\alpha_w^2$ on $\\Q_p[T]/(h)$. If $\\alpha_w=\\varphi^k$ for the Frobenius $\\varphi$ of $\\Q_p[T]/(h)$, then $\\operatorname{Frob}_w=\\tau^{e}$ with $e\\equiv k^{-1}$ and $\\operatorname{Frob}_{\\bar w}=\\tau^{e'}$ with $e'\\equiv(2k)^{-1}\\equiv-e\\pmod 3$. For $p=2$ we have $-23\\equiv1\\pmod8$, so 2 splits in $K$, and $h\\bmod2$ has no root, so it is irreducible. Finally, $L\\otimes_KK_w$ is unramified over $K_w$ for $p\\ne23$ because $h\\bmod p$ is separable, and for $p=23$ because it is split.\n\n(iii) The splitting data are computed by \\code{1.4.1a}. In $\\F_{27}=\\F_3[T]/(h)$ we have $P(T,2)\\equiv T+2\\equiv T^3$ and $P(T,-2)\\equiv T+1\\equiv T^9$ (\\code{1.4.1a}), so $\\alpha_{w_+}=\\varphi$ and $\\alpha_{w_-}=\\varphi^2$.\n\\end{proof}\n\n\\paragraph{Step 2: the twisted cubic.}\nLet $q_0,q_1,q_2$ be the three quadratic forms over $L$ recorded in \\mbox{\\path{data/cubic_a_quadrics.json}} of \\code{1.4.1b}. Every monomial of $q_0$ and of $q_1$ contains $x$ or $y$, so on the plane $(x,y)=(\\lambda w,\\mu w)$ we have\n\\[\nq_k(\\lambda w,\\mu w,z,t)=w\\,\\bigl(A_kw+B_kz+C_kt\\bigr)\\qquad(k=0,1),\n\\]\nwith binary forms $A_k$ of degree 2 and $B_k,C_k$ of degree 1 in $(\\lambda,\\mu)$. Put\n\\[\n\\begin{gathered}\nW=B_0C_1-C_0B_1,\\qquad Z=C_0A_1-A_0C_1,\\qquad T=A_0B_1-B_0A_1,\\\\\n\\phi\\colon\\mathbb P^1_L\\to\\mathbb P^3_L,\\qquad (\\lambda:\\mu)\\mapsto(\\lambda W:\\mu W:Z:T),\n\\end{gathered}\n\\]\nso that $W$ is a quadratic and $Z,T$ are cubic binary forms; $(W:Z:T)$ is the common zero of the two linear forms $A_kw+B_kz+C_kt$ ($k=0,1$), and $\\phi(\\lambda:\\mu)$ lies on the plane $\\mu x=\\lambda y$ through the line $x=y=0$. For $j=1,2$ let $\\tau^j\\phi$ be the map obtained by applying $\\tau^j$ to the coefficients of $\\phi$, so that $(\\tau^j\\phi)(\\mathbb P^1)=\\tau^j(\\phi(\\mathbb P^1))$.\n\n\\begin{lem}\\label{lem:1.4.1-curve}\n\\begin{enumerate}[label=(\\roman*)]\n\\item $\\phi^*q_0=\\phi^*q_1=\\phi^*q_2=0$, $\\phi^*F=0$ and $\\phi^*G=0$.\n\\item The four binary cubics $\\lambda W,\\mu W,Z,T$ are linearly independent over $L$. Hence $C:=\\phi(\\mathbb P^1_L)$ is a twisted cubic: a smooth, geometrically integral curve of degree 3 and genus 0. It lies on $S_L$, on the cubic surface $G=0$ and on the three quadrics $q_k=0$.\n\\item For $j=1,2$ the binary form $q_0(\\tau^j\\phi)$ is not $0$. Hence $\\tau C$ and $\\tau^2C$ do not lie on the quadric $q_0=0$, and $C$, $\\tau C$, $\\tau^2C$ are pairwise distinct. The line $x=y=0$ meets $C$ in $P_0=(0:0:a:1)$ and $P_1=(0:0:\\tau(a):1)$, and $P_2=(0:0:\\tau^2(a):1)\\notin C$.\n\\item $\\divv_S(G)=C+\\tau C+\\tau^2C$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(i)--(iii) are exact computations in $L[\\lambda,\\mu]$ (\\code{1.4.1b}). In (ii), four linearly independent binary cubics form a basis of the space of binary cubics, so $\\phi$ is the composition of $(\\lambda:\\mu)\\mapsto(\\lambda^3:\\lambda^2\\mu:\\lambda\\mu^2:\\mu^3)$ with a projective linear transformation. In (iii), if $\\tau C=C$ then $\\tau^2C=C$, which is excluded, and $\\tau^2C\\ne\\tau C$ follows by applying $\\tau$. The points: $\\operatorname{Res}(W,Z-aT)=\\operatorname{Res}(W,Z-\\tau(a)T)=0$, $\\operatorname{Res}(W,Z-\\tau^2(a)T)\\ne0$ and $\\operatorname{Res}(W,T)\\ne0$ (\\code{1.4.1b}).\n\n(iv) $F$ and $G$ have coefficients in $K$, so by (i) all three curves $\\tau^jC$ lie on $S$ and on $G=0$. The coefficient of $x^3$ is 1 in $F$ and 0 in $G\\ne0$, so $G$ is not a multiple of $F$ and does not vanish on the irreducible surface $S$. By B\u00e9zout's theorem \\cite[Theorem I.7.7]{Hartshorne77}, $\\divv_S(G)$ (the divisor of $G/\\ell^3$ plus three times the plane section $\\ell=0$, for any linear form $\\ell$) is an effective divisor of degree $3\\cdot3=9$. It contains the three distinct prime divisors $C,\\tau C,\\tau^2C$ of degree 3, so it is their sum.\n\\end{proof}\n\n\\paragraph{Step 3: the Brauer class.}\nFor a linear form $\\ell$ over $K$ let $H_\\ell$ be the plane section $\\ell=0$ of $S$. Put $\\psi=G/(288x^3)\\in K(S)^\\times$. By Lemma~\\ref{lem:1.4.1-curve}(iv),\n\\[\n\\divv_S(\\psi)=C+\\tau C+\\tau^2C-3H_x=N_{L/K}(C-H_x),\n\\]\nso by Proposition~\\ref{thm:AD}(1) the cyclic algebra $\\mathcal B=(L/K,\\tau,\\psi)$ lies in $\\operatorname{Br}(S_K)$. Since $G/(288\\ell^3)=\\psi\\cdot(x/\\ell)^3$, Proposition~\\ref{thm:AD}(1) also gives: for every field $K'\\supseteq K$, every linear form $\\ell$ over $K$ and every $P\\in S(K')$ with $G(P)\\,\\ell(P)\\ne0$ (so that $P$ is not on $C\\cup\\tau C\\cup\\tau^2C\\cup H_\\ell$),\n\\begin{equation}\\label{eq:1.4.1-eval}\n\\mathcal B(P)=\\bigl(L\\otimes_KK'/K',\\ \\tau,\\ G(P)/(288\\,\\ell(P)^3)\\bigr).\n\\end{equation}\n\n\\paragraph{Step 4: reduction modulo primes.}\n\\begin{lem}\\label{lem:1.4.1-bad}\n\\begin{enumerate}[label=(\\roman*)]\n\\item $S$ is smooth. For every prime $p\\notin\\{2,3,23,31,59,9013\\}$ the surface $\\bar S_p\\colon F\\equiv0\\pmod p$ is smooth over $\\bar\\F_p$, hence geometrically integral; $\\bar S_3$ is smooth as well.\n\\item Over $\\bar\\F_{31}$, the only singular point of $\\bar S_{31}$ is $P_{31}=(1:23:28:12)$, and $\\bar S_{31}$ is geometrically integral. The square roots of $-23$ modulo 31 are $15$ and $16$, and $G(P_{31})\\equiv6$ for $s=15$, $G(P_{31})\\equiv16$ for $s=16$ $\\pmod{31}$.\n\\item $\\bar S_p$ is singular for $p=2,23,31,59,9013$. Hence these are exactly the primes of bad reduction of $S$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(i) For an order of the variables, the Macaulay matrix in degree 5 of the four partial derivatives of $F$ has its 56 rows indexed by the monomials of degree 5, and the column of a monomial $m$ is the coefficient vector of $(m/v^2)\\,\\partial F/\\partial v$, where $v$ is the first variable in the given order with $v^2\\mid m$. If $\\xi\\in\\bar\\F_p^4\\setminus\\{0\\}$ is a common zero of the partial derivatives modulo $p$, then the vector $(m(\\xi))_m\\ne0$ is in the left kernel of the matrix modulo $p$, so $p$ divides its determinant. For the orders $(x,y,z,t)$ and $(x,y,t,z)$ the determinants are\n\\[\n2^6\\cdot3^{17}\\cdot7\\cdot23\\cdot29\\cdot31\\cdot59^2\\cdot337\\cdot9013^2\\quad\\text{and}\\quad2^6\\cdot3^{19}\\cdot23\\cdot31\\cdot59^3\\cdot73\\cdot9013^2\n\\]\n(\\code{1.4.1c}), with greatest common divisor $2^6\\cdot3^{17}\\cdot23\\cdot31\\cdot59^2\\cdot9013^2$. For $p\\ne3$, Euler's identity $3F=\\sum_vv\\,\\partial F/\\partial v$ shows that a singular point of $\\bar S_p$ is a common zero of the partial derivatives, so $\\bar S_p$ is smooth for $p\\notin\\{2,3,23,31,59,9013\\}$; over $\\bar\\Q$ the same argument shows that $S$ is smooth. A cubic surface that is reducible or non-reduced over $\\bar\\F_p$ is singular along a curve (all partial derivatives of $F_1F_2$ vanish on $V(F_1)\\cap V(F_2)$), so a cubic surface with finitely many singular points is geometrically integral.\n\nFor $p\\in\\{3,31\\}$ consider the $\\F_p$-linear map $(g_0,g_1,\\dots,g_4)\\mapsto g_0F+\\sum_ig_i\\,\\partial F/\\partial v_i$ from (forms of degree 2)$\\times$(forms of degree 3)$^4$ to the 56-dimensional space of forms of degree 5. A common zero $\\xi\\ne0$ of $F$ and its partial derivatives over $\\bar\\F_p$ gives the nonzero linear form ``evaluation at $\\xi$'' on the forms of degree 5, which vanishes on the image, and two distinct points of $\\mathbb P^3(\\bar\\F_p)$ give two linearly independent linear forms. The rank of the map is 56 for $p=3$ and 55 for $p=31$, and $F$ and its partial derivatives vanish at $P_{31}$ modulo 31 (\\code{1.4.1c}). This proves the claims on $\\bar S_3$ and the first claim of (ii); the values of $G$ are computed by \\code{1.4.1c}.\n\n(iii) $F$ and its partial derivatives vanish modulo $p$ at $(1:18:3:10)$, $(1:23:28:12)$, $(1:47:12:14)$, $(1:7636:7996:3944)$ for $p=23,31,59,9013$, and modulo 2 at the three points $(1:r^3+r:r^5:r)$ over $\\F_8$, $r^3+r^2+1=0$ (\\code{1.4.1c}).\n\\end{proof}\n\n\\paragraph{Step 5: the places not above 3.}\n\\begin{lem}\\label{lem:1.4.1-zero}\nLet $p\\ne3$ be a prime and $P\\in S(\\Q_p)$. Then $\\sum_{w\\mid p}\\operatorname{inv}_w\\mathcal B(P)=0$, and for $p\\ne2$ each term is $0$. At the complex place $w_\\infty$ of $K$, $\\operatorname{inv}_{w_\\infty}\\mathcal B(P)=0$ for every $P\\in S(\\mathbb C)$.\n\\end{lem}\n\\begin{proof}\n$\\operatorname{Br}(\\mathbb C)=0$. If $L\\otimes_KK_w\\cong K_w^3$, which by Lemma~\\ref{lem:1.4.1-field}(ii) is the case when $p$ is inert in $K$, when $p=23$, and when $p$ splits and $h\\bmod p$ has three roots (for example $p=59$), then $\\mathcal B(P)$ is split at $w$ (\\cite[Chapters V--VI]{Neukirch99}). It remains to treat the primes $p$ that split in $K$ with $h\\bmod p$ irreducible. Then $L_w/\\Q_p$ is the unramified cubic extension, $\\operatorname{Frob}_w=\\tau^e$ and $\\operatorname{Frob}_{\\bar w}=\\tau^{-e}$.\n\n$p=2$. Choose $\\ell\\in\\{x,y,z,t\\}$ with $\\ell(P)\\in\\Z_2^\\times$. For every primitive solution of $F\\equiv0\\pmod{32}$, $G^{(w)}$ has 2-adic valuation 1 if $\\sigma_w\\equiv5\\pmod8$ and 4 if $\\sigma_w\\equiv3\\pmod8$ (\\code{1.4.1d}); since these valuations are less than 5, the same holds at $P$. In particular $G(P)\\ne0$, and by~\\eqref{eq:1.4.1-eval} the algebra $\\mathcal B(P)$ at $w$ is $(L_w/\\Q_2,\\tau,c_w)$ with $v_2(c_w)=v_2(G^{(w)}(P))-v_2(288)\\in\\{-4,-1\\}$, so $v_2(c_w)\\equiv v_2(c_{\\bar w})\\equiv2\\pmod3$. By \\cite[Chapters V--VI]{Neukirch99}, $\\operatorname{inv}_w\\mathcal B(P)+\\operatorname{inv}_{\\bar w}\\mathcal B(P)=\\bigl(2e+2(-e)\\bigr)/3=0$.\n\n$p\\ge5$ (this covers $p=29$, $p=31$ and all primes of good reduction with $h\\bmod p$ irreducible). By Lemma~\\ref{lem:1.4.1-bad}, $\\bar S_p$ is geometrically integral, and $\\bar P$ is a smooth point of $\\bar S_p$ unless $p=31$ and $\\bar P=P_{31}$. The reduction of $G^{(w)}$ does not vanish on $\\bar S_p$: otherwise it would be a multiple of $F\\bmod p$, hence $0$ (compare the coefficients of $x^3$), but its coefficient of $xy^2$ is $288\\not\\equiv0$. If $\\bar P$ is a smooth point, Proposition~\\ref{thm:AD}(3) (with $\\psi=G/(288\\ell^3)$, $\\ell$ a coordinate with $\\ell(\\bar P)\\ne0$, and $v_p(288)=0$) gives $\\operatorname{inv}_w\\mathcal B(P)=0$. If $p=31$ and $\\bar P=P_{31}$, then $x(P)$ is a unit and $G^{(w)}(P)\\equiv G^{(w)}(P_{31})\\equiv6$ or $16\\pmod{31}$ is a unit (Lemma~\\ref{lem:1.4.1-bad}(ii)), so by~\\eqref{eq:1.4.1-eval} with $\\ell=x$ and \\cite[Chapters V--VI]{Neukirch99}, $\\operatorname{inv}_w\\mathcal B(P)=e\\cdot0/3=0$.\n\\end{proof}\n\n\\paragraph{Step 6: the places above 3.}\n\\begin{lem}\\label{lem:1.4.1-three}\nFor every $P\\in S(\\Q_3)$ we have $v_3(G^{(w_+)}(P))=0$, $v_3(G^{(w_-)}(P))=1$, and\n\\[\n\\operatorname{inv}_{w_+}\\mathcal B(P)+\\operatorname{inv}_{w_-}\\mathcal B(P)=\\tfrac23 .\n\\]\n\\end{lem}\n\\begin{proof}\nThe primitive coordinates of $P$ reduce to one of the $10{,}206$ primitive solutions of $F\\equiv0\\pmod{27}$. For each of them, with $\\sigma_{w_+}\\equiv2$ and $\\sigma_{w_-}\\equiv25\\pmod{27}$, the value of $G^{(w_+)}$ has 3-adic valuation 0 and that of $G^{(w_-)}$ has valuation 1 (\\code{1.4.1e}; the same holds for the $275{,}562$ primitive solutions modulo 81). Valuations less than 3 are determined modulo 27, which proves the first claim. Choose $\\ell\\in\\{x,y,z,t\\}$ with $\\ell(P)\\in\\Z_3^\\times$, and put $c=G(P)/(288\\ell(P)^3)$; since $v_3(288)=2$, $v_{w_+}(c)=-2$ and $v_{w_-}(c)=-1$. By~\\eqref{eq:1.4.1-eval}, Lemma~\\ref{lem:1.4.1-field}(iii) and \\cite[Chapters V--VI]{Neukirch99},\n\\[\n\\operatorname{inv}_{w_+}\\mathcal B(P)=\\frac{1\\cdot(-2)}3\\equiv\\frac13,\\qquad \\operatorname{inv}_{w_-}\\mathcal B(P)=\\frac{2\\cdot(-1)}3\\equiv\\frac13\\pmod1 .\n\\]\n(With the opposite sign convention for the invariants the sum is $1/3$; it is nonzero in either case.)\n\\end{proof}\n\n\\paragraph{Step 7: conclusion.}\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.4.1}]\nSuppose $P\\in S(\\Q)$. Then $P\\in S(K)$, and by Proposition~\\ref{thm:AD}(4), $\\sum_w\\operatorname{inv}_w\\mathcal B(P)=0$, the sum over all places of $K$. Grouping the places by the primes below them, Lemmas~\\ref{lem:1.4.1-zero} and~\\ref{lem:1.4.1-three} give $\\sum_w\\operatorname{inv}_w\\mathcal B(P)=2/3$, a contradiction. Hence $S(\\Q)=\\varnothing$. A nonzero integer solution would give a rational point of $S$.\n\\end{proof}\n\n\\begin{rem}\n$S$ has points over $\\R$ and over every $\\Q_p$: at $p=2,23,31,59,9013$ the points $(1:0:1:1)$, $(1:0:0:6)$, $(1:0:0:20)$, $(1:0:1:10)$, $(1:0:0:8363)$ are smooth points of $\\bar S_p$, at $p=3$ the point $(1:0:0:1)$ is a smooth point of $\\bar S_3$ (\\code{1.4.1f}), at the other primes $\\bar S_p$ is smooth and has an $\\F_p$-point by the Chevalley--Warning theorem, and all of them lift by Hensel's lemma; $F(1,0,0,t)=t^3+t^2+1$ has a real root. So the obstruction is not local. In terms of $\\mathcal A=\\operatorname{Cor}_{K/\\Q}\\mathcal B\\in\\operatorname{Br}(S)$, whose local invariant at $P\\in S(\\Q_p)$ is $\\sum_{w\\mid p}\\operatorname{inv}_w\\mathcal B(P)$, Steps 5 and 6 say that $\\sum_p\\operatorname{inv}_p\\mathcal A(P_p)=2/3$ for every adelic point $(P_p)$; so $S(\\mathbb A_\\Q)^{\\operatorname{Br}}=\\varnothing$, and the class of $\\mathcal A$ in $\\operatorname{Br}(S)/\\operatorname{Br}(\\Q)$ has order 3.\n\\end{rem}\n\n\\subsection{\\texorpdfstring{$2x^3+x^2y+xy^2+y^3+y^2z-2xz^2-z^3+t^2y+tz^2-t^3=0$ \\ ($H=96$)}{2x^3+x^2y+xy^2+y^3+y^2z-2xz^2-z^3+t^2y+tz^2-t^3=0 (H=96)}}\\label{sec:1.4.2}\n\n\n\\begin{thm}\\label{thm:1.4.2}\nThe only integer solution of\n\\[\nF(x,y,z,t)=2x^3+x^2y+xy^2+y^3+y^2z-2xz^2-z^3+t^2y+tz^2-t^3=0\n\\]\nis $(x,y,z,t)=(0,0,0,0)$.\n\\end{thm}\n\n\\paragraph{Setup.} Since $F$ is homogeneous, it suffices to show that the cubic surface $S:F=0$ in $\\mathbb P^3$ has no rational point. Let $K=\\Q(s)$ with $s^2=-23$, let $h(T)=T^3-T+1$, let $L$ be the splitting field of $h$ over $\\Q$, and let $q\\in L$ be a root of $h$. Put\n\\[\n\\ell_\\pm=(-1\\pm s)x+4y,\\qquad \\rho=-\\frac{(s-1)q^2+8}{4(3q^2-1)}.\n\\]\nThe plane $\\ell_+=0$ meets $S$ in three lines that are defined over $L$ and permuted cyclically by $\\operatorname{Gal}(L/K)$ (Step 2). For a rational point $P$ of $S$ we put $\\psi=\\ell_+(P)/\\ell_-(P)\\in K^\\times$ and compute the local invariants $\\operatorname{inv}_w(\\psi)$ of the cyclic cubic extension $L/K$ (\\cite[Chapters V--VI]{Neukirch99}). They vanish at every place of $K$ except the two places above 2 (Steps 3--4), and there they are equal and nonzero (Step 5), which contradicts the reciprocity law.\n\nFor a place $w$ of $K$ we write $K_w$ for the completion and $v_w$ for the normalized valuation. Complex conjugation $c$ is the nontrivial automorphism of $K$, and $c(w)$ is the place with $v_{c(w)}(c(\\alpha))=v_w(\\alpha)$. Since $P$ is rational, $c(\\ell_+(P))=\\ell_-(P)$ and $c(\\psi)=\\psi^{-1}$.\n\n\\paragraph{Step 1: the fields.}\n\\begin{lem}\\label{lem:1.4.2-field}\n\\begin{enumerate}[label=(\\roman*)]\n\\item $h$ is irreducible over $\\Q$ and $\\operatorname{disc}(h)=-23$. $L=K(q)\\cong K[T]/(h)$, $[L:K]=3$, and $\\operatorname{Gal}(L/K)$ is cyclic, generated by the automorphism $\\tau$ with $\\tau(q)=\\bigl(-q+s/h'(q)\\bigr)/2$. Every element of $\\operatorname{Gal}(L/\\Q)$ outside $\\operatorname{Gal}(L/K)$ conjugates $\\tau$ to $\\tau^{-1}$.\n\\item Let $w$ be a place of $K$ above a prime $p$. If $h$ has a simple root modulo $p$, then $L\\otimes_KK_w\\cong K_w^3$, that is, $L/K$ is split at $w$. This is the case for $p=23$ ($h\\equiv(T-13)^2(T-20)$), for every $p$ that is inert in $K$, and for every $p$ that splits in $K$ and modulo which $h$ has a root.\n\\item If $p$ splits in $K$ and $h$ has no root modulo $p$, then $K_w=\\Q_p$, $L\\otimes_KK_w$ is the unramified extension of $\\Q_p$ of degree 3, $w$ is unramified in $L$, and its Frobenius element generates $\\operatorname{Gal}(L/K)$. This is the case for $p=2$ and $p=3$.\n\\item Every prime $p$ falls under (ii) or (iii).\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(i) $\\pm1$ are not roots of $h$, so $h$ is irreducible, and $\\operatorname{disc}(h)=-4(-1)^3-27=-23$. Let $q_1,q_2,q_3$ be the roots of $h$ in $L$ and $\\delta=(q_1-q_2)(q_1-q_3)(q_2-q_3)$; then $\\delta^2=-23$, so $K=\\Q(\\delta)\\subseteq L$. The group $\\operatorname{Gal}(L/\\Q)$ acts faithfully and transitively on the roots, and the elements that fix $\\delta$ are the even permutations; since $\\delta\\notin\\Q$, $\\operatorname{Gal}(L/\\Q)\\cong S_3$ and $\\operatorname{Gal}(L/K)\\cong A_3$ is cyclic of order 3. Hence $L=K(q)$, and $L\\cong K[T]/(h)$ since $h$ is irreducible over $K$. The transpositions invert the 3-cycles. The element $(-q+s/h'(q))/2$ is a root of $h$ different from $q$ (we have $(q-q_2)(q-q_3)=h'(q)$ and $(q_2-q_3)^2=-23/h'(q)^2$), and the $K$-automorphism $\\tau$ that maps $q$ to it has order 3 (\\code{1.4.2b}).\n\n(ii) We have $L\\otimes_KK_w\\cong K_w[T]/(h)$, and this is the product of the completions of $L$ at the places above $w$, which are all isomorphic since $L/K$ is Galois. A simple root modulo $p$ lifts to a root in $\\Z_p\\subseteq K_w$ by Hensel's lemma, so one factor is $K_w$, and hence all of them are. Modulo 23, $h\\equiv(T-13)^2(T-20)$ and 20 is a simple root. If $p$ is inert in $K$, then $p\\ne2$ ($-23\\equiv1\\pmod 8$, so 2 splits) and $p\\ne23$, so the roots $\\theta_1,\\theta_2,\\theta_3$ of $h$ in $\\overline{\\F}_p$ are distinct, and $\\bar\\delta=\\prod_{i0$, and put $y_0=(1-s)x/4$. Then $y-y_0=\\ell_+(P)/4$ has positive valuation, so $F(x,y_0,z,t)\\equiv F(x,y,z,t)=0$ modulo $\\mathfrak W$. Put $m_i=t-\\tau^i(\\rho)x-\\tau^i(q)z$. By Lemma~\\ref{lem:1.4.2-plane}(i), (iii), $\\prod_im_i$ has positive $\\mathfrak W$-valuation and every $m_i$ is $\\mathfrak W$-integral, so $v_{\\mathfrak W}(m_i)>0$ for some $i$. Since $x,z,t\\in\\Q$, we have $m_i=\\tau^i(m_0)$, and therefore $v_{\\mathfrak W}(m_0)=v_{\\mathfrak W}(m_1)=v_{\\mathfrak W}(m_2)>0$. If $M$ is the matrix of Lemma~\\ref{lem:1.4.2-plane}(ii), then $M\\,(x,z,t)^{\\mathsf T}=(m_0,m_1,m_2)^{\\mathsf T}$, and $\\det M=(s-1)/2$ is a unit at $\\mathfrak W$ since $p\\nmid6$. Hence $x,z,t\\equiv0$ modulo $\\mathfrak W$, that is, $p\\mid x,z,t$, and then $4y=\\ell_+(P)-(-1+s)x$ gives $p\\mid y$. This contradicts the coprimality of the coordinates.\n\nThe place $c(w)$ is of the same type, so also $v_{c(w)}(\\ell_+(P))=0$, that is, $v_w(\\ell_-(P))=v_w(c(\\ell_+(P)))=0$. Hence $v_w(\\psi)=0$, and $\\operatorname{inv}_w(\\psi)=0$ by \\cite[Chapters V--VI]{Neukirch99}.\n\\end{proof}\nFor $5\\le p<500$ the conclusion is also confirmed directly: for each of the 32 such primes and both square roots of $-23$ modulo $p$, the plane cubic $F(x,(1-s)x/4,z,t)$ has no zero in $\\mathbb P^2(\\F_p)$ (\\code{1.4.2d}).\n\n\\paragraph{Step 4: the places above 2 and 3.} Let $s_2\\in\\Z_2$ be the root of $s^2=-23$ with $s_2\\equiv1\\pmod4$; then $s_2\\equiv45\\pmod{256}$. Let $s_3\\in\\Z_3$ be the root with $s_3\\equiv1\\pmod3$; then $s_3\\equiv25\\pmod{81}$ ($s_3\\equiv187\\pmod{243}$). Let $w_2$ and $w_3$ be the places of $K$ given by $s\\mapsto s_2$ and $s\\mapsto s_3$. The other places above 2 and 3 are $c(w_2)$ and $c(w_3)$.\n\n\\begin{lem}\\label{lem:1.4.2-two}\nFor every $(x,y,z,t)\\in\\Z_2^4$, not all even, with $F(x,y,z,t)=0$, the pair $(v_2(\\ell_+),v_2(\\ell_-))$ (with $s=s_2$) is $(2,1)$, $(5,1)$ or $(2,4)$, according as $(x,y,z,t)$ is congruent modulo 2 to $(1,0,0,0)$, $(1,1,1,1)$ or $(0,1,1,1)$. In particular $v_{w_2}(\\psi)\\equiv1\\pmod3$.\n\\end{lem}\n\\begin{proof}\nModulo 2, $F\\equiv x^2y+xy^2+y^3+y^2z+z^3+t^2y+tz^2+t^3$, whose only projective zeros are the three residues of the statement. Moreover, modulo 16 every solution with $x,y,z,t$ odd has $y\\equiv13x$, and every solution with $x$ even and $y,z,t$ odd has $x\\equiv6y$ (\\code{1.4.2c}). We have $(s_2-1)/4\\equiv11\\pmod{64}$ and $(s_2+1)/2\\equiv23\\pmod{128}$, so $v_2(s_2-1)=2$ and $v_2(s_2+1)=1$.\n\nIf $x$ is odd and $y$ is even, then $v_2(\\ell_+)=v_2((s_2-1)x)=2$ and $v_2(\\ell_-)=v_2(-(s_2+1)x)=1$. If $x,y,z,t$ are odd, then $v_2(\\ell_-)=1$, and $\\ell_+/4=\\frac{s_2-1}4x+y\\equiv11x+13x=24x\\pmod{16}$ has valuation 3, so $v_2(\\ell_+)=5$. If $x$ is even and $y,z,t$ are odd, then $v_2(\\ell_+)=2$, and $\\ell_-/4=y-\\frac{s_2+1}2\\cdot\\frac x2\\equiv y-23\\cdot3y=-68y\\pmod 8$ has valuation 2, so $v_2(\\ell_-)=4$. In each case $v_2(\\ell_+)-v_2(\\ell_-)\\equiv1\\pmod 3$, and $v_{w_2}(\\psi)=v_2(\\ell_+(P))-v_2(\\ell_-(P))$.\n\\end{proof}\nThe lemma is also confirmed by the complete residue tree of all primitive 2-adic points modulo $2^8$ (49152 normalized classes; every pair is determined from $2^6$ on) and by a direct enumeration of all primitive solutions modulo $2^6$ (\\code{1.4.2c}).\n\n\\begin{lem}\\label{lem:1.4.2-three}\nFor every $(x,y,z,t)\\in\\Z_3^4$, not all divisible by 3, with $F(x,y,z,t)=0$, the pair $(v_3(\\ell_+),v_3(\\ell_-))$ (with $s=s_3$) is $(3,0)$ if $(x,y,z,t)$ is congruent to a multiple of $(1,0,0,-1)$ modulo 3, and $(0,0)$ otherwise. In particular $v_{w_3}(\\psi)\\equiv0\\pmod3$.\n\\end{lem}\n\\begin{proof}\nSince $s_3\\equiv1\\pmod3$, we have $\\ell_+\\equiv y$ and $\\ell_-\\equiv x+y\\pmod 3$. The projective zeros of $F$ modulo 3 are $(1,0,0,-1)$, $(1,1,1,0)$, $(1,1,-1,0)$, $(0,1,0,-1)$ (\\code{1.4.2c}), and at the last three both forms are units. At the first one, scale to $x=1$ and write $y=3Y$, $z=3Z$, $t=-1+3T$. Then\n\\[\n\\tfrac13F=1+2Y-3T+3Y^2-6TY+9\\bigl(-T^3+T^2Y+T^2+TZ^2+Y^3+Y^2Z-Z^3-Z^2\\bigr).\n\\]\nModulo 3 this gives $Y\\equiv1$, and then modulo 9, with $Y=1+3Y_1$, it gives $6(1+Y_1)\\equiv0$, so $Y\\equiv7\\pmod9$. With $Y=7+9Y_2$, the equation modulo 27 becomes $9(2Y_2+1+2T^2+TZ^2-Z^2)\\equiv0$, that is, $Y_2\\equiv1+2T^2+TZ^2+2Z^2\\pmod 3$, and $2T^2+TZ^2+2Z^2\\in\\{0,2\\}$ modulo 3 for all $T,Z$. Hence $Y\\equiv7$ or $16\\pmod{27}$. Now $\\ell_+=(s_3-1)+12Y\\equiv12(Y+2)\\pmod{81}$ has valuation $1+2=3$, and $\\ell_-\\equiv1\\pmod3$ is a unit.\n\\end{proof}\nThe lemma is also confirmed by the complete residue tree modulo $3^5$ (26244 classes; every pair is determined from $3^4$ on) and by a direct enumeration of all primitive solutions modulo $3^4$ (\\code{1.4.2c}).\n\n\\paragraph{Step 5: reciprocity.}\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.4.2}]\nSuppose that $S$ has a rational point $P$, and let $\\psi$ be as in Step 3. By \\cite[Chapter VI, Section 5]{Neukirch99}, $\\sum_w\\operatorname{inv}_w(\\psi)=0$, and by Lemma~\\ref{lem:1.4.2-good} only the places $w_2,c(w_2),w_3,c(w_3)$ can contribute. They are unramified in $L$ with Frobenius elements generating $\\operatorname{Gal}(L/K)$ (Lemma~\\ref{lem:1.4.2-field}(iii)). Write $\\operatorname{Frob}_{w_2}=\\tau^m$ with $m\\in\\{1,2\\}$. By Lemma~\\ref{lem:1.4.2-field}(i), the hypothesis of \\cite[Chapters V--VI]{Neukirch99} holds (with $k=\\Q$), and $c(\\psi)=\\psi^{-1}$; so $\\operatorname{inv}_{c(w)}(\\psi)=\\operatorname{inv}_w(\\psi)$ for $w=w_2,w_3$. By \\cite[Chapters V--VI]{Neukirch99} and Lemma~\\ref{lem:1.4.2-three}, $\\operatorname{inv}_{w_3}(\\psi)=0$, since $v_{w_3}(\\psi)\\equiv0\\pmod 3$. By \\cite[Chapters V--VI]{Neukirch99} and Lemma~\\ref{lem:1.4.2-two}, $\\operatorname{inv}_{w_2}(\\psi)=m\\,v_{w_2}(\\psi)/3\\equiv m/3\\pmod 1$. Hence\n\\[\n\\sum_w\\operatorname{inv}_w(\\psi)=2\\operatorname{inv}_{w_2}(\\psi)=\\frac{2m}3\\not\\equiv0\\pmod1,\n\\]\na contradiction. Therefore $S(\\Q)=\\varnothing$. A nonzero integer solution would give a rational point of $S$, so the only integer solution is $(0,0,0,0)$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$2x^3+2x^2y+2y^3+y^2z-2xz^2-z^3+tz^2-t^3=0$ \\ ($H=96$)}{2x^3+2x^2y+2y^3+y^2z-2xz^2-z^3+tz^2-t^3=0 (H=96)}}\\label{sec:1.4.3}\n\n\n\\begin{thm}\\label{thm:1.4.3}\nThe only integer solution of\n\\[\nF(x,y,z,t)=2x^3+2x^2y+2y^3+y^2z-2xz^2-z^3+tz^2-t^3=0\n\\]\nis $(x,y,z,t)=(0,0,0,0)$.\n\\end{thm}\n\n\\paragraph{Setup.} The proof is the same as that of Section~\\ref{sec:1.4.2}, with a different decisive prime. It suffices to show that the cubic surface $S:F=0$ in $\\mathbb P^3$ has no rational point. Let $K=\\Q(s)$ with $s^2=-11$, let $g(U)=U^3-4U-4$, let $L$ be the splitting field of $g$ over $\\Q$, let $u\\in L$ be a root of $g$, and put $q=u/2$, so that $2q^3-2q-1=0$. (The field $\\Q(u)$ is also generated by a root $v$ of $h_C(V)=V^3-V^2-V-1$: $u=v^2-1$ and $v=u^2/2-1$; and $L$ is the splitting field of $h_C$.) Put\n\\[\n\\ell_\\pm=(2\\pm s)y+3t,\\qquad \\rho=\\frac{s+2-6q^2}{6(3q^2-1)}.\n\\]\nThe plane $\\ell_+=0$ meets $S$ in three lines permuted cyclically by $\\operatorname{Gal}(L/K)$ (Step 2). For a rational point $P$ we put $\\psi=\\ell_+(P)/\\ell_-(P)\\in K^\\times$; its local invariants for $L/K$ (\\cite[Chapters V--VI]{Neukirch99}) vanish at every place of $K$ except the two places above 3 (Steps 3--4), where they are equal and nonzero (Step 5). The notation $K_w$, $v_w$, $c$, $c(w)$ is as in Section~\\ref{sec:1.4.2}; again $c(\\psi)=\\psi^{-1}$.\n\n\\paragraph{Step 1: the fields.}\n\\begin{lem}\\label{lem:1.4.3-field}\n\\begin{enumerate}[label=(\\roman*)]\n\\item $g$ is irreducible over $\\Q$ and $\\operatorname{disc}(g)=-176=-11\\cdot4^2$. $L=K(u)\\cong K[U]/(g)$, $[L:K]=3$, and $\\operatorname{Gal}(L/K)$ is cyclic, generated by the automorphism $\\tau$ with $\\tau(u)=\\bigl(-u+4s/g'(u)\\bigr)/2$. Every element of $\\operatorname{Gal}(L/\\Q)$ outside $\\operatorname{Gal}(L/K)$ conjugates $\\tau$ to $\\tau^{-1}$.\n\\item Let $w$ be a place of $K$ above a prime $p$. If $g$ has a simple root modulo $p$, then $L/K$ is split at $w$. This is the case for $p=11$ ($g\\equiv(U-4)^2(U-3)$), for every odd $p$ that is inert in $K$, and for every $p$ that splits in $K$ and modulo which $g$ has a root.\n\\item If $p$ splits in $K$ and $g$ has no root modulo $p$, then $K_w=\\Q_p$, $L\\otimes_KK_w$ is the unramified extension of $\\Q_p$ of degree 3, $w$ is unramified in $L$, and its Frobenius element generates $\\operatorname{Gal}(L/K)$. This is the case for $p=3$.\n\\item The prime 2 is inert in $K$: $K_w=\\Q_2(s)$ is the unramified quadratic extension of $\\Q_2$, and with $\\omega=(1+s)/2$ ($\\omega^2-\\omega+3=0$) we have $2+s=1+2\\omega$ and $2-s=3-2\\omega$. Every odd prime falls under (ii) or (iii).\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\nAs for Lemma~\\ref{lem:1.4.2-field}. The rational roots of $g$ would divide 4, and $\\pm1,\\pm2,\\pm4$ are not roots. $\\operatorname{disc}(g)=-4(-4)^3-27\\cdot16=-176$, and $K=\\Q(\\sqrt{-176})$. Since $u$ has two conjugates with $(u_2-u_3)^2=-176/g'(u)^2$, $\\tau(u)$ is a root of $g$ different from $u$, and $\\tau$ has order 3 (\\code{1.4.3b}). Modulo 11, $g\\equiv(U-4)^2(U-3)$. If $p$ is odd, $p\\ne11$, the roots of $g$ modulo $p$ are distinct, and the argument with $\\bar\\delta^2=-176$ shows that $g$ has exactly one root modulo $p$ if $p$ is inert in $K$, and 0 or 3 roots if $p$ splits. The prime 3 splits ($-11\\equiv1\\pmod3$), and $g\\equiv U^3-U-1$ has no root modulo 3. The prime 2 is inert since $-11\\equiv5\\pmod8$. These facts are checked by \\code{1.4.3a}.\n\\end{proof}\nIn fact $h_C(V+1)=V^3+2V^2-2$ is Eisenstein at 2, so $L/K$ is totally (and tamely) ramified at the place above 2, and unramified at every other place; the field discriminant of $\\Q(u)$ is $-44$ (\\code{1.4.3a}). We do not use this: at 2 the argument of Lemma~\\ref{lem:1.4.3-two} works for any cubic extension.\n\n\\paragraph{Step 2: the plane section.}\n\\begin{lem}\\label{lem:1.4.3-plane}\n\\begin{enumerate}[label=(\\roman*)]\n\\item As polynomials in $x,y,z$ with coefficients in $L$,\n\\[\nF\\Bigl(x,y,z,-\\frac{(2+s)y}{3}\\Bigr)=2\\prod_{i=0}^{2}\\bigl(x-\\tau^i(\\rho)\\,y-\\tau^i(q)\\,z\\bigr).\n\\]\n\\item The determinant of the matrix with rows $\\bigl(1,-\\tau^i(\\rho),-\\tau^i(q)\\bigr)$ ($i=0,1,2$) is 2.\n\\item $u$ is an algebraic integer, $3q^2-1=(3u^2-4)/4$, and $N_{\\Q(u)/\\Q}(3u^2-4)=-\\operatorname{disc}(g)=176$. Hence $\\tau^i(\\rho)$ and $\\tau^i(q)$ are integral at every place of $L$ not above $2$, $3$ or $11$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(i) and (ii) are identities in $\\Q[u,s]/(g(u),s^2+11)$, with $\\tau(u)=-u/2+s(-6u^2+9u+16)/22$ (\\code{1.4.3b}); (i) is also verified through the resultant of $g$ with the numerator $6(3u^2-4)(x-uz/2)-4(s+2-\\frac32u^2)y$. (iii) $\\rho=4(s+2-\\frac32u^2)/(6(3u^2-4))$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.4.3-nonzero}\nIf $P$ is a rational point of $S$, then $\\ell_\\pm(P)\\ne0$.\n\\end{lem}\n\\begin{proof}\n$\\ell_\\pm(P)=0$ implies $y=t=0$, and then $F(x,0,z,0)=2x^3-2xz^2-z^3=0$. If $x=0$, then $z=0$. Otherwise $r=z/x$ is a rational root of $r^3+2r^2-2$, but $\\pm1,\\pm2$ are not roots (\\code{1.4.3b}).\n\\end{proof}\n\n\\paragraph{Step 3: the places not above 2 and 3.} From now on $P$ is a rational point of $S$ with coprime integer coordinates, and $\\psi=\\ell_+(P)/\\ell_-(P)\\in K^\\times$.\n\\begin{lem}\\label{lem:1.4.3-good}\n$\\operatorname{inv}_w(\\psi)=0$ for every place $w$ of $K$ that does not lie above 2 or 3.\n\\end{lem}\n\\begin{proof}\nAt the complex place and at the places of type (ii) of Lemma~\\ref{lem:1.4.3-field}, $L/K$ is split. It remains to treat a place $w$ above a prime $p\\ge5$ that splits in $K$ (so $p\\ne11$) and modulo which $g$ has no root; there is a unique place $\\mathfrak W$ of $L$ above $w$, and $v_{\\mathfrak W}\\circ\\tau=v_{\\mathfrak W}$. Suppose $v_w(\\ell_+(P))>0$. With $t_0=-(2+s)y/3$ we have $t-t_0=\\ell_+(P)/3$, so $F(x,y,z,t_0)\\equiv0$ modulo $\\mathfrak W$. By Lemma~\\ref{lem:1.4.3-plane}(i), (iii), some, and hence every, $m_i=x-\\tau^i(\\rho)y-\\tau^i(q)z=\\tau^i(m_0)$ has positive $\\mathfrak W$-valuation. The determinant 2 of Lemma~\\ref{lem:1.4.3-plane}(ii) is a unit at $\\mathfrak W$, so $p\\mid x,y,z$, and then $3t=\\ell_+(P)-(2+s)y$ gives $p\\mid t$, a contradiction. Hence $v_w(\\ell_+(P))=0$, and likewise $v_{c(w)}(\\ell_+(P))=0$, that is, $v_w(\\ell_-(P))=0$. So $v_w(\\psi)=0$ and $\\operatorname{inv}_w(\\psi)=0$ by \\cite[Chapters V--VI]{Neukirch99}.\n\\end{proof}\nFor the 32 such primes $5\\le p<500$ the plane cubic $F(x,y,z,-(2+s)y/3)$ has no zero in $\\mathbb P^2(\\F_p)$ for either square root of $-11$ modulo $p$ (\\code{1.4.3d}).\n\n\\paragraph{Step 4: the places above 2 and 3.} Let $s_3\\in\\Z_3$ be the root of $s^2=-11$ with $s_3\\equiv1\\pmod3$; then $s_3\\equiv31\\pmod{81}$. Let $w_3$ be the place of $K$ given by $s\\mapsto s_3$; the other place above 3 is $c(w_3)$. Let $w_2$ be the place above 2.\n\n\\begin{lem}\\label{lem:1.4.3-two}\nEvery $(x,y,z,t)\\in\\Z_2^4$, not all even, with $F(x,y,z,t)=0$ has $y$ odd and $t$ even. Consequently $\\ell_+(P)\\equiv\\ell_-(P)\\equiv1$ modulo $2\\mathcal O_{K_{w_2}}$, $\\psi\\in1+2\\mathcal O_{K_{w_2}}$, and $\\operatorname{inv}_{w_2}(\\psi)=0$.\n\\end{lem}\n\\begin{proof}\nModulo 2, $F\\equiv y^2z+z^3+tz^2+t^3$. If $y$ is even and $t$ is odd, then $F\\equiv z(y^2+z^2+tz)+t^3\\equiv z^3+z^2+1\\not\\equiv0$; so if $y$ is even, then $t$ and $z$ are even and $x$ is odd, and then $F\\equiv2x^2(x+y)\\equiv2\\pmod 4$. If $t$ is odd, then $F\\equiv z^3+z^2+y^2z+1\\pmod 2$ forces $z$ odd and then $y$ odd; with $y^2\\equiv z^2\\equiv t^2\\equiv1\\pmod8$ we get $F\\equiv2(x^3+x^2y+y-x)\\pmod8$, which is $\\equiv4y\\equiv4\\pmod 8$ if $x$ is odd and $\\equiv2(y-x)\\equiv2\\pmod4$ if $x$ is even. Hence $y$ is odd and $t$ is even (\\code{1.4.3c} checks all primitive solutions modulo 8). By Lemma~\\ref{lem:1.4.3-field}(iv), $\\ell_\\pm\\equiv y+t\\equiv1$ modulo $2\\mathcal O_{K_{w_2}}$, so $\\psi\\equiv1$. By Hensel's lemma ($X^3-\\psi$ at $X=1$; $3$ is a unit) $\\psi=b^3$ with $b\\in K_{w_2}$, and $b^3$ is the norm of $b$ from every cubic extension of $K_{w_2}$. Hence $\\psi$ is a local norm and $\\operatorname{inv}_{w_2}(\\psi)=0$ by \\cite[Chapters V--VI]{Neukirch99}. (Equivalently, by \\cite[Chapters V--VI]{Neukirch99}: the residue of $\\psi$ is $1$, a cube in $\\F_4^\\times$.)\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.4.3-three}\nFor every $(x,y,z,t)\\in\\Z_3^4$, not all divisible by 3, with $F(x,y,z,t)=0$, the pair $(v_3(\\ell_+),v_3(\\ell_-))$ (with $s=s_3$) is $(1,3)$ if $(x,y,z,t)$ is congruent to a multiple of $(1,0,0,-1)$ modulo 3, and $(1,0)$ otherwise. In particular $v_{w_3}(\\psi)\\equiv1\\pmod3$.\n\\end{lem}\n\\begin{proof}\nThe projective zeros of $F$ modulo 3 are $(1,0,0,-1)$, $(1,1,0,0)$, $(1,-1,0,1)$, $(0,1,0,-1)$ (\\code{1.4.3c}). Since $2+s_3\\equiv33$ and $2-s_3\\equiv-29\\pmod{81}$, we have $\\ell_+\\equiv3(11y+t)$ modulo 81, and $\\ell_-\\equiv y\\pmod3$. At the last three points, $3\\nmid y$ and $2y+t\\not\\equiv0\\pmod3$, so the pair is $(1,0)$. At the first point, scale to $t=1$ and write $x=-1+3X$, $y=3Y$, $z=3Z$. Then\n\\[\n\\tfrac13F=18X^3+18X^2Y-18X^2-12XY-18XZ^2+6X+18Y^3+9Y^2Z+2Y-9Z^3+9Z^2-1 .\n\\]\nReducing modulo 3 and 9 gives $Y\\equiv5\\pmod 9$, and with $Y=5+9Y_2$ the equation modulo 27 gives $Y_2\\equiv Z^2(X+1)-X^2-X-1\\pmod3$. For $X\\equiv0,1,-1$ this is $Z^2-1$, $-Z^2$, $-1$, so it is 0 or 2, never 1; hence $Y\\equiv5$ or $23\\pmod{27}$. Now $\\ell_+=3\\bigl((2+s_3)Y+1\\bigr)\\equiv3(33Y+1)$ has valuation 1, and $\\ell_-=3\\bigl((2-s_3)Y+1\\bigr)\\equiv3(1-29Y)\\pmod{3^4}$, where $1-29Y\\equiv18$ or $9\\pmod{27}$ has valuation 2. So the pair is $(1,3)$.\n\\end{proof}\nThe lemma is also confirmed by the complete residue tree modulo $3^4$ (2916 normalized classes; the pairs are determined at $3^4$) and by a direct enumeration of all primitive solutions modulo $3^4$ (\\code{1.4.3c}).\n\n\\paragraph{Step 5: reciprocity.}\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.4.3}]\nSuppose that $S$ has a rational point $P$, and let $\\psi$ be as in Step 3. By Lemmas~\\ref{lem:1.4.3-good} and~\\ref{lem:1.4.3-two}, only $w_3$ and $c(w_3)$ can contribute to $\\sum_w\\operatorname{inv}_w(\\psi)$, which is 0 by \\cite[Chapter VI, Section 5]{Neukirch99}. These places are unramified in $L$, and $\\operatorname{Frob}_{w_3}=\\tau^m$ with $m\\in\\{1,2\\}$ (Lemma~\\ref{lem:1.4.3-field}(iii)). By \\cite[Chapters V--VI]{Neukirch99} and $c(\\psi)=\\psi^{-1}$, $\\operatorname{inv}_{c(w_3)}(\\psi)=\\operatorname{inv}_{w_3}(\\psi)$, and by \\cite[Chapters V--VI]{Neukirch99} and Lemma~\\ref{lem:1.4.3-three}, $\\operatorname{inv}_{w_3}(\\psi)=m\\,v_{w_3}(\\psi)/3\\equiv m/3\\pmod1$. Hence $\\sum_w\\operatorname{inv}_w(\\psi)=2m/3\\not\\equiv0\\pmod1$, a contradiction. Therefore $S(\\Q)=\\varnothing$, and the only integer solution is $(0,0,0,0)$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$8x^4+7y^4+2z^4-t^4=0$ \\ ($H=288$)}{8x^4+7y^4+2z^4-t^4=0 (H=288)}}\\label{sec:1.4.4}\n\n\n\\begin{thm}\\label{thm:1.4.4}\nThe only integer solution of $8x^4+7y^4+2z^4=t^4$ is $(x,y,z,t)=(0,0,0,0)$.\n\\end{thm}\n\n\\paragraph{Setup.} Suppose that there is a nonzero solution. Dividing by the greatest common divisor, we get a solution with $\\gcd(x,y,z,t)=1$, which we fix. Put\n\\[\nf=7y^2+2z^2-3t^2,\\qquad g=7y^2+2z^2+3t^2,\\qquad A_\\pm=2x^2\\pm2xz+z^2 .\n\\]\nWe show that the Hilbert symbols $c_v=(-7,f)_v\\,(7,A_+)_v$ satisfy $c_p=1$ for every prime $p$ and $c_\\infty=-1$, which contradicts Hilbert's product formula (\\cite[Chapter III, Sections 1--2]{Serre73}). For a prime $p$ and an integer $a$ prime to $p$, $(a/p)$ is the Legendre symbol.\n\n\\paragraph{Step 1: identities and signs.}\n\\begin{lem}\\label{lem:1.4.4-id}\n\\begin{enumerate}[label=(\\roman*)]\n\\item $-fg=72x^4+14(y^2-z^2)^2=2\\bigl(36x^4+7(y^2-z^2)^2\\bigr)$, which is twice the norm of $6x^2+(y^2-z^2)\\sqrt{-7}$ from $\\Q(\\sqrt{-7})$.\n\\item $t^4-7y^4=2A_+A_-$, where $A_+A_-=4x^4+z^4$, and $t^4-7y^4$ is the norm of $t^2+y^2\\sqrt7$ from $\\Q(\\sqrt7)$.\n\\item $g>0$, $A_+>0$, $f<0$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\nAs polynomial identities, $-fg-72x^4-14(y^2-z^2)^2=-9(8x^4+7y^4+2z^4-t^4)$ and $t^4-7y^4-2A_+A_-=-(8x^4+7y^4+2z^4-t^4)$ (\\code{1.4.4a}); this gives (i) and (ii). (iii) $g=0$ forces $y=z=t=0$ and then $x=0$. $A_+=x^2+(x+z)^2=0$ forces $x=z=0$, and then $t^4=7y^4$ forces $y=t=0$. By (i), $f\\le0$, and $f=0$ forces $x=0$ and $y^2=z^2$, so $t^4=9y^4$, $t^2=3y^2$, $y=t=0$.\n\\end{proof}\n\n\\paragraph{Step 2: odd primes other than 3 and 7.}\n\\begin{lem}\\label{lem:1.4.4-odd}\nLet $p\\ne2,3,7$ be a prime. If $(-7/p)=-1$, then $v_p(f)$ is even. If $(7/p)=-1$, then $v_p(A_+)$ is even.\n\\end{lem}\n\\begin{proof}\nSuppose $(-7/p)=-1$ and $p\\mid f$. If also $p\\mid g$, then $p\\mid g-f=6t^2$, so $p\\mid t$, and $36x^4+7(y^2-z^2)^2\\equiv0\\pmod p$ by Lemma~\\ref{lem:1.4.4-id}(i). Since $-7$ is not a square modulo $p$, this forces $y^2\\equiv z^2$ and then $x\\equiv0$. Then $f\\equiv7y^2+2y^2=9y^2$, so $p\\mid y$ and $p\\mid z$, which contradicts $\\gcd(x,y,z,t)=1$. Hence $p\\nmid g$, and $v_p(f)=v_p(-fg)=v_p\\bigl(N(6x^2+(y^2-z^2)\\sqrt{-7})\\bigr)$ is even, because $p$ is inert in $\\Q(\\sqrt{-7})$.\n\nSuppose $(7/p)=-1$ and $p\\mid A_+$. Then $p\\mid t^4-7y^4$, and since 7 is not a square modulo $p$, $p\\mid y$ and $p\\mid t$. If also $p\\mid A_-$, then $p\\mid A_+-A_-=4xz$ and $p\\mid A_++A_-=4x^2+2z^2$, so $p\\mid x$ and $p\\mid z$, a contradiction. Hence $p\\nmid A_-$, and $v_p(A_+)=v_p(t^4-7y^4)=v_p\\bigl(N(t^2+y^2\\sqrt7)\\bigr)$ is even, because $p$ is inert in $\\Q(\\sqrt7)$.\n\\end{proof}\n\n\\paragraph{Step 3: the prime 3.}\n\\begin{lem}\\label{lem:1.4.4-three}\n$v_3(f)\\in\\{0,2\\}$.\n\\end{lem}\n\\begin{proof}\nModulo 3, $f\\equiv y^2-z^2$ and $8x^4+7y^4+2z^4-t^4\\equiv2x^4+y^4+2z^4-t^4$. If $3\\mid f$, then $y^4\\equiv z^4$, so $2x^4\\equiv t^4$, which forces $3\\mid x$ and $3\\mid t$; then $y,z$ are units (if $3\\mid y$, then $3\\mid z$). In this case put $r=(z/y)^2\\in\\Z_3$, so $r\\equiv1\\pmod3$. Since $3^4$ divides $8x^4$ and $t^4$, we get $7+2r^2\\equiv0\\pmod{81}$, and hence\n\\[\n(7+2r)(7-2r)=49-4r^2=63-2(7+2r^2)\\equiv63\\pmod{81}.\n\\]\nSince $7-2r\\equiv2\\pmod3$ is a unit, $v_3(7+2r)=v_3(63)=2$. Finally $f/y^2=7+2r-3(t/y)^2$ and $v_3(3(t/y)^2)\\ge3$, so $v_3(f)=2$. The residue facts are checked by \\code{1.4.4b}.\n\\end{proof}\n\n\\paragraph{Step 4: the prime 2.}\n\\begin{lem}\\label{lem:1.4.4-two}\n$x,y,z,t$ are odd, $A_+\\equiv1$ or $5\\pmod8$, and $f\\equiv6\\pmod8$.\n\\end{lem}\n\\begin{proof}\nA fourth power is $\\equiv0$ or $1\\pmod{16}$, according as the number is even or odd. Hence $8x^4+7y^4+2z^4-t^4\\equiv8a+7b+2c-d\\pmod{16}$, where $a,b,c,d\\in\\{0,1\\}$ are the parities of $x,y,z,t$. Among the sixteen choices, only $a=b=c=d=0$ and $a=b=c=d=1$ give $0\\pmod{16}$, and the first is excluded by $\\gcd(x,y,z,t)=1$. For odd $x,z$ we have $A_+\\equiv2+2xz+1\\equiv1$ or $5\\pmod 8$, and for odd $y,z,t$ we have $f\\equiv7+2-3=6\\pmod8$ (\\code{1.4.4b}).\n\\end{proof}\n\n\\paragraph{Step 5: the prime 7.}\n\\begin{lem}\\label{lem:1.4.4-seven}\n$f$ and $A_+$ are prime to 7, and $(f/7)=(A_+/7)$.\n\\end{lem}\n\\begin{proof}\nIf $7$ divides $x,z,t$, then $y$ is prime to 7 and $7y^4=t^4-8x^4-2z^4$ has 7-adic valuation 1 on the left and at least 4 on the right. Hence $(x,z,t)\\not\\equiv(0,0,0)\\pmod7$, and modulo 7 the equation reads $x^4+2z^4\\equiv t^4$, while $f\\equiv2z^2-3t^2$. The fourth powers modulo 7 are $0,1,2,4$. If $z\\equiv0$, then $x^4\\equiv t^4\\not\\equiv0$, and $A_+\\equiv2x^2$, $f\\equiv-3t^2\\equiv4t^2$ are nonzero squares ($2\\equiv3^2$). If $z\\not\\equiv0$, put $r=x/z$, $s=t/z$; then $r^4+2\\equiv s^4$, and the possibilities are\n\\[\n\\begin{array}{c|c|c|c}\nr&s&A_+/z^2&f/z^2\\\\\\hline\n0&\\pm2&1&4\\\\\n2&\\pm3&6&3\\\\\n-2&\\pm3&5&3\n\\end{array}\n\\]\nIn each row $A_+/z^2$ and $f/z^2$ are both squares or both nonsquares modulo 7 (\\code{1.4.4b}).\n\\end{proof}\n\n\\paragraph{Step 6: Hilbert symbols.}\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.4.4}]\nBy Lemma~\\ref{lem:1.4.4-id}(iii), $f,A_+\\ne0$, so the symbols are defined. We use the formulas of \\cite[Chapter III, Sections 1--2]{Serre73}.\n\n$p\\ne2,3,7$: $-7$ and $7$ are $p$-adic units, so $(-7,f)_p=(-7/p)^{v_p(f)}$ and $(7,A_+)_p=(7/p)^{v_p(A_+)}$. By Lemma~\\ref{lem:1.4.4-odd}, both are 1.\n\n$p=3$: $(-7,f)_3=(-7/3)^{v_3(f)}=(-1)^{v_3(f)}=1$ by Lemma~\\ref{lem:1.4.4-three}, and $(7,A_+)_3=(7/3)^{v_3(A_+)}=1$ since $7\\equiv1\\pmod3$.\n\n$p=2$: $-7\\equiv1\\pmod8$ is a square in $\\Q_2$, so $(-7,f)_2=1$. Since $7$ and $A_+$ are 2-adic units and $A_+\\equiv1\\pmod4$ (Lemma~\\ref{lem:1.4.4-two}), $(7,A_+)_2=(-1)^{\\varepsilon(7)\\varepsilon(A_+)}=1$.\n\n$p=7$: $f$ and $A_+$ are 7-adic units (Lemma~\\ref{lem:1.4.4-seven}) and $v_7(-7)=v_7(7)=1$, so $(-7,f)_7=(f/7)$ and $(7,A_+)_7=(A_+/7)$, and $c_7=(f/7)(A_+/7)=1$ by Lemma~\\ref{lem:1.4.4-seven}.\n\n$v=\\infty$: $-7<0$ and $f<0$, so $(-7,f)_\\infty=-1$, while $(7,A_+)_\\infty=1$ since $7>0$.\n\nHence $\\prod_v(-7,f)_v\\cdot\\prod_v(7,A_+)_v=\\prod_vc_v=-1$. By Hilbert's product formula (\\cite[Chapter III, Sections 1--2]{Serre73}) both products are 1, a contradiction. Therefore there is no nonzero solution.\n\\end{proof}\nThe local conclusions $c_2=c_3=c_7=1$ are also confirmed by evaluating the two symbols, with the formulas of \\cite[Chapter III, Sections 1--2]{Serre73}, on the complete residue trees of all primitive points over $\\Z_2$, $\\Z_3$, $\\Z_7$ modulo $2^5$, $3^4$, $7^2$, and by a direct enumeration of all primitive solutions modulo $3^4$ and $7^2$ (\\code{1.4.4c}).\n\n\\subsection*{The common Frey-curve argument}\\label{sec:frey}\n Each of these six equations has the form $Ax^5+By^5+Cz^5=0$, and we use the modular method with exponent $5$: a primitive solution gives a Frey curve $E$ whose $5$-torsion $E[5]$ (an $\\F_5[G_\\Q]$-module of dimension 2, $G_\\Q=\\operatorname{Gal}(\\overline\\Q/\\Q)$) is irreducible, so by modularity and level lowering (\\cite[Theorem 3 and Proposition 5.1]{Sik12}) it is congruent modulo a prime above 5 to a newform of weight 2 and of a small level; the newforms of that level are then excluded by comparing their Hecke eigenvalues with the traces that $E$ can have at a few auxiliary primes. The lemmas below are used by all six sections. We write $v_\\ell$ for the $\\ell$-adic valuation, $\\Delta_{\\min}$ for the minimal discriminant, $f_\\ell(E)$ for the exponent of $\\ell$ in the conductor $N_E$, $a_\\ell(E)=\\ell+1-\\#\\widetilde E(\\F_\\ell)$ for a prime $\\ell$ of good reduction, and $\\chi_5$ for the cyclotomic character modulo 5. For a newform $f=\\sum_{n\\ge1}a_n(f)q^n$ we write $K_f=\\Q(a_n(f):n\\ge1)$ for its coefficient field; the $a_n(f)$ are algebraic integers.\n\n\\begin{lem}\\label{lem:1.4:terms}\nLet $A,B,C$ be pairwise coprime nonzero integers with $v_p(A),v_p(B),v_p(C)\\le4$ for every prime $p$, and let $(x,y,z)$ be a primitive solution ($\\gcd(x,y,z)=1$) of $Ax^5+By^5+Cz^5=0$.\n\\begin{enumerate}[label=(\\arabic*)]\n\\item If $z=0$, then $|A|=|B|=|x|=|y|=1$; similarly if $x=0$ or $y=0$.\n\\item If $xyz\\ne0$, the three integers $Ax^5$, $By^5$, $Cz^5$ are pairwise coprime, and exactly one of them is even.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(1) If $z=0$, then $\\gcd(x,y)=1$ and $Ax^5=-By^5$. Since $\\gcd(A,B)=\\gcd(x,y)=1$, we get $|A|=|y|^5$ and $|B|=|x|^5$, and since no prime divides $A$ or $B$ to the fifth power, $|A|=|B|=1$ and $|x|=|y|=1$.\n\n(2) Suppose that a prime $p$ divides two of the three terms; then it divides the third as well, since their sum is 0. Since $A,B,C$ are pairwise coprime, $p$ divides at most one coefficient. If $p\\nmid ABC$, then $p$ divides $x$, $y$ and $z$. If, say, $p\\mid A$, then $p\\nmid BC$, so $p\\mid y$ and $p\\mid z$; then $p^5$ divides $By^5+Cz^5=-Ax^5$, and since $v_p(A)\\le4$, also $p\\mid x$. The cases $p\\mid B$ and $p\\mid C$ are the same. Each case contradicts $\\gcd(x,y,z)=1$. Hence the terms are pairwise coprime, so at most one of them is even, and they cannot all be odd, because their sum is 0.\n\\end{proof}\n\nIn the situation of Lemma~\\ref{lem:1.4:terms}(2), let $t_j$ be the even term and $t_i$, $t_k$ the two odd terms, in an order fixed in each section, and put\n\\[\n(u,v,w)=\\varepsilon\\,(t_i,t_j,t_k),\\qquad \\varepsilon\\in\\{\\pm1\\}\\ \\text{such that}\\ u\\equiv-1\\pmod4 .\n\\]\nThen $u,v,w$ are pairwise coprime and nonzero, $u+v+w=0$, $u\\equiv-1\\pmod4$ and $v$ is even. The \\emph{Frey curve} of the solution is\n\\[\nE=E_{u,v}:\\quad Y^2=X(X-u)(X+v),\\qquad c_4=16(u^2+uv+v^2),\\qquad \\Delta=16u^2v^2w^2 .\n\\]\nIts 2-torsion points $(0,0)$, $(u,0)$, $(-v,0)$ are rational. The other possible choice, with $t_k$ in place of $t_i$, gives a curve isomorphic to $E$ if $v_2(v)\\ge2$ (then it is $(-w,-v,-u)$), and the twist of $E$ by $-1$ if $v_2(v)=1$ (then it is $(w,v,u)$), by Lemma~\\ref{lem:1.4:frey}(3); nothing below depends on this choice.\n\n\\begin{lem}\\label{lem:1.4:frey}\nLet $u,v,w$ be pairwise coprime nonzero integers with $u+v+w=0$, $u\\equiv-1\\pmod4$ and $v$ even, and put $r=v_2(v)$.\n\\begin{enumerate}[label=(\\arabic*)]\n\\item At an odd prime $\\ell$, $E_{u,v}$ has good reduction if $\\ell\\nmid uvw$, and multiplicative reduction with $v_\\ell(\\Delta_{\\min})=2v_\\ell(uvw)$ if $\\ell\\mid uvw$.\n\\item At 2, the Kodaira type, $f_2(E_{u,v})$ and $v_2(\\Delta_{\\min})$ are\n\\[\n\\begin{array}{c|ccccc}\nr&1&2&3&4&\\ge5\\\\\\hline\n\\text{type}&\\mathrm{III}&\\mathrm I_1^*&\\mathrm{III}^*&\\mathrm I_0&\\mathrm I_{2r-8}\\\\\nf_2&5&3&3&0&1\\\\\nv_2(\\Delta_{\\min})&6&8&10&0&2r-8\n\\end{array}\n\\]\n\\item The curves $E_{u',v'}$ obtained from the other orderings $(u',v',w')$ of $(u,v,w)$ and of $(-u,-v,-w)$ are isomorphic over $\\Q$ to $E_{u,v}$ or to its quadratic twist by $-1$, and for $a\\in\\Q^\\times$ the curve $E_{au,av}$ is the quadratic twist of $E_{u,v}$ by $a$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\nThe displayed $c_4$ and $\\Delta$ give (1). Applying Tate's algorithm \\cite{Tate75,Silverman94} to $a_2=v-u$, $a_4=-uv$ gives the table in (2), with the normalized model\n\\[\n S^2+RS=R^3+\\frac{v-u-1}{4}R^2-\\frac{uv}{16}R\n\\]\nwhen $r\\ge4$; \\code{1.4qa} checks every residue class needed for the other rows. In (3), translation permutes the three roots, changing all their signs gives the twist by $-1$, and scaling them by $a$ gives the twist by $a$.\n\\end{proof}\nThe congruences and the model used in (2) are checked by \\code{1.4qa}, which also compares the table with PARI's implementation of Tate's algorithm on all residue classes of $u$ and $v/2^r$ modulo $2^7$, for $r\\le12$. For $u\\equiv1\\pmod4$ the exponents are different ($f_2=4$ for every $r\\ge2$); this is why the sign is normalized.\n\n\\begin{lem}\\label{lem:1.4:level}\nIn the situation of Lemma~\\ref{lem:1.4:terms}(2), let $E$ be the Frey curve, $c_j$ the coefficient of the even term $t_j$ and $s_j$ its variable, so that $r=v_2(t_j)=v_2(c_j)+5v_2(s_j)$. Then $E$ is semistable at every odd prime, and its level of \\cite[Theorem 3 and Proposition 5.1]{Sik12} for $p=5$,\n\\[\nN_5=N_E\\Big/\\prod_{\\ell\\,\\parallel N_E,\\ 5\\mid v_\\ell(\\Delta_{\\min})}\\ell,\n\\]\nis $N_5=2^\\alpha\\prod_{\\ell\\mid ABC,\\ \\ell\\ \\text{odd}}\\ell$, where $\\alpha=f_2(E)$ from Lemma~\\ref{lem:1.4:frey}(2), except that $\\alpha=0$ if $r\\ge5$ and $r\\equiv4\\pmod5$. Moreover, if $5\\nmid ABC$, then $E$ has good reduction at 5 or multiplicative reduction with $5\\mid v_5(\\Delta_{\\min})$; if $5\\mid ABC$, then $E$ has multiplicative reduction at 5 with $5\\nmid v_5(\\Delta_{\\min})$.\n\\end{lem}\n\\begin{proof}\nUp to sign, $uvw=ABC(xyz)^5$, and every prime divides at most one of the three terms. Let $\\ell$ be odd. By Lemma~\\ref{lem:1.4:frey}(1), $E$ is good at $\\ell$ if $\\ell\\nmid uvw$, and otherwise multiplicative with $v_\\ell(\\Delta_{\\min})=2v_\\ell(c)+10v_\\ell(s)$, where $c$ and $s$ are the coefficient and the variable of the term divisible by $\\ell$. If $\\ell\\mid ABC$, then $1\\le v_\\ell(c)\\le4$, so $5\\nmid v_\\ell(\\Delta_{\\min})$ and $\\ell$ divides $N_5$ exactly once. If $\\ell\\nmid ABC$, then $5\\mid v_\\ell(\\Delta_{\\min})$, so $\\ell\\nmid N_5$. At 2, Lemma~\\ref{lem:1.4:frey}(2) gives $f_2(E)$; the prime 2 is removed only if $f_2(E)=1$, that is $r\\ge5$, and $5\\mid 2r-8$, that is $r\\equiv4\\pmod5$. The statement at 5 is the case $\\ell=5$ above.\n\\end{proof}\nSince $r\\equiv v_2(c_j)\\pmod5$, the exception $\\alpha=0$ with $r\\ge5$ occurs only when $v_2(c_j)=4$ (Section~\\ref{sec:1.4.9}). The resulting levels for each equation are printed by \\code{1.4.5a}--\\code{1.4.10a}.\n\n\\begin{lem}\\label{lem:1.4:trace}\nLet $E/\\Q$ be an elliptic curve which is semistable at every odd prime $\\ell\\ne5$, with $f_2(E)\\le5$. If $E[5]$ is reducible, then $a_q(E)\\equiv\\pm2\\pmod5$ for every prime $q\\equiv1\\pmod5$ at which $E$ has good reduction.\n\\end{lem}\n\\begin{proof}\nLet $L\\subset E[5]$ be a $G_\\Q$-stable line, with character $\\psi\\colon G_\\Q\\to\\F_5^\\times$; by the Weil pairing, $G_\\Q$ acts on $E[5]/L$ by $\\psi'=\\chi_5\\psi^{-1}$. At an odd prime $\\ell\\ne5$ of good reduction, $E[5]$ is unramified; at an odd prime $\\ell\\ne5$ of multiplicative reduction, the semisimplification of $E[5]$ is trivial on the inertia group (\\cite[Chapter V]{Silverman94}). In both cases $\\psi$ is unramified at $\\ell$. At 5, the image of inertia under $\\psi$ has order prime to 5, so $\\psi$ is tamely ramified there, of conductor exponent at most 1. At 2, the Artin conductor exponents satisfy $a_2(\\psi)+a_2(\\psi')\\le a_2(E[5])\\le f_2(E)$. Indeed, the Swan conductor is additive in the exact sequence $0\\to L\\to E[5]\\to E[5]/L\\to0$, and the codimension of the inertia invariants of $E[5]$ is at least the sum of those of $L$ and $E[5]/L$; and $f_2(E)=\\delta+\\epsilon$, where $\\delta$ is the Swan conductor of $E[5]$ and $\\epsilon=0,1,2$ according as the reduction is good, multiplicative or additive \\cite[Section IV.10]{Silverman94}, and $\\epsilon$ is at least the codimension of the inertia invariants of $E[5]$ (in the multiplicative case because inertia fixes the line coming from $\\mu_5$, \\cite[Chapter V]{Silverman94}). Since $\\chi_5$ is unramified at 2, $a_2(\\psi')=a_2(\\psi)$, so $a_2(\\psi)\\le2$. By the Kronecker--Weber theorem, $\\psi$ is a Dirichlet character of conductor dividing $2^2\\cdot5=20$. Let $q\\equiv1\\pmod5$ be a prime of good reduction. Then $q^2\\equiv1\\pmod{20}$, so $\\psi(q)=\\pm1$, and the trace of $\\mathrm{Frob}_q$ on $E[5]$ is $\\psi(q)+q\\psi(q)^{-1}\\equiv2\\psi(q)\\pmod5$. It equals $a_q(E)\\bmod5$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.4:flat}\nLet $E/\\Q$ be an elliptic curve with $E(\\Q)[2]\\cong(\\Z/2)^2$, semistable at every odd prime, with $f_2(E)\\le3$, and with good reduction at 5 or multiplicative reduction at 5 with $5\\mid v_5(\\Delta_{\\min})$. Then $E[5]$ is irreducible.\n\\end{lem}\n\\begin{proof}\nSuppose that $L$, $\\psi$, $\\psi'=\\chi_5\\psi^{-1}$ are as in the proof of Lemma~\\ref{lem:1.4:trace}. As there, $\\psi$ and $\\psi'$ are unramified at every odd prime $\\ell\\ne5$, and $2a_2(\\psi)\\le f_2(E)\\le3$. A character of $G_{\\Q_2}$ of conductor exponent at most 1 corresponds, by local class field theory, to a character of $\\Q_2^\\times$ trivial on $1+2\\Z_2=\\Z_2^\\times$, so it is unramified; hence $\\psi$ and $\\psi'$ are unramified at 2. By \\cite[Section 4.1]{Serre87}, $E[5]$ is finite flat at 5, and by \\cite{Raynaud74,OT70} so are $L$ and $E[5]/L$, and the inertia group at 5 acts on each of them trivially or through $\\chi_5$. Since $\\psi\\psi'=\\chi_5$ is ramified at 5, one of $\\psi,\\psi'$ is unramified at 5, hence unramified everywhere, hence trivial, as $\\Q$ has no nontrivial unramified extension. If $\\psi=1$, then $L\\subset E(\\Q)$, and $E(\\Q)$ contains $(\\Z/2)^2\\times\\Z/5\\cong\\Z/2\\times\\Z/10$. If $\\psi'=1$, let $\\phi\\colon E\\to E'=E/L$ be the isogeny of degree 5 over $\\Q$. Then $\\phi(E[5])\\cong E[5]/L$ is a subgroup of order 5 of $E'(\\Q)$, and since $\\deg\\phi$ is odd, $\\phi$ maps $E[2]$ isomorphically onto $E'[2]$, so $E'(\\Q)$ contains $\\Z/2\\times\\Z/10$. Both cases contradict \\cite{Mazur77}.\n\\end{proof}\n\nFor a prime $q\\nmid10ABC$ we define the \\emph{trace set} $T_q=T_q(A,B,C)\\subseteq\\F_5$: it consists of the residues modulo 5 of $\\pm a_q(E_{Aa^5,Bb^5})$ for every point $(a:b:c)\\in\\mathbb P^2(\\F_q)$ of $Aa^5+Bb^5+Cc^5=0$ with $abc\\ne0$, where\n\\[\na_q(E_{u,v})=-\\sum_{X\\in\\F_q}\\Big(\\frac{X(X-u)(X+v)}{q}\\Big)\\qquad(u,v,u+v\\in\\F_q^\\times),\n\\]\ntogether with the residues of $\\pm(q+1)$ if the curve has a point over $\\F_q$ with $abc=0$. The sets used in Sections~\\ref{sec:1.4.5}--\\ref{sec:1.4.10} are computed by \\code{1.4.5b}, \\code{1.4.6b}, \\code{1.4.7b}, \\code{1.4.8b}, \\code{1.4.9a} and \\code{1.4.10a}, each with two implementations: character sums as above, and point counting for all twelve signed orderings of the three terms and all scalings of $(a,b,c)$, which also confirms that these give only the two traces $\\pm a_q$.\n\n\\begin{lem}\\label{lem:1.4:sieve}\nIn the situation of Lemma~\\ref{lem:1.4:terms}(2), let $E$ be the Frey curve and $N_5$ its level from Lemma~\\ref{lem:1.4:level}, and let $q\\nmid10ABC$ be a prime.\n\\begin{enumerate}[label=(\\arabic*)]\n\\item If $q\\nmid xyz$, then $E$ has good reduction at $q$ and $a_q(E)\\bmod5\\in T_q$. If $q\\mid xyz$, then $q\\parallel N_E$, $q\\nmid N_5$, and $\\pm(q+1)\\bmod5\\in T_q$.\n\\item If $q\\equiv1\\pmod5$, $T_q\\cap\\{2,3\\}=\\emptyset$ and $f_2(E)\\le5$, then $E[5]$ is irreducible.\n\\item If $E[5]$ is irreducible, there are a newform $f\\in S_2(\\Gamma_0(N_5))$ and a prime ideal $\\lambda\\mid5$ of $\\mathcal O_{K_f}$ such that $a_q(f)\\bmod\\lambda\\in T_q$ for every prime $q\\nmid10ABC$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\n(1) Let $(a:b:c)$ be the reduction of $(x:y:z)$ modulo $q$, so $(x,y,z)\\equiv\\mu(a,b,c)$ with $\\mu\\in\\F_q^\\times$. If $q\\nmid xyz$, then $q\\nmid uvw$, so $E$ is good at $q$ (Lemma~\\ref{lem:1.4:frey}(1)); its reduction is, by Lemma~\\ref{lem:1.4:frey}(3), isomorphic to $E_{Ax^5,By^5}$ or its twist by $-1$, and $E_{Ax^5,By^5}\\equiv E_{\\mu^5Aa^5,\\mu^5Bb^5}$ is the twist of $E_{Aa^5,Bb^5}$ by $\\mu^5$. Quadratic twists over $\\F_q$ change the trace at most by sign, so $a_q(E)=\\pm a_q(E_{Aa^5,Bb^5})$. If $q\\mid xyz$, then $q$ divides exactly one of $x,y,z$ (Lemma~\\ref{lem:1.4:terms}(2)), $(a:b:c)$ has a zero coordinate, and by the proof of Lemma~\\ref{lem:1.4:level}, $q\\parallel N_E$ and $q\\nmid N_5$.\n\n(2) By (1), $q\\nmid xyz$, since $\\pm(q+1)\\equiv\\pm2\\pmod5$. So $E$ is good at $q$ and $a_q(E)\\not\\equiv\\pm2\\pmod5$. By Lemma~\\ref{lem:1.4:level}, $E$ is semistable at every odd prime, and Lemma~\\ref{lem:1.4:trace} applies.\n\n(3) By \\cite[Theorem 3 and Proposition 5.1]{Sik12} with $p=5$ there are $f$ and $\\lambda$ with $a_q(f)\\equiv a_q(E)\\pmod\\lambda$ if $q\\nmid5N_EN_5$, and $a_q(f)\\equiv\\pm(q+1)\\pmod\\lambda$ if $q\\nmid5N_5$ and $q\\parallel N_E$. Since $N_5$ divides $2^5ABC$, every prime $q\\nmid10ABC$ is in one of these two cases, and (1) gives the claim.\n\\end{proof}\nThe newforms of the levels $N_5$ are computed with PARI/GP (\\texttt{mfinit}, \\texttt{mfeigenbasis}). For each Galois orbit with coefficient field $K_f=\\Q[y]/(P)$ the codes compute the maximal order of $K_f$ (\\texttt{nfinit}, certified by \\texttt{nfcertify}) and test every prime ideal $\\lambda\\mid5$ of $\\mathcal O_{K_f}$ separately: the pair (orbit, $\\lambda$) is excluded at the first test prime $q$ for which $v_\\lambda(a_q(f)-t)=0$ for every $t\\in T_q$. No coefficient field is discarded for being non-rational. The dimensions of the new subspaces are confirmed by the genus formula for $X_0(N)$ (\\code{1.4qb}), and the characteristic polynomials of the Hecke operators $T_q$ used, by modular symbols (\\code{1.4qc}).\n\n\\begin{lem}\\label{lem:1.4:pairing}\nLet $p$ be an odd prime and $\\ell$ a prime ($\\ell=p$ is allowed). Let $E_1,E_2/\\Q_\\ell$ be elliptic curves with multiplicative reduction such that $p\\nmid v_\\ell(\\Delta_{\\min}(E_1))\\,v_\\ell(\\Delta_{\\min}(E_2))$, and let $\\phi\\colon E_1[p]\\to E_2[p]$ be an isomorphism of $\\F_p[G_{\\Q_\\ell}]$-modules. Let $d\\in\\F_p^\\times$ be defined by $e_2(\\phi P,\\phi Q)=e_1(P,Q)^d$, where $e_1,e_2$ are the Weil pairings. Then $d$ and $v_\\ell(\\Delta_{\\min}(E_2))/v_\\ell(\\Delta_{\\min}(E_1))$ have the same class in $\\F_p^\\times/\\F_p^{\\times2}$.\n\nConsequently, if $E,G/\\Q$ are elliptic curves with $E[p]\\cong G[p]$ as $\\F_p[G_\\Q]$-modules, and $\\ell_1,\\ell_2$ are primes at which both curves have multiplicative reduction with minimal discriminant valuations prime to $p$, then $v_{\\ell_1}(\\Delta_{\\min}(G))/v_{\\ell_1}(\\Delta_{\\min}(E))$ and $v_{\\ell_2}(\\Delta_{\\min}(G))/v_{\\ell_2}(\\Delta_{\\min}(E))$ are both squares or both nonsquares modulo $p$.\n\\end{lem}\n\\begin{proof}\nSince $\\phi^*e_2$ is again a nondegenerate alternating pairing with values in $\\mu_p$ and the alternating forms on $E_1[p]$ form a space of dimension 1, $d$ is well defined. By \\cite[Chapter V]{Silverman94}, $E_i$ is the twist by an unramified character $\\varepsilon_i$ of the Tate curve $E_{q_i}$, with $v_\\ell(q_i)=v_\\ell(\\Delta_{\\min}(E_i))\\not\\equiv0\\pmod p$. Then $q_i$ is not a $p$th power, so the extension $0\\to\\mu_p\\to E_{q_i}[p]\\to\\Z/p\\to0$ does not split, and $\\varepsilon_i\\mu_p$ is the only $G_{\\Q_\\ell}$-stable line of $E_i[p]$. Hence $\\phi$ maps $\\varepsilon_1\\mu_p$ to $\\varepsilon_2\\mu_p$, so $\\varepsilon_1=\\varepsilon_2$ ($-1\\ne1$ in $\\F_p$), and twisting both curves by $\\varepsilon_1$ changes neither $\\phi$ nor the Weil pairings. So we may assume $E_i=E_{q_i}$. In the bases $(\\zeta,Q_i)$ of \\cite[Chapter V]{Silverman94}, written multiplicatively, $\\phi(\\zeta)=\\zeta^a$ and $\\phi(Q_1)=\\zeta^bQ_2^{d'}$ with $a,d'\\in\\F_p^\\times$. Comparing $\\phi(\\sigma Q_1)$ and $\\sigma\\phi(Q_1)$ gives $a\\kappa_1(\\sigma)+b=b\\chi_p(\\sigma)+d'\\kappa_2(\\sigma)$, so the cocycles $a\\kappa_1$ and $d'\\kappa_2$ differ by the coboundary of $\\zeta^b$, and $q_1^aq_2^{-d'}\\in\\Q_\\ell^{\\times p}$. Taking valuations, $a\\,v_\\ell(q_1)\\equiv d'v_\\ell(q_2)\\pmod p$. Finally $e_2(\\phi\\zeta,\\phi Q_1)=e_2(\\zeta,Q_2)^{ad'}=\\zeta^{ad'}=e_1(\\zeta,Q_1)^{ad'}$, so $d=ad'=(a/d')\\,d'^2$, and $a/d'=v_\\ell(q_2)/v_\\ell(q_1)$.\n\nFor the consequence, take a $G_\\Q$-isomorphism $\\phi\\colon E[p]\\to G[p]$; its multiplier $d$ is the same for the restrictions to $G_{\\Q_{\\ell_1}}$ and $G_{\\Q_{\\ell_2}}$, and the first part applies at $\\ell_1$ and at $\\ell_2$.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$14x^5+5y^5+3z^5=0$ \\ ($H=704$)}{14x^5+5y^5+3z^5=0 (H=704)}}\\label{sec:1.4.5}\n\n\n\\begin{thm}\\label{thm:1.4.5}\nThe only integer solution of $14x^5+5y^5+3z^5=0$ is $(x,y,z)=(0,0,0)$.\n\\end{thm}\n\n\\paragraph{Setup.} We use the common framework of Section~\\ref{sec:1.4} (Lemmas~\\ref{lem:1.4:terms}--\\ref{lem:1.4:pairing}). A primitive solution gives a Frey curve $E$ with $E[5]$ irreducible, and a newform of level $210$ or $3360$ congruent to it (Steps 1--2). A sieve with twelve auxiliary primes leaves only two rational newforms of level 3360 (Step 3). They are the newforms of the elliptic curves\n\\[\nG_+:\\ Y^2=X^3+X^2-890X-10200,\\qquad G_-:\\ Y^2=X^3-X^2-890X+10200\n\\]\n($G_-$ is the twist of $G_+$ by $-1$), and they are excluded by comparing the Weil pairings at 3 and at 5 (Step 4).\n\n\\paragraph{Step 1: the Frey curve.}\n\\begin{lem}\\label{lem:1.4.5-frey}\nLet $(x,y,z)$ be a primitive solution. Then $xyz\\ne0$, the terms $14x^5$, $5y^5$, $3z^5$ are pairwise coprime, and $y$, $z$ are odd. Let $\\varepsilon=\\pm1$ with $3\\varepsilon z^5\\equiv-1\\pmod4$, and let $E=E_{u,v}$ with $(u,v,w)=\\varepsilon(3z^5,14x^5,5y^5)$. Then $E$ is semistable at every odd prime, it has multiplicative reduction at $3$, $5$, $7$ with\n\\[\nv_3(\\Delta_{\\min})=2+10v_3(z),\\qquad v_5(\\Delta_{\\min})=2+10v_5(y),\\qquad v_7(\\Delta_{\\min})=2+10v_7(x),\n\\]\nand $f_2(E)=5$ if $x$ is odd, while $f_2(E)=1$ and $v_2(\\Delta_{\\min})=10v_2(x)-6$ if $x$ is even. The level of Lemma~\\ref{lem:1.4:level} is $N_5=3360=2^5\\cdot3\\cdot5\\cdot7$ if $x$ is odd and $N_5=210=2\\cdot3\\cdot5\\cdot7$ if $x$ is even.\n\\end{lem}\n\\begin{proof}\nThe coefficients $14=2\\cdot7$, $5$, $3$ are pairwise coprime, every prime divides them at most once, and none is $\\pm1$. By Lemma~\\ref{lem:1.4:terms}, $xyz\\ne0$ and the three terms are pairwise coprime; $14x^5$ is even, so it is the even term, and $y$, $z$ are odd. Here $r=v_2(14x^5)=1+5v_2(x)$. If $x$ is odd, then $r=1$, and Lemma~\\ref{lem:1.4:frey}(2) gives $f_2=5$. If $x$ is even, then $r\\ge6$, $f_2=1$ and $v_2(\\Delta_{\\min})=2r-8=10v_2(x)-6\\equiv4\\pmod5$, so $2$ divides $N_5$. The odd primes and $N_5$ are given by Lemma~\\ref{lem:1.4:level}: the odd prime divisors of $14\\cdot5\\cdot3$ are $3,5,7$, and $v_\\ell(\\Delta_{\\min})=2v_\\ell(uvw)$ (\\code{1.4.5a}; the 2-adic data are also checked with PARI's Tate algorithm on all residue classes of $x$ and $z$ modulo $2^6$ in \\code{1.4.5c}).\n\\end{proof}\n\n\\paragraph{Step 2: irreducibility and level lowering.} The trace sets $T_q=T_q(14,5,3)$ of the common framework are, for the primes $q$ used below (\\code{1.4.5b}),\n\\[\n\\begin{array}{c|c@{\\qquad}c|c@{\\qquad}c|c}\nq&T_q&q&T_q&q&T_q\\\\\\hline\n11&\\{0,2,3\\}&41&\\F_5^\\times&131&\\{0,2,3\\}\\\\\n13&\\F_5^\\times&61&\\F_5^\\times&151&\\F_5^\\times\\\\\n17&\\F_5^\\times&71&\\{2,3\\}&181&\\F_5^\\times\\\\\n31&\\{0,1,4\\}&101&\\F_5^\\times&191&\\F_5^\\times\n\\end{array}\n\\]\nFor example, modulo 31 the curve $14a^5+5b^5+3c^5=0$ has 50 points, none with a zero coordinate, and the traces of the curves $E_{14a^5,5b^5}$ at these points are $0$ and $\\pm4$.\n\n\\begin{lem}\\label{lem:1.4.5-irr}\n$E[5]$ is irreducible. There are a newform $f\\in S_2(\\Gamma_0(N_5))$, with $N_5$ as in Lemma~\\ref{lem:1.4.5-frey}, and a prime ideal $\\lambda\\mid5$ of $\\mathcal O_{K_f}$ such that $a_q(f)\\bmod\\lambda\\in T_q$ for the twelve primes $q$ of the table.\n\\end{lem}\n\\begin{proof}\nWe have $31\\equiv1\\pmod5$, $T_{31}\\cap\\{2,3\\}=\\emptyset$ and $f_2(E)\\le5$, so $E[5]$ is irreducible by Lemma~\\ref{lem:1.4:sieve}(2). Since no $q$ in the table divides $10\\cdot14\\cdot5\\cdot3$, Lemma~\\ref{lem:1.4:sieve}(3) gives $f$ and $\\lambda$.\n\\end{proof}\n\n\\paragraph{Step 3: the sieve.}\n\\begin{lem}\\label{lem:1.4.5-sieve}\n\\begin{enumerate}[label=(\\arabic*)]\n\\item $S_2(\\Gamma_0(210))^{\\mathrm{new}}$ has dimension 5 and consists of five rational newforms. None of them satisfies the conditions of Lemma~\\ref{lem:1.4.5-irr} (with $\\lambda=5$).\n\\item $S_2(\\Gamma_0(3360))^{\\mathrm{new}}$ has dimension 48 and 36 Galois orbits of newforms: 26 rational, 8 with quadratic and 2 with cubic coefficient fields, which give 38 pairs (orbit, $\\lambda\\mid5$). Exactly two pairs satisfy the conditions of Lemma~\\ref{lem:1.4.5-irr}; they are two rational newforms $f_+$, $f_-$ with $\\lambda=5$.\n\\end{enumerate}\n\\end{lem}\n\\begin{proof}\nThis is a finite computation (\\code{1.4.5c}). At level 210, three forms are excluded at $q=11$, one at $q=61$ and one at $q=71$. At level 3360, the numbers of pairs that remain after $q=11,13,17,31$ are $12,8,6,2$, and the two remaining pairs satisfy the conditions at all twelve primes. The prime 5 is inert in the coefficient fields of six of the quadratic orbits and ramified in the other two (whose field is $\\Q(\\sqrt5)$), and it has two prime ideals, of residue degrees 1 and 2, in the two cubic fields; every one of these prime ideals is tested. The dimensions are also given by the genus formula (\\code{1.4qb}), and the Hecke polynomials at the twelve primes agree with those computed by modular symbols (\\code{1.4qc}).\n\\end{proof}\n\n\\paragraph{Step 4: the two remaining newforms.}\n\\begin{lem}\\label{lem:1.4.5-pairing}\nThe newform $f$ of Lemma~\\ref{lem:1.4.5-irr} is neither $f_+$ nor $f_-$.\n\\end{lem}\n\\begin{proof}\nThe curves $G_\\pm$ have conductor $3360$ and minimal discriminant $2^6\\cdot3^6\\cdot5^2\\cdot7^4$, and $c_4(G_\\pm)=2^4\\cdot2671$ is prime to 15, so they have multiplicative reduction at 3 and 5, with $v_3(\\Delta_{\\min})=6$ and $v_5(\\Delta_{\\min})=2$. By \\cite{BCDT01} their newforms lie in $S_2(\\Gamma_0(3360))$. The index of $\\Gamma_0(3360)$ in $\\operatorname{SL}_2(\\Z)$ is $9216$, so the Sturm bound is $9216/6=1536$, and the coefficients $a_0,\\dots,a_{1536}$ of $f_+$ and $f_-$ are those of $G_+$ and $G_-$, respectively, that is, $a_0=0$ and the coefficients $a_n(G_\\pm)$ of $L(G_\\pm,s)$, which are those of the newforms of $G_\\pm$ by \\cite{BCDT01} (\\code{1.4.5d}). By \\cite{Sturm87}, $f_\\pm$ is the newform of $G_\\pm$.\n\nSuppose that $f=f_\\pm$. By \\cite[Section 5]{Sik12}, $E[5]\\cong G_\\pm[5]$ as $\\F_5[G_\\Q]$-modules. Both $E$ and $G_\\pm$ have multiplicative reduction at 3 and at 5, with discriminant valuations prime to 5: by Lemma~\\ref{lem:1.4.5-frey}, $v_3(\\Delta_{\\min}(E))\\equiv v_5(\\Delta_{\\min}(E))\\equiv2\\pmod5$. The ratios are\n\\[\n\\frac{v_3(\\Delta_{\\min}(G_\\pm))}{v_3(\\Delta_{\\min}(E))}\\equiv\\frac62\\equiv3,\\qquad\n\\frac{v_5(\\Delta_{\\min}(G_\\pm))}{v_5(\\Delta_{\\min}(E))}\\equiv\\frac22=1\\pmod5 ,\n\\]\nand 3 is not a square modulo 5, while 1 is. This contradicts Lemma~\\ref{lem:1.4:pairing} with $p=5$, $\\ell_1=3$, $\\ell_2=5$.\n\\end{proof}\nThe ratio $v_3(\\Delta_{\\min})/v_5(\\Delta_{\\min})$ is a nonsquare modulo 5 for all four curves isogenous to $G_+$ (\\code{1.4.5d}), as it must be, since the argument does not depend on the choice of the curve in its isogeny class.\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.4.5}]\nIf there is a solution other than $(0,0,0)$, dividing it by the greatest common divisor of its coordinates gives a primitive solution. By Lemmas~\\ref{lem:1.4.5-frey} and~\\ref{lem:1.4.5-irr} there is a newform $f$ of level 210 or 3360 with the conditions of Lemma~\\ref{lem:1.4.5-irr}. By Lemma~\\ref{lem:1.4.5-sieve}, $f$ is $f_+$ or $f_-$, which contradicts Lemma~\\ref{lem:1.4.5-pairing}.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$21x^5+5y^5+4z^5=0$ \\ ($H=960$)}{21x^5+5y^5+4z^5=0 (H=960)}}\\label{sec:1.4.6}\n\n\n\\begin{thm}\\label{thm:1.4.6}\nThe only integer solution of $21x^5+5y^5+4z^5=0$ is $(x,y,z)=(0,0,0)$.\n\\end{thm}\n\n\\paragraph{Setup.} We use the common framework of Section~\\ref{sec:1.4} (Lemmas~\\ref{lem:1.4:terms}--\\ref{lem:1.4:sieve}). A primitive solution gives a Frey curve $E$ with $E[5]$ irreducible and a newform of level $210$ or $840$ congruent to it (Steps 1--2); the sieve of Step 3 excludes all newforms of these levels, using only the auxiliary primes 11, 31, 41 and 61.\n\n\\paragraph{Step 1: the Frey curve.}\n\\begin{lem}\\label{lem:1.4.6-frey}\nLet $(x,y,z)$ be a primitive solution. Then $xyz\\ne0$, the terms $21x^5$, $5y^5$, $4z^5$ are pairwise coprime, and $x$, $y$ are odd. Let $\\varepsilon=\\pm1$ with $\\varepsilon x\\equiv3\\pmod4$, and let $E=E_{u,v}$ with $(u,v,w)=\\varepsilon(21x^5,4z^5,5y^5)$. Then $E$ is semistable at every odd prime, with multiplicative reduction and $v_\\ell(\\Delta_{\\min})\\equiv2\\pmod5$ at $\\ell=3,5,7$. If $z$ is odd, then $E$ has type $\\mathrm I_1^*$ at 2, $f_2(E)=3$ and $N_5=840=2^3\\cdot3\\cdot5\\cdot7$. If $z$ is even, then $f_2(E)=1$, $v_2(\\Delta_{\\min})=10v_2(z)-4$ and $N_5=210$.\n\\end{lem}\n\\begin{proof}\nThe coefficients $21=3\\cdot7$, $5$, $4=2^2$ are pairwise coprime, with exponents at most 2, and none is $\\pm1$. By Lemma~\\ref{lem:1.4:terms}, $xyz\\ne0$, the terms are pairwise coprime, and since $4z^5$ is even, $x$ and $y$ are odd. As $x^5\\equiv x$ and $21\\equiv1\\pmod4$, $u=21\\varepsilon x^5\\equiv\\varepsilon x\\equiv-1\\pmod4$. Here $r=v_2(4z^5)=2+5v_2(z)$. If $z$ is odd, then $r=2$ and Lemma~\\ref{lem:1.4:frey}(2) gives type $\\mathrm I_1^*$, $f_2=3$, $v_2(\\Delta_{\\min})=8$. If $z$ is even, then $r\\ge7$, $f_2=1$, and $v_2(\\Delta_{\\min})=2r-8=10v_2(z)-4\\equiv1\\pmod5$, so 2 divides $N_5$. At $\\ell=3,5,7$, $v_\\ell(\\Delta_{\\min})=2+10v_\\ell(xyz)$, and Lemma~\\ref{lem:1.4:level} gives $N_5$ (\\code{1.4.6a}; the 2-adic data are also checked with PARI on all residue classes of $\\varepsilon x$ and $z$ modulo $2^6$ in \\code{1.4.6c}).\n\\end{proof}\n\n\\paragraph{Step 2: irreducibility and level lowering.} The trace sets $T_q=T_q(21,5,4)$ are (\\code{1.4.6b})\n\\[\n\\begin{array}{c|c@{\\qquad}c|c@{\\qquad}c|c}\nq&T_q&q&T_q&q&T_q\\\\\\hline\n11&\\{1,4\\}&41&\\F_5^\\times&151&\\{0,2,3\\}\\\\\n13&\\F_5^\\times&61&\\{2,3\\}&181&\\{2,3\\}\\\\\n17&\\F_5^\\times&101&\\F_5^\\times&211&\\F_5^\\times\\\\\n31&\\{0,1,4\\}&131&\\F_5^\\times&&\n\\end{array}\n\\]\n\\begin{lem}\\label{lem:1.4.6-irr}\n$E[5]$ is irreducible. There are a newform $f\\in S_2(\\Gamma_0(N_5))$, with $N_5\\in\\{210,840\\}$ as in Lemma~\\ref{lem:1.4.6-frey}, and a prime ideal $\\lambda\\mid5$ of $\\mathcal O_{K_f}$ such that $a_q(f)\\bmod\\lambda\\in T_q$ for the eleven primes $q$ of the table.\n\\end{lem}\n\\begin{proof}\nAs $31\\equiv1\\pmod5$, $T_{31}\\cap\\{2,3\\}=\\emptyset$ and $f_2(E)\\le5$, Lemma~\\ref{lem:1.4:sieve}(2) applies; then Lemma~\\ref{lem:1.4:sieve}(3) gives $f$ and $\\lambda$, since no $q$ of the table divides $10\\cdot21\\cdot5\\cdot4$.\n\\end{proof}\n\n\\paragraph{Step 3: the sieve.}\n\\begin{lem}\\label{lem:1.4.6-sieve}\nNo newform of level 210 or 840 satisfies the conditions of Lemma~\\ref{lem:1.4.6-irr}. More precisely, $S_2(\\Gamma_0(210))^{\\mathrm{new}}$ consists of five rational newforms, two excluded at $q=11$, two at $q=31$ and one at $q=61$; $S_2(\\Gamma_0(840))^{\\mathrm{new}}$ has dimension 12 and 11 Galois orbits, ten rational and one with coefficient field $\\Q(\\sqrt2)$, in which 5 is inert; of these 11 pairs (orbit, $\\lambda$), five are excluded at $q=11$, one at $q=31$, two at $q=41$ and three at $q=61$.\n\\end{lem}\n\\begin{proof}\nThis is a finite computation (\\code{1.4.6c}); the dimensions and the Hecke polynomials are confirmed by \\code{1.4qb} and \\code{1.4qc}.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.4.6}]\nA solution other than $(0,0,0)$ gives a primitive one, and then, by Lemmas~\\ref{lem:1.4.6-frey} and~\\ref{lem:1.4.6-irr}, a newform of level 210 or 840 that Lemma~\\ref{lem:1.4.6-sieve} excludes.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$17x^5+6y^5+3z^5=0$ \\ ($H=832$)}{17x^5+6y^5+3z^5=0 (H=832)}}\\label{sec:1.4.7}\n\n\n\\begin{thm}\\label{thm:1.4.7}\nThe only integer solution of $17x^5+6y^5+3z^5=0$ is $(x,y,z)=(0,0,0)$.\n\\end{thm}\n\n\\paragraph{Setup.} Modulo 3 the equation gives $3\\mid x$, and with $x=3X$ it becomes\n\\[\n1377X^5+2y^5+z^5=0,\\qquad 1377=3^4\\cdot17 .\n\\]\nWe apply the common framework of Section~\\ref{sec:1.4} (Lemmas~\\ref{lem:1.4:terms}--\\ref{lem:1.4:sieve}) to this equation: a primitive solution gives a Frey curve $E$ with $E[5]$ irreducible and a newform of level $102$ or $1632$ (Steps 1--2), and the auxiliary primes 41, 11 and 131 exclude all of them (Step 3).\n\n\\paragraph{Step 1: the Frey curve.}\n\\begin{lem}\\label{lem:1.4.7-frey}\nLet $(x,y,z)$ be a primitive solution. Then $x=3X$, $(X,y,z)$ is a primitive solution of $1377X^5+2y^5+z^5=0$, $Xyz\\ne0$, the terms $1377X^5$, $2y^5$, $z^5$ are pairwise coprime, and $X$, $z$ are odd. Let $\\varepsilon=\\pm1$ with $\\varepsilon X\\equiv3\\pmod4$, and let $E=E_{u,v}$ with $(u,v,w)=\\varepsilon(1377X^5,2y^5,z^5)$. Then $E$ is semistable at every odd prime, with multiplicative reduction at 3 and 17, $v_3(\\Delta_{\\min})=8+10v_3(X)$, $v_{17}(\\Delta_{\\min})=2+10v_{17}(X)$, and $5\\nmid N_5$. If $y$ is odd, then $f_2(E)=5$ and $N_5=1632=2^5\\cdot3\\cdot17$; if $y$ is even, then $f_2(E)=1$, $v_2(\\Delta_{\\min})=10v_2(y)-6$ and $N_5=102=2\\cdot3\\cdot17$.\n\\end{lem}\n\\begin{proof}\nModulo 3, $17x^5+6y^5+3z^5\\equiv2x^5$, so $3\\mid x$; dividing $17\\cdot3^5X^5+6y^5+3z^5=0$ by 3 gives the new equation. A common prime factor of $X,y,z$ would divide $x,y,z$, so $(X,y,z)$ is primitive. The coefficients $3^4\\cdot17$, $2$, $1$ are pairwise coprime with exponents at most 4, and only one of them is $\\pm1$. By Lemma~\\ref{lem:1.4:terms}, $Xyz\\ne0$, the terms are pairwise coprime, and since $2y^5$ is even, $X$ and $z$ are odd. As $1377\\equiv1\\pmod4$, $u\\equiv\\varepsilon X\\equiv-1\\pmod4$. Here $r=1+5v_2(y)$; Lemma~\\ref{lem:1.4:frey}(2) gives $f_2=5$ if $y$ is odd, and $f_2=1$, $v_2(\\Delta_{\\min})=2r-8=10v_2(y)-6\\equiv4\\pmod5$ if $y$ is even. Lemma~\\ref{lem:1.4:level} gives the odd primes and $N_5$; $5\\nmid1377\\cdot2$ (\\code{1.4.7a}; the 2-adic data are also checked with PARI in \\code{1.4.7c}).\n\\end{proof}\n\n\\paragraph{Step 2: irreducibility and level lowering.} The trace sets $T_q=T_q(1377,2,1)$ are (\\code{1.4.7b})\n\\[\n\\begin{array}{c|ccccc}\nq&11&31&41&131&241\\\\\\hline\nT_q&\\{2,3\\}&\\{0,1,4\\}&\\{0\\}&\\{0,2,3\\}&\\{0,2,3\\}\n\\end{array}\n\\]\nFor example, modulo 41 the curve has 25 points, none with a zero coordinate, and the traces at these points are $\\pm10$.\n\n\\begin{lem}\\label{lem:1.4.7-irr}\n$E[5]$ is irreducible. There are a newform $f\\in S_2(\\Gamma_0(N_5))$, with $N_5\\in\\{102,1632\\}$ as in Lemma~\\ref{lem:1.4.7-frey}, and a prime ideal $\\lambda\\mid5$ of $\\mathcal O_{K_f}$ such that $a_q(f)\\bmod\\lambda\\in T_q$ for the five primes $q$ of the table.\n\\end{lem}\n\\begin{proof}\nAs $31\\equiv1\\pmod5$, $T_{31}\\cap\\{2,3\\}=\\emptyset$ and $f_2(E)\\le5$, Lemma~\\ref{lem:1.4:sieve}(2) applies (so does $q=41$); Lemma~\\ref{lem:1.4:sieve}(3) gives $f$ and $\\lambda$, since no $q$ of the table divides $10\\cdot1377\\cdot2$.\n\\end{proof}\n\n\\paragraph{Step 3: the sieve.}\n\\begin{lem}\\label{lem:1.4.7-sieve}\nNo newform of level 102 or 1632 satisfies the conditions of Lemma~\\ref{lem:1.4.7-irr}. More precisely, $S_2(\\Gamma_0(102))^{\\mathrm{new}}$ consists of three rational newforms, one excluded at $q=41$ and two at $q=11$. $S_2(\\Gamma_0(1632))^{\\mathrm{new}}$ has dimension 32 and 20 Galois orbits: 12 rational, four quadratic and four cubic, in whose coefficient fields 5 is inert, so there are 20 pairs (orbit, $\\lambda$). The condition at $q=41$ leaves 8 pairs and the condition at $q=11$ leaves two rational newforms, with $(a_{41},a_{11})=(-5,3)$ and $(-5,-3)$; their coefficients $a_{131}=9$ and $-9$ are $4$ and $1$ modulo 5, not in $T_{131}$.\n\\end{lem}\n\\begin{proof}\nThis is a finite computation (\\code{1.4.7c}); the dimensions and the Hecke polynomials are confirmed by \\code{1.4qb} and \\code{1.4qc}.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.4.7}]\nA solution other than $(0,0,0)$ gives a primitive one, and then, by Lemmas~\\ref{lem:1.4.7-frey} and~\\ref{lem:1.4.7-irr}, a newform of level 102 or 1632 that Lemma~\\ref{lem:1.4.7-sieve} excludes.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$17x^5+9y^5+5z^5=0$ \\ ($H=992$)}{17x^5+9y^5+5z^5=0 (H=992)}}\\label{sec:1.4.8}\n\n\n\\begin{thm}\\label{thm:1.4.8}\nThe only integer solution of $17x^5+9y^5+5z^5=0$ is $(x,y,z)=(0,0,0)$.\n\\end{thm}\n\n\\paragraph{Setup.} We use the common framework of Section~\\ref{sec:1.4} (Lemmas~\\ref{lem:1.4:terms}--\\ref{lem:1.4:sieve}). Here the Frey curve is semistable everywhere, the only level is $510$ (Steps 1--2), and the auxiliary primes 41 and 11 exclude all newforms of that level (Step 3).\n\n\\paragraph{Step 1: the Frey curve.}\n\\begin{lem}\\label{lem:1.4.8-frey}\nLet $(x,y,z)$ be a primitive solution. Then $xyz\\ne0$, the terms $17x^5$, $9y^5$, $5z^5$ are pairwise coprime, and exactly one of $x,y,z$ is even. Let $t_j$ be the even term, $t_i$ the first and $t_k$ the second of the two odd terms in the order $17x^5,9y^5,5z^5$, $\\varepsilon=\\pm1$ with $\\varepsilon t_i\\equiv-1\\pmod4$, and $E=E_{u,v}$ with $(u,v,w)=\\varepsilon(t_i,t_j,t_k)$. Then $E$ is semistable, with multiplicative reduction at $2,3,5,17$,\n\\[\n\\begin{gathered}\nv_2(\\Delta_{\\min})=10e-8\\quad(e=v_2(xyz)\\ge1),\\\\\nv_3(\\Delta_{\\min})=4+10v_3(y),\\qquad v_5(\\Delta_{\\min})=2+10v_5(z),\\qquad v_{17}(\\Delta_{\\min})=2+10v_{17}(x),\n\\end{gathered}\n\\]\nand $N_5=510=2\\cdot3\\cdot5\\cdot17$.\n\\end{lem}\n\\begin{proof}\nThe coefficients $17$, $9=3^2$, $5$ are pairwise coprime, with exponents at most 2, and none is $\\pm1$. By Lemma~\\ref{lem:1.4:terms}, $xyz\\ne0$, the terms are pairwise coprime and exactly one is even; as the coefficients are odd, exactly one variable is even, and $r=5e$ with $e=v_2(xyz)\\ge1$. By Lemma~\\ref{lem:1.4:frey}(2), $f_2=1$ and $v_2(\\Delta_{\\min})=2r-8=10e-8\\equiv2\\pmod5$, so 2 divides $N_5$. The odd primes and $N_5$ are given by Lemma~\\ref{lem:1.4:level} (\\code{1.4.8a}; the 2-adic data are also checked with PARI for each choice of the even variable in \\code{1.4.8c}).\n\\end{proof}\n\n\\paragraph{Step 2: irreducibility and level lowering.} The trace sets $T_q=T_q(17,9,5)$ are (\\code{1.4.8b})\n\\[\n\\begin{array}{c|cccc}\nq&11&31&41&71\\\\\\hline\nT_q&\\{2,3\\}&\\{2,3\\}&\\{0\\}&\\{2,3\\}\n\\end{array}\n\\]\nModulo 41 the curve has 25 points, none with a zero coordinate, and the traces at these points are $\\pm10$.\n\n\\begin{lem}\\label{lem:1.4.8-irr}\n$E[5]$ is irreducible. There are a newform $f\\in S_2(\\Gamma_0(510))$ and a prime ideal $\\lambda\\mid5$ of $\\mathcal O_{K_f}$ such that $a_q(f)\\bmod\\lambda\\in T_q$ for $q=11,31,41,71$.\n\\end{lem}\n\\begin{proof}\nAs $41\\equiv1\\pmod5$, $T_{41}\\cap\\{2,3\\}=\\emptyset$ and $f_2(E)=1$, Lemma~\\ref{lem:1.4:sieve}(2) applies; Lemma~\\ref{lem:1.4:sieve}(3) gives $f$ and $\\lambda$.\n\\end{proof}\n\n\\paragraph{Step 3: the sieve.}\n\\begin{lem}\\label{lem:1.4.8-sieve}\nNo newform of level 510 satisfies the conditions of Lemma~\\ref{lem:1.4.8-irr}. More precisely, $S_2(\\Gamma_0(510))^{\\mathrm{new}}$ has dimension 9 and 8 Galois orbits, seven rational and one with coefficient field $\\Q(\\sqrt6)$, in which 5 splits; this gives 9 pairs (orbit, $\\lambda$). The condition at $q=41$ leaves three pairs: two rational newforms, with $a_{11}=0$ and $4$, and one prime ideal $\\lambda\\mid5$ of $\\Q(\\sqrt6)$, at which $a_{41}=2\\sqrt6+2\\equiv0$ and $a_{11}=0$. None of $0,4,0$ lies in $T_{11}$.\n\\end{lem}\n\\begin{proof}\nThis is a finite computation (\\code{1.4.8c}); the dimension and the Hecke polynomials are confirmed by \\code{1.4qb} and \\code{1.4qc}.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.4.8}]\nA solution other than $(0,0,0)$ gives a primitive one, and then, by Lemmas~\\ref{lem:1.4.8-frey} and~\\ref{lem:1.4.8-irr}, a newform of level 510 that Lemma~\\ref{lem:1.4.8-sieve} excludes.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$14x^5+13y^5+2z^5=0$ \\ ($H=928$)}{14x^5+13y^5+2z^5=0 (H=928)}}\\label{sec:1.4.9}\n\n\n\\begin{thm}\\label{thm:1.4.9}\nThe only integer solution of $14x^5+13y^5+2z^5=0$ is $(x,y,z)=(0,0,0)$.\n\\end{thm}\n\n\\paragraph{Setup.} Modulo 2 the equation gives $2\\mid y$, and with $y=2Y$ it becomes\n\\[\n7x^5+208Y^5+z^5=0,\\qquad 208=2^4\\cdot13 .\n\\]\nWe apply the common framework of Section~\\ref{sec:1.4} (Lemmas~\\ref{lem:1.4:terms}--\\ref{lem:1.4:sieve}) to this equation. The Frey curve has good or multiplicative reduction at 2 with $5\\mid v_2(\\Delta_{\\min})$, so the prime 2 disappears from the level, which is $91$ (Step 1). Irreducibility follows from Mazur's theorem (Step 2), and the single auxiliary prime 11 excludes all newforms of level 91 (Step 3).\n\n\\paragraph{Step 1: the Frey curve.}\n\\begin{lem}\\label{lem:1.4.9-frey}\nLet $(x,y,z)$ be a primitive solution. Then $y=2Y$, $(x,Y,z)$ is a primitive solution of $7x^5+208Y^5+z^5=0$, $xYz\\ne0$, the terms $7x^5$, $208Y^5$, $z^5$ are pairwise coprime, and $x$, $z$ are odd. Let $\\varepsilon=\\pm1$ with $\\varepsilon x\\equiv1\\pmod4$, and let $E=E_{u,v}$ with $(u,v,w)=\\varepsilon(7x^5,208Y^5,z^5)$. Then $E$ is semistable, with multiplicative reduction at 7 and 13, $v_7(\\Delta_{\\min})=2+10v_7(x)$, $v_{13}(\\Delta_{\\min})=2+10v_{13}(Y)$; at 2 it has good reduction if $Y$ is odd, and multiplicative reduction with $v_2(\\Delta_{\\min})=10v_2(Y)$ if $Y$ is even; at 5 it has good reduction, or multiplicative reduction with $5\\mid v_5(\\Delta_{\\min})$. Its level is $N_5=91=7\\cdot13$.\n\\end{lem}\n\\begin{proof}\nModulo 2, $14x^5+13y^5+2z^5\\equiv y^5$, so $y=2Y$, and dividing by 2 gives the new equation; a common prime factor of $x,Y,z$ would divide $x,y,z$. The coefficients $7$, $2^4\\cdot13$, $1$ are pairwise coprime with exponents at most 4, and only one is $\\pm1$. By Lemma~\\ref{lem:1.4:terms}, $xYz\\ne0$, the terms are pairwise coprime, and since $208Y^5$ is even, $x$ and $z$ are odd. As $7\\equiv-1\\pmod4$, $u=7\\varepsilon x^5\\equiv-\\varepsilon x\\equiv-1\\pmod4$. Here $r=v_2(208Y^5)=4+5v_2(Y)$. If $Y$ is odd, then $r=4$ and $E$ has good reduction at 2 by Lemma~\\ref{lem:1.4:frey}(2). If $Y$ is even, then $r\\ge9$, the reduction is multiplicative and $v_2(\\Delta_{\\min})=2r-8=10v_2(Y)$; since $r\\equiv4\\pmod5$, 2 does not divide $N_5$ (Lemma~\\ref{lem:1.4:level}). The rest is Lemma~\\ref{lem:1.4:level}, with $5\\nmid7\\cdot208$ (\\code{1.4.9a}; the 2-adic data are also checked with PARI in \\code{1.4.9b}).\n\\end{proof}\n\n\\paragraph{Step 2: irreducibility and level lowering.}\n\\begin{lem}\\label{lem:1.4.9-irr}\n$E[5]$ is irreducible, and there are a newform $f\\in S_2(\\Gamma_0(91))$ and a prime ideal $\\lambda\\mid5$ of $\\mathcal O_{K_f}$ such that $a_{11}(f)\\bmod\\lambda\\in T_{11}(7,208,1)$.\n\\end{lem}\n\\begin{proof}\nBy Lemma~\\ref{lem:1.4.9-frey}, $E$ has full rational 2-torsion, is semistable at every odd prime, has $f_2(E)\\le1$, and has good reduction at 5 or multiplicative reduction with $5\\mid v_5(\\Delta_{\\min})$. Lemma~\\ref{lem:1.4:flat} gives irreducibility, and Lemma~\\ref{lem:1.4:sieve}(3) gives $f$ and $\\lambda$ ($11\\nmid10\\cdot7\\cdot208$).\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.4.9-eleven}\nEvery point of $7a^5+208b^5+c^5=0$ over $\\F_{11}$ has $a=0$ and $bc\\ne0$. Hence $11\\mid x$, $11\\nmid Yz$, and $T_{11}(7,208,1)=\\{2,3\\}$.\n\\end{lem}\n\\begin{proof}\nThe nonzero fifth powers modulo 11 are $\\pm1$, and $208\\equiv-1\\pmod{11}$. If $abc\\ne0$, then $7a^5-b^5+c^5\\equiv7\\pm1\\pm1$ or $-7\\pm1\\pm1$, which is one of $\\pm5,\\pm7,\\pm9$ and is not $0$ modulo 11. If $b=0$ and $ac\\ne0$, or $c=0$ and $ab\\ne0$, the two remaining terms add up to $\\pm7\\pm1\\not\\equiv0$, and two vanishing coordinates force the third to vanish. So $a=0$, and then $b^5=c^5$ with $bc\\ne0$: the five points $(0:1:c)$ with $c\\in\\{1,3,4,5,9\\}$. All of them have a zero coordinate, so $T_{11}=\\{\\pm12\\bmod5\\}=\\{2,3\\}$ (\\code{1.4.9a}).\n\\end{proof}\n\n\\paragraph{Step 3: the newforms of level 91.}\n\\begin{lem}\\label{lem:1.4.9-sieve}\n$S_2(\\Gamma_0(91))^{\\mathrm{new}}$ has dimension 7 and four Galois orbits, of dimensions $1,1,2,3$. The minimal polynomials of their eigenvalues $a_{11}$ are\n\\[\nT,\\qquad T+6,\\qquad T^2-18,\\qquad T^3-2T^2-6T+8 .\n\\]\nNone of them has $2$ or $3$ as a root modulo 5.\n\\end{lem}\n\\begin{proof}\nThe newforms are computed with PARI/GP (\\code{1.4.9b}; the dimension and the Hecke polynomial are confirmed by \\code{1.4qb} and \\code{1.4qc}). The values of the four polynomials at $T=2$ and $T=3$ are $(2,3)$, $(3,4)$, $(1,1)$ and $(1,4)$ modulo 5.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.4.9}]\nSuppose that there is a solution other than $(0,0,0)$, and take a primitive one. By Lemmas~\\ref{lem:1.4.9-irr} and~\\ref{lem:1.4.9-eleven}, there is a newform $f$ of level 91 with $a_{11}(f)\\equiv2$ or $3\\pmod\\lambda$ for a prime ideal $\\lambda\\mid5$. The minimal polynomial of $a_{11}(f)$ has integer coefficients and vanishes at $a_{11}(f)$, so its reduction modulo 5 vanishes at $2$ or $3$, contrary to Lemma~\\ref{lem:1.4.9-sieve}.\n\\end{proof}\n\n\\subsection{\\texorpdfstring{$4x^5+4y^5+11z^5=0$ \\ ($H=608$)}{4x^5+4y^5+11z^5=0 (H=608)}}\\label{sec:1.4.10}\n\n\n\\begin{thm}\\label{thm:1.4.10}\nThe integer solutions of $4x^5+4y^5+11z^5=0$ are exactly $(x,y,z)=(n,-n,0)$, $n\\in\\Z$.\n\\end{thm}\n\n\\paragraph{Setup.} Modulo 4 the equation gives $2\\mid z$, and with $z=2w$ it becomes\n\\[\nx^5+y^5+88w^5=0,\\qquad 88=2^3\\cdot11 .\n\\]\nThe solutions with a zero coordinate are elementary (Step 1). For the others we apply the common framework of Section~\\ref{sec:1.4} (Lemmas~\\ref{lem:1.4:terms}--\\ref{lem:1.4:sieve}): the Frey curve gives a newform of level $22$ or $88$, irreducibility follows from Mazur's theorem (Step 2), and the single auxiliary prime 3 excludes all newforms of these levels (Step 3).\n\n\\paragraph{Step 1: reduction and the solutions with a zero coordinate.}\n\\begin{lem}\\label{lem:1.4.10-basic}\nIf $(x,y,z)$ is a primitive solution, then $z=2w$ and $(x,y,w)$ is a primitive solution of $x^5+y^5+88w^5=0$. If moreover $xyz=0$, then $(x,y,z)=\\pm(1,-1,0)$. Hence the integer solutions with $xyz=0$ are the $(n,-n,0)$, $n\\in\\Z$.\n\\end{lem}\n\\begin{proof}\nModulo 4, $11z^5\\equiv0$, so $z$ is even; dividing $4x^5+4y^5+11\\cdot2^5w^5=0$ by 4 gives the new equation, and a common prime factor of $x,y,w$ would divide $x,y,z$. The coefficients $1,1,2^3\\cdot11$ are pairwise coprime with exponents at most 3. By Lemma~\\ref{lem:1.4:terms}(1), $x=0$ would force $|1|=|88|=1$, and so would $y=0$; hence a zero coordinate can only be $w=0$, and then $(x,y)=\\pm(1,-1)$. Every nonzero solution is a multiple of a primitive one, and $(n,-n,0)$ is a solution for every $n$.\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.4.10-frey}\nLet $(x,y,z)$ be a primitive solution with $xyz\\ne0$, and $z=2w$. Then the terms $x^5$, $y^5$, $88w^5$ are pairwise coprime, and $x$, $y$ are odd. Let $\\varepsilon=\\pm1$ with $\\varepsilon x\\equiv3\\pmod4$, and let $E=E_{u,v}$ with $(u,v,w')=\\varepsilon(x^5,88w^5,y^5)$. Then $E$ is semistable at every odd prime, with multiplicative reduction at 11 and $v_{11}(\\Delta_{\\min})=2+10v_{11}(w)$, and it has good reduction at 5 or multiplicative reduction with $5\\mid v_5(\\Delta_{\\min})$. If $w$ is odd, then $E$ has type $\\mathrm{III}^*$ at 2, $f_2(E)=3$ and $N_5=88=2^3\\cdot11$; if $w$ is even, then $f_2(E)=1$, $v_2(\\Delta_{\\min})=10v_2(w)-2$ and $N_5=22=2\\cdot11$.\n\\end{lem}\n\\begin{proof}\nBy Lemma~\\ref{lem:1.4:terms}(2) applied to $x^5+y^5+88w^5=0$, the terms are pairwise coprime, and $88w^5$ is the even one. Here $r=v_2(88w^5)=3+5v_2(w)$. If $w$ is odd, then $r=3$ and Lemma~\\ref{lem:1.4:frey}(2) gives type $\\mathrm{III}^*$, $f_2=3$, $v_2(\\Delta_{\\min})=10$. If $w$ is even, then $r\\ge8$, $f_2=1$ and $v_2(\\Delta_{\\min})=2r-8=10v_2(w)-2\\equiv3\\pmod5$. The rest is Lemma~\\ref{lem:1.4:level}, with $5\\nmid88$ (\\code{1.4.10a}; the 2-adic data are also checked with PARI in \\code{1.4.10b}).\n\\end{proof}\n\n\\paragraph{Step 2: irreducibility, level lowering and the prime 3.}\n\\begin{lem}\\label{lem:1.4.10-irr}\n$E[5]$ is irreducible, and there are a newform $f\\in S_2(\\Gamma_0(N_5))$, $N_5\\in\\{22,88\\}$ as in Lemma~\\ref{lem:1.4.10-frey}, and a prime ideal $\\lambda\\mid5$ of $\\mathcal O_{K_f}$ such that $a_3(f)\\bmod\\lambda\\in T_3(1,1,88)$.\n\\end{lem}\n\\begin{proof}\n$E$ has full rational 2-torsion, is semistable at every odd prime, has $f_2(E)\\le3$, and has good reduction at 5 or multiplicative reduction with $5\\mid v_5(\\Delta_{\\min})$ (Lemma~\\ref{lem:1.4.10-frey}). Lemma~\\ref{lem:1.4:flat} gives irreducibility, and Lemma~\\ref{lem:1.4:sieve}(3) gives $f$ and $\\lambda$ ($3\\nmid10\\cdot88$).\n\\end{proof}\n\n\\begin{lem}\\label{lem:1.4.10-three}\n$T_3(1,1,88)=\\{0,1,4\\}$.\n\\end{lem}\n\\begin{proof}\nOver $\\F_3$ we have $a^5=a$ and $88\\equiv1$, so the curve is the line $a+b+c=0$, with the four points $(1:1:1)$, $(1:2:0)$, $(1:0:2)$, $(0:1:2)$. At $(1:1:1)$ the curve $E_{1,1}$ is $Y^2=X(X-1)(X+1)=X^3-X$, which has four points over $\\F_3$, so its trace is 0. The other three points have a zero coordinate and contribute $\\pm(3+1)\\equiv\\pm4$. Hence $T_3=\\{0,4,1\\}$ (\\code{1.4.10a}).\n\\end{proof}\n\n\\paragraph{Step 3: the newforms of levels 22 and 88.}\n\\begin{lem}\\label{lem:1.4.10-sieve}\n$S_2(\\Gamma_0(22))^{\\mathrm{new}}=0$. $S_2(\\Gamma_0(88))^{\\mathrm{new}}$ has dimension 3 and two Galois orbits, of dimensions 1 and 2, and the minimal polynomials of their eigenvalues $a_3$ are $T+3$ and $T^2-T-4$. Neither has a root in $\\{0,1,4\\}$ modulo 5.\n\\end{lem}\n\\begin{proof}\nThe newforms are computed with PARI/GP (\\code{1.4.10b}; the dimensions and the Hecke polynomial are confirmed by \\code{1.4qb} and \\code{1.4qc}). The values of $T+3$ at $0,1,4$ are $3,4,2$ modulo 5, and those of $T^2-T-4$ are $1,1,3$; in fact $T^2-T-4$ is irreducible modulo 5, its discriminant 17 being a nonsquare.\n\\end{proof}\n\n\\begin{proof}[Proof of Theorem~\\ref{thm:1.4.10}]\nBy Lemma~\\ref{lem:1.4.10-basic}, it suffices to show that there is no primitive solution with $xyz\\ne0$. For such a solution, Lemma~\\ref{lem:1.4.10-irr} gives a newform of level 22 or 88; there is none of level 22, and for one of level 88, $a_3(f)\\bmod\\lambda\\in\\{0,1,4\\}$ by Lemma~\\ref{lem:1.4.10-three}, so the reduction modulo 5 of the minimal polynomial of $a_3(f)$ would have a root in $\\{0,1,4\\}$, contrary to Lemma~\\ref{lem:1.4.10-sieve}.\n\\end{proof}\n\n\\section*{Reproducibility}\n\\addcontentsline{toc}{section}{Reproducibility}\nThe separate reproducibility archive contains the computational material for the thirty-eight proofs in this paper and its shared dependencies, together with the LaTeX source and BibTeX database. Its top-level README gives the build instructions, software requirements and current certificate map, and distinguishes historical computational outputs from the editorial and packaging checks performed for this edition. Generated large witness files are not needed to typeset the paper and can be reconstructed using the documented commands.\n\n\\bibliographystyle{amsalpha}\n\\bibliography{references}\n\n\\end{document}\n"}, {"path":"v1/references.bib","sha256":"eae8c8352b5bbe1f31d839f55f603f9b22316182aaa739cd16190e9775918670","mode":420,"size":24610,"encoding":"utf-8","text":"% BibTeX database for Long solutions to small equations.\n\n@book{ATLAS85,\n author = {Conway, J. H. and Curtis, R. T. and Norton, S. P. and Parker, R. A. and Wilson, R. A.},\n title = {Atlas of Finite Groups},\n publisher = {Oxford University Press},\n address = {Oxford},\n year = {1985}\n}\n\n@article{BB12,\n author = {Balakrishnan, Jennifer S. and Besser, Amnon},\n title = {Computing local p-adic height pairings on hyperelliptic curves},\n journal = {International Mathematics Research Notices. IMRN},\n year = {2012},\n number = {11},\n pages = {2405--2444},\n eprint = {1010.6009},\n archivePrefix = {arXiv}\n}\n\n@article{BB15,\n author = {Balakrishnan, Jennifer S. and Besser, Amnon},\n title = {Coleman--{G}ross height pairings and the p-adic sigma function},\n journal = {Journal f{\\\"u}r die reine und angewandte Mathematik},\n volume = {698},\n year = {2015},\n pages = {89--104},\n eprint = {1201.6016},\n archivePrefix = {arXiv}\n}\n\n@article{BBM16,\n author = {Balakrishnan, Jennifer S. and Besser, Amnon and M{\\\"u}ller, J. Steffen},\n title = {Quadratic {C}habauty: p-adic heights and integral points on hyperelliptic curves},\n journal = {Journal f{\\\"u}r die reine und angewandte Mathematik},\n volume = {720},\n year = {2016},\n pages = {51--79},\n doi = {10.1515/crelle-2014-0048},\n eprint = {1302.2944},\n archivePrefix = {arXiv},\n note = {\\url{https://doi.org/10.1515/crelle-2014-0048}}\n}\n\n@article{BCDT01,\n author = {Breuil, Christophe and Conrad, Brian and Diamond, Fred and Taylor, Richard},\n title = {On the modularity of elliptic curves over {$\\mathbf{Q}$}: wild 3-adic exercises},\n journal = {Journal of the American Mathematical Society},\n volume = {14},\n number = {4},\n year = {2001},\n pages = {843--939},\n doi = {10.1090/S0894-0347-01-00370-8},\n note = {\\url{https://doi.org/10.1090/S0894-0347-01-00370-8}}\n}\n\n@article{BDF08,\n author = {Belabas, Karim and Diaz y Diaz, Francisco and Friedman, Eduardo},\n title = {Small generators of the ideal class group},\n journal = {Mathematics of Computation},\n volume = {77},\n number = {262},\n year = {2008},\n pages = {1185--1197},\n doi = {10.1090/S0025-5718-07-02003-0},\n note = {\\url{https://doi.org/10.1090/S0025-5718-07-02003-0}}\n}\n\n@article{BEN10,\n author = {Bennett, Michael A. and Ellenberg, Jordan S. and Ng, Nathan C.},\n title = {The {Diophantine} equation {$A^4+2^\\delta B^2=C^n$}},\n journal = {International Journal of Number Theory},\n volume = {6},\n number = {2},\n pages = {311--338},\n year = {2010},\n doi = {10.1142/S1793042110002971},\n note = {\\url{https://doi.org/10.1142/S1793042110002971}}\n}\n\n@book{BLR90,\n author = {Bosch, Siegfried and L{\\\"u}tkebohmert, Werner and Raynaud, Michel},\n title = {N{\\'e}ron Models},\n series = {Ergebnisse der Mathematik und ihrer Grenzgebiete (3)},\n volume = {21},\n publisher = {Springer-Verlag},\n address = {Berlin},\n year = {1990},\n doi = {10.1007/978-3-642-51438-8},\n note = {\\url{https://doi.org/10.1007/978-3-642-51438-8}}\n}\n\n@article{BPS16,\n author = {Bruin, Nils and Poonen, Bjorn and Stoll, Michael},\n title = {Generalized explicit descent and its application to curves of genus 3},\n journal = {Forum of Mathematics, Sigma},\n volume = {4},\n year = {2016},\n pages = {e6},\n doi = {10.1017/fms.2016.1},\n eprint = {1205.4456},\n archivePrefix = {arXiv},\n note = {\\url{https://doi.org/10.1017/fms.2016.1}}\n}\n\n@article{Brown12,\n author = {Brown, David},\n title = {Primitive integral solutions to {$x^2+y^3=z^{10}$}},\n journal = {International Mathematics Research Notices},\n volume = {2012},\n number = {2},\n pages = {423--436},\n year = {2012},\n doi = {10.1093/imrn/rnr022},\n note = {\\url{https://doi.org/10.1093/imrn/rnr022}}\n}\n\n@article{Bruin03,\n author = {Bruin, Nils},\n title = {Chabauty methods using elliptic curves},\n journal = {Journal f{\\\"u}r die reine und angewandte Mathematik},\n volume = {562},\n year = {2003},\n pages = {27--49}\n}\n\n@article{Bruin08,\n author = {Bruin, Nils},\n title = {The arithmetic of {P}rym varieties in genus 3},\n journal = {Compositio Mathematica},\n volume = {144},\n year = {2008},\n pages = {317--338},\n doi = {10.1112/S0010437X07003314},\n eprint = {math/0408069},\n archivePrefix = {arXiv},\n note = {\\url{https://doi.org/10.1112/S0010437X07003314}}\n}\n\n@article{BS09,\n author = {Bruin, Nils and Stoll, Michael},\n title = {Two-cover descent on hyperelliptic curves},\n journal = {Mathematics of Computation},\n volume = {78},\n number = {268},\n year = {2009},\n pages = {2347--2370},\n doi = {10.1090/S0025-5718-09-02255-8},\n eprint = {0803.2052},\n archivePrefix = {arXiv},\n note = {\\url{https://doi.org/10.1090/S0025-5718-09-02255-8}}\n}\n\n@article{BS10,\n author = {Bruin, Nils and Stoll, Michael},\n title = {The {M}ordell--{W}eil sieve: proving non-existence of rational points on curves},\n journal = {LMS Journal of Computation and Mathematics},\n volume = {13},\n year = {2010},\n pages = {272--306},\n doi = {10.1112/S1461157009000187},\n eprint = {0906.1934},\n archivePrefix = {arXiv},\n note = {\\url{https://doi.org/10.1112/S1461157009000187}}\n}\n\n@article{BVY04,\n author = {Bennett, Michael A. and Vatsal, Vinayak and Yazdani, Soroosh},\n title = {Ternary {Diophantine} equations of signature {$(p,p,3)$}},\n journal = {Compositio Mathematica},\n volume = {140},\n number = {6},\n pages = {1399--1416},\n year = {2004},\n doi = {10.1112/S0010437X04000983},\n note = {\\url{https://doi.org/10.1112/S0010437X04000983}}\n}\n\n@book{CF96,\n author = {Cassels, J. W. S. and Flynn, E. V.},\n title = {Prolegomena to a middlebrow arithmetic of curves of genus 2},\n series = {London Mathematical Society Lecture Note Series},\n volume = {230},\n publisher = {Cambridge University Press},\n address = {Cambridge},\n year = {1996}\n}\n\n@incollection{CG89,\n author = {Coleman, Robert F. and Gross, Benedict H.},\n title = {p-adic heights on curves},\n booktitle = {Algebraic number theory -- in honor of K. Iwasawa},\n series = {Advanced Studies in Pure Mathematics},\n volume = {17},\n publisher = {Academic Press},\n address = {Boston, MA},\n year = {1989},\n pages = {73--81}\n}\n\n@book{Cohen93,\n author = {Cohen, Henri},\n title = {A Course in Computational Algebraic Number Theory},\n series = {Graduate Texts in Mathematics},\n volume = {138},\n publisher = {Springer-Verlag},\n address = {Berlin},\n year = {1993}\n}\n\n@article{Coleman85,\n author = {Coleman, Robert F.},\n title = {Effective {C}habauty},\n journal = {Duke Mathematical Journal},\n volume = {52},\n number = {3},\n year = {1985},\n pages = {765--770},\n doi = {10.1215/S0012-7094-85-05240-8},\n note = {\\url{https://doi.org/10.1215/S0012-7094-85-05240-8}}\n}\n\n@book{CTS21, author={Colliot-Th\\'el\\`ene, Jean-Louis and Skorobogatov, Alexei N.}, title={The {B}rauer--{G}rothendieck Group}, series={Ergebnisse der Mathematik und ihrer Grenzgebiete. 3. Folge}, volume={71}, publisher={Springer}, address={Cham}, year={2021}}\n\n@article{DG95,\n author = {Darmon, Henri and Granville, Andrew},\n title = {On the equations $z^m=F(x,y)$ and $Ax^p+By^q=Cz^r$},\n journal = {Bulletin of the London Mathematical Society},\n volume = {27},\n number = {6},\n year = {1995},\n pages = {513--543},\n doi = {10.1112/blms/27.6.513},\n note = {\\url{https://doi.org/10.1112/blms/27.6.513}}\n}\n\n@book{Dolgachev12,\n author = {Dolgachev, Igor V.},\n title = {Classical Algebraic Geometry: A Modern View},\n publisher = {Cambridge University Press},\n address = {Cambridge},\n year = {2012}\n}\n\n@misc{Dusart10,\n author = {Dusart, Pierre},\n title = {Estimates of some functions over primes without {R.H.}},\n year = {2010},\n eprint = {1002.0442},\n archivePrefix = {arXiv}\n}\n\n@article{EJ12, author={Elsenhans, Andreas-Stephan and Jahnel, J\\\"org}, title={On the order three {B}rauer classes for cubic surfaces}, journal={Central European Journal of Mathematics}, volume={10}, number={3}, year={2012}, pages={903--926}, doi={10.2478/s11533-012-0042-6}, note={arXiv:1110.2086. \\url{https://doi.org/10.2478/s11533-012-0042-6}}}\n\n@article{FW99,\n author = {Flynn, E. V. and Wetherell, J. L.},\n title = {Finding rational points on bielliptic genus 2 curves},\n journal = {Manuscripta Mathematica},\n volume = {100},\n number = {4},\n year = {1999},\n pages = {519--533}\n}\n\n@article{GH81,\n author = {Gross, Benedict H. and Harris, Joe},\n title = {Real algebraic curves},\n journal = {Annales scientifiques de l'{\\'E}cole Normale Sup{\\'e}rieure (4)},\n volume = {14},\n number = {2},\n year = {1981},\n pages = {157--182},\n doi = {10.24033/asens.1401},\n note = {\\url{https://doi.org/10.24033/asens.1401}}\n}\n\n@book{Grechuk24,\n author = {Grechuk, Bogdan},\n title = {Polynomial {D}iophantine Equations: A Systematic Approach},\n publisher = {Springer},\n address = {Cham},\n year = {2024},\n doi = {10.1007/978-3-031-62949-5},\n note = {\\url{https://doi.org/10.1007/978-3-031-62949-5}}\n}\n\n@misc{GrechukMO26,\n author = {Grechuk, Bogdan},\n title = {Answer to ``What are the primitive solutions to {$x^3+2y^3=z^4$}?''},\n year = {2026},\n howpublished = {MathOverflow, question 484736},\n note = {Answer dated 10 July 2026; includes the reduction for exponent 5. \\url{https://mathoverflow.net/questions/484736/}}\n}\n\n@misc{GrechukOpen,\n author = {Grechuk, Bogdan},\n title = {A systematic approach to {Diophantine} equations: open problems},\n year = {2026},\n eprint = {2404.08518},\n archivePrefix = {arXiv},\n note = {Available at \\url{https://arxiv.org/abs/2404.08518}}\n}\n\n@incollection{Gross86,\n author = {Gross, Benedict H.},\n title = {Local heights on curves},\n booktitle = {Arithmetic Geometry ({S}torrs, {C}onn., 1984)},\n editor = {Cornell, Gary and Silverman, Joseph H.},\n publisher = {Springer},\n address = {New York},\n year = {1986},\n pages = {327--339}\n}\n\n@book{Hartshorne77,\n author = {Hartshorne, Robin},\n title = {Algebraic Geometry},\n series = {Graduate Texts in Mathematics},\n volume = {52},\n publisher = {Springer-Verlag},\n address = {New York},\n year = {1977}\n}\n\n@book{Hazewinkel78,\n author = {Hazewinkel, Michiel},\n title = {Formal Groups and Applications},\n series = {Pure and Applied Mathematics},\n volume = {78},\n publisher = {Academic Press},\n address = {New York},\n year = {1978}\n}\n\n@article{Katz81,\n author = {Katz, Nicholas M.},\n title = {Galois properties of torsion points on abelian varieties},\n journal = {Inventiones Mathematicae},\n volume = {62},\n number = {3},\n year = {1981},\n pages = {481--502},\n doi = {10.1007/BF01394256},\n note = {\\url{https://doi.org/10.1007/BF01394256}}\n}\n\n@article{KRZB16,\n author = {Katz, Eric and Rabinoff, Joseph and Zureick-Brown, David},\n title = {Uniform bounds for the number of rational points on curves of small {M}ordell--{W}eil rank},\n journal = {Duke Mathematical Journal},\n volume = {165},\n number = {16},\n year = {2016},\n pages = {3189--3240},\n doi = {10.1215/00127094-3673558},\n eprint = {1504.00694},\n archivePrefix = {arXiv},\n note = {\\url{https://doi.org/10.1215/00127094-3673558}}\n}\n\n@article{Lemmermeyer13,\n author = {Lemmermeyer, Franz},\n title = {The ambiguous class number formula revisited},\n journal = {Journal of the Ramanujan Mathematical Society},\n volume = {28},\n number = {4},\n year = {2013},\n pages = {415--421},\n eprint = {1309.1071},\n archivePrefix = {arXiv}\n}\n\n@book{Matsumura86, author={Matsumura, Hideyuki}, title={Commutative Ring Theory}, series={Cambridge Studies in Advanced Mathematics}, volume={8}, publisher={Cambridge University Press}, address={Cambridge}, year={1986}, note={Translated from the Japanese by M. Reid}}\n\n@article{Mazur77,\n author = {Mazur, Barry},\n title = {Modular curves and the {E}isenstein ideal},\n journal = {Publications Math{\\'e}matiques de l'IH{\\'E}S},\n volume = {47},\n year = {1977},\n pages = {33--186},\n doi = {10.1007/BF02684339},\n note = {\\url{https://doi.org/10.1007/BF02684339}}\n}\n\n@article{Mihailescu04,\n author = {Mih{\\u a}ilescu, Preda},\n title = {Primary cyclotomic units and a proof of {Catalan}'s conjecture},\n journal = {Journal f{\\\"u}r die reine und angewandte Mathematik},\n volume = {572},\n pages = {167--195},\n year = {2004},\n doi = {10.1515/crll.2004.048},\n note = {\\url{https://doi.org/10.1515/crll.2004.048}}\n}\n\n@article{Miller14,\n author = {Miller, John C.},\n title = {Class numbers of totally real fields and applications to the {W}eber class number problem},\n journal = {Acta Arithmetica},\n volume = {164},\n number = {4},\n year = {2014},\n pages = {381--397},\n doi = {10.4064/aa164-4-4},\n eprint = {1405.1094},\n archivePrefix = {arXiv},\n note = {\\url{https://doi.org/10.4064/aa164-4-4}}\n}\n\n@incollection{MP12,\n author = {McCallum, William and Poonen, Bjorn},\n title = {The method of {C}habauty and {C}oleman},\n booktitle = {Explicit methods in number theory: rational points and Diophantine equations},\n series = {Panoramas et Synth{\\`e}ses},\n volume = {36},\n publisher = {Soci{\\'e}t{\\'e} Math{\\'e}matique de France},\n address = {Paris},\n year = {2012},\n pages = {99--117}\n}\n\n@book{Neukirch99, author={Neukirch, J{\\\"u}rgen}, title={Algebraic Number Theory}, series={Grundlehren der mathematischen Wissenschaften}, volume={322}, publisher={Springer-Verlag}, address={Berlin}, year={1999}}\n\n@article{OT70,\n author = {Tate, John and Oort, Frans},\n title = {Group schemes of prime order},\n journal = {Annales Scientifiques de l'{\\'E}cole Normale Sup{\\'e}rieure (4)},\n volume = {3},\n year = {1970},\n pages = {1--21}\n}\n\n@article{Poitou77,\n author = {Poitou, Georges},\n title = {Sur les petits discriminants},\n journal = {S{\\'e}minaire Delange--Pisot--Poitou, Th{\\'e}orie des nombres},\n volume = {18},\n number = {1},\n year = {1976/77},\n pages = {1--17},\n note = {Expos{\\'e} no.~6}\n}\n\n@book{Poonen17, author={Poonen, Bjorn}, title={Rational Points on Varieties}, series={Graduate Studies in Mathematics}, volume={186}, publisher={American Mathematical Society}, address={Providence, RI}, year={2017}}\n\n@article{PS97,\n author = {Poonen, Bjorn and Schaefer, Edward F.},\n title = {Explicit descent for {J}acobians of cyclic covers of the projective line},\n journal = {Journal f{\\\"u}r die reine und angewandte Mathematik},\n volume = {488},\n year = {1997},\n pages = {141--188}\n}\n\n@article{PS99,\n author = {Poonen, Bjorn and Stoll, Michael},\n title = {The {C}assels--{T}ate pairing on polarized abelian varieties},\n journal = {Annals of Mathematics (2)},\n volume = {150},\n number = {3},\n year = {1999},\n pages = {1109--1149},\n doi = {10.2307/121064},\n eprint = {math/9911267},\n archivePrefix = {arXiv},\n note = {\\url{https://doi.org/10.2307/121064}}\n}\n\n@article{Raynaud74,\n author = {Raynaud, Michel},\n title = {Sch{\\'e}mas en groupes de type $(p,\\dots,p)$},\n journal = {Bulletin de la Soci{\\'e}t{\\'e} Math{\\'e}matique de France},\n volume = {102},\n year = {1974},\n pages = {241--280}\n}\n\n@article{RG25,\n author = {Ratcliffe, Ashleigh and Grechuk, Bogdan},\n title = {Generalised {Fermat} equation: a survey of solved cases},\n journal = {Expositiones Mathematicae},\n volume = {43},\n number = {4},\n pages = {125688},\n year = {2025},\n doi = {10.1016/j.exmath.2025.125688},\n eprint = {2412.11933v2},\n archivePrefix = {arXiv},\n note = {\\url{https://doi.org/10.1016/j.exmath.2025.125688}}\n}\n\n@article{RR18,\n author = {Ritzenthaler, Christophe and Romagny, Matthieu},\n title = {On the {P}rym variety of genus 3 covers of genus 1 curves},\n journal = {{\\'E}pijournal de G{\\'e}om{\\'e}trie Alg{\\'e}brique},\n volume = {2},\n year = {2018},\n pages = {Article No.~2},\n doi = {10.46298/epiga.2018.volume2.3663},\n eprint = {1612.07033},\n archivePrefix = {arXiv},\n note = {\\url{https://doi.org/10.46298/epiga.2018.volume2.3663}}\n}\n\n@article{Schaefer98,\n author = {Schaefer, Edward F.},\n title = {Computing a {S}elmer group of a {J}acobian using functions on the curve},\n journal = {Mathematische Annalen},\n volume = {310},\n number = {3},\n year = {1998},\n pages = {447--471}\n}\n\n@book{Serre73, author={Serre, Jean-Pierre}, title={A Course in Arithmetic}, series={Graduate Texts in Mathematics}, volume={7}, publisher={Springer-Verlag}, address={New York}, year={1973}}\n\n@article{Serre87,\n author = {Serre, Jean-Pierre},\n title = {Sur les repr{\\'e}sentations modulaires de degr{\\'e} 2 de {$\\mathrm{Gal}(\\overline{\\mathbf{Q}}/\\mathbf{Q})$}},\n journal = {Duke Mathematical Journal},\n volume = {54},\n number = {1},\n year = {1987},\n pages = {179--230},\n doi = {10.1215/S0012-7094-87-05413-5},\n note = {\\url{https://doi.org/10.1215/S0012-7094-87-05413-5}}\n}\n\n@book{Serre88,\n author = {Serre, Jean-Pierre},\n title = {Algebraic Groups and Class Fields},\n series = {Graduate Texts in Mathematics},\n volume = {117},\n publisher = {Springer-Verlag},\n address = {New York},\n year = {1988}\n}\n\n@incollection{Sik12,\n author = {Siksek, Samir},\n title = {The modular approach to {D}iophantine equations},\n booktitle = {Explicit Methods in Number Theory: Rational Points and {D}iophantine Equations},\n series = {Panoramas et Synth{\\`e}ses},\n volume = {36},\n publisher = {Soci{\\'e}t{\\'e} Math{\\'e}matique de France},\n address = {Paris},\n year = {2012},\n pages = {151--179}\n}\n\n@book{Silverman09,\n author = {Silverman, Joseph H.},\n title = {The Arithmetic of Elliptic Curves},\n edition = {Second},\n series = {Graduate Texts in Mathematics},\n volume = {106},\n publisher = {Springer},\n address = {New York},\n year = {2009},\n doi = {10.1007/978-0-387-09494-6},\n note = {\\url{https://doi.org/10.1007/978-0-387-09494-6}}\n}\n\n@book{Silverman94,\n author = {Silverman, Joseph H.},\n title = {Advanced Topics in the Arithmetic of Elliptic Curves},\n series = {Graduate Texts in Mathematics},\n volume = {151},\n publisher = {Springer},\n address = {New York},\n year = {1994},\n doi = {10.1007/978-1-4612-0851-8},\n note = {\\url{https://doi.org/10.1007/978-1-4612-0851-8}}\n}\n\n@article{Simon02,\n author = {Simon, Denis},\n title = {Computing the rank of elliptic curves over number fields},\n journal = {LMS Journal of Computation and Mathematics},\n volume = {5},\n year = {2002},\n pages = {7--17},\n doi = {10.1112/S1461157000000668},\n note = {\\url{https://doi.org/10.1112/S1461157000000668}}\n}\n\n@article{Stoll01,\n author = {Stoll, Michael},\n title = {Implementing 2-descent for {J}acobians of hyperelliptic curves},\n journal = {Acta Arithmetica},\n volume = {98},\n number = {3},\n year = {2001},\n pages = {245--277},\n doi = {10.4064/aa98-3-4},\n note = {\\url{https://doi.org/10.4064/aa98-3-4}}\n}\n\n@article{Stoll02,\n author = {Stoll, Michael},\n title = {On the height constant for curves of genus two, {II}},\n journal = {Acta Arithmetica},\n volume = {104},\n number = {2},\n year = {2002},\n pages = {165--182},\n doi = {10.4064/aa104-2-6},\n note = {\\url{https://doi.org/10.4064/aa104-2-6}}\n}\n\n@article{Stoll99,\n author = {Stoll, Michael},\n title = {On the height constant for curves of genus two},\n journal = {Acta Arithmetica},\n volume = {90},\n number = {2},\n year = {1999},\n pages = {183--201},\n doi = {10.4064/aa-90-2-183-201},\n note = {\\url{https://doi.org/10.4064/aa-90-2-183-201}}\n}\n\n@article{Strassmann28,\n author = {Stra{\\ss}mann, Reinhold},\n title = {{\\\"U}ber den {W}ertevorrat von {P}otenzreihen im {G}ebiet der p-adischen {Z}ahlen},\n journal = {Journal f{\\\"u}r die reine und angewandte Mathematik},\n volume = {159},\n year = {1928},\n pages = {13--28},\n doi = {10.1515/crll.1928.159.13},\n note = {\\url{https://doi.org/10.1515/crll.1928.159.13}}\n}\n\n@incollection{Sturm87,\n author = {Sturm, Jacob},\n title = {On the congruence of modular forms},\n booktitle = {Number Theory (New York, 1984--1985)},\n series = {Lecture Notes in Mathematics},\n volume = {1240},\n publisher = {Springer},\n address = {Berlin},\n year = {1987},\n pages = {275--280}\n}\n\n@incollection{Tate75,\n author = {Tate, John},\n title = {Algorithm for determining the type of a singular fiber in an elliptic pencil},\n booktitle = {Modular Functions of One Variable {IV} (Antwerp, 1972)},\n series = {Lecture Notes in Mathematics},\n volume = {476},\n publisher = {Springer},\n address = {Berlin},\n year = {1975},\n pages = {33--52}\n}\n\n@article{TW95,\n author = {Taylor, Richard and Wiles, Andrew},\n title = {Ring-theoretic properties of certain {H}ecke algebras},\n journal = {Annals of Mathematics (2)},\n volume = {141},\n number = {3},\n year = {1995},\n pages = {553--572},\n doi = {10.2307/2118560},\n note = {\\url{https://doi.org/10.2307/2118560}}\n}\n\n@book{Weil48,\n author = {Weil, Andr{\\'e}},\n title = {Sur les courbes alg{\\'e}briques et les vari{\\'e}t{\\'e}s qui s'en d{\\'e}duisent},\n series = {Actualit{\\'e}s Sci. Ind., no. 1041 = Publ. Inst. Math. Univ. Strasbourg 7 (1945)},\n publisher = {Hermann et Cie.},\n address = {Paris},\n year = {1948}\n}\n\n@article{Weil52,\n author = {Weil, Andr{\\'e}},\n title = {Sur les ``formules explicites'' de la th{\\'e}orie des nombres premiers},\n journal = {Comm. S{\\'e}m. Math. Univ. Lund},\n year = {1952},\n pages = {252--265},\n note = {Volume d{\\'e}di{\\'e} {\\`a} Marcel Riesz; {\\OE}uvres scientifiques II, 48--61}\n}\n\n@misc{Wilcox24,\n author = {Wilcox, Ashleigh},\n title = {A systematic approach to {Diophantine} equations: two thousand solved examples},\n year = {2024},\n eprint = {2404.08719v2},\n archivePrefix = {arXiv},\n howpublished = {\\url{https://arxiv.org/abs/2404.08719v2}},\n note = {Version 2, 17 December 2024; Appendix A was added in this revision}\n}\n\n@article{Wiles95,\n author = {Wiles, Andrew},\n title = {Modular elliptic curves and {F}ermat's {L}ast {T}heorem},\n journal = {Annals of Mathematics (2)},\n volume = {141},\n number = {3},\n year = {1995},\n pages = {443--551},\n doi = {10.2307/2118559},\n note = {\\url{https://doi.org/10.2307/2118559}}\n}\n\n@article{ZhangBai14,\n author = {Zhang, Zhongfeng and Bai, Meng},\n title = {On {Diophantine} equation {$x^3+y^3=2z^{2n}$}},\n journal = {Journal of Southwest China Normal University (Natural Science Edition)},\n volume = {39},\n number = {6},\n pages = {14--16},\n year = {2014},\n doi = {10.13718/j.cnki.xsxb.2014.06.004},\n note = {In Chinese. \\url{https://doi.org/10.13718/j.cnki.xsxb.2014.06.004}}\n}\n\n@misc{grechuk2026certifying,\n title = {Certifying non-existence of integer points on curves},\n author = {Grechuk, Bogdan and Go, Eugene},\n year = {2026},\n howpublished = {arXiv:2610.18916},\n note = {\\url{https://arxiv.org/abs/2610.18916}}\n}\n\n@article{grechuk2026cubic,\n\tauthor={Grechuk, Bogdan},\n\ttitle={Cubic {Diophantine} equations: integer solutions beyond direct search},\n\tjournal={The American Mathematical Monthly}, year={2026}, note={To appear}\n}\n@article{grechuk2026shortest,\n\tauthor={Grechuk, Bogdan and Ratcliffe, Ashleigh},\n\ttitle={On the shortest open cubic equations},\n\tjournal={International Journal of Number Theory},\n\tvolume={22}, number={9}, pages={2117--2127}, year={2026},\n\tnote={\\url{https://doi.org/10.1142/S1793042126501058}}\n}\n@misc{grechuk2026polynomial,\n\tauthor={Grechuk, Bogdan and Agbanwa, Jamal},\n\ttitle={On the polynomial values represented by {binary} quadratic forms},\n\tyear={2026}, note={arXiv:2607.06627, \\url{https://arxiv.org/abs/2607.06627}}\n}\n\n% Earlier Hexagon papers.\n@misc{hexagon:2609.00132v1,\n title = {Primitive Integer Solutions of {$x^4+3y^3+2z^3=0$}},\n author = {Eisenberg, Avraham},\n howpublished = {Hexagon preprint 2609.00132v1},\n year = {2026},\n month = sep,\n note = {Version 1, 29 September 2026. \\url{https://hexagonmath.org/2609.00132v1}},\n url = {https://hexagonmath.org/2609.00132v1}\n}\n\n@misc{hexagon:2609.00130v1,\n title = {Primitive Integer Solutions of {$x^4+4y^3+z^3=0$}},\n author = {Eisenberg, Avraham},\n howpublished = {Hexagon preprint 2609.00130v1},\n year = {2026},\n month = sep,\n note = {Version 1, 29 September 2026. \\url{https://hexagonmath.org/2609.00130v1}},\n url = {https://hexagonmath.org/2609.00130v1}\n}\n\n"} ]}