Main derivation
S01 · definition
Before
T:\mathbb{R}^2\to\mathbb{R}^2After
T\ \text{linear}\iff\forall u,v,c:\ T(u+v)=T(u)+T(v)\ \land\ T(cv)=cT(v)Conditions: none
Rule: mko_linear_def · Uses: G1
Leaf basis: mko_linear_def + def_unfold
State the MKO's definition. Both conditions must hold for all vectors and all reals; this is a universal statement, so a proof must argue for arbitrary u, v, c rather than check a few points.
S02 · equivalent
Before
Mv,\ M=\begin{pmatrix}p&q\\r&s\end{pmatrix},\ v=(x,y)^{\mathsf T}After
Mv=(px+qy,\ rx+sy)^{\mathsf T}Conditions: none
Rule: matrix_product_def · Uses: G1, matrix_product_def
Leaf basis: matrix_product_def + def_unfold
By the definition of the matrix product (2×2 times 2×1), component i of Mv is the sum of products of row i of M with v, Σ_{k=1}^{2} M(i,k)v_k. So the first component is px+qy and the second is rx+sy. The result is a vector, not a matrix of entrywise products (MKO first paragraph).
S03 · implies
Before
M(u+v),\ u=(u_1,u_2)^{\mathsf T},\ v=(v_1,v_2)^{\mathsf T}After
M(u+v)=Mu+Mv\quad\text{for all } u,v\in\mathbb{R}^2Conditions: none
Rule: distributive · Uses: S02, vec_ops
Leaf basis: distributive + add_assoc + add_comm + vec_ops + forall_intro
Take arbitrary u and v. u+v=(u₁+v₁, u₂+v₂)ᵀ (vec_ops). By S02 the two components of M(u+v) are p(u₁+v₁)+q(u₂+v₂) and r(u₁+v₁)+s(u₂+v₂). S03.1 turns the first component into the sum of the first components of Mu and Mv, and S03.2 handles the second component and concludes. Since u and v are arbitrary, the identity holds for all vectors.
S04 · implies
Before
M(cv),\ cv=(cx,cy)^{\mathsf T}After
(p(cx)+q(cy),\ r(cx)+s(cy))^{\mathsf T}=c\,(px+qy,\ rx+sy)^{\mathsf T}=c\,MvConditions: none
Rule: distributive · Uses: S02, vec_ops
Leaf basis: mul_assoc + mul_comm + distributive + vec_ops + forall_intro
Take arbitrary c and v. cv=(cx,cy)ᵀ. The first component is p(cx)+q(cy)=(pc)x+(qc)y=(cp)x+(cq)y=c(px)+c(qy)=c(px+qy), using associativity, commutativity and associativity of multiplication and then distributivity; the second component is the same. By vec_ops, M(cv)=cMv. Since c and v are arbitrary, it holds for all of them.
S05 · implies
Before
M(u+v)=Mu+Mv,\ M(cv)=cMv\ (\forall u,v,c)
After
T(v)=Mv\ \text{is linear for every } M\in\mathbb{R}^{2\times 2}Conditions: none
Rule: mko_linear_def · Uses: S01, S03, S04
Leaf basis: mko_linear_def + forall_intro + and_intro_elim
S03 and S04 prove both conditions for arbitrary u, v, c, so by the definition in S01, T is linear. M is arbitrary as well, so the conclusion holds for every 2×2 real matrix, including the zero matrix and matrices with determinant zero: linearity does not require invertibility (MKO assumption a3).
S06 · theorem_application
Before
F\ \text{linear}After
F(0)=0
Conditions: none
Rule: L_lin_zero · Uses: L_lin_zero
Leaf basis: L_lin_zero
Every linear map sends the zero vector to the zero vector (Lemma L_lin_zero, proved in S06.1). Below it is applied to the affine map F.
S07 · implies
Before
b=0
After
F(v)=Mv+0=Mv=T(v)\ \Rightarrow\ F\ \text{linear}Conditions: b=0
Rule: eq_replace · Uses: S05, add_zero
Leaf basis: eq_replace + add_zero + function_def
If b is the zero vector, F(v)=Mv+0=Mv (additive identity, componentwise), so F agrees with T at every point and is the same map; by S05, F is linear.
S08 · implies
Before
F\ \text{linear}After
b=F(0)=0
Conditions: none
Rule: L_lin_zero · Uses: S02, S06
Leaf basis: L_lin_zero + mul_zero + add_zero + eq_refl_symm_trans
Suppose F is linear. By S06, F(0)=0. On the other hand, by S02, M·0=(p·0+q·0, r·0+s·0)ᵀ=(0,0)ᵀ, so F(0)=M·0+b=b. Together these give b=0.
S09 · implies
Before
b=0\Rightarrow F\ \text{linear},\ F\ \text{linear}\Rightarrow b=0After
F\ \text{linear}\iff b=0Conditions: none
Rule: iff_intro · Uses: S07, S08
Leaf basis: iff_intro
Both directions are proved, so iff_intro gives the biconditional. This is exactly the MKO's criterion for affine maps; it holds for every M, without changing any entry of M.
S10 · equivalent
Before
M_0u,\ M_0=\begin{pmatrix}2&-1\\3&4\end{pmatrix},\ u=(1,1)^{\mathsf T}After
M_0u=(2\cdot 1+(-1)\cdot 1,\ 3\cdot 1+4\cdot 1)^{\mathsf T}=(1,7)^{\mathsf T}Conditions: none
Rule: matrix_product_def · Uses: S02, G2
Leaf basis: matrix_product_def + numeric_evaluation
By S02 (p=2, q=−1, r=3, s=4, x=y=1): the first component is 2−1=1 and the second is 3+4=7. Each component is a sum of products of one row with u.
S11 · implies
Before
F(v)=M_0v+(1,-2)^{\mathsf T}After
F(0)=(1,-2)^{\mathsf T}\neq 0\ \Rightarrow\ F\ \text{not linear}Conditions: none
Rule: contrapositive · Uses: S09, G2
Leaf basis: contrapositive + vec_ops
b=(1,−2)ᵀ is not the zero vector (its first component is 1≠0), so by the contrapositive of S09, F is not linear. Equivalently, F(0)=b≠0 violates S06.
S12 · implies
Before
F(2u)\ \text{vs}\ 2F(u)After
F(2u)=(2,14)^{\mathsf T}+(1,-2)^{\mathsf T}=(3,12)^{\mathsf T}\neq(4,10)^{\mathsf T}=2F(u)Conditions: none
Rule: numeric_evaluation · Uses: S10, G2, S02
Leaf basis: numeric_evaluation + quantifier_negation + vec_ops
An explicit failure: F(u)=M₀u+b=(1,7)ᵀ+(1,−2)ᵀ=(2,5)ᵀ, so 2F(u)=(4,10)ᵀ. On the other hand 2u=(2,2)ᵀ, M₀(2u)=(4−2, 6+8)ᵀ=(2,14)ᵀ and F(2u)=(3,12)ᵀ. The first components differ, 3≠4, so homogeneity fails at c=2; since F(u+u)=F(2u), additivity fails at u, u as well. The constant b is added once in F(2u) but twice in 2F(u).
S13 · implies
Before
M_0(u+w)\ \text{vs}\ M_0u+M_0wAfter
M_0(3,-2)^{\mathsf T}=(8,1)^{\mathsf T}=(1,7)^{\mathsf T}+(7,-6)^{\mathsf T}Conditions: none
Rule: numeric_evaluation · Uses: S03, S10, G2
Leaf basis: numeric_evaluation + matrix_product_def
A numeric illustration of additivity of T: u+w=(3,−2)ᵀ, M₀(u+w)=(2·3+(−1)(−2), 3·3+4·(−2))ᵀ=(8,1)ᵀ; M₀w=(2·2+(−1)(−3), 3·2+4·(−3))ᵀ=(7,−6)ᵀ and M₀u+M₀w=(1+7, 7+(−6))ᵀ=(8,1)ᵀ. Both sides agree, consistent with S03. This is one instance only; the general result comes from the symbolic proof in S03 (MKO second paragraph).
S14 · implies
Before
g(x,y)=(x^2,y)
After
g((0,1)+(0,2))=g(0,1)+g(0,2),\ \text{but}\ g((1,0)+(1,0))=(4,0)\neq(2,0)Conditions: none
Rule: quantifier_negation · Uses: G3, S01
Leaf basis: quantifier_negation + numeric_evaluation
For g: g(0,3)=(0,3)=(0,1)+(0,2)=g(0,1)+g(0,2), so additivity 'seems to hold' at these test points; g(0,5)=(0,5)=5·g(0,1) also passes a homogeneity test. But g(2,0)=(4,0), while g(1,0)+g(1,0)=(1,0)+(1,0)=(2,0), and 4≠2. So g is not linear; passing finitely many test points cannot establish linearity of an arbitrary map (MKO assumption a1 and misconception). For matrix maps, linearity comes from the proofs in S03 and S04 for arbitrary inputs.
S15 · implies
Before
\text{tasks of the goal}After
v\mapsto Mv\ \text{linear};\ Mv+b\ \text{linear}\iff b=0;\ F\ \text{not linear};\ g\ \text{not linear}Conditions: none
Rule: and_intro_elim · Uses: S05, S09, S11, S12, S13, S14
Leaf basis: and_intro_elim
Combine: every 2×2 real matrix gives a linear map (S05); an affine map is linear exactly when b=0 (S09); the example F is not linear, failing as F(2u)=(3,12)ᵀ≠(4,10)ᵀ=2F(u) (S11, S12); additivity of T is illustrated numerically (S13); g shows that finitely many test points are not enough (S14).
Error controls and negative controls
A nonzero intercept breaks linearity
One misconception the MKO names is calling a straight-line graph or an affine formula linear. In one dimension f(x)=2x+1 has a straight-line graph, but f(0)=1≠0, so f(cx)=cf(x) fails. Likewise each component of F(v)=M₀v+(1,−2)ᵀ is a first-degree expression plus a constant, but F(0)=b≠0, so F is not linear (S11, S12).
Finitely many test points are not a proof
g(x,y)=(x²,y) passes the additivity test at (0,1), (0,2) and the homogeneity test at c=5, v=(0,1), yet fails at (1,0)+(1,0) (S14). Linearity is a universal condition; for an arbitrary map it can be established only by a proof for arbitrary inputs (as in S03, S04). Finitely many test points can refute it but never confirm it.
Each component of Mv is a sum of products, not an entrywise product
The first component of M₀u is 2·1+(−1)·1=1, the sum of products of the first row with u. Multiplying entry by entry would give a matrix such as [[2,−1],[3,4]], not a vector and not Mv (S02, S10).
- F(v)=M₀v+(1,−2)ᵀ is linear because each component is a first-degree expression in x and y →
reject — F(0)=(1,−2)ᵀ≠0, and F(2u)=(3,12)ᵀ≠(4,10)ᵀ=2F(u). - g(x,y)=(x²,y) is linear because g((0,1)+(0,2))=g(0,1)+g(0,2) →
reject — g(2,0)=(4,0)≠(2,0)=g(1,0)+g(1,0). - The map given by the zero matrix is not linear because it is not invertible →
reject — 0(u+v)=0=0u+0v and 0(cv)=0=c·0v, so both conditions hold; linearity does not require invertibility (MKO assumption a3). - M₀u is obtained by multiplying each entry of M₀ by 1, giving the matrix [[2,−1],[3,4]] →
reject — Mv is formed from sums of products of rows with the vector; the result is the vector (1,7)ᵀ.