Download tasks/pb-basic-003/solution/solve.sh from HuggingFaceSwarms/IMO-ProofBench: direct link, hf CLI and curl.
- Browser
- Download file 800 Bytes
-
https://huggingface.co/datasets/HuggingFaceSwarms/IMO-ProofBench/resolve/main/tasks/pb-basic-003/solution/solve.sh
- Command line
-
hf download hf://datasets/HuggingFaceSwarms/IMO-ProofBench/tasks/pb-basic-003/solution/solve.sh
-
curl -L -o solve.sh https://huggingface.co/datasets/HuggingFaceSwarms/IMO-ProofBench/resolve/main/tasks/pb-basic-003/solution/solve.sh
800 Bytes
| set -eu | |
| PROOF=${PROOF:-/app/proof.md} | |
| mkdir -p "$(dirname -- "$PROOF")" | |
| cat > "$PROOF" <<'IMO_PROOF_1e4a8c99a55a3f90754e4d740d058bf6fd392ac6897e955daa646ad1c9001667' | |
| Let $P(a,b)$ denote the given assertion. | |
| $P(a,a) \implies f(a+f(a))=0$ | |
| $P(0,b) \implies f(f(0))=0$ | |
| $P(f(0),b) \implies f(0)f(f(0)+f(b))=(b-f(0))f(0)$ | |
| So $f(0)=0$ or $ f(f(0)+f(b))=(b-f(0))$ | |
| If $ f(f(0)+f(b))=(b-f(0))$, setting $b \rightarrow f(b)+b \implies f(b)=-b+f(0)$ and checking we see that $f(a)=-a+k$ truly satisfies the condition | |
| Suppose now $f(0)=0$ | |
| $P(a,0) \implies f(f(a))=-f(a)$ | |
| So $P(a,b)$ becomes $af(a+f(b))=(a-b)f(a)$ | |
| So $P(a,f(b)+b)$ gives us $f(a)=0$ or $f(a)=-a$ | |
| Finally $f(a)=0, f(a)=-a+k$ where $k$ is a constant | |
| IMO_PROOF_1e4a8c99a55a3f90754e4d740d058bf6fd392ac6897e955daa646ad1c9001667 | |