203 Injectivity as Kernel-Diagonal: \(\ker (f)=\Delta _A \iff A=A\)

Thesis. Injectivity of a map \(f:A\to B\) is exactly the condition that its kernel pair coincides with the diagonal \(\Delta _A\). The diagonal \(\Delta _A=\{(a,a)\}\) is the set-theoretic form of the identity \(A=A\): a map is injective precisely when it identifies no more than the identity already does.

Step 1: Reflexivity from \(A=A\)

The identity law gives reflexivity of equality on both \(A\) and \(B\):

\begin{equation} a=a,\qquad b=b, \tag{11838}\end{equation}
and hence, applied to values of \(f\),
\begin{equation} f(a)=f(a),\qquad f(b)=f(b). \tag{11839}\end{equation}
Step 2: The injectivity condition

\(f\) is injective iff equal outputs force equal inputs:

\begin{equation} f(a)=f(b)\;\Longrightarrow \;a=b, \tag{11840}\end{equation}
\begin{equation} \boxed {\forall a,b\in A:\quad f(a)=f(b)\;\Rightarrow \;a=b.} \tag{11841}\end{equation}
Step 3: The kernel pair

Define the kernel pair (the relation “\(f\) identifies”) as

\begin{equation} \ker (f)=\{(a,b)\in A\times A:\ f(a)=f(b)\}. \tag{11842}\end{equation}
The diagonal is the identity relation
\begin{equation} \Delta _A=\{(a,a):a\in A\}, \tag{11843}\end{equation}
which is precisely the set-theoretic content of \(A=A\): the pairs an element makes with itself.
Step 4: Injective \(\iff \) kernel is the diagonal

Always \(\Delta _A\subseteq \ker (f)\), since \(a=b\) gives \(f(a)=f(b)\) (reflexivity, Step 1). Injectivity is the reverse inclusion \(\ker (f)\subseteq \Delta _A\): any pair with \(f(a)=f(b)\) must be a diagonal pair \(a=b\). Therefore

\begin{equation} \boxed {\ker (f)=\Delta _A\;\iff \;f\ \text {is injective}.} \tag{11844}\end{equation}
Interpretation

The diagonal \(\Delta _A\) is \(A=A\) written as a subset of \(A\times A\) — the pairs that the identity law already equates. A map’s kernel pair \(\ker (f)\) records which elements \(f\) merges. Injectivity is the statement that \(f\) merges nothing beyond what \(A=A\) already merges: \(\ker (f)=\Delta _A\). When \(f\) is non-injective, \(\ker (f)\supsetneq \Delta _A\) contains off-diagonal pairs \((a,b)\) with \(a\neq b\) but \(f(a)=f(b)\) — exactly the many-to-one collapses that lose information (Subsection 203.2). Thus reversibility, injectivity, and the equality \(\ker (f)=\Delta _A\) are one condition: a map preserves information exactly when its kernel is the identity \(A=A\).

203.1 Hash Functions as Computational Identity

A cryptographic hash function is the computational realisation of \(A=A\). The map \(H:x\mapsto h\) is deterministic (equal inputs give equal outputs — the identity law), verification is an identity check (\(H(x)\stackrel {?}{=}h\) returns True iff the two sides coincide), and collision resistance is the injectivity that keeps the input partition \(x_1\neq x_2\Rightarrow H(x_1)\neq H(x_2)\) well-defined.

Step 1: The hash map

A hash function is a deterministic map from inputs to fixed-length digests:

\begin{equation} H:x\longrightarrow h, \qquad x\ (\text {input}) \;\xrightarrow {\ H\ }\; h\ (\text {output}). \tag{11845}\end{equation}
Concretely:
\begin{equation} H(\texttt {"hello"}) = \texttt {"2cf24dba..."}, \qquad x=\texttt {"hello"}, \quad h=\texttt {"2cf24dba..."}. \tag{11846}\end{equation}
Determinism is the identity law: the same input always yields the same output,
\begin{equation} \boxed {H(x)=h,\qquad x_1=x_2\;\Longrightarrow \;H(x_1)=H(x_2).} \tag{11847}\end{equation}
Step 2: Verification as identity check

Verification tests whether the left side equals the right side — the computational form of \(A=A\):

