Compfiles/Usa1994P1.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
4 declarations, 0 contain sorry, 0 declared as axioms
USA Mathematical Olympiad 1994, Problem 1
a₁, a₂, a₃, ... are positive integers such that aₙ > aₙ₋₁ + 1. Put bₙ = a₁ + a₂ + ... + aₙ. Show that there is always a square in the range bₙ, bₙ+1, bₙ+2, ... , bₙ₊₁-1.
Imports (10)
Imported by 1 file
- lemma
Usa1994P1.gap_lemmaIf consecutive terms ofadiffer by more than one, then terms that arekindices apart differ by at least2 * kline 38 sourceSource documentation
If consecutive terms of
adiffer by more than one, then terms that arekindices apart differ by at least2 * k.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,HAdd.hAdd,OfNat.ofNat,LE.le,HMul.hMulProof uses:
Nat.recAux,of_eq_true,Eq.trans,True,congr,congrArg,MulZeroClass.mul_zero,add_zero,Trans.trans,Eq,Mathlib.Tactic.Ring.of_eq,Nat.rawCast,HPow.hPow,Mathlib.Tactic.Ring.Common.add_congr,Mathlib.Tactic.Ring.Common.atom_pf,rfl,Eq.mpr,id,Eq.symm,Eq.refland 17 more40 instances, coercions and auxiliary constants left out.
Tactic trace: 7 steps
Open to load the checked before-and-after goal states.
lemma gap_lemma {a : ℕ → ℕ} (h : ∀ i, a i + 1 < a (i + 1)) (i k : ℕ) : a i + 2 * k ≤ a (i + k) := by …Mentions: h
- lemma
Usa1994P1.sum_boundThe sum of the firstn + 1terms is at most(n + 1) * (a n + 1) - (n + 1)^2; we state it in an addition-only form line 51 sourceSource documentation
The sum of the first
n + 1terms is at most(n + 1) * (a n + 1) - (n + 1)^2; we state it in an addition-only form.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,HAdd.hAdd,OfNat.ofNat,LE.le,Finset.sum,Finset.range,HMul.hMulProof uses:
Nat.recAux,of_eq_true,Eq.trans,True,congr,congrArg,Singleton.singleton,Finset,congrFun',zero_add,Finset.sum_singleton,mul_one,one_mul,mul_le_mul_right, Usa1994P1.gap_lemma,Eq.mpr,id,Eq,Finset.sum_range_succ,le_of_not_gtand 64 more93 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
lemma sum_bound {a : ℕ → ℕ} (h : ∀ i, a i + 1 < a (i + 1)) (n : ℕ) : (∑ i ∈ Finset.range (n + 1), a i) + (n + 1) * (n + 1) ≤ (n + 1) * (a n + 1) := by …Mentions: h
- lemma
Usa1994P1.keyThe key estimate:4 * bₙ ≤ (aₙ + 1)²line 63 sourceSource documentation
The key estimate:
4 * bₙ ≤ (aₙ + 1)².standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,HAdd.hAdd,OfNat.ofNat,LE.le,HMul.hMul,Finset.sum,Finset.range,HPow.hPowProof uses: Usa1994P1.sum_bound,
Eq.mpr,Int,id,Eq,Eq.trans,congr,congrArg,Nat.cast_mul,Nat.cast_sum,Nat.cast_pow,congrFun',Nat.cast_add,Nat.cast_one,le_of_not_gt,Mathlib.Tactic.Linarith.lt_irrefl,Eq.mp,Neg.neg,HSub.hSub,Mathlib.Tactic.Ring.of_eqand 68 more97 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
lemma key {a : ℕ → ℕ} (h : ∀ i, a i + 1 < a (i + 1)) (n : ℕ) : 4 * (∑ i ∈ Finset.range (n + 1), a i) ≤ (a n + 1) ^ 2 := by …Mentions: h
- problem
Usa1994P1.usa1994_p1line 71 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,HAdd.hAdd,LE.le,Exists,And,Finset.sum,Finset.range,HPow.hPowProof uses:
Eq,Exists.intro,HSub.hSub,Nat.sqrt,rfl,Nat.sqrt_le',Or,eq_or_lt_of_le,And.intro,le_of_eq,Eq.symm,Eq.mpr,id,congrArg,Finset.sum_range_succ,Nat.lt_add_of_pos_right,Nat.lt_succ_sqrt',le_of_lt,HMul.hMul,le_transand 96 more104 instances, coercions and auxiliary constants left out.
Tactic trace: 21 steps
Open to load the checked before-and-after goal states.