Compfiles/Imo2012P4.lean
7 declarations, 0 contain sorry, 0 declared as axioms
International Mathematical Olympiad 2012, Problem 4
Determine all functions f : ℤ → ℤ such that for all integers a,b,c with a + b + c = 0, the following equality holds: f(a)² + f(b)² + f(c)² = 2f(a)f(b) + 2f(b)f(c) + 2f(c)f(a).
Imports (2)
Imported by 1 file
- def
Imo2012P4.odd_constline 29 sourcestandard axioms: propext what this means
Statement uses:
Set,IntProof uses:
Exists,And,Odd,Eq,Even,OfNat.ofNat3 instances, coercions and auxiliary constants left out.
- def
Imo2012P4.mod4_cycleline 33 sourceno axioms what this means
Statement uses:
Set,IntProof uses:
Exists,Eq,Imo2012P4.mod4_cycle.match_1,HMod.hMod,OfNat.ofNat,Unit,HMul.hMul5 instances, coercions and auxiliary constants left out.
- def
Imo2012P4.square_setline 40 sourcestandard axioms: propext what this means
Statement uses:
Set,IntProof uses:
Exists,Eq,HMul.hMul,HPow.hPow,Nat,OfNat.ofNat7 instances, coercions and auxiliary constants left out.
- theorem
Imo2012P4.sub_sq''line 43 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Int,Iff,Eq,HAdd.hAdd,HPow.hPow,Nat,OfNat.ofNat,HMul.hMulProof uses:
Eq.mpr,HSub.hSub,id,congrArg,Eq.symm,propext,sub_eq_zero,sub_sq',sq_eq_zero_iff,Iff.rfl55 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- theorem
Imo2012P4.myInductionline 46 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Int,OfNat.ofNat,Eq,HAdd.hAddProof uses:
HMul.hMul,Int.induction_on,Eq.mpr,id,congrArg,Eq.trans,MulZeroClass.mul_zero,add_zero,Nat,Mathlib.Tactic.Ring.of_eq,Nat.rawCast,HPow.hPow,Mathlib.Tactic.Ring.Common.add_congr,Mathlib.Tactic.Ring.Common.atom_pf,rfl,Eq.symm,Eq.refl,Mathlib.Tactic.Ring.Common.mul_congr,Mathlib.Tactic.Ring.cast_pos,Mathlib.Meta.NormNum.isNat_ofNatand 41 more50 instances, coercions and auxiliary constants left out.
Tactic trace: 27 steps
Open to load the checked before-and-after goal states.
- determine
Imo2012P4.solution_setline 76 sourcestandard axioms: propext what this means
Statement uses:
Set,IntProof uses:
Union.union, Imo2012P4.odd_const, Imo2012P4.mod4_cycle, Imo2012P4.square_set1 instances, coercions and auxiliary constants left out.
- problem
Imo2012P4.imo2012_p4line 78 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Int,Iff,Membership.mem,Set, Imo2012P4.solution_set,Eq,HAdd.hAdd,OfNat.ofNat,HPow.hPow,Nat,HMul.hMulProof uses:
Iff.intro,Union.union, Imo2012P4.odd_const, Imo2012P4.mod4_cycle, Imo2012P4.square_set,Neg.neg,And,Odd,Even,Or,Int.even_or_odd,Eq.mpr,id,congrArg,Eq.symm,propext,even_neg,neg_neg,Even.add,of_eq_trueand 185 more214 instances, coercions and auxiliary constants left out.
Tactic trace: 250 steps (first 200 of 250)
Open to load the checked before-and-after goal states.