\begin{equation} H(\texttt {"hello"})\;\stackrel {?}{=}\;\texttt {"2cf24dba..."}, \qquad \underbrace {\texttt {"2cf24dba..."}}_{\text {left }a} = \underbrace {\texttt {"2cf24dba..."}}_{\text {right }a} \;\Longrightarrow \; \boxed {\text {True}.} \tag{11848}\end{equation}
Step 3: Sensitivity — different input, different output

A distinct input (even by one bit) yields a distinct digest:

\begin{equation} H(\texttt {"Hello"})\;\neq \;H(\texttt {"hello"}), \tag{11849}\end{equation}
\begin{equation} \texttt {"185f8db3..."}\;\neq \;\texttt {"2cf24dba..."} \;\Longrightarrow \; \boxed {\text {False}.} \tag{11850}\end{equation}
The identity check returns False precisely because the two sides differ — \(\neg (A=B)\) when \(A\neq B\).
Step 4: Collision resistance as injectivity

The partition of the input space is kept well-defined by collision resistance:

\begin{equation} \boxed {x_1\neq x_2 \;\Longrightarrow \; H(x_1)=h_1,\ H(x_2)=h_2,\ h_1\neq h_2.} \tag{11851}\end{equation}
Distinct inputs map to distinct digests: the map \(H:x\to h\) separates the input set into disjoint fibres, one per digest, so that no two inputs collide onto the same output.
Result
\begin{equation} \boxed { \begin {aligned} &H:x\to h &&\text {(deterministic map, }A=A\text {)},\\[4pt] &H(x)\stackrel {?}{=}h\ \Rightarrow \ \text {True/False} &&\text {(identity check)},\\[4pt] &x_1\neq x_2\ \Rightarrow \ h_1\neq h_2 &&\text {(collision resistance = injectivity)}. \end {aligned} } \tag{11852}\end{equation}
A hash function is \(A=A\) made computational. The forward map \(H(x)=h\) is deterministic identity: equal inputs are equal outputs. Verification \(H(x)\stackrel {?}{=}h\) is the identity law evaluated — True when the two sides coincide, False when they differ, exactly the \(A=A\) / \(\neg (A=B)\) dichotomy. Collision resistance \(x_1\neq x_2\Rightarrow h_1\neq h_2\) is the injectivity that keeps the partition of the input space into digest-labelled fibres well-defined, the same \(O\sqcup U\) disjointness that makes the projector \(\Pi ^2=\Pi \) separate its two eigenspaces. The one-wayness of \(H\) — easy forward, hard backward — is the computational shadow of the partition asymmetry \(dO=-dU\): the map from \(x\) to \(h\) collapses information the way projection collapses the interior to the boundary.

203.2 Injectivity of the Transition Function and Landauer’s Principle

Thesis. A Turing machine’s transition function \(\delta \) is deterministic (a well-defined function in the forward direction) but generally not injective. Non-injectivity means two distinct configurations map to the same output, so the input cannot be recovered — this is exactly one bit of information loss, carrying the Landauer cost \(\Delta S=k_B\ln 2\).

Step 1: The transition function

Let \(Q=\{q_0,\dots ,q_n\}\) be the states and \(\Sigma =\{s_0,\dots ,s_m\}\) the tape alphabet. The transition function is

\begin{equation} \delta : Q\times \Sigma \to Q\times \Sigma \times \{L,R,S\}, \qquad \delta (q,s)=(q',s',d), \tag{11853}\end{equation}
with \(q,q'\in Q\), \(s,s'\in \Sigma \), \(d\in \{L,R,S\}\) (left, right, stay).
Step 2: Domain and codomain

The domain has size

\begin{equation} |Q\times \Sigma | = (n+1)(m+1), \tag{11854}\end{equation}
and the codomain is three times larger:
\begin{equation} |Q\times \Sigma \times \{L,R,S\}| = 3(n+1)(m+1). \tag{11855}\end{equation}
Step 3: Determinism (forward single-valued)

\(\delta \) is a well-defined function: equal inputs give equal outputs,

\begin{equation} (q_1,s_1)=(q_2,s_2) \;\Longrightarrow \; \delta (q_1,s_1)=\delta (q_2,s_2). \tag{11856}\end{equation}
One configuration produces exactly one transition.
Step 4: One-to-one versus many-to-one

For a general map \(f:A\to B\), two regimes are possible.

One-to-one (injective).

