Alphabeta Math
TheoremStatement: AI-adaptedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck passjudge pass (z-ai/glm-5.2)verified 2026-07-26 (claude-opus-5)
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

The Cauchy-Schwarz inequality for finite sums

Statement

Let nNn \in \mathbb{N} and let a0,,an1a_0, \dots, a_{n-1} and b0,,bn1b_0, \dots, b_{n-1} be reals, with finite sums as in Finite sums and finite products, by recursion. Then

(k<nakbk)2    (k<nak2)(k<nbk2),\Big(\sum_{k<n} a_k b_k\Big)^{2} \;\le\; \Big(\sum_{k<n} a_k^{2}\Big)\Big(\sum_{k<n} b_k^{2}\Big),

and, in root form (Square roots exist: a unique a0\sqrt{a} \ge 0 with (a)2=a(\sqrt{a})^2 = a; the positives are {x2:x0}\{x^2 : x \neq 0\}),

k<nakbk    k<nak2  k<nbk2.\Big|\sum_{k<n} a_k b_k\Big| \;\le\; \sqrt{\sum_{k<n} a_k^{2}} \; \sqrt{\sum_{k<n} b_k^{2}}.

Equality holds in the first display if and only if the two lists are proportional, in the symmetric sense that there is a pair (λ,μ)(0,0)(\lambda, \mu) \ne (0,0) of reals with λak=μbk\lambda a_k = \mu b_k for every k<nk < n.

No root is used in the proof of the squared form. That form is an identity plus a sign argument in the ordered field, and the root form is only a restatement of it through the monotonicity of squaring on the nonnegatives (Squaring is monotone on the nonnegatives); the root enters nowhere but the last step, where that restatement is made and Square roots exist: a unique a0\sqrt{a} \ge 0 with (a)2=a(\sqrt{a})^2 = a; the positives are {x2:x0}\{x^2 : x \neq 0\} is what supplies the square-root symbol. This matters here, because it makes the squared inequality independent of the existence theorem for roots.

Facts & Assumptions

Given: A natural nn and reals a0,,an1a_0, \dots, a_{n-1}, b0,,bn1b_0, \dots, b_{n-1}. Write A:=k<nak2A := \sum_{k<n} a_k^{2}, B:=k<nakbkB := \sum_{k<n} a_k b_k and C:=k<nbk2C := \sum_{k<n} b_k^{2}.

[L1]

Laws of finite sums (Laws of finite sums and finite products, Finite sums and finite products, by recursion): additivity, scaling, monotonicity, and the fact that a sum of nonnegative terms is nonnegative and vanishes only if every term vanishes.

[L2]

Squares (Squares of nonzero elements are positive, Integer powers ama^m): x20x^{2} \ge 0 for every xx, and x2=0x^{2} = 0 only for x=0x = 0; and a product with a zero factor vanishes, 0x=00 \cdot x = 0 (Multiplication by zero: 0a=00 \cdot a = 0).

[L3]

Square roots (Square roots exist: a unique a0\sqrt{a} \ge 0 with (a)2=a(\sqrt{a})^2 = a; the positives are {x2:x0}\{x^2 : x \neq 0\}): every c0c \ge 0 has a unique c0\sqrt{c} \ge 0 with (c)2=c(\sqrt{c})^{2} = c.

[L4]

Monotonicity of squaring (Squaring is monotone on the nonnegatives): for x,y0x, y \ge 0, xy    x2y2x \le y \iff x^{2} \le y^{2}; and x2=x2|x|^{2} = x^{2} with x0|x| \ge 0 (Basic properties of the absolute value, Absolute value in an ordered field).

[L5]

