Source audit
Definitions, theorems, assumptions, proof route, and exact anchors.
Stable source-facing chapter environment inside the shared Samplinglib reader.
Definitions, theorems, assumptions, proof route, and exact anchors.
Search Mathlib and local geometry interfaces; adapt only real statement or convention differences.
Only genuinely missing mathematical edges become theorem-sized tasks.
Dependencies, consumers, cross-library bridges, and reusable shared interfaces.
Mathlib supplies the monomial derivative identity; Samplinglib packages finite supports, signed coefficient budgets, and the fourth-order scalar estimate.
mathlib commit db584cd6d46c92f209a44c0f1c829460d327499d · iteratedDeriv_pow and the finite-sum iterated-derivative interface · faithful paraphrase
A finite real power series is smooth, has the expected descending-factorial derivative formula at every order, and admits an absolute coefficient bound on the unit interval; the same elementary estimates control the scalar fourth-order composition expression.
Each statement and proof below has its own closed Lean disclosure. Samplinglib parents, Mathlib calls and external mathematical sources are distinguished in each proof.
AutoSamplingTheory.TechnicalLemmas.Analysis.FinitePowerSeries.finitePowerSeries · def · Teaching coverage
A finite set of natural exponents and arbitrary real coefficients define a polynomial by summing the supported monomials.
Lean records the support, coefficient family, and evaluation point explicitly.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def finitePowerSeries (support : Finset ℕ) (a : ℕ → ℝ) (u : ℝ) : ℝEvaluate a_j u^j for every supported exponent and add the results. No convergence hypothesis is needed because the support is finite.
Evaluate a_j u^j for every supported exponent and add the results. No convergence hypothesis is needed because the support is finite.
The definition is a Finset.sum.
The exact proof begins folded immediately after the mathematical argument; the statement is folded beside the claim above.
This is the complete construction, rather than a proof of another claim.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def finitePowerSeries (support : Finset ℕ) (a : ℕ → ℝ) (u : ℝ) : ℝ :=
∑ j ∈ support, a j * u ^ j| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| The textbook route states the standard finite-dimensional formula in ordinary mathematical notation. | The declaration exposes exactly the algebraic, differentiability, unit-norm, orthogonality, or bounded-input hypotheses used by its proof. | source-implicit | Lean records domain and regularity conditions that textbook prose normally leaves in the surrounding context. |
No canonical support or infinite-series statement is asserted.
Encoder–denoiser: accepted · exact
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
No direct Mathlib call recorded; see the Samplinglib parents.
Samplinglib prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.FinitePowerSeries.finitePowerSeriesDerivative · def · Teaching coverage
The order-r derivative expression weights u^(j-r) by the descending factorial j^(r) and the original coefficient.
The order is explicit and the result is real-valued.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def finitePowerSeriesDerivative
(order : ℕ) (support : Finset ℕ) (a : ℕ → ℝ) (u : ℝ) : ℝThe r-th derivative of u^j is j falling r times u^(j-r), including the zero case j<r.
The r-th derivative of u^j is j falling r times u^(j-r), including the zero case j<r.
Nat.descFactorial handles all orders uniformly.
The exact proof begins folded immediately after the mathematical argument; the statement is folded beside the claim above.
The later theorem identifies this expression with Mathlib's actual iterated derivative.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def finitePowerSeriesDerivative
(order : ℕ) (support : Finset ℕ) (a : ℕ → ℝ) (u : ℝ) : ℝ :=
∑ j ∈ support,
(j.descFactorial order : ℝ) * a j * u ^ (j - order)| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| The textbook route states the standard finite-dimensional formula in ordinary mathematical notation. | The declaration exposes exactly the algebraic, differentiability, unit-norm, orthogonality, or bounded-input hypotheses used by its proof. | source-implicit | Lean records domain and regularity conditions that textbook prose normally leaves in the surrounding context. |
This definition alone does not assert differentiability.
Encoder–denoiser: accepted · exact
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
No direct Mathlib call recorded; see the Samplinglib parents.
Samplinglib prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.FinitePowerSeries.finitePowerSeriesDerivativeMass · def · Teaching coverage
Replace each coefficient by its absolute value and retain the derivative's descending-factorial weight.
The mass depends on order, support, and coefficients, but not u.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def finitePowerSeriesDerivativeMass
(order : ℕ) (support : Finset ℕ) (a : ℕ → ℝ) : ℝSumming absolute coefficient contributions produces a point-independent majorant.
Summing absolute coefficient contributions produces a point-independent majorant.
The definition is a finite sum of nonnegative real terms.
The exact proof begins folded immediately after the mathematical argument; the statement is folded beside the claim above.
It is designed to pair with the hypothesis |u|≤1.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
def finitePowerSeriesDerivativeMass
(order : ℕ) (support : Finset ℕ) (a : ℕ → ℝ) : ℝ :=
∑ j ∈ support, (j.descFactorial order : ℝ) * |a j|| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| The textbook route states the standard finite-dimensional formula in ordinary mathematical notation. | The declaration exposes exactly the algebraic, differentiability, unit-norm, orthogonality, or bounded-input hypotheses used by its proof. | source-implicit | Lean records domain and regularity conditions that textbook prose normally leaves in the surrounding context. |
The budget need not be sharp.
Encoder–denoiser: accepted · exact
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
No direct Mathlib call recorded; see the Samplinglib parents.
Samplinglib prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.FinitePowerSeries.finitePowerSeries_contDiff · theorem · Teaching coverage
Every finite real power series is continuously differentiable to all finite orders.
The conclusion is Mathlib's `ContDiff ℝ ⊤`.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem finitePowerSeries_contDiff
(support : Finset ℕ) (a : ℕ → ℝ) :
ContDiff ℝ ⊤ (finitePowerSeries support a)Each monomial is smooth; constant multiples and finite sums preserve smoothness.
Each monomial is smooth; constant multiples and finite sums preserve smoothness.
After unfolding the definition, fun_prop applies Mathlib's closure rules.
The exact proof begins folded immediately after the mathematical argument; the statement is folded beside the claim above.
The proof uses only standard smoothness rules.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem finitePowerSeries_contDiff
(support : Finset ℕ) (a : ℕ → ℝ) :
ContDiff ℝ ⊤ (finitePowerSeries support a) := by
unfold finitePowerSeries
fun_prop| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| The textbook route states the standard finite-dimensional formula in ordinary mathematical notation. | The declaration exposes exactly the algebraic, differentiability, unit-norm, orthogonality, or bounded-input hypotheses used by its proof. | source-implicit | Lean records domain and regularity conditions that textbook prose normally leaves in the surrounding context. |
No infinite-series analyticity claim is made.
Encoder–denoiser: accepted · exact
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
No direct Mathlib call recorded; see the Samplinglib parents.
Samplinglib prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.FinitePowerSeries.iteratedDeriv_finitePowerSeries · theorem · Teaching coverage
For every order and point, Mathlib's iterated derivative of the finite series equals the closed polynomial derivative formula.
This identifies an actual Mathlib derivative, not a merely formal polynomial.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem iteratedDeriv_finitePowerSeries
(order : ℕ) (support : Finset ℕ) (a : ℕ → ℝ) (u : ℝ) :
iteratedDeriv order (finitePowerSeries support a) u =
finitePowerSeriesDerivative order support a uSmoothness lets the iterated derivative distribute over all supported monomials.
Each term contributes the descending factorial and lowered exponent.
Smoothness lets the iterated derivative distribute over all supported monomials.
iteratedDeriv_fun_sum supplies the finite-sum rule.
Each term contributes the descending factorial and lowered exponent.
iteratedDeriv_pow gives the exact monomial derivative; ring normalization matches the public definition.
The exact proof begins folded immediately after the mathematical argument; the statement is folded beside the claim above.
The proof reuses Mathlib's finite-sum and power derivative APIs.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem iteratedDeriv_finitePowerSeries
(order : ℕ) (support : Finset ℕ) (a : ℕ → ℝ) (u : ℝ) :
iteratedDeriv order (finitePowerSeries support a) u =
finitePowerSeriesDerivative order support a u := by
unfold finitePowerSeries finitePowerSeriesDerivative
rw [iteratedDeriv_fun_sum]
· apply Finset.sum_congr rfl
intro j hj
simp [iteratedDeriv_pow]
ring
· intro j hj
fun_prop| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| The textbook route states the standard finite-dimensional formula in ordinary mathematical notation. | The declaration exposes exactly the algebraic, differentiability, unit-norm, orthogonality, or bounded-input hypotheses used by its proof. | source-implicit | Lean records domain and regularity conditions that textbook prose normally leaves in the surrounding context. |
Only scalar real polynomials are covered.
Encoder–denoiser: accepted · exact
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
No direct Mathlib call recorded; see the Samplinglib parents.
Samplinglib prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.FinitePowerSeries.abs_iteratedDeriv_finitePowerSeries_le_mass · theorem · Teaching coverage
On |u|≤1, every iterated derivative is bounded by its weighted absolute coefficient mass.
Low degrees and coefficient signs remain inside the theorem.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem abs_iteratedDeriv_finitePowerSeries_le_mass
(order : ℕ) (support : Finset ℕ) (a : ℕ → ℝ) {u : ℝ}
(hu : |u| ≤ 1) :
|iteratedDeriv order (finitePowerSeries support a) u| ≤
finitePowerSeriesDerivativeMass order support aRewrite the actual derivative as the descending-factorial finite sum.
Discard cancellation and split absolute values across products.
Every remaining power is at most one.
Rewrite the actual derivative as the descending-factorial finite sum.
Use iteratedDeriv_finitePowerSeries.
Discard cancellation and split absolute values across products.
Finset.abs_sum_le_sum_abs proves the finite-sum bound.
Every remaining power is at most one.
pow_le_one₀ completes the comparison.
The exact proof begins folded immediately after the mathematical argument; the statement is folded beside the claim above.
The proof combines the exact derivative identity with elementary absolute-value estimates.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem abs_iteratedDeriv_finitePowerSeries_le_mass
(order : ℕ) (support : Finset ℕ) (a : ℕ → ℝ) {u : ℝ}
(hu : |u| ≤ 1) :
|iteratedDeriv order (finitePowerSeries support a) u| ≤
finitePowerSeriesDerivativeMass order support a := by
rw [iteratedDeriv_finitePowerSeries]
unfold finitePowerSeriesDerivative finitePowerSeriesDerivativeMass
calc
|∑ j ∈ support,
(j.descFactorial order : ℝ) * a j * u ^ (j - order)| ≤
∑ j ∈ support,
|(j.descFactorial order : ℝ) * a j * u ^ (j - order)| :=
Finset.abs_sum_le_sum_abs _ _
_ = ∑ j ∈ support,
(j.descFactorial order : ℝ) * |a j| * |u| ^ (j - order) := by
apply Finset.sum_congr rfl
intro j hj
rw [abs_mul, abs_mul, abs_pow,
abs_of_nonneg (show 0 ≤ (j.descFactorial order : ℝ) by positivity)]
_ ≤ ∑ j ∈ support, (j.descFactorial order : ℝ) * |a j| := by
apply Finset.sum_le_sum
intro j hj
exact mul_le_of_le_one_right
(mul_nonneg (by positivity) (abs_nonneg (a j)))
(pow_le_one₀ (abs_nonneg u) hu)| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| The textbook route states the standard finite-dimensional formula in ordinary mathematical notation. | The declaration exposes exactly the algebraic, differentiability, unit-norm, orthogonality, or bounded-input hypotheses used by its proof. | source-implicit | Lean records domain and regularity conditions that textbook prose normally leaves in the surrounding context. |
Outside [-1,1], a radius-dependent budget is needed.
Encoder–denoiser: accepted · exact
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
No direct Mathlib call recorded; see the Samplinglib parents.
Samplinglib prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.
AutoSamplingTheory.TechnicalLemmas.Analysis.FinitePowerSeries.fourthOrderCompositionExpression_abs_le · theorem · Teaching coverage
Bounds on the first four outer derivatives control the exact five-term scalar fourth-order chain-rule expression.
The numerical coefficients are explicit rather than hidden in a generic constant.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem fourthOrderCompositionExpression_abs_le
{k1 k2 k3 k4 u1 u2 u3 u4 A1 A2 A3 A4 : ℝ}
(hk1 : |k1| ≤ A1) (hk2 : |k2| ≤ A2)
(hk3 : |k3| ≤ A3) (hk4 : |k4| ≤ A4) :
|k4 * u1 ^ (4 : ℕ) +
6 * k3 * u1 ^ (2 : ℕ) * u2 +
3 * k2 * u2 ^ (2 : ℕ) +
4 * k2 * u1 * u3 + k1 * u4| ≤
A4 * |u1| ^ (4 : ℕ) +
6 * A3 * |u1| ^ (2 : ℕ) * |u2| +
3 * A2 * |u2| ^ (2 : ℕ) +
4 * A2 * |u1| * |u3| + A1 * |u4|The coefficients 1,6,3,4,1 are the exact one-dimensional fourth-order chain-rule coefficients.
Apply the triangle inequality and then substitute |k_i|≤A_i.
The coefficients 1,6,3,4,1 are the exact one-dimensional fourth-order chain-rule coefficients.
The proof names the five summands.
Apply the triangle inequality and then substitute |k_i|≤A_i.
abs_add_le, abs_mul, and monotone multiplication give the result.
The exact proof begins folded immediately after the mathematical argument; the statement is folded beside the claim above.
This is a scalar inequality; Mathlib's chain rule can identify the derivative values separately.
Braces mark parameters Lean can infer; square brackets request structures such as a measurable space or probability measure. Named hypotheses are mathematical premises, not facts established by this declaration. Section parameters are described in the mathematical hypotheses above; the module link retains their exact source context.
theorem fourthOrderCompositionExpression_abs_le
{k1 k2 k3 k4 u1 u2 u3 u4 A1 A2 A3 A4 : ℝ}
(hk1 : |k1| ≤ A1) (hk2 : |k2| ≤ A2)
(hk3 : |k3| ≤ A3) (hk4 : |k4| ≤ A4) :
|k4 * u1 ^ (4 : ℕ) +
6 * k3 * u1 ^ (2 : ℕ) * u2 +
3 * k2 * u2 ^ (2 : ℕ) +
4 * k2 * u1 * u3 + k1 * u4| ≤
A4 * |u1| ^ (4 : ℕ) +
6 * A3 * |u1| ^ (2 : ℕ) * |u2| +
3 * A2 * |u2| ^ (2 : ℕ) +
4 * A2 * |u1| * |u3| + A1 * |u4| := by
let t1 := k4 * u1 ^ (4 : ℕ)
let t2 := 6 * k3 * u1 ^ (2 : ℕ) * u2
let t3 := 3 * k2 * u2 ^ (2 : ℕ)
let t4 := 4 * k2 * u1 * u3
let t5 := k1 * u4
have htri : |t1 + t2 + t3 + t4 + t5| ≤
|t1| + |t2| + |t3| + |t4| + |t5| := by
calc
|t1 + t2 + t3 + t4 + t5| ≤ |t1 + t2 + t3 + t4| + |t5| :=
abs_add_le _ _
_ ≤ (|t1 + t2 + t3| + |t4|) + |t5| := by
gcongr
exact abs_add_le _ _
_ ≤ ((|t1 + t2| + |t3|) + |t4|) + |t5| := by
gcongr
exact abs_add_le _ _
_ ≤ (((|t1| + |t2|) + |t3|) + |t4|) + |t5| := by
gcongr
exact abs_add_le _ _
have ht1 : |t1| ≤ A4 * |u1| ^ (4 : ℕ) := by
dsimp [t1]
rw [abs_mul, abs_pow]
exact mul_le_mul_of_nonneg_right hk4 (by positivity)
have ht2 : |t2| ≤ 6 * A3 * |u1| ^ (2 : ℕ) * |u2| := by
dsimp [t2]
rw [abs_mul, abs_mul, abs_mul, abs_pow]
norm_num
gcongr
have ht3 : |t3| ≤ 3 * A2 * |u2| ^ (2 : ℕ) := by
dsimp [t3]
rw [abs_mul, abs_mul, abs_pow]
norm_num
gcongr
have ht4 : |t4| ≤ 4 * A2 * |u1| * |u3| := by
dsimp [t4]
rw [abs_mul, abs_mul, abs_mul]
norm_num
gcongr
have ht5 : |t5| ≤ A1 * |u4| := by
dsimp [t5]
rw [abs_mul]
exact mul_le_mul_of_nonneg_right hk1 (abs_nonneg _)
dsimp [t1, t2, t3, t4, t5] at htri
linarith
end AutoSamplingTheory.TechnicalLemmas.Analysis.FinitePowerSeries| Source | Actual Lean | Difference kind | Why it matters |
|---|---|---|---|
| The textbook route states the standard finite-dimensional formula in ordinary mathematical notation. | The declaration exposes exactly the algebraic, differentiability, unit-norm, orthogonality, or bounded-input hypotheses used by its proof. | source-implicit | Lean records domain and regularity conditions that textbook prose normally leaves in the surrounding context. |
It does not itself prove differentiability of a particular composition.
Encoder–denoiser: accepted · exact
A generalization is not a source correction. Proposed missing conditions require separate independent repair review. No proposed repair silently changes the original theorem.
No direct Mathlib call recorded; see the Samplinglib parents.
Samplinglib prose is not a quotation or a source-equivalence certificate. Definitions and aliases are explained as constructions, not counted as new mathematical proofs.