Úloha 1.3: Ak $g\circ f$ je injekcia, tak $f$ je injekcia - Riešenie
Posted: Sun Sep 30, 2018 12:26 pm
Úloha 1.3 Dokážte: Ak $g \circ f$ je injekcia, tak $f$ je injekcia. Platí aj opačná implikácia? Musí $g$ byť injekcia?
Ak $g \circ f$ je injekcia, tak $f$ je injekcia.
Nech $f: X \to Y, g: Y \to Z$. Z definície injekcie ak $g(f(x_1)) = g(f(x_2))$ potom $x_1 = x_2$. Ak $f(x_1) = f(x_2)$, potom platí aj $g(f(x_1)) = g(f(x_2))$, pretože $g$ je zobrazenie a teda jednému vzoru priradí práve jeden obraz. A keďže vieme že $g(f(x_1)) = g(f(x_2)) \Rightarrow x_1 = x_2$ a $f(x_1) = f(x_2) \Rightarrow g(f(x_1)) = g(f(x_2))$, musí byť $f$ injekcia.
Kontrapríklad ($f$ je injekcia, $g$ nemusí byť injekcia, a $g \circ f$ je aj tak injekcia):
$$f: X \to \mathbb{N}, f(x) = x + 1, X = \{x \mid x \in \mathbb{N} \wedge x < 100\}$$
$$g: \mathbb{N} \to \mathbb{N}, g(x) = \begin{cases} x + 1& \quad \text{ ak x < 102, } \\ 103 \quad \text {inak.} \end{cases}$$
Teda $g$ nie je injekcia, $f$ je injekcia, a $g \circ f$ je injekcia, pretože $\forall x,y \in X, x \neq y \Rightarrow g(f(x)) \neq g(f(y))$.
Platí aj opačná implikácia?
Opačná implikácia v obecnom prípade neplatí, čo môžme vidieť ak vyberieme za $f = id_\mathbb{N}$ a za $g = x^2$, pretože ak by to bola injekcia, muselo by platiť že ak $g(f(x_1)) = g(f(x_2))$ tak potom $x_1 = x_2$, čo v tomto prípade neplatí, pretože síce sa $g(f(x_1)) = g(f(x_2))$, napr. pre -1 a 1, ale -1 $\neq$ 1.
Musí $g$ byť injekcia?
Ak by ale $g$ bola injekcia, opačná implikácia by platila, pretože zloženie dvoch injekcií je injekcia, čo môžeme ľahko dokázať- ak $g: Y \to Z, f: X \to Y$ sú injekcie a $x,y \in X$ majú tú vlastnosť, že $(g \circ f)(x) = (g \circ f)(y)$. Poslednú rovnosť vieme prepísať na $g(f(x)) = g(f(y))$. Pretože $g$ je injekcia, musí platiť že $f(x) = f(y)$, a pretože je f tiež injekcia, musí platiť že $x = y$.
Ak $g \circ f$ je injekcia, tak $f$ je injekcia.
Nech $f: X \to Y, g: Y \to Z$. Z definície injekcie ak $g(f(x_1)) = g(f(x_2))$ potom $x_1 = x_2$. Ak $f(x_1) = f(x_2)$, potom platí aj $g(f(x_1)) = g(f(x_2))$, pretože $g$ je zobrazenie a teda jednému vzoru priradí práve jeden obraz. A keďže vieme že $g(f(x_1)) = g(f(x_2)) \Rightarrow x_1 = x_2$ a $f(x_1) = f(x_2) \Rightarrow g(f(x_1)) = g(f(x_2))$, musí byť $f$ injekcia.
Kontrapríklad ($f$ je injekcia, $g$ nemusí byť injekcia, a $g \circ f$ je aj tak injekcia):
$$f: X \to \mathbb{N}, f(x) = x + 1, X = \{x \mid x \in \mathbb{N} \wedge x < 100\}$$
$$g: \mathbb{N} \to \mathbb{N}, g(x) = \begin{cases} x + 1& \quad \text{ ak x < 102, } \\ 103 \quad \text {inak.} \end{cases}$$
Teda $g$ nie je injekcia, $f$ je injekcia, a $g \circ f$ je injekcia, pretože $\forall x,y \in X, x \neq y \Rightarrow g(f(x)) \neq g(f(y))$.
Platí aj opačná implikácia?
Opačná implikácia v obecnom prípade neplatí, čo môžme vidieť ak vyberieme za $f = id_\mathbb{N}$ a za $g = x^2$, pretože ak by to bola injekcia, muselo by platiť že ak $g(f(x_1)) = g(f(x_2))$ tak potom $x_1 = x_2$, čo v tomto prípade neplatí, pretože síce sa $g(f(x_1)) = g(f(x_2))$, napr. pre -1 a 1, ale -1 $\neq$ 1.
Musí $g$ byť injekcia?
Ak by ale $g$ bola injekcia, opačná implikácia by platila, pretože zloženie dvoch injekcií je injekcia, čo môžeme ľahko dokázať- ak $g: Y \to Z, f: X \to Y$ sú injekcie a $x,y \in X$ majú tú vlastnosť, že $(g \circ f)(x) = (g \circ f)(y)$. Poslednú rovnosť vieme prepísať na $g(f(x)) = g(f(y))$. Pretože $g$ je injekcia, musí platiť že $f(x) = f(y)$, a pretože je f tiež injekcia, musí platiť že $x = y$.