Main derivation
S01 · definition
Before
f:\mathbb{R}\to\mathbb{R}After
f(x)=mx+b;\ m\neq0\Rightarrow\deg f=1;\ m=0\Rightarrow f\ \text{constant}Conditions: m,b\in\mathbb{R}
Rule: mko_affine · Uses: G1
Leaf basis: mko_affine + def_intro
By the MKO, every function of the form mx+b is affine; only those with m≠0 have degree one, and those with m=0 are constant. A linear map in linear algebra is a separate notion requiring additivity and homogeneity (linear_map_def), and the MKO notes that it additionally needs b=0. The three names must not be mixed up.
S02 · equivalent
Before
f(x_2)-f(x_1)
After
m(x_2-x_1)
Conditions: none
Rule: L_diff · Uses: S01
Leaf basis: distributive + add_inverse + add_comm
By Lemma L_diff, the difference of outputs of an affine function is the slope times the difference of inputs; the intercept b cancels in the subtraction. The proof is S02.1.
S03 · theorem_application
Before
f(3)-f(1)=m(3-1)
After
0-4=2m,\ \text{i.e.}\ -4=2mConditions: x_1=1\neq 3=x_2
Rule: forall_elim · Uses: G2, S02
Leaf basis: forall_elim + eq_replace + numeric_evaluation
Take x_1=1 and x_2=3 in L_diff and substitute f(1)=4 and f(3)=0: 0−4=m(3−1), that is −4=2m. The two inputs differ (1≠3), so 3−1=2≠0 and the next step may divide.
S04 · equivalent
Before
-4=2m
After
m=\frac{-4}{2}=-2Conditions: 2\neq 0
Rule: mul_inverse_nonzero · Uses: S03, mul_inverse_nonzero
Leaf basis: mul_inverse_nonzero + eq_congruence + two_nonzero + numeric_evaluation
Since 2≠0, multiplying both sides by 1/2 gives m=−4/2=−2. This is the two-point slope formula m=(y_2−y_1)/(x_2−x_1)=(0−4)/(3−1).
S05 · equivalent
Before
f(1)=4:\ -2\cdot 1+b=4
After
b=4+2=6
Conditions: none
Rule: eq_congruence · Uses: G2, S04
Leaf basis: eq_congruence + add_inverse + numeric_evaluation
Substitute m=−2 and f(1)=4 into f(x)=mx+b: −2·1+b=4. Adding 2 to both sides gives b=6.
S06 · implies
Before
m=-2,\ b=6
After
f(x)=-2x+6,\quad f(3)=-6+6=0
Conditions: none
Rule: eq_replace · Uses: S04, S05, G2
Leaf basis: eq_replace + numeric_evaluation
So f(x)=−2x+6. Check the second point: f(3)=−2·3+6=0, consistent with G2, and f(1)=−2+6=4 as well. Every move in S03 to S05 was an equivalence or followed directly from the data, so this is the only affine function through the two points.
S07 · implies
Before
f(x)=-2x+6
After
b=f(0)=6,\quad f(x+1)-f(x)=m=-2
Conditions: none
Rule: forall_elim · Uses: S06, S02
Leaf basis: forall_elim + numeric_evaluation
Following MKO para0: b=f(0)=−2·0+6=6; taking x_2=x_1+1 in L_diff gives f(x+1)−f(x)=m·1=−2, so each unit increase of the input lowers the output by 2.
S08 · implies
Before
m=-2
After
m\neq 0\Rightarrow f\ \text{has degree one}Conditions: m\neq 0
Rule: mko_affine · Uses: S01, S04
Leaf basis: mko_affine + numeric_evaluation
m=−2≠0, so by the MKO f has polynomial degree one and is a degree-one function. If m were 0 it would not be degree one, even though it is written as mx+b (see S13).
S09 · equivalent
Before
f(x)=0:\ -2x+6=0
After
x=\frac{-6}{-2}=3=-\frac{b}{m}Conditions: m=-2\neq 0
Rule: mul_inverse_nonzero · Uses: S06, mul_inverse_nonzero
Leaf basis: mul_inverse_nonzero + eq_congruence + numeric_evaluation
Subtract 6 from both sides of −2x+6=0 to get −2x=−6; since −2≠0, multiply both sides by −1/2 to get x=3. Every move is an equivalence, so the zero is unique and equals −b/m=−6/(−2)=3, in agreement with the point (3,0) of G2.
S10 · implies
Before
f(0)=6
After
f\ \text{is not}\ \mathbb{R}\text{-linear}Conditions: b=6\neq 0
Rule: contrapositive · Uses: S06, linear_map_def
Leaf basis: L_lin_zero + contrapositive + numeric_evaluation
By Lemma L_lin_zero, every ℝ-linear map sends 0 to 0 (proof in S10.1). Since f(0)=6≠0, the contrapositive shows that f is not ℝ-linear. Additivity also fails directly: f(1+1)=f(2)=2, but f(1)+f(1)=4+4=8. So an affine function with nonzero intercept is not a linear map in the sense of linear algebra.
S11 · equivalent
Before
\forall x\in\mathbb{R}:\ mx+b=nx+cAfter
m=n\ \land\ b=c
Conditions: none
Rule: L_affine_eq · Uses: S01
Leaf basis: forall_elim + eq_congruence + iff_intro
By Lemma L_affine_eq, two affine functions are equal on all of ℝ exactly when their slopes and intercepts both agree (MKO para2). The two directions are proved in S11.1 and S11.2.
S12 · implies
Before
f(2)=-4+6=2=k(2)
After
f\neq k\quad((-2,6)\neq(1,0))
Conditions: none
Rule: L_affine_eq · Uses: S06, S11, G3
Leaf basis: L_affine_eq + contrapositive + numeric_evaluation
f(2)=−2·2+6=2 and k(2)=2, so the outputs at input 2 agree; this is a fact about one input only (MKO assumption a2). f has (m,b)=(−2,6) and k has (m,b)=(1,0); the slopes differ, so by S11 f and k are not equal on ℝ; for example f(0)=6≠0=k(0).
S13 · case_split
Before
g(x)=0x+5,\ h(x)=0x+0
After
g\ \text{has no zero};\ \text{every real is a zero of}\ h;\ \text{neither has degree one}Conditions: m=0
Rule: case_analysis · Uses: G3, S01, linear_map_def
Leaf basis: case_analysis + mul_zero + linear_map_def
With m=0 the zeros split into two cases. g: for every x, g(x)=0·x+5=5≠0, so there is no zero. h: h(x)=0 for every x, so every real is a zero. Both are affine (constant) functions, but m=0, so neither has degree one. Moreover h satisfies h(u+v)=0=h(u)+h(v) and h(cu)=0=c·h(u), so it is ℝ-linear; g is not, since g(0)=5≠0.
S14 · implies
Before
f,\ k,\ g,\ h
After
f(x)=-2x+6:\ \deg 1,\ \text{zero}\ 3,\ \text{not linear};\ f\neq k;\ g,h\ \text{constant}Conditions: none
Rule: and_intro_elim · Uses: S06, S08, S09, S10, S12, S13
Leaf basis: and_intro_elim
Summary: f(x)=−2x+6 is an affine function of degree one with unique zero 3, but it is not ℝ-linear; f and k agree only at input 2 and are not equal; g and h are constant functions, g with no zero and h zero everywhere.
Substeps and lemmas
S02.1 · equivalent
Before
(mx_2+b)-(mx_1+b)
After
mx_2-mx_1=m(x_2-x_1)
Conditions: none
Rule: distributive · Uses: distributive, add_inverse
Leaf basis: distributive + add_inverse + add_comm + add_assoc
Expand the subtraction: (mx_2+b)−(mx_1+b)=mx_2+b−mx_1−b; b−b=0 leaves mx_2−mx_1, and distributivity takes out m to give m(x_2−x_1). This proves Lemma L_diff.
S10.1 · implies
Before
T\ \mathbb{R}\text{-linear}After
T(0)=T(0\cdot 0)=0\cdot T(0)=0
Conditions: none
Rule: linear_map_def · Uses: linear_map_def, mul_zero
Leaf basis: linear_map_def + mul_zero + mul_comm
0=0·0, so homogeneity with c=0 and u=0 gives T(0)=T(0·0)=0·T(0), which is 0 by u·0=0. This proves Lemma L_lin_zero.
S11.1 · implies
Before
\forall x:\ mx+b=nx+c
After
b=c\ (x=0),\quad m+b=n+c\ (x=1)\ \Rightarrow\ m=n
Conditions: none
Rule: forall_elim · Uses: forall_elim, eq_congruence
Leaf basis: forall_elim + eq_congruence + add_inverse
The equation holds for every x; x=0 gives b=c, and x=1 gives m+b=n+c, and subtracting b (=c) from both sides gives m=n. This is the ⇒ direction. Note that two different inputs are needed; an equation at one input is not enough.
S11.2 · implies
Before
m=n\ \land\ b=c
After
\forall x:\ mx+b=nx+c
Conditions: none
Rule: eq_replace · Uses: eq_replace
Leaf basis: eq_replace + forall_intro
If m=n and b=c, replacing m by n and b by c for an arbitrary x gives mx+b=nx+c; since x was arbitrary, it holds for every x by forall_intro. This is the ⇐ direction. S11.1 and S11.2 together prove Lemma L_affine_eq.
Error controls and negative controls
Not every mx+b is a degree-one function
The first error named in the MKO is to call every mx+b a degree-one function. Only m≠0 gives degree one (S08); g(x)=0·x+5, although written in the form mx+b, is a constant function with no zero (S13).
Affine is not linear in the linear-algebra sense
The second error named in the MKO is to treat an affine function with nonzero intercept as a linear map of linear algebra. A linear map must have T(0)=0 (S10.1), but f(0)=6; additivity fails too: f(2)=2≠8=f(1)+f(1) (S10). The elementary 'linear function' and the linear-algebra 'linear map' are different notions.
The two-point slope needs x_1≠x_2; equality at one input is not equality everywhere
S03 and S04 may divide by x_2−x_1 because 1≠3. If two points share the first coordinate, say (2,1) and (2,5), then (5−1)/(2−2) is undefined, and no function ℝ→ℝ takes both values 1 and 5 at 2. On the other hand, f(2)=k(2) says only that the outputs at input 2 agree; equality everywhere needs equal slopes and equal intercepts (S11, S12).
- g(x)=5 is a degree-one function because it can be written as 0·x+5 →
reject — m=0, so g is a constant function: affine, but not of degree one. - f(x)=−2x+6 is an ℝ-linear map →
reject — f(0)=6≠0; moreover f(1+1)=2≠8=f(1)+f(1). - The affine function through (2,1) and (2,5) has slope (5−1)/(2−2) →
reject — With x_1=x_2 the slope formula divides by zero; and no function ℝ→ℝ takes both 1 and 5 at 2. - f(2)=k(2)=2, so f=k →
reject — Equality at one input does not give equality everywhere: f(0)=6≠0=k(0), and the slopes −2≠1.