Order arithmetic in an ordered field: adding inequalities (Order is preserved by adding a constant and by adding inequalities) and scaling an inequality by a positive element (Sign rules for products and monotonicity of multiplication, claim 4) are both stated there for the STRICT order alone, so the nonstrict uses below are those statements together with the case of equality, settled by trichotomy (Ordered field); the inverse of a positive element is positive (Inverses of positives are positive, and reciprocation reverses order, claim 1); and a nonzero factor cancels, since λx=0\lambda x = 0 with λ0\lambda \ne 0 gives x=λ1(λx)=λ10=0x = \lambda^{-1}(\lambda x) = \lambda^{-1} \cdot 0 = 0, a product with a zero factor (Multiplication by zero: 0a=00 \cdot a = 0).

Proof

technique · direct
1.1

For every tRt \in \mathbb{R} each term (akt+bk)2(a_k t + b_k)^{2} is nonnegative, so the sum is nonnegative, and expanding with additivity and scaling gives 0k<n(akt+bk)2=At2+2Bt+C0 \le \sum_{k<n}(a_k t + b_k)^{2} = A t^{2} + 2 B t + C.

L1L2
1.2

In particular A0A \ge 0 and C0C \ge 0, being sums of squares.

L1L2
1.3

Proportionality forces equality: assume λak=μbk\lambda a_k = \mu b_k for all k<nk < n with (λ,μ)(0,0)(\lambda, \mu) \ne (0,0); if μ0\mu \ne 0 then bk=cakb_k = c a_k with c=λ/μc = \lambda/\mu, so B=cAB = cA and C=c2AC = c^{2}A by scaling, whence B2=c2A2=A(c2A)=ACB^{2} = c^{2}A^{2} = A\big(c^{2}A\big) = AC; and if μ=0\mu = 0 then λ0\lambda \ne 0 forces ak=0a_k = 0 for all kk, so A=B=0A = B = 0 and both sides vanish.

L1L5
2.1

Suppose first A=0A = 0: then every term of k<nak2\sum_{k<n} a_k^{2} vanishes, so ak=0a_k = 0 for all k<nk < n, hence B=k<n0bk=0B = \sum_{k<n} 0 \cdot b_k = 0 and both sides of the squared inequality are 00, so it holds with equality; and the pair (λ,μ)=(1,0)(\lambda, \mu) = (1, 0) satisfies λak=0=μbk\lambda a_k = 0 = \mu b_k.

step 1.2L1L2
2.2

Suppose instead A>0A > 0 and substitute t=B/At = -B/A into step 1.1: 0AB2A22B2A+C=CB2A0 \le A\frac{B^{2}}{A^{2}} - 2\frac{B^{2}}{A} + C = C - \frac{B^{2}}{A}, so B2AC\frac{B^{2}}{A} \le C, and multiplying by A>0A > 0 gives B2ACB^{2} \le AC.

step 1.1step 1.2L5
3.1

The squared inequality therefore holds in both cases, which exhaust the possibilities since A0A \ge 0.

step 2.1step 2.2step 1.2
3.2

Equality forces proportionality: in the case A=0A = 0 this was step 2.1; in the case A>0A > 0, if B2=ACB^{2} = AC then putting t0=B/At_0 = -B/A in step 1.1 gives k<n(akt0+bk)2=At02+2Bt0+C=CB2A=0\sum_{k<n}(a_k t_0 + b_k)^{2} = A t_0^{2} + 2Bt_0 + C = C - \frac{B^{2}}{A} = 0, so every term vanishes and bk=t0akb_k = -t_0 a_k for all kk, and the pair (λ,μ)=(t0,1)(0,0)(\lambda, \mu) = (-t_0, 1) \ne (0,0) works.

step 1.1step 2.1step 2.2L1L2L5
4.1

The root form: by step 3.1, B2=B2AC=(AC)2|B|^{2} = B^{2} \le AC = \big(\sqrt{A}\,\sqrt{C}\big)^{2}, and both B|B| and AC\sqrt{A}\sqrt{C} are nonnegative, so monotonicity of squaring on the nonnegatives gives BAC|B| \le \sqrt{A}\,\sqrt{C}; note also that AC\sqrt{A}\sqrt{C} is the nonnegative square root of ACAC, by uniqueness.

step 3.1step 1.2L3L4

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 52 results over 17 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.

Sources