\begin{equation} \forall x_1,x_2:\quad f(x_1)=f(x_2)\;\Rightarrow \;x_1=x_2, \qquad \text {equivalently}\quad x_1\neq x_2\;\Rightarrow \;y_1\neq y_2. \tag{11857}\end{equation}
\begin{equation} \boxed {\text {one}\to \text {one}:\quad x_i\to y_i.} \tag{11858}\end{equation}
Distinct inputs stay distinct; no information is merged.

Many-to-one (non-injective).

\begin{equation} \exists \,x_1\neq x_2:\quad f(x_1)=f(x_2). \tag{11859}\end{equation}
\begin{equation} \boxed {\text {many}\to \text {one}:\quad \{x_1,x_2,\dots \}\to y.} \tag{11860}\end{equation}
Several distinct inputs collapse to a single output \(y\); the fibre \(f^{-1}(y)\) has more than one element.
Step 5: \(\delta \) is not injective

The converse of determinism fails in general:

\begin{equation} \delta (q_1,s_1)=\delta (q_2,s_2) \;\not \Longrightarrow \; (q_1,s_1)=(q_2,s_2). \tag{11861}\end{equation}

Explicit counterexample. Two distinct configurations mapping to the same halting output:

\begin{equation} \delta (q_a,0)=(q_f,0,S), \qquad \delta (q_b,1)=(q_f,0,S), \qquad (q_a,0)\neq (q_b,1). \tag{11862}\end{equation}
Here \(\delta (q_a,0)=\delta (q_b,1)\) while the inputs differ, so \(\delta \) is many-to-one.
Step 6: Injectivity \(\iff \) reversibility

The map is invertible precisely when it is injective:

\begin{equation} f^{-1}\ \text {exists} \;\iff \; f\ \text {injective}, \qquad \neg f^{-1} \;\iff \; \exists \,x_1\neq x_2:\ f(x_1)=f(x_2). \tag{11863}\end{equation}
Applied to \(\delta \): an injective transition is reversible (\(\exists \,\delta ^{-1}\)); a many-to-one transition collapses \(x_1,x_2\to y\), and from \(y\) alone the original configuration cannot be recovered.
Step 7: Landauer’s principle

The merge of two states into one erases one bit:

\begin{equation} \Delta I = \log _2 2 = 1\ \text {bit}. \tag{11864}\end{equation}
By Landauer’s principle, erasing one bit increases entropy and dissipates heat:
\begin{equation} \Delta S = k_B\ln 2, \qquad Q_{\rm heat} = k_B T\ln 2. \tag{11865}\end{equation}
\begin{equation} \boxed {\delta \ \text {non-injective} \;\to \;\text {information loss} \;\to \;\Delta S = k_B\ln 2.} \tag{11866}\end{equation}
Result
\begin{equation} \boxed { \begin {aligned} &\delta \ \text {injective} \;\iff \;\text {one}\to \text {one} \;\iff \;\exists \,\delta ^{-1} \;\iff \;\text {reversible} \;\iff \;\Delta S = 0,\\[4pt] &\delta \ \text {non-injective} \;\iff \;\text {many}\to \text {one} \;\iff \;\neg \,\delta ^{-1} \;\iff \;\text {irreversible} \;\iff \;\Delta S = k_B\ln 2. \end {aligned} } \tag{11867}\end{equation}
The distinction is injectivity. Determinism makes \(\delta \) a function in the forward direction; injectivity is the additional condition that makes it a function in the backward direction too. An injective (reversible, one-to-one) transition preserves information and costs no entropy; a many-to-one transition merges configurations, loses the bit distinguishing them, and pays the Landauer cost \(k_B\ln 2\). Only reversible, injective computation is thermodynamically free [234, 236].

Remark 203.1 (Injectivity across quantum and classical: unitarity, non-injective maps, and purity change).

The injective/non-injective dichotomy of the transition function (Subsection 203.2) is the same reversible/irreversible split that separates unitary quantum evolution from measurement and decoherence. A caution is needed first: reversibility is a property of the map, not of the state. Purity (\(\rho ^2=\rho \) versus \(\rho ^2\neq \rho \)) classifies states; injectivity/unitarity classifies maps. The two must not be conflated.

Quantum: unitary \(=\) injective \(=\) reversible. A unitary operator satisfies

