Goal and scope
(1) A={1,2,3}, B={4,5,6}, p(1)=5, p(2)=6, p(3)=4. First confirm that p is a bijection, then exchange its ordered pairs to get a candidate q, validate q as a total function B→A, and check q(p(x))=x and p(q(y))=y separately. (2) f:ℝ→ℝ, f(x)=−4x+6 (m=−4≠0): find the inverse g(y)=uy+v with u, v reduced rationals with positive denominators, and verify both identities for all reals. (3) Show that the exchanged table of h(1)=4, h(2)=4, h(3)=6 is not a function B→A, and that f^{-1} is not 1/f.
Follows the MKO assumptions: a finite table is first shown to be a bijection on the declared A→B (a1); a candidate is first validated as a total function and then both identities are checked (a2); the affine example is f:ℝ→ℝ with m≠0, coefficients as reduced rationals with positive denominators (a3). The affine part is proved for all reals by algebraic identities, not by sampling. General one-sided inverse theory, uniqueness of inverses and machine proofs are not treated; the canonical MKO and its English edition are not changed.
Main derivation
S01 · implies
Before
p(1)=5,\ p(2)=6,\ p(3)=4
After
p^{-1}(\{4\})=\{3\},\ p^{-1}(\{5\})=\{1\},\ p^{-1}(\{6\})=\{2\}\ \Rightarrow\ p\ \text{bijective}Conditions: none
Rule: mko_bijective_fiber · Uses: G1, mko_bijective_fiber
Leaf basis: mko_bijective_fiber + set_builder + numeric_evaluation
MKO assumption a1 requires first establishing that p is a bijection on the declared A→B. Scanning the three elements of A: target 4 is reached only from 3, 5 only from 1, and 6 only from 2. Every target of B has a fiber with exactly one element, so p is bijective.
S02 · definition
Before
p=\{(1,5),(2,6),(3,4)\}After
q=p^{\mathsf T}=\{(5,1),(6,2),(4,3)\}Conditions: none
Rule: swap_table · Uses: G1
Leaf basis: swap_table + cartesian_product_def
Write p as a set of ordered pairs and exchange the two coordinates of each pair to get the candidate q. At this point q is only a subset (a relation) of B×A; whether it is a function B→A has to be checked separately (a2).
S03 · implies
Before
q=\{(4,3),(5,1),(6,2)\}After
q:B\to A\ \text{total};\ q(4)=3,\ q(5)=1,\ q(6)=2Conditions: none
Rule: function_def · Uses: S01, S02
Leaf basis: function_def + swap_table + set_builder
By swap_table, the number of times b occurs as a first coordinate in q equals the number of times b occurs as a value of p, which is the size of the fiber p^{-1}({b}), equal to 1 by S01. So 4, 5, 6 each occur exactly once: every b has a value (total) and only one (single-valued), and the values 3, 1, 2 lie in A. q is a total function B→A.
S04 · implies
Before
x\in A=\{1,2,3\}After
q(p(x))=x\ \ \forall x\in A
Conditions: none
Rule: case_analysis · Uses: G1, S03
Leaf basis: case_analysis + composition_def + numeric_evaluation
A has exactly three elements, so checking each one is a proof by exhaustive cases, not a sample: q(p(1))=q(5)=1, q(p(2))=q(6)=2, q(p(3))=q(4)=3. So q∘p=id_A.
S05 · implies
Before
y\in B=\{4,5,6\}After
p(q(y))=y\ \ \forall y\in B
Conditions: none
Rule: case_analysis · Uses: G1, S03
Leaf basis: case_analysis + composition_def + numeric_evaluation
The second identity has to be checked separately, since the representative formula g(f(x))=x shows only one side: p(q(4))=p(3)=4, p(q(5))=p(1)=5, p(q(6))=p(2)=6. All three elements of B were checked, so p∘q=id_B.
S06 · implies
Before
q:B\to A\ \text{total},\ q\circ p=\mathrm{id}_A,\ p\circ q=\mathrm{id}_BAfter
q=p^{-1}Conditions: none
Rule: mko_inverse_def · Uses: S03, S04, S05, G4
Leaf basis: mko_inverse_def + and_intro_elim
All three requirements of G4 hold: q is a total function (S03), q∘p=id_A (S04) and p∘q=id_B (S05). Moreover q(b) is exactly the unique preimage of b found in S01, matching the MKO's definition. So q is the inverse of p.
S07 · equivalent
Before
y=-4x+6
After
x=\frac{y-6}{-4}Conditions: -4\neq 0
Rule: L_solve_affine · Uses: G2
Leaf basis: eq_congruence + mul_inverse_nonzero
Turn to the affine example. For any real y, by Lemma L_solve_affine (m=−4, b=6): y=−4x+6 ⇔ x=(y−6)/(−4). The lemma is proved in S07.1 and S07.2 and needs m=−4≠0.
S08 · implies
Before
\forall y\in\mathbb{R}:\ \bigl(f(x)=y\iff x=\tfrac{y-6}{-4}\bigr)After
f^{-1}(\{y\})=\{\tfrac{y-6}{-4}\}\ \Rightarrow\ f\ \text{bijective}Conditions: none
Rule: mko_bijective_fiber · Uses: S07, mko_bijective_fiber
Leaf basis: mko_bijective_fiber + set_builder + iff_intro
For every real y: the ⇐ direction of S07 shows that the real number (y−6)/(−4) lies in the fiber of y (existence), and the ⇒ direction shows that every element of the fiber equals it (uniqueness). So every fiber has exactly one element and f is bijective, meeting the precondition of a1.
S09 · definition
Before
y\in\mathbb{R}After
g(y)=\frac{y-6}{-4}Conditions: none
Rule: mko_inverse_def · Uses: S08
Leaf basis: mko_inverse_def + function_def
By the MKO, the inverse sends each y to its unique preimage; by S08 that preimage is (y−6)/(−4). The denominator −4≠0, so it is defined for every real y and g is a total function ℝ→ℝ.
S10 · equivalent
Before
\frac{y-6}{-4}After
-\frac{1}{4}y+\frac{3}{2}Conditions: -4\neq 0
Rule: frac_rules · Uses: S09
Leaf basis: frac_rules + neg_mul
Rewrite in the form g(y)=uy+v to get u=−1/4 and v=3/2; details are in S10.1 and S10.2. This agrees with the MKO formula: u=1/m=1/(−4)=−1/4 and v=−b/m=−6/(−4)=3/2. Both coefficients are reduced, with positive denominators 4 and 2.
S11 · implies
Before
x\in\mathbb{R}\ \text{arbitrary}After
g(f(x))=-\tfrac{1}{4}(-4x+6)+\tfrac{3}{2}=xConditions: none
Rule: forall_intro · Uses: G2, S10
Leaf basis: composition_def + distributive + neg_mul + add_inverse + forall_intro
Take any real x: g(f(x))=−(1/4)(−4x+6)+3/2=x−3/2+3/2=x (distributivity and sign rules). No extra condition was placed on x, so this holds for all reals; it is an algebraic identity, not a finite check.
S12 · implies
Before
y\in\mathbb{R}\ \text{arbitrary}After
f(g(y))=-4\bigl(-\tfrac{1}{4}y+\tfrac{3}{2}\bigr)+6=yConditions: none
Rule: forall_intro · Uses: G2, S10
Leaf basis: composition_def + distributive + neg_mul + add_inverse + forall_intro
The other side: for any real y, f(g(y))=−4(−(1/4)y+3/2)+6=y−6+6=y. Both identities hold for all reals.
S13 · implies
Before
g\ \text{total},\ g\circ f=\mathrm{id}_{\mathbb{R}},\ f\circ g=\mathrm{id}_{\mathbb{R}}After
f^{-1}(y)=-\tfrac{1}{4}y+\tfrac{3}{2}Conditions: none
Rule: mko_inverse_def · Uses: S09, S11, S12, G4
Leaf basis: mko_inverse_def + and_intro_elim + numeric_evaluation
g is a total function (S09) and both identities hold (S11, S12), so by G4 g is the inverse of f. Concrete instance: f(2)=−2, and g(−2)=1/2+3/2=2, returning to 2.
S14 · implies
Before
f^{-1}(2)=1,\ \frac{1}{f(2)}=-\frac{1}{2}After
f^{-1}\neq\frac{1}{f}Conditions: none
Rule: function_def · Uses: S13, G2
Leaf basis: function_def + numeric_evaluation + frac_rules
f^{-1}(2)=−(1/4)·2+3/2=1, but f(2)=−2, so 1/f(2)=−1/2. The two functions take different values at the same input 2, so by the definition of equality of functions f^{-1}≠1/f. Moreover f(3/2)=0, so 1/f is not even defined at x=3/2, while f^{-1} is defined at every real. The superscript −1 means inverse under composition, not reciprocal.
S15 · implies
Before
h^{\mathsf T}=\{(4,1),(4,2),(6,3)\}After
h^{\mathsf T}\ \text{not a function}\ B\to AConditions: none
Rule: function_def · Uses: G3
Leaf basis: function_def + swap_table + set_builder
Exchange the table of h: 4 is paired with both 1 and 2 (not single-valued) and 5 with nothing (not total), so both requirements of a function fail. This matches the fiber profile (2,0,1) of h: h is not bijective, and by a1 its exchanged table cannot serve as an inverse. In fact no r:B→A can satisfy h(r(y))=y for every y∈B, since y=5 would need h(r(5))=5, and 5 is not a value of h.
S16 · implies
Before
\text{S06, S13, S14, S15}After
q=p^{-1};\ f^{-1}(y)=-\tfrac{1}{4}y+\tfrac{3}{2};\ h^{\mathsf T}\ \text{rejected};\ f^{-1}\neq 1/fConditions: none
Rule: and_intro_elim · Uses: S06, S13, S14, S15
Leaf basis: and_intro_elim
Collect the three parts: exchanging the finite bijection table gives the inverse q of p; the affine inverse has coefficients u=−1/4 and v=3/2; the exchanged table of the non-bijective h is rejected, and the inverse is distinguished from the reciprocal.
Error controls and negative controls
The inverse is not the reciprocal
One misconception identified in the MKO is reading f^{-1} as 1/f. The superscript −1 means inverse under composition: f^{-1}(2)=1 but 1/f(2)=−1/2 (S14). Also 1/f is undefined at x=3/2 (f(3/2)=0), while f^{-1} is defined at every real.
Exchanging a non-bijective table does not give an inverse
The other misconception is to exchange a table whether or not it is bijective. h has fiber profile (2,0,1); after exchanging, 4 has two values and 5 has none, so it is not a function B→A (S15). The MKO requires establishing bijectivity first (a1) and only then exchanging.
Both identities must be checked
If only one side holds, the candidate is not an inverse. Example: p′:{1,2}→{4,5,6} with p′(1)=4, p′(2)=5; the candidate r:{4,5,6}→{1,2} with r(4)=1, r(5)=2, r(6)=1 is a total function and r(p′(x))=x for every x∈{1,2}, but p′(r(6))=p′(1)=4≠6. r is only a left inverse. This guide checks both sides for q and for g (S04, S05, S11, S12).
- g(y)=1/(−4y+6) is the inverse of f →
reject — This is 1/f, not the inverse: f(0)=6, and 1/(−4·6+6)=−1/18≠0, so g(f(0))≠0. - The exchanged table {(4,1),(4,2),(6,3)} of h is the inverse of h →
reject — It is not a function B→A: 4 has two values and 5 has none; h is not bijective. - r(4)=1, r(5)=2, r(6)=1 satisfies r(p′(x))=x, so r is the inverse of p′ →
reject — The other side fails: p′(r(6))=p′(1)=4≠6. - The inverse of f(x)=−4x+6 is g(y)=(y+6)/(−4) →
reject — Sign error: f(0)=6, and (6+6)/(−4)=−3≠0; the correct inverse is (y−6)/(−4).