File size: 800 Bytes
77a0a50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh
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