Compfiles/Imo2012P6.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned compfiles documentation, Pinned compfiles corpus index
8 declarations, 0 contain sorry, 0 declared as axioms
International Mathematical Olympiad 2012, Problem 6
Find all positive integers n for which there exist non-negative integers a₁, a₂, ..., aₙ such that 1/2^a₁ + 1/2^a₂ + ··· + 1/2^aₙ = 1/3^a₁ + 2/3^a₂ + ··· + n/3^aₙ = 1
Imports (2)
Imported by 1 file
- determine
Imo2012P6.solution_setline 28 sourceno axioms what this means
Statement uses:
Set,NatProof uses:
Set.ofPred,Or,Eq,HMod.hMod,OfNat.ofNat3 instances, coercions and auxiliary constants left out.
- def
Imo2012P6.IsSolutionline 30 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Exists,And,LT.lt,OfNat.ofNat,Eq,Rat,Finset.sum,Finset.Icc,HDiv.hDiv,HPow.hPow12 instances, coercions and auxiliary constants left out.
- lemma
Imo2012P6.sum_idline 36 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Eq,Finset.sum,Finset.Icc,OfNat.ofNat,HDiv.hDiv,HMul.hMul,HAdd.hAddProof uses:
Finset,Finset.erase,Finset.range,Finset.ext,of_eq_true,Iff,Membership.mem,Eq.trans,And,Not,LE.le,True,congr,congrArg,congrFun',Nat.succ,LT.lt,Ne,iff_self,Eq.mprand 7 more56 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
Imo2012P6.solution_5line 42 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Imo2012P6.IsSolution,
OfNat.ofNat,NatProof uses:
Exists.intro,And,LT.lt,Eq,Rat,Finset.sum,Finset.Icc,HDiv.hDiv,HPow.hPow,ite,Membership.mem,Finset,Finset.Ico,And.intro,of_decide_eq_true,id,Bool,Decidable.decide,Bool.true,Eq.refland 57 more69 instances, coercions and auxiliary constants left out.
Tactic trace: 9 steps
Open to load the checked before-and-after goal states.
- lemma
Imo2012P6.solution_9line 48 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Imo2012P6.IsSolution,
OfNat.ofNat,NatProof uses:
Exists.intro,And,LT.lt,Eq,Rat,Finset.sum,Finset.Icc,HDiv.hDiv,HPow.hPow,ite,Membership.mem,Finset,Finset.Ico,of_decide_eq_true,Lean.Sym.decide_isTrue_congr,NatCast.natCast,Rat.mk',Int.ofNat,Nat.divExact,HMul.hMuland 219 more105 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Imo2012P6.ind_4k1_to_4k2If n=4k+1 is a solution then n=4k+2 is also a solution line 53 sourceSource comment
If n=4k+1 is a solution then n=4k+2 is also a solution.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat, Imo2012P6.IsSolution,HAdd.hAdd,HMul.hMul,OfNat.ofNatProof uses:
And,LT.lt,Eq,Rat,Finset.sum,Finset.Icc,HDiv.hDiv,HPow.hPow,Finset,ite,Membership.mem,Exists.intro,And.intro,Eq.mpr,id,congrArg,Finset.sum_Icc_succ_top,Finset.erase,Finset.sum_congr,rfl37 instances, coercions and auxiliary constants left out.
Tactic trace: 23 steps
Open to load the checked before-and-after goal states.
lemma ind_4k1_to_4k2 : ∀ k, IsSolution (4 * k + 1) → IsSolution (4 * k + 2) := by …
Mentions: Imo2012P6.IsSolution
- lemma
Imo2012P6.ind_4k1_to_4k13If n=4k+1 is a solution then n=4k+13 is also a solution line 73 sourceSource comment
If n=4k+1 is a solution then n=4k+13 is also a solution.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat, Imo2012P6.IsSolution,HAdd.hAdd,HMul.hMul,OfNat.ofNatProof uses:
And,LT.lt,Eq,Rat,Finset.sum,Finset.Icc,HDiv.hDiv,HPow.hPow,ite,LE.le,Finset,Membership.mem,Exists.intro,And.intro,Eq.mpr,id,congrArg,Finset.sum_Icc_succ_top,Finset.erase,Finset.sum_congrand 1 more50 instances, coercions and auxiliary constants left out.
Tactic trace: 25 steps
Open to load the checked before-and-after goal states.
lemma ind_4k1_to_4k13 : ∀ k, IsSolution (4 * k + 1) → IsSolution (4 * k + 13) := by …
Mentions: Imo2012P6.IsSolution
- problem
Imo2012P6.imo2012_p6line 106 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Eq,Set,Nat,Set.ofPred, Imo2012P6.IsSolution, Imo2012P6.solution_setProof uses:
Set.ext,Iff.intro,Membership.mem,And,LT.lt,OfNat.ofNat,Rat,Finset.sum,Finset.Icc,HDiv.hDiv,HPow.hPow,Finset,Finset.sup,HMul.hMul,HSub.hSub,Trans.trans,Mathlib.Tactic.Ring.of_eq,HAdd.hAdd,Nat.rawCast,Mathlib.Tactic.Ring.Common.pow_congrand 137 more159 instances, coercions and auxiliary constants left out.
Tactic trace: 78 steps
Open to load the checked before-and-after goal states.