Provedattentionresidual-seriesexternal-review-4
Residual series: exact numerator and denominator aggregate-error algebra
For all , and , if , , , , and (given ), then
What the notation means · or point at any symbol
- Type
- Type: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Type) - Fintype
- Fintype: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
Fintype) - f(x)Function application
- Fintype applied to J. Lean writes f x; papers write f(x). (
Fintype J) - ⟹Implies
- If J, then ℝ. (Between types, A → B is the type of functions from A to B.) (
J → ℝ) - x : TVariables
- r, a, b, v range over J → ℝ: the statement must hold for every choice. (
(r a b v : J → ℝ)) - x ∈ TVariables
- B, M, p, o, eB, eM range over real numbers: the statement must hold for every choice. (
(B M p o eB eM : ℝ)) - +Addition
- B plus eB. (
B+eB) - ≠Not equal
- B + eB and 0 are different. (
B+eB ≠ 0) - ∑Summation
- Add up r(j) · b(j) for every j. (
∑ j,r j*b j) - =Equality
- ∑ j, r(j) · b(j) and B are the same. (
∑ j,r j*b j=B) - a/bDivision
- M + eM divided by B + eB. In Lean, dividing by 0 gives 0. (
(M+eM)/(B+eB)) - ∧And
- Both hold: (M + eM)/(B + eB) + (∑ j, r(j) · (−((b(j) − a(j))/(B + eB)…, and (p · o + eM)/(p + eB) − o = (eM − o · eB)/(p + eB). (
(M+eM)/(B+eB)+(∑ j,r j*(-((b j-a j)/(B+…) - RReal numbers
- The real numbers: every point on the number line. (
ℝ) - ·Multiplication
- r(j) times b(j). (
r j*b j) - −xNegation
- The negative of (b(j) − a(j))/(B + eB). (
-((b j-a j)/(B+eB))) - -Subtraction
- b(j) minus a(j). On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
b j-a j)
theorem residual-series-aggregate-error {J : Type} [Fintype J] (r a b v : J → ℝ) (B M p o eB eM : ℝ) (hB : B+eB ≠ 0) (hp : p+eB ≠ 0) (hb : ∑ j,r j*b j=B) (ha : ∑ j,r j*a j=p) (hM : ∑ j,r j*b j*v j=M) (ho : ∑ j,r j*a j*v j=p*o) :
(M+eM)/(B+eB)+(∑ j,r j*(-((b j-a j)/(B+eB))*(v j-(M+eM)/(B+eB))))/(1-∑ j,r j*((b j-a j)/(B+eB)))=(p*o+eM)/(p+eB) ∧ (p*o+eM)/(p+eB)-o=(eM-o*eB)/(p+eB)Under nonzero perturbed surrogate mass and corrected denominator, proves the reciprocal-series mean expression equals (p o+eM)/(p+eB) and its bias equals (eM-o eB)/(p+eB). Convergence and arithmetic-error sources remain separate obligations.
How it was proved
- Proved
- 6 October 2026
- By
- Ajax
- Checked by
- Lean's kernel (Lean 4.33.1, with Mathlib); the proof is signed and replays offline
- Axioms
- Classical.choice, Quot.sound, propext
- Proof
- 17 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.