Download tasks/pb-basic-012/solution/solve.sh from HuggingFaceSwarms/IMO-ProofBench: direct link, hf CLI and curl.
- Browser
- Download file 813 Bytes
-
https://huggingface.co/datasets/HuggingFaceSwarms/IMO-ProofBench/resolve/main/tasks/pb-basic-012/solution/solve.sh
- Command line
-
hf download hf://datasets/HuggingFaceSwarms/IMO-ProofBench/tasks/pb-basic-012/solution/solve.sh
-
curl -L -o solve.sh https://huggingface.co/datasets/HuggingFaceSwarms/IMO-ProofBench/resolve/main/tasks/pb-basic-012/solution/solve.sh
813 Bytes
| set -eu | |
| PROOF=${PROOF:-/app/proof.md} | |
| mkdir -p "$(dirname -- "$PROOF")" | |
| cat > "$PROOF" <<'IMO_PROOF_133d3fe55786fb9d1fb9d4008deb6e4f886e8977d43639df018b6c1c63debb2a' | |
| If we move the second path up-left by one unit, the pair of paths corresponds to a pair of paths from (0,0) to (10,10) and from (-1,1) to (9,11) which are non-intersecting. The total number of path pairs is $\binom{20}{10}^2$. The number of intersecting pairs corresponds to the number of pair of paths from (0,0) to (9, 11) and paths from (-1, 1) to (10,10), because interchanging the two paths at the first intersection point gives a one-to-one correspondence, and thus equals $\binom{20}{9}^2$. Therefore there are $\binom{20}{10}^2 - \binom{20}{9}^2$ paths. | |
| IMO_PROOF_133d3fe55786fb9d1fb9d4008deb6e4f886e8977d43639df018b6c1c63debb2a | |