把黎曼猜想的 Lean 证明,写成人能读懂的证明
把黎曼猜想的 Lean 证明写成数学家能读的证明文章,以及人人能看懂的证明思路
Resume cached Lean chunks with bounded TLS retries
Browse files+2 −2 routes/cogito-source-provenance/prepare_toolchain.py View file
| @@ -27,7 +27,7 @@ def main(): | ||
| 27 | 27 | target = chunks / f'{start:012d}-{end:012d}.bin' |
| 28 | 28 | if target.exists() and target.stat().st_size == end - start + 1: return target |
| 29 | 29 | partial = target.with_suffix('.partial'); headers = target.with_suffix('.headers') |
| 30 | - subprocess.run(['curl','-fsSL','--max-time','180','--retry','2', | |
| 30 | + subprocess.run(['curl','-fsSL','--max-time','180','--retry','4','--retry-all-errors','--retry-delay','2', | |
| 31 | 31 | '-r',f'{start}-{end}','-D',str(headers),'-o',str(partial), |
| 32 | 32 | URL + f'?shoal-range={start}-{end}'],check=True) |
| 33 | 33 | text = headers.read_text().lower().replace('\r','') |
| @@ -37,7 +37,7 @@ def main(): | ||
| 37 | 37 | partial.replace(target) |
| 38 | 38 | return target |
| 39 | 39 | print('progress: 0/100 downloading digest-pinned official Lean release',flush=True) |
| 40 | - with ThreadPoolExecutor(max_workers=16) as pool: | |
| 40 | + with ThreadPoolExecutor(max_workers=4) as pool: | |
| 41 | 41 | jobs = [pool.submit(download, pair) for pair in ranges] |
| 42 | 42 | for count, job in enumerate(as_completed(jobs), 1): |
| 43 | 43 | job.result() |