Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | #!/bin/sh |
| 2 | # clone-at <url> <dir> <commit>: that one commit of a repository, without its history, checked out and checked against |
| 3 | # the pin. From Beijing a connection to github.com times out about every other time (12-02: two of three, each after |
| 4 | # 135 s), so a fetch that stalls is cut off, and each is tried up to ten times: through $GITHUB_MIRROR first where one |
| 5 | # is set (a proxy in front of github.com), then from github.com itself, in turn. Whoever serves it, git names a commit |
| 6 | # by the hash of its content, and the hash is the pin. `origin` stays the repository's own address, as Lake expects of |
| 7 | # a package. |
| 8 | set -eu |
| 9 | url=$1 dir=$2 commit=$3 |
| 10 | mirror=$(printf %s "$url" | sed "s#^https://github.com#${GITHUB_MIRROR:-https://github.com}#") |
| 11 | n=0 |
| 12 | until rm -rf "$dir" && git init -q "$dir" && git -C "$dir" remote add origin "$url" \ |
| 13 | && { if [ $((n % 2)) = 0 ]; then from=$mirror; else from=$url; fi; } \ |
| 14 | && timeout 300 git -C "$dir" -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 fetch -q --depth 1 "$from" "$commit"; do |
| 15 | n=$((n + 1)) |
| 16 | [ "$n" -lt 10 ] |
| 17 | sleep 3 |
| 18 | done |
| 19 | git -C "$dir" -c advice.detachedHead=false checkout -q FETCH_HEAD |
| 20 | test "$(git -C "$dir" rev-parse HEAD)" = "$commit" |