Compfiles/Usa2022P5.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
37 declarations, 0 contain sorry, 0 declared as axioms
USA Mathematical Olympiad 2022, Problem 5
A function f : ℝ → ℝ is essentially increasing if f(s) ≤ f(t) holds whenever s ≤ t are real numbers such that f(s) ≠ 0 and f(t) ≠ 0.
Find the smallest integer k such that for any 2022 real numbers x₁, x₂, ..., x₂₀₂₂, there exist k essentially increasing functions f₁, f₂, ..., fₖ such that
f₁(n) + f₂(n) + ⋯ + fₖ(n) = xₙ
for every n = 1, 2, ..., 2022.
Imports (11)
- Mathlib.Algebra.BigOperators.Ring.Finset
- Mathlib.Algebra.Order.Archimedean.Real.Basic
- Mathlib.Algebra.Order.BigOperators.Group.Finset
- Mathlib.Algebra.Order.Ring.Star
- Mathlib.AlgebraicTopology.SimplexCategory.Basic
- Mathlib.Data.Fintype.BigOperators
- Mathlib.Data.Nat.Bitwise
- Mathlib.Data.Nat.Log
- Mathlib.Data.Nat.SuccPred
- Mathlib.Tactic.IntervalCases
- ProblemExtraction
Imported by 1 file
- def
Usa2022P5.EssentiallyIncreasingA functionf : ℝ → ℝis essentially increasing iff s ≤ f twhenevers ≤ tare real numbers such thatf s ≠ 0andf t ≠ 0line 44 sourceSource documentation
A function
f : ℝ → ℝis essentially increasing iff s ≤ f twhenevers ≤ tare real numbers such thatf s ≠ 0andf t ≠ 0.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
RealProof uses:
LE.le,Ne,OfNat.ofNat3 instances, coercions and auxiliary constants left out.
def EssentiallyIncreasing (f : ℝ → ℝ) : Prop := …
Mentions: f
- def
Usa2022P5.GoodDocumented declaration: Good line 50 sourceSource documentation
The property of the natural number
koccurring in the problem: every2022-tuple(x₁, …, x₂₀₂₂)of real numbers is the pointwise sum ofkessentially increasing functions at the points1, …, 2022.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
NatProof uses:
Fin,OfNat.ofNat,Real,Exists,And, Usa2022P5.EssentiallyIncreasing,Eq,Finset.sum,Finset.univ,HAdd.hAdd10 instances, coercions and auxiliary constants left out.
def Good (k : ℕ) : Prop := …
- determine
Usa2022P5.solutionline 55 sourceno axioms what this means
Statement uses:
NatProof uses:
OfNat.ofNat1 instances, coercions and auxiliary constants left out.
- lemma
Usa2022P5.essentiallyIncreasing_zeroThe identically zero function is essentially increasing line 60 sourceSource documentation
The identically zero function is essentially increasing.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa2022P5.EssentiallyIncreasing,
OfNat.ofNat,RealProof uses:
LE.le,Ne,False.elim,rfl7 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
lemma essentiallyIncreasing_zero : EssentiallyIncreasing (0 : ℝ → ℝ) := by …
Mentions: Usa2022P5.EssentiallyIncreasing
- lemma
Usa2022P5.Good.monoIfkfunctions suffice, then so do anym ≥ kfunctions, by padding with zero functions line 66 sourceSource documentation
If
kfunctions suffice, then so do anym ≥ kfunctions, by padding with zero functions.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le, Usa2022P5.GoodProof uses:
Fin,OfNat.ofNat,Real,And, Usa2022P5.EssentiallyIncreasing,Eq,Finset.sum,Finset.univ,HAdd.hAdd,Exists,Exists.intro,dite,LT.lt,Fin.mk,Not,And.intro,id,Eq.mpr,congrArg,dite_eq_leftand 20 more24 instances, coercions and auxiliary constants left out.
Tactic trace: 30 steps
Open to load the checked before-and-after goal states.
lemma Good.mono {k m : ℕ} (hkm : k ≤ m) (hk : Good k) : Good m := by …Mentions: Usa2022P5.Good
- lemma
Usa2022P5.not_good_tenThe lower bound: ten functions do not suffice line 104 sourceSource documentation
The lower bound: ten functions do not suffice. Following the official solution, take
xₙ = -(n + 1). For eachnthe supportS(n) = {i | fᵢ(n) ≠ 0}is nonempty, and there are only2¹⁰ - 1 = 1023 < 2022nonempty subsets of a ten-element set, so two supports coincide, contradicting the essentially increasing condition becausexis strictly decreasing.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Not, Usa2022P5.Good,OfNat.ofNat,NatProof uses:
Fin,Real,And, Usa2022P5.EssentiallyIncreasing,Eq,Finset.sum,Finset.univ,HAdd.hAdd,Neg.neg,Exists,False,Finset,Finset.filter,Ne,rfl,Finset.Nonempty,Decidable.byContradiction,Finset.sum_eq_zero,Membership.mem,Iff.mprand 109 more117 instances, coercions and auxiliary constants left out.
Tactic trace: 62 steps
Open to load the checked before-and-after goal states.
lemma not_good_ten : ¬ Good 10 := by …
Mentions: Usa2022P5.Good
- def
Usa2022P5.lvlThe level ofn: forn ≥ 1this is the uniqueℓ ≥ 1with2^(ℓ-1) ≤ n < 2^ℓline 191 sourceSource documentation
The level of
n: forn ≥ 1this is the uniqueℓ ≥ 1with2^(ℓ-1) ≤ n < 2^ℓ.no axioms what this means
Statement uses:
NatProof uses:
HAdd.hAdd,Nat.log,OfNat.ofNat3 instances, coercions and auxiliary constants left out.
def lvl (n : ℕ) : ℕ := Nat.log 2 n + 1
- lemma
Usa2022P5.lvl_posline 193 sourceno axioms what this means
Statement uses:
Nat,LE.le,OfNat.ofNat, Usa2022P5.lvlProof uses:
Nat.le_add_left,Nat.log3 instances, coercions and auxiliary constants left out.
- lemma
Usa2022P5.pow_lvl_sub_one_leline 195 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,OfNat.ofNat,HPow.hPow,HSub.hSub, Usa2022P5.lvlProof uses:
Eq,Nat.log,Nat.add_sub_cancel,Eq.mpr,id,congrArg,Nat.pow_log_le_self17 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2022P5.lt_pow_lvlline 200 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,HPow.hPow,OfNat.ofNat, Usa2022P5.lvlProof uses:
Nat.lt_pow_succ_log_self,Mathlib.Meta.NormNum.isNat_lt_true,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Bool,Bool.false15 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2022P5.lvl_le_of_leline 203 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,OfNat.ofNat, Usa2022P5.lvlProof uses:
Decidable.byContradiction,Not,Nat.log,HAdd.hAdd,Eq.mp,LT.lt,HPow.hPow,le_trans,Nat.pow_le_pow_right,Mathlib.Meta.NormNum.isNat_lt_true,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Bool,Bool.false,Nat.pow_log_le_self,congrFun',congrArg,Mathlib.Meta.NormNum.IsNat.to_eq,Mathlib.Meta.NormNum.isNat_pow,Mathlib.Meta.NormNum.IsNatPowT.runand 5 more30 instances, coercions and auxiliary constants left out.
Tactic trace: 10 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2022P5.lvl_monoline 214 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le, Usa2022P5.lvlProof uses:
Nat.log,OfNat.ofNat,Nat.log_mono_right,id4 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2022P5.lvl_eq_of_memline 219 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,HPow.hPow,OfNat.ofNat,HSub.hSub,LT.lt,Eq, Usa2022P5.lvlProof uses:
Decidable.byContradiction,Not,False,Eq.mp,congrFun',congrArg,Eq.trans,zero_tsub,pow_zero,Eq.symm,le_antisymm,Nat.ge_of_not_lt,Mathlib.Tactic.IntervalCases.of_lt_right,Nat.rawCast,Mathlib.Meta.NormNum.IsNat.to_raw_eq,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Nat.zero_le,Ne,pow_posand 7 more60 instances, coercions and auxiliary constants left out.
Tactic trace: 15 steps
Open to load the checked before-and-after goal states.
- def
Usa2022P5.cvalThe complement ofninside its level line 235 sourceSource documentation
The complement of
ninside its level.standard axioms: propext what this means
Statement uses:
NatProof uses:
HSub.hSub,HPow.hPow,OfNat.ofNat, Usa2022P5.lvl7 instances, coercions and auxiliary constants left out.
def cval (n : ℕ) : ℕ := 2 ^ lvl n - 1 - n
Mentions: Usa2022P5.lvl
- lemma
Usa2022P5.cval_ltline 237 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,OfNat.ofNat,LT.lt, Usa2022P5.cval,HPow.hPow,HSub.hSub, Usa2022P5.lvlProof uses: Usa2022P5.pow_lvl_sub_one_le, Usa2022P5.lt_pow_lvl, Usa2022P5.lvl_pos,
Eq,HMul.hMul,Eq.mpr,HAdd.hAdd,id,congrArg,Eq.symm,Nat.sub_add_cancel,pow_succ,mul_comm,Eq.refl31 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
- def
Usa2022P5.xeExtension of the target tuple to all naturals (zero outside[1, 2022]) line 249 sourceSource documentation
Extension of the target tuple to all naturals (zero outside
[1, 2022]).standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,RealProof uses:
dite,And,LE.le,Fin.mk,HSub.hSub,Not10 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
def xe (x : Fin 2022 → ℝ) (m : ℕ) : ℝ := …
- lemma
Usa2022P5.xe_applyline 252 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Real,Eq, Usa2022P5.xe,HAdd.hAddProof uses:
And,LE.le,And.intro,Nat.le_add_left,Nat.succ_le_of_lt,Fin.isLt,id,Eq.mpr,dite,Fin.mk,HSub.hSub,Not,congrArg,dite_eq_left,Eq.rec,Eq.refl16 instances, coercions and auxiliary constants left out.
Tactic trace: 4 steps
Open to load the checked before-and-after goal states.
- def
Usa2022P5.BndA constant dominating all values and all consecutive differences ofxeline 261 sourceSource documentation
A constant dominating all values and all consecutive differences of
xe.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,RealProof uses:
HAdd.hAdd,Finset.sum,Finset.range,abs, Usa2022P5.xe,HSub.hSub12 instances, coercions and auxiliary constants left out.
noncomputable def Bnd (x : Fin 2022 → ℝ) : ℝ := …
- lemma
Usa2022P5.Bnd_posline 264 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Real,LT.lt, Usa2022P5.BndProof uses:
LE.le,Finset.sum,Finset.range,HAdd.hAdd,abs, Usa2022P5.xe,HSub.hSub,Finset.sum_nonneg,Membership.mem,Finset,add_nonneg,abs_nonneg,Eq,rfl,lt_of_not_ge,Mathlib.Tactic.Linarith.lt_irrefl,Eq.mp,Neg.neg,congrArg,Mathlib.Tactic.Ring.of_eqand 49 more71 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2022P5.abs_xe_leline 270 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Real,LE.le,abs, Usa2022P5.xe,HSub.hSub, Usa2022P5.BndProof uses:
HAdd.hAdd,Finset.sum,Finset.range,Finset.single_le_sum,Membership.mem,Finset,add_nonneg,abs_nonneg,Iff.mpr,LT.lt,Finset.mem_range,le_add_of_nonneg_right,Eq,rfl,le_of_not_gt,Mathlib.Tactic.Linarith.lt_irrefl,Eq.mp,Neg.neg,congrArg,Mathlib.Tactic.Ring.of_eqand 48 more77 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2022P5.abs_gap_leline 281 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Real,LE.le,abs,HSub.hSub, Usa2022P5.xe,HAdd.hAdd, Usa2022P5.BndProof uses:
Finset.sum,Finset.range,Finset.single_le_sum,Membership.mem,Finset,add_nonneg,abs_nonneg,Iff.mpr,LT.lt,Finset.mem_range,le_add_of_nonneg_left,Eq,rfl,le_of_not_gt,Mathlib.Tactic.Linarith.lt_irrefl,Eq.mp,Neg.neg,congrArg,Mathlib.Tactic.Ring.of_eq,Mathlib.Tactic.Ring.Common.add_congrand 47 more79 instances, coercions and auxiliary constants left out.
Tactic trace: 5 steps
Open to load the checked before-and-after goal states.
- def
Usa2022P5.gvalDocumented declaration: gval line 297 sourceSource documentation
The value of the
j-th constructed function at the integer pointn: zero outside[1, 2047]; on its own level (j = lvl n - 1) it is the correctorxe x n - cval n * Bnd x, and on higher levels it is the bit contribution2^j * Bnd xwhen bitjofcval nis set.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,RealProof uses:
ite,And,LE.le,HAdd.hAdd,Eq,Bool,Nat.testBit, Usa2022P5.cval,Bool.true,HMul.hMul,HPow.hPow, Usa2022P5.Bnd,HSub.hSub, Usa2022P5.lvl, Usa2022P5.xe24 instances, coercions and auxiliary constants left out.
noncomputable def gval (x : Fin 2022 → ℝ) (j n : ℕ) : ℝ := …
- lemma
Usa2022P5.gval_of_memline 303 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Real,And,LE.le,Eq, Usa2022P5.gval,HAdd.hAdd,ite,Bool,Nat.testBit, Usa2022P5.cval,Bool.true,HMul.hMul,HPow.hPow, Usa2022P5.Bnd,HSub.hSub, Usa2022P5.lvl, Usa2022P5.xeProof uses:
ite_eq_left45 instances, coercions and auxiliary constants left out.
- lemma
Usa2022P5.gval_of_not_memline 309 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Real,Not,And,LE.le,Eq, Usa2022P5.gvalProof uses:
ite_eq_right,HAdd.hAdd,ite,Bool,Nat.testBit, Usa2022P5.cval,Bool.true,HMul.hMul,HPow.hPow, Usa2022P5.Bnd,HSub.hSub, Usa2022P5.lvl, Usa2022P5.xe27 instances, coercions and auxiliary constants left out.
- lemma
Usa2022P5.testBit_cval_eq_false_of_geline 313 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,OfNat.ofNat,HSub.hSub, Usa2022P5.lvl,Eq,Bool,Nat.testBit, Usa2022P5.cval,Bool.falseProof uses:
Nat.testBit_eq_false_of_lt,lt_of_lt_of_le,HPow.hPow, Usa2022P5.cval_lt,Nat.pow_le_pow_right,Mathlib.Meta.NormNum.isNat_lt_true,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl21 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2022P5.if_testBit_falseline 318 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Bool,Eq,Bool.false,Real,ite,Bool.true,OfNat.ofNatProof uses:
ite_eq_right,Bool.false_ne_true,Eq.trans,Eq.symm6 instances, coercions and auxiliary constants left out.
- lemma
Usa2022P5.if_testBit_trueline 322 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Bool,Eq,Bool.true,Real,ite,OfNat.ofNatProof uses:
ite_eq_left6 instances, coercions and auxiliary constants left out.
- lemma
Usa2022P5.gval_step_correctorWithin one level, the corrector values strictly increase frommtom + 1, becauseBnd xdominates the consecutive differences ofxeline 329 sourceSource documentation
Within one level, the corrector values strictly increase from
mtom + 1, becauseBnd xdominates the consecutive differences ofxe.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Real,LE.le,Eq,HSub.hSub, Usa2022P5.lvl,HAdd.hAdd,HPow.hPow, Usa2022P5.gvalProof uses: Usa2022P5.lvl_eq_of_mem,
le_trans, Usa2022P5.pow_lvl_sub_one_le,Nat.le_add_right,lt_of_le_of_lt,Nat.sub_lt,pow_pos,Mathlib.Meta.NormNum.isNat_lt_true,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refl,Bool,Bool.false,Eq.mpr,ite,Nat.testBit, Usa2022P5.cval,Bool.true,HMul.hMul, Usa2022P5.Bnd, Usa2022P5.xe and 75 more111 instances, coercions and auxiliary constants left out.
Tactic trace: 36 steps
Open to load the checked before-and-after goal states.
lemma gval_step_corrector (x : Fin 2022 → ℝ) {j m : ℕ} (hm : 1 ≤ m) (hjm : j = lvl m - 1) (hm1 : m + 1 ≤ 2 ^ lvl m - 1) (hm2 : m + 1 ≤ 2047) : gval x j m ≤ gval x j (m + 1) := by …Mentions: Usa2022P5.lvl, Usa2022P5.gval
- lemma
Usa2022P5.gval_monoThe constructed values are monotone at integer points (on their support); this is the heart of the essentially increasing property line 364 sourceSource documentation
The constructed values are monotone at integer points (on their support); this is the heart of the essentially increasing property.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Real,LE.le,Ne, Usa2022P5.gvalProof uses:
le_trans, Usa2022P5.lvl, Usa2022P5.lvl_mono, Usa2022P5.lvl_pos,HSub.hSub,Decidable.byContradiction,Not,Eq,Bool,Nat.testBit, Usa2022P5.cval,Bool.false, Usa2022P5.testBit_cval_eq_false_of_ge,Eq.mp,LT.lt,HAdd.hAdd,ite, Usa2022P5.xe,HMul.hMul, Usa2022P5.Bnd and 98 more115 instances, coercions and auxiliary constants left out.
Tactic trace: 116 steps
Open to load the checked before-and-after goal states.
lemma gval_mono (x : Fin 2022 → ℝ) {j ns nt : ℕ} (hns : 1 ≤ ns) (hle : ns ≤ nt) (htt : nt ≤ 2047) (hs : gval x j ns ≠ 0) (ht : gval x j nt ≠ 0) : gval x j ns ≤ gval x j nt := by …Mentions: Usa2022P5.gval
- lemma
Usa2022P5.sum_range_testBitBinary expansion: a natural number is the sum of its bit values line 465 sourceSource documentation
Binary expansion: a natural number is the sum of its bit values.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,HPow.hPow,OfNat.ofNat,Eq,Finset.sum,Finset.range,ite,Bool,Nat.testBit,Bool.trueProof uses:
Nat.recAux,Eq.mpr,id,Eq.mp,Eq.trans,congrArg,pow_zero,of_eq_true,True,congr,EmptyCollection.emptyCollection,Finset,funext,ite_eq_right_of_eq_false,Bool.false,False,congrFun',Nat.zero_testBit,Bool.false_eq_true,Finset.sum_const_zeroand 54 more79 instances, coercions and auxiliary constants left out.
Tactic trace: 29 steps
Open to load the checked before-and-after goal states.
lemma sum_range_testBit (c : ℕ) {L : ℕ} (h : c < 2 ^ L) : ∑ i ∈ Finset.range L, (if c.testBit i = true then 2 ^ i else 0) = c := by …Mentions: h
- lemma
Usa2022P5.sum_range_testBit_realReal version of the binary expansion line 498 sourceSource documentation
Real version of the binary expansion.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,HPow.hPow,OfNat.ofNat,Eq,Real,Finset.sum,Finset.range,ite,Bool,Nat.testBit,Bool.trueProof uses: Usa2022P5.sum_range_testBit,
cast,Eq.symm,Eq.mp,congrFun',congrArg,Finset.sum_congr,Eq.refl,Finset,Membership.mem,Eq.trans,Nat.cast_ite,ite_congr,Nat.cast_pow,Not,Nat.cast_zero,Nat.cast_sum53 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
lemma sum_range_testBit_real (c : ℕ) {L : ℕ} (h : c < 2 ^ L) : ∑ i ∈ Finset.range L, (if c.testBit i = true then (2:ℝ) ^ i else 0) = (c : ℝ) := by …Mentions: h
- def
Usa2022P5.ffunThej-th constructed function on the real line; it is nonzero only at the integers1, …, 2047line 510 sourceSource documentation
The
j-th constructed function on the real line; it is nonzero only at the integers1, …, 2047.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,RealProof uses:
ite,Eq,Nat.floor, Usa2022P5.gval14 instances, coercions and auxiliary constants left out.
noncomputable def ffun (x : Fin 2022 → ℝ) (j : Fin 11) (t : ℝ) : ℝ := …
- lemma
Usa2022P5.ffun_apply_natline 513 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Real,Eq, Usa2022P5.ffun, Usa2022P5.gvalProof uses:
id,Eq.mpr,ite,Nat.floor,congrArg,Nat.floor_natCast,ite_eq_left,rfl26 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2022P5.ess_incr_ffunline 520 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Real, Usa2022P5.EssentiallyIncreasing, Usa2022P5.ffunProof uses:
LE.le,Ne,dite,Eq,Nat.floor, Usa2022P5.gval,ite_eq_left,Eq.mp,congrArg,And,Decidable.byContradiction,Not, Usa2022P5.gval_of_not_mem,Eq.mpr,id, Usa2022P5.gval_mono,And.left,Nat.floor_le_floor,And.right,absurdand 2 more19 instances, coercions and auxiliary constants left out.
Tactic trace: 25 steps
Open to load the checked before-and-after goal states.
- lemma
Usa2022P5.sum_ffunThe sum identity: at every integer pointn ∈ [1, 2047]the eleven constructed functions sum to the target valuexe x nline 548 sourceSource documentation
The sum identity: at every integer point
n ∈ [1, 2047]the eleven constructed functions sum to the target valuexe x n.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Real,LE.le,Eq,Finset.sum,Finset.univ, Usa2022P5.ffun, Usa2022P5.xeProof uses:
Eq.mpr, Usa2022P5.gval,id,congrArg,Finset.sum_congr,rfl,Finset,Membership.mem, Usa2022P5.ffun_apply_nat,HAdd.hAdd,ite,Bool,Nat.testBit, Usa2022P5.cval,Bool.true,HMul.hMul,HPow.hPow, Usa2022P5.Bnd,HSub.hSub, Usa2022P5.lvl and 70 more85 instances, coercions and auxiliary constants left out.
Tactic trace: 32 steps
Open to load the checked before-and-after goal states.
lemma sum_ffun (x : Fin 2022 → ℝ) {n : ℕ} (h1 : 1 ≤ n) (h2 : n ≤ 2047) : ∑ j : Fin 11, ffun x j (n : ℝ) = xe x n := by …Mentions: Usa2022P5.ffun, Usa2022P5.xe
- lemma
Usa2022P5.good_elevenEleven functions suffice: the explicit construction works for every choice of target values line 590 sourceSource documentation
Eleven functions suffice: the explicit construction works for every choice of target values.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses: Usa2022P5.Good,
OfNat.ofNat,NatProof uses:
Fin,Real,Exists.intro,And, Usa2022P5.EssentiallyIncreasing,Eq,Finset.sum,Finset.univ,HAdd.hAdd, Usa2022P5.ffun,And.intro, Usa2022P5.ess_incr_ffun,LE.le,Nat.le_add_left,le_trans,Nat.succ_le_of_lt,Fin.isLt,Mathlib.Meta.NormNum.isNat_le_true,Mathlib.Meta.NormNum.isNat_ofNat,Eq.refland 11 more29 instances, coercions and auxiliary constants left out.
Tactic trace: 8 steps
Open to load the checked before-and-after goal states.
lemma good_eleven : Good 11 := by …
Mentions: Usa2022P5.Good
- problem
Usa2022P5.usa2022_p5line 601 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
IsLeast,Nat,Set.ofPred, Usa2022P5.Good, Usa2022P5.solutionProof uses:
And.intro,Membership.mem,Set,lowerBounds, Usa2022P5.good_eleven,Decidable.byContradiction,LE.le,Not,OfNat.ofNat,LT.lt,Eq.mp, Usa2022P5.not_good_ten, Usa2022P5.Good.mono12 instances, coercions and auxiliary constants left out.
Tactic trace: 11 steps
Open to load the checked before-and-after goal states.