268 System \(\mathsf {K}\): Encoding Made Structurally Impossible

Previous systems excluded \(\ulcorner \cdot \urcorner \) as a consequence of strong normalisation. System \(\mathsf {K}\) excludes it directly, by a resource condition, so that the encoding condition cannot be instantiated at all while computation on data remains unrestricted.

268.1 The Mechanism: Diagonalisation Requires Duplication

Every construction in the limitative results uses a name twice.

Construction Expression Duplicated
Diagonal lemma \(\psi \leftrightarrow \varphi (\ulcorner \psi \urcorner )\) \(\psi \) on both sides
Gödel sentence \(G \leftrightarrow \neg \operatorname {Prov}(\ulcorner G\urcorner )\) \(G\)
Turing \(\varphi _e(e)\) \(e\) as function and argument
Kleene \(\varphi _e \simeq \varphi _{f(e)}\) \(e\)
Self-interpreter \(d := \lambda x.\,\mathrm {eval}\,x\,x\) \(x\)

Proposition 268.1. Diagonalisation is an instance of contraction:

\begin{equation} \frac {\Gamma , A, A \vdash B}{\Gamma , A \vdash B} \qquad \Longleftrightarrow \qquad \text {a name may be used twice.} \tag{16726}\end{equation}
Without contraction on the relevant type, no diagonal can be formed.

268.2 The Design: Duplicable Data, Linear Forms [278]

\(\mathsf {K}\) is linear, with the exponential \(!\) available on data types and withheld from the type of forms.

\begin{equation} \mathsf {K} := \bigl (\mathcal {L}_{\mathsf {K}},\ \mathsf {Form}_{\mathsf {K}},\ \vdash _{\mathsf {K}}\bigr ), \tag{16727}\end{equation}
with types split as
\begin{align} \text {data types} \ \mathbb {D} &: \quad !\,\mathbb {D} \ \text {admissible}, \tag{16728}\\ \text {form type} \ \mathsf {Form} &: \quad !\,\mathsf {Form} \ \text {not a type of } \mathsf {K} . \tag{16729}\end{align}

Numbers, pairs, lists and every inductive datum are duplicable, so computation proceeds as usual. A form — a syntactic object of \(\mathsf {K}\) itself — is a linear resource: it may be used once.

268.3 No Encoding

Theorem 268.2.

\begin{equation} \neg \mathsf {E}_{\mathsf {K}} := \neg \exists \, \ulcorner \cdot \urcorner _{\mathsf {K}} : \Sigma _{\mathsf {K}}^{*} \hookrightarrow \mathbb {N}. \tag{16730}\end{equation}

Proof. Suppose \(\ulcorner \cdot \urcorner : \mathsf {Form} \to \mathbb {N}\) existed, with decoding \(\mathrm {Dec} : \mathbb {N} \to \mathsf {Form}\) satisfying \(\mathrm {Dec}(\ulcorner F\urcorner ) = F\). Since \(\mathbb {N}\) is a data type, \(!\mathbb {N}\) is available and duplication \(\mathrm {dup} : \mathbb {N} \to \mathbb {N} \otimes \mathbb {N}\) is definable. Composing,

\begin{equation} \mathsf {Form} \xrightarrow {\ \ulcorner \cdot \urcorner \ } \mathbb {N} \xrightarrow {\ \mathrm {dup}\ } \mathbb {N} \otimes \mathbb {N} \xrightarrow {\ \mathrm {Dec} \otimes \mathrm {Dec}\ } \mathsf {Form} \otimes \mathsf {Form}, \tag{16731}\end{equation}
which duplicates a form. This inhabits \(!\mathsf {Form}\), which is not a type of \(\mathsf {K}\). Hence no such pair \((\ulcorner \cdot \urcorner , \mathrm {Dec})\) exists. □

Encoding is not merely absent: it would smuggle a linear resource into a duplicable type, and the type discipline forbids the composite.

268.4 Consequences

\begin{equation} \neg \mathsf {E}_{\mathsf {K}} \;\Longrightarrow \; \neg \operatorname {Arithmetisation}_{\mathsf {K}} \;\Longrightarrow \; \neg \operatorname {G\ddot {o}delNumbering}_{\mathsf {K}} \;\Longrightarrow \; \neg \operatorname {Prov}_{\mathsf {K}} \;\Longrightarrow \; \neg \operatorname {Diag}_{\mathsf {K}} . \tag{16732}\end{equation}

Hence

\begin{equation} \neg \mathsf {E}_{\mathsf {K}} \;\Longrightarrow \; \neg \bigl ( \operatorname {Rosser} \wedge \operatorname {Kleene} \wedge \operatorname {Turing} \wedge \operatorname {Rice} \bigr )_{\mathsf {K}}, \tag{16733}\end{equation}
each of the four having been shown to entail \(\mathsf {E}\) (Section 267.8).

Equivalently, the theories of \(\mathsf {K}\) are exactly those admitting no such injection:

\begin{equation} \mathsf {K}\text {-}\mathsf {Theory} = \bigl \{\, T \;\bigm |\; \neg \exists \,(\Sigma _T^{*} \hookrightarrow \mathbb {N}) \,\bigr \}, \qquad \mathsf {Theory}_{\mathsf {K}} \cap \{T : \mathsf {E}(T)\} = \varnothing . \tag{16734}\end{equation}

268.5 What \(\mathsf {K}\) Retains

The restriction falls on forms, not on data.

Capability Status in \(\mathsf {K}\) Reason
Arithmetic \(+,\times ,\hat {}\) full \(!\mathbb {N}\) available
Inductive data full \(!\mathbb {D}\) available
Duplication of numbers yes \(\mathrm {dup}\) on data
Higher-order functions yes linear function space
Duplication of forms no \(!\mathsf {Form}\) absent
Self-application no requires duplication
\(\ulcorner \cdot \urcorner \) no Theorem above

A program may compute anything computable on its data. What it may not do is treat its own text as one of those data and use it twice.

268.6 Comparison of the Three Exclusions

System Mechanism \(\ulcorner \cdot \urcorner \) excluded by
\(\mathcal {C}\) level restriction \(\mathrm {SN} \Rightarrow \nexists \,\mathrm {eval}\)
\(\mathcal {L}\) judgements, no \(\models \) no propositions to code
\(\mathsf {K}\) linearity of forms \(!\mathsf {Form}\) not a type

The three are independent. \(\mathcal {C}\) blocks by termination, \(\mathcal {L}\) by removing the semantic layer, \(\mathsf {K}\) by resource accounting. Any one suffices; together they show that the classical bundling of computation with self-encoding can be undone in more than one way.

Remark 268.3. The exclusion in \(\mathsf {K}\) has a reading in the partition language. Contraction is \(\Pi ^2 = \Pi \): a resource used twice is the same resource. Linearity is \(dO = -dU\): what is used is consumed. Classical systems assume the first for every type, which is what permits a form to serve simultaneously as function and as argument. \(\mathsf {K}\) imposes the second on forms alone, and the diagonal — which requires a form to be in two places at once — is thereby unavailable while conservation of data is untouched.

\begin{equation} \boxed { !\mathsf {Form} \ \text {absent} \;\Longrightarrow \; \neg \mathsf {E}_{\mathsf {K}} \;\Longrightarrow \; \text {classical self-encoding machinery cannot be instantiated in } \mathsf {K}.} \tag{16735}\end{equation}