\begin{equation} U^\dagger U = UU^\dagger = I, \qquad U^{-1}=U^\dagger , \tag{11868}\end{equation}
so evolution is reversible: from \(|\psi \rangle \xrightarrow {U}|\phi \rangle \) the input is recovered by \(|\psi \rangle =U^\dagger |\phi \rangle \).
\begin{equation} \boxed {U\ \text {unitary} \;\iff \;U\ \text {injective} \;\iff \;U^{-1}\ \text {exists}.} \tag{11869}\end{equation}
Crucially, unitary evolution preserves purity:
\begin{equation} \rho \xrightarrow {U}U\rho U^\dagger , \qquad (U\rho U^\dagger )^2 = U\rho ^2 U^\dagger , \tag{11870}\end{equation}
so \(\rho ^2=\rho \) stays pure and \(\rho ^2\neq \rho \) stays mixed. A reversible map moves states around without changing whether they are pure or mixed.

Classical: non-injective \(=\) many-to-one \(=\) irreversible. A transition \(\delta :X\to Y\) with

\begin{equation} \exists \,x_1\neq x_2:\ \delta (x_1)=\delta (x_2) \tag{11871}\end{equation}
is non-injective:
\begin{equation} \boxed {\{x_1,x_2\}\to y,} \qquad \nexists \,\delta ^{-1}(y). \tag{11872}\end{equation}
The fibre over \(y\) has more than one element, so the inverse does not exist and the input is unrecoverable.

Irreversible maps change purity — in either direction. Unlike unitary evolution, an irreversible (non-injective) quantum operation changes purity, and it can go either way:

\begin{equation} \text {Measurement:}\quad \rho _{\rm mixed}=\sum _i p_i|\psi _i\rangle \langle \psi _i| \;\xrightarrow {\text {outcome }i}\; |\psi _i\rangle \langle \psi _i|=\rho _{\rm pure} \quad (\text {mixed}\to \text {pure}), \tag{11873}\end{equation}
\begin{equation} \text {Decoherence:}\quad \rho _{\rm pure}=|\psi \rangle \langle \psi | \;\xrightarrow {\text {environment}}\; \sum _i p_i|\psi _i\rangle \langle \psi _i|=\rho _{\rm mixed} \quad (\text {pure}\to \text {mixed}). \tag{11874}\end{equation}
Both are non-injective (many-to-one) and both lose information — measurement discards which branch of the superposition, decoherence discards the phase coherence. The direction of the purity change is opposite, but the irreversibility is the same:
\begin{equation} \boxed {\text {measurement: mixed}\to \text {pure},} \qquad \boxed {\text {decoherence: pure}\to \text {mixed},} \qquad \boxed {\text {both irreversible, }\Delta S>0.} \tag{11875}\end{equation}

Unified correspondence.




Reversible Irreversible



Map \(U\) unitary (\(U^\dagger U=I\)) measurement / decoherence
Map type injective (one-to-one) non-injective (many-to-one)
Inverse \(U^{-1}=U^\dagger \) exists \(\nexists \,\delta ^{-1}\)
Purity preserved changed (either direction)
Entropy \(\Delta S=0\) \(\Delta S>0\) (\(k_B\ln 2\) per bit)



The correct statement. Unitarity and injectivity are the same reversibility condition in two languages: \(U^\dagger U=I\) (operators) and \(x_1\neq x_2\Rightarrow y_1\neq y_2\) (maps). What they share is purity preservation — a reversible map never converts pure to mixed or mixed to pure. Their failure is irreversibility: a non-injective map merges inputs and changes purity, either collapsing mixed to pure (measurement) or dispersing pure to mixed (decoherence). Both directions lose information and pay the Landauer cost \(k_B\ln 2\) per erased bit. The state property (\(\rho ^2=\rho \) or not) is not what marks reversibility; the map property (injective or not) is. The dagger \(f\mapsto f^\dagger \) supplies the inverse exactly when the map is injective, and it is that inverse — not the purity of any particular state — that makes the evolution reversible.

203.3 State versus process: why \(\rho ^2=\rho \) is reversible but collapse to it is not

An apparent contradiction: the finance collapse (Section 468.2) reaches \(\rho ^2=\rho \) by an irreversible process, while the injectivity discussion (Section 203.2) associates \(\rho ^2=\rho \) (pure) with reversibility. Both are correct: they describe different things — the property of a state versus the process reaching it.

I. The state \(\rho ^2=\rho \) is a pure state

A pure state carries maximal information (completely known). It is characterised by

\begin{equation} \rho ^2=\rho \;\iff \; \rho \ \text {is pure} \;\iff \; \mathrm {Tr}(\rho )=1,\ \mathrm {Tr}(\rho ^2)=1,\ \mathrm {rank}(\rho )=1, \tag{11876}\end{equation}
so \(\rho =|\psi \rangle \langle \psi |\) for some unit vector \(|\psi \rangle \).
II. Purity is preserved by unitary evolution (reversible)

Under a unitary \(U\) with \(U^\dagger U=UU^\dagger =I\):

\begin{equation} \rho ' = U\rho U^\dagger , \qquad (\rho ')^2 = U\rho U^\dagger U\rho U^\dagger = U\rho ^2 U^\dagger . \tag{11877}\end{equation}
If \(\rho ^2=\rho \) then
\begin{equation} (\rho ')^2 = U\rho ^2 U^\dagger = U\rho U^\dagger = \rho ', \tag{11878}\end{equation}
so purity is preserved:
\begin{equation} \boxed {U^\dagger U=I \;\Longrightarrow \; \bigl (\rho ^2=\rho \iff (U\rho U^\dagger )^2=U\rho U^\dagger \bigr ).} \tag{11879}\end{equation}
Explicitly, \(\rho =|\psi \rangle \langle \psi |\) maps to
\begin{equation} \rho ' = U|\psi \rangle \langle \psi |U^\dagger = |U\psi \rangle \langle U\psi |, \tag{11880}\end{equation}
which is again rank-one. The map is invertible, \(U^{-1}=U^\dagger \), so
\begin{equation} \rho = U^\dagger \rho ' U, \qquad \boxed {\rho \;\overset {U}{\longleftrightarrow }\;\rho ',} \qquad \boxed {U:\{\rho :\rho ^2=\rho \}\longrightarrow \{\rho :\rho ^2=\rho \}.} \tag{11881}\end{equation}
Unitary evolution maps pure states to pure states, bijectively: this is the reversible, one-to-one regime of the injectivity subsection.
III. Collapse to \(\rho ^2=\rho \) is many-to-one (irreversible)

The collapse process is a different map. Measurement sends a mixed state to a pure one:

\begin{equation} \underbrace {\rho ^2\neq \rho }_{\text {mixed}} \;\xrightarrow {\ \text {measurement}\ }\; \underbrace {\rho ^2=\rho }_{\text {pure}}. \tag{11882}\end{equation}
Many distinct mixed states collapse to the same pure outcome: the pre-measurement possibilities are discarded, so the map is many-to-one and non-injective. The lost alternatives are exactly the information that cannot be recovered — the process is irreversible, and by Landauer carries \(\Delta S>0\). The finance collapse
\begin{equation} P(A\mid I)\in (0,1) \;\xrightarrow {\ I\to I^*\ }\; P(A\mid I^*)\in \{0,1\} \tag{11883}\end{equation}
is this measurement direction: market uncertainty (mixed) resolving to event certainty (pure) is many-to-one, hence irreversible.
IV. Both collapse directions are irreversible





Map Start End Reversible?




Unitary \(U\) pure pure \(\checkmark\) (one-to-one)
Measurement mixed pure \(\times \) (many-to-one)
Decoherence pure mixed \(\times \) (phase lost)




Measurement (mixed\(\to \)pure) discards alternatives; decoherence (pure\(\to \)mixed) leaks phase to the environment. Both are irreversible. Only the unitary map between pure states is reversible.

Resolution

The two statements live at different levels:

\begin{equation} \boxed { \begin {aligned} &\rho ^2=\rho \ (\text {pure}) = \text {a property of the state} \;\Rightarrow \;\text {reversible among pure states (unitary)},\\[4pt] &\text {mixed}\to \text {pure}\ (\text {collapse}) = \text {a process} \;\Rightarrow \;\text {irreversible (many-to-one)}. \end {aligned} } \tag{11884}\end{equation}
A pure state is a “citizen of the reversible world” — unitaries move it bijectively to other pure states. But the collapse that arrives at a pure state (mixed\(\to \)pure) is many-to-one and irreversible. The destination \(\rho ^2=\rho \) is the same; only the mode of arrival distinguishes reversible (unitary) from irreversible (collapse). Finance describes the collapse process, so it is irreversible; the injectivity subsection describes unitary evolution of pure states, so it is reversible — state versus process, not a contradiction.