Compfiles/Usa2026P1.lean
9 declarations, 0 contain sorry, 0 declared as axioms
USA Mathematical Olympiad 2026, Problem 1
Fix an integer n ≥ 2. For which real numbers x is ⌊nx⌋ - ∑_{k=1}^n ⌊kx⌋/k maximal, and what is the maximal value that this expression can take?
Imported by 1 file
- def
Usa2026P1.fline 31 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
HSub.hSub,Int.floor,HMul.hMul,Finset.sum,Finset.Icc,OfNat.ofNat,HDiv.hDiv18 instances, coercions and auxiliary constants left out.
- determine
Usa2026P1.solution_valueline 34 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
Finset.sum,Finset.Icc,OfNat.ofNat,HDiv.hDiv11 instances, coercions and auxiliary constants left out.
- lemma
Usa2026P1.f_periodicline 43 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,Eq, Usa2026P1.f,HAdd.hAdd,OfNat.ofNatProof uses:
id,Eq.mpr,HSub.hSub,Int.floor,HMul.hMul,Finset.sum,Finset.Icc,HDiv.hDiv,congrFun',congrArg,congr,Int,mul_add,Finset.sum_congr,Eq.refl,Finset,Membership.mem,mul_one,Int.floor_add_natCast,Eq.transand 62 more121 instances, coercions and auxiliary constants left out.
Tactic trace: 18 steps
Open to load the checked before-and-after goal states.
- def
Usa2026P1.Tline 69 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
HSub.hSub,Int.ceil,HMul.hMul,OfNat.ofNat,Finset.sum,Finset.Icc,HDiv.hDiv,Int22 instances, coercions and auxiliary constants left out.
- lemma
Usa2026P1.f_rewriteline 72 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,OfNat.ofNat,Real,Eq, Usa2026P1.f,HSub.hSub, Usa2026P1.solution_value, Usa2026P1.TProof uses:
id,Int.floor,HMul.hMul,Finset.sum,Finset.Icc,HDiv.hDiv,Eq.mpr,Int.ceil,Int,congrFun',congrArg,congr,mul_sub,Finset.sum_congr,Eq.refl,Finset,Membership.mem,mul_one,HAdd.hAdd,Neg.negand 97 more147 instances, coercions and auxiliary constants left out.
Tactic trace: 39 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2026P1.T_eq_zero_of_small_yline 121 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,LE.le,OfNat.ofNat,LT.lt,HDiv.hDiv,Eq, Usa2026P1.TProof uses:
id,Iff.mpr,Nat.cast_pos,Membership.mem,Finset,Finset.Icc,Int,Int.ceil,HMul.hMul,And.left,Iff.mp,And,Finset.mem_Icc,And.right,Nat.cast_le,mul_pos,Trans.trans,mul_le_mul_of_nonneg_left,le_of_lt,mul_one_divand 74 more123 instances, coercions and auxiliary constants left out.
Tactic trace: 31 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2026P1.core_sum_boundline 154 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,OfNat.ofNat,LT.lt,Real,Finset.sum,Finset.Icc,HDiv.hDiv,HSub.hSub,Int,Int.ceil,HMul.hMul,HAdd.hAddProof uses:
HPow.hPow,Int.floor, Usa1981P5.usa1981_p5,Eq,Iff.mpr,Nat.cast_pos,Ne,ne_of_gt,id,Trans.trans,rfl,mul_sub,HSub,Eq.rec,Eq.refl,mul_div_cancel₀,mul_one_div,Mathlib.Tactic.Ring.of_eq,Nat.rawCast,Mathlib.Tactic.Ring.Common.mul_congrand 197 more223 instances, coercions and auxiliary constants left out.
Tactic trace: 136 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2026P1.T_nonnegline 308 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Real,LE.le,OfNat.ofNat,LT.lt, Usa2026P1.TProof uses:
Iff.mpr,Nat.cast_pos,Int,HSub.hSub,Int.ceil,HMul.hMul,mul_pos,Int.ceil_pos,sub_nonneg,dite,Eq,Mathlib.Tactic.Linarith.eq_of_not_lt_of_not_gt,Not.intro,Mathlib.Tactic.Linarith.lt_irrefl,Eq.mp,HAdd.hAdd,Neg.neg,congrArg,Mathlib.Tactic.Ring.of_eq,Mathlib.Tactic.Ring.Common.add_congrand 101 more155 instances, coercions and auxiliary constants left out.
Tactic trace: 70 steps
Open to load the checked before-and-after goal states.
- problem
Usa2026P1.usa2026_p1line 383 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,OfNat.ofNat,And,Real, Usa2026P1.f, Usa2026P1.solution_value,Exists,EqProof uses:
And.intro,HSub.hSub,Int.fract,LT.lt,Iff.mpr,sub_pos,HAdd.hAdd,Int.fract_lt_one,sub_le_self,Int.fract_nonneg,Mathlib.Tactic.Ring.of_eq,HMul.hMul,HPow.hPow,Nat.rawCast,Mathlib.Meta.NormNum.instAddMonoidWithOne,inferInstance,Ring,Mathlib.Tactic.Ring.Common.sub_congr,Int.rawCast,Int.negOfNatand 95 more151 instances, coercions and auxiliary constants left out.
Tactic trace: 52 steps
Open to load the checked before-and-after goal states.