Main derivation
S01 · definition
Before
f:A\to B
After
\text{domain}\ A,\ \text{codomain}\ B,\ f[A]=\{f(x)\mid x\in A\}Conditions: none
Rule: mko_dcr_def · Uses: G3, mko_dcr_def
Leaf basis: mko_dcr_def + image_preimage_def
By the MKO: the domain A is the set of all permitted inputs, the codomain B is the declared output set, and the range f[A] collects only the outputs that actually occur. These are three different things: A and B are part of the declaration, while f[A] has to be computed.
S02 · implies
Before
f(x)=x^2+1,\ x\in A
After
f(-1)=2,\ f(0)=1,\ f(1)=2,\ f(2)=5
Conditions: none
Rule: numeric_evaluation · Uses: G1
Leaf basis: numeric_evaluation + power_laws
Compute each of the four inputs of A: (−1)²+1=2, 0²+1=1, 1²+1=2, 2²+1=5. Each input substituted into the rule gives exactly one number.
S03 · implies
Before
f(-1)=2,\ f(0)=1,\ f(1)=2,\ f(2)=5
After
f:A\to B\ \text{is a total function}Conditions: none
Rule: function_def · Uses: G1, S02, function_def
Leaf basis: function_def + set_builder
A total function needs: every input of A has an output, each input has exactly one output, and every output lies in B. S02 gives one value for each of the four inputs, and 2, 1, 2, 5 all belong to B={0,1,2,3,4,5}. So f:A→B is a total function.
S04 · equivalent
Before
f[A]=\{f(-1),f(0),f(1),f(2)\}After
f[A]=\{2,1,2,5\}=\{1,2,5\}Conditions: none
Rule: set_extensionality · Uses: S01, S02, set_extensionality
Leaf basis: set_extensionality + image_preimage_def + eq_replace
By definition the range is the set of all f(x) with x∈A. Substituting the values of S02 gives {2,1,2,5}. A set is determined by its elements, so the repeated 2 counts once and order is irrelevant: f[A]={1,2,5}, with 3 elements.
S05 · theorem_application
Before
f[A]=\{1,2,5\}After
f[A]\subseteq B
Conditions: none
Rule: L_range_sub · Uses: S03, S04, L_range_sub
Leaf basis: L_range_sub + subset_def
By Lemma L_range_sub the range of a total function is always a subset of its codomain; here one can also see directly that 1, 2 and 5 are in B.
S06 · implies
Before
f[A]=\{1,2,5\},\ B=\{0,1,2,3,4,5\}After
0\in B\setminus f[A],\ \text{so}\ f[A]\neq B;\ B\setminus f[A]=\{0,3,4\}Conditions: none
Rule: set_extensionality · Uses: G1, S04
Leaf basis: set_extensionality + set_operations_def
0 belongs to B but is none of 1, 2, 5, so 0∉f[A]. The two sets have different elements, so by extensionality f[A]≠B. Likewise 3 and 4 lie in B but not in the range: B∖f[A]={0,3,4}. This is the MKO's point that the range need not equal B.
S07 · implies
Before
\text{rule}\ x^2+1\ \text{declared as}\ A\to B'=\{0,1,2,3,4\}After
f(2)=5\notin B':\ \text{not a total function}\ A\to B'Conditions: none
Rule: function_def · Uses: S02, function_def
Leaf basis: function_def + numeric_evaluation
Non-example one: if the same rule is declared with codomain B′={0,1,2,3,4}, the input 2 has output 5∉B′, violating 'outputs lie in the codomain', so this declaration is not a total function A→B′. The codomain may not be enlarged or ignored after the fact to accommodate an output.
S08 · implies
Before
\text{table}\ \{(-1,2),(0,1),(1,2)\}\ \text{claimed as a function on}\ AAfter
2\in A\ \text{has no output: not total on}\ AConditions: none
Rule: function_def · Uses: G1, function_def
Leaf basis: function_def
Non-example two: a table listing only the inputs −1, 0 and 1 is claimed to be a function on A. But 2∈A has no output, violating 'every input of A has an output'. The set {1,2} read off this table is not f[A]; it misses 5. As the MKO says, the range of a claimed total function may not be computed from a table with undefined inputs.
S09 · implies
Before
f_C:A\to C=\{1,2,5\},\ f_C(x)=x^2+1After
f_C\neq f\ \text{as function data},\ f_C[A]=\{1,2,5\}=CConditions: none
Rule: function_def · Uses: S02, S04, function_def
Leaf basis: function_def + injective_surjective_def
Declare the same rule with codomain C={1,2,5}: every output 1, 2, 5 lies in C, so f_C:A→C is a total function. By function_def, equal functions need the same domain and codomain, and B≠C, so f_C and f have different defining data, although both have range {1,2,5}. For f_C the range equals the codomain (it is surjective); for f it does not.
S10 · implies
Before
x\in\mathbb{R}After
h(x)=x^2+1\geq 1,\ \text{so}\ h[\mathbb{R}]\subseteq[1,\infty)Conditions: none
Rule: L_shift · Uses: G2, square_nonneg, L_shift
Leaf basis: square_nonneg + L_shift + subset_def + forall_intro
h has a unique real value x²+1 at every real x, so h:ℝ→ℝ is a total function. Take any x∈ℝ: by square_nonneg, x²≥0, and by Lemma L_shift with u=x², x²+1≥1. So every output lies in [1,∞), that is h[ℝ]⊆[1,∞).
S11 · implies
Before
y\in[1,\infty)
After
y-1\geq 0,\ \ t=\sqrt{y-1}\in\mathbb{R},\ \ t^2=y-1Conditions: y-1\geq 0
Rule: sqrt_def · Uses: L_shift, sqrt_def, interval_def
Leaf basis: sqrt_def + L_shift + interval_def
Take any y∈[1,∞), that is y≥1. By L_shift with u=y−1, using (y−1)+1=y, we get y−1≥0. A nonnegative real has a principal square root, so t=√(y−1) is a real number with t²=y−1.
S12 · implies
Before
t^2=y-1
After
h(t)=(y-1)+1=y,\ \text{so}\ y\in h[\mathbb{R}]Conditions: none
Rule: image_preimage_def · Uses: G2, S11, image_preimage_def
Leaf basis: image_preimage_def + exists_intro + forall_intro + eq_replace
h(t)=t²+1=(y−1)+1=y. Since t is real, y is the output of some input, so y∈h[ℝ] by the definition of the range. As y was an arbitrary element of [1,∞), [1,∞)⊆h[ℝ]. For example y=10 gives t=√9=3 and h(3)=10.
S13 · implies
Before
h[\mathbb{R}]\subseteq[1,\infty),\ [1,\infty)\subseteq h[\mathbb{R}]After
h[\mathbb{R}]=[1,\infty)Conditions: none
Rule: set_extensionality · Uses: S10, S12, set_extensionality
Leaf basis: set_extensionality
Both inclusions are proved (S10, S12), so by extensionality h[ℝ]=[1,∞).
S14 · implies
Before
h[\mathbb{R}]=[1,\infty)After
0\in\mathbb{R}\setminus h[\mathbb{R}],\ \text{so}\ h[\mathbb{R}]\neq\mathbb{R}Conditions: none
Rule: set_extensionality · Uses: S13, interval_def
Leaf basis: set_extensionality + interval_def + order_basics
0 is real but 0<1, so 0∉[1,∞)=h[ℝ]; that is, x²+1=0 has no real solution. The codomain ℝ and the range [1,∞) have different elements, so they are not equal: the declared codomain ℝ is not the set of actual outputs.
S15 · implies
Before
S03\ \text{to}\ S08,\ S13,\ S14After
f[A]=\{1,2,5\}\subsetneq B;\ \ h[\mathbb{R}]=[1,\infty)\neq\mathbb{R}Conditions: none
Rule: and_intro_elim · Uses: S03, S04, S05, S06, S07, S08, S13, S14
Leaf basis: and_intro_elim
Goal (1) is completed by S03 to S06, goal (2) by S07 and S08, and goal (3) by S13 and S14.