Semantic uniqueness

Formal note

Semantic Uniqueness and Non-Uniqueness of Machine Realizations


1

Semantic realizations

Let C\mathcal{C} be an ∞\infty-category whose objects are computational realizations (machines, programs, agents, or other executable systems), and let

Op ⁣:C⟶X\mathrm{Op} \colon \mathcal{C} \longrightarrow \mathcal{X}

be an operational semantics into an ∞\infty-topos X\mathcal{X}. Fix n≥−2n \geq -2. Let

τ≤n ⁣:X⟶X≤n\tau_{\leq n} \colon \mathcal{X} \longrightarrow \mathcal{X}_{\leq n}

denote the nn-truncation functor. Define the semantic realization functor

Qn:=τ≤n∘Op ⁣:C⟶X≤n.Q_n := \tau_{\leq n} \circ \mathrm{Op} \colon \mathcal{C} \longrightarrow \mathcal{X}_{\leq n}.

Definition 1.1.

For M,N∈CM, N \in \mathcal{C}, write

M≡nNM \equiv_n N

if there is an equivalence

Qn(M)≃Qn(N)Q_n(M) \simeq Q_n(N)

in X≤n\mathcal{X}_{\leq n}. We call ≡n\equiv_n semantic equivalence at level nn.

Thus ≡n\equiv_n identifies realizations which are indistinguishable after passage to the chosen homotopy nn-type.

Definition 1.2.

The nn-semantic class of a realization MM is the equivalence class

[M]n[M]_n

determined by Qn(M)Q_n(M) in the appropriate homotopy category of X≤n\mathcal{X}_{\leq n}.

The distinction between realization and semantic class is therefore

M∈C⟼[M]n∈π0(X≤n).M \in \mathcal{C} \qquad \longmapsto \qquad [M]_n \in \pi_0(\mathcal{X}_{\leq n}).
2

Non-uniqueness of realizations

The essential mathematical point is that truncation is generally a localization and therefore need not be conservative.

Definition 2.1.

A functor

F ⁣:C→DF \colon \mathcal{C} \to \mathcal{D}

is conservative if, for every morphism ff of C\mathcal{C},

F(f) is an equivalence⟹f is an equivalence.F(f)\text{ is an equivalence} \quad\Longrightarrow\quad f\text{ is an equivalence}.

Equivalently, FF reflects equivalences.

Theorem 2.2 (Semantic equivalence does not imply realization uniqueness).

Let

Qn=τ≤n∘Op ⁣:C→X≤n.Q_n = \tau_{\leq n} \circ \mathrm{Op} \colon \mathcal{C} \to \mathcal{X}_{\leq n}.

Suppose there exist realizations M,N∈CM, N \in \mathcal{C} such that

Qn(M)≃Qn(N)Q_n(M) \simeq Q_n(N)

while

M≄N.M \not\simeq N.

Then MM and NN determine the same semantic nn-class but are inequivalent realizations:

[M]n=[N]n,M≄N.[M]_n = [N]_n, \qquad M \not\simeq N.

In particular, whenever QnQ_n fails to reflect equivalences on the full subcategory of realizers under consideration, semantic uniqueness does not imply uniqueness of realization.

Proof. By definition,

Qn(M)≃Qn(N)Q_n(M) \simeq Q_n(N)

means precisely that MM and NN are semantically equivalent at level nn, hence

[M]n=[N]n.[M]_n = [N]_n.

The hypothesis

M≄NM \not\simeq N

states that the realizations themselves are not equivalent in C\mathcal{C}. Thus the same object of the localized semantic category X≤n\mathcal{X}_{\leq n} has at least two inequivalent realizations in C\mathcal{C}. Hence the semantic class is unique while its realization is not.

If QnQ_n is non-conservative on the relevant class of realizers, such a pair can occur by definition of non-conservativity: there exists an equivalence after applying QnQ_n which does not arise from an equivalence before applying QnQ_n.

Remark 2.3.

The conclusion is stronger than the statement that presentations need not be literally equal. It permits

M≄NM \not\simeq N

even in the homotopy theory of realizations. Thus the distinction is not merely syntactic. It can persist after quotienting the category of machines by its own equivalences.

3

Why truncation permits non-uniqueness

The preceding phenomenon is intrinsic to truncation.

Proposition 3.1.

For n≥−1n \geq -1, the truncation functor

τ≤n ⁣:X→X≤n\tau_{\leq n} \colon \mathcal{X} \to \mathcal{X}_{\leq n}

does not in general reflect equivalences.

Proof. Consider, for example, spaces in the ∞\infty-category S\mathcal{S}. Let

X=Sn+1,Y=∗.X = S^{n+1}, \qquad Y = *.

The canonical map

Sn+1⟶∗S^{n+1} \longrightarrow *

induces an equivalence after nn-truncation:

τ≤nSn+1≃τ≤n∗≃∗.\tau_{\leq n} S^{n+1} \simeq \tau_{\leq n} * \simeq *.

However,

Sn+1≄∗S^{n+1} \not\simeq *

because

πn+1(Sn+1)≅Z,πn+1(∗)=0.\pi_{n+1}(S^{n+1}) \cong \mathbb{Z}, \qquad \pi_{n+1}(*) = 0.

Hence τ≤n\tau_{\leq n} does not reflect equivalences.

Consequently, equality in the localized semantics forgets all homotopy information above degree nn. In particular,

τ≤nX≃τ≤nY\tau_{\leq n} X \simeq \tau_{\leq n} Y

does not imply

X≃Y.X \simeq Y.
4

Realizers of a finite specification

Let PP be a finite presentation of an operation. Write

Real(P)⊆C\mathrm{Real}(P) \subseteq \mathcal{C}

for the full ∞\infty-subcategory of realizations of PP. Assume that the specification determines a semantic nn-type

pP∈X≤np_P \in \mathcal{X}_{\leq n}

such that every realization of PP satisfies

Qn(M)≃pP,M∈Real(P).Q_n(M) \simeq p_P, \qquad M \in \mathrm{Real}(P).

Theorem 4.1 (Uniqueness of the semantic class).

Under the preceding hypotheses, PP determines a unique semantic operation class

[P]n:=pP,[P]_n := p_P,

in the sense that

∀ M,N∈Real(P),Qn(M)≃Qn(N).\forall\, M, N \in \mathrm{Real}(P), \qquad Q_n(M) \simeq Q_n(N).

This does not imply that Real(P)\mathrm{Real}(P) is contractible, nor even that all of its objects are equivalent.

Proof. For M,N∈Real(P)M, N \in \mathrm{Real}(P),

Qn(M)≃pP≃Qn(N),Q_n(M) \simeq p_P \simeq Q_n(N),

and therefore

Qn(M)≃Qn(N).Q_n(M) \simeq Q_n(N).

Thus all realizers determine the same semantic nn-class. No assertion has been made that

M≃N.M \simeq N.

Such an assertion would require additional hypotheses, for example conservativity of QnQ_n on Real(P)\mathrm{Real}(P). Hence uniqueness of the semantic class does not entail uniqueness of the realization category.

Corollary 4.2 (Unique class, non-unique machines).

Suppose there exist

M,N∈Real(P)M, N \in \mathrm{Real}(P)

such that

M≄N.M \not\simeq N.

Then

Qn(M)≃Qn(N)≃[P]n,Q_n(M) \simeq Q_n(N) \simeq [P]_n,

so the specification has a unique semantic operation class but at least two inequivalent machine realizations.

5

Traces and operational classes

Let

Trace\mathrm{Trace}

denote the space of executable traces. A trace is not treated merely as an external observation; rather, assume the operational semantics provides a trace map

tr ⁣:C→Trace\mathrm{tr} \colon \mathcal{C} \to \mathrm{Trace}

and a semantic reification map

class⁡n ⁣:Trace⟶X≤n\operatorname{class}_n \colon \mathrm{Trace} \longrightarrow \mathcal{X}_{\leq n}

such that

Qn=class⁡n∘tr.Q_n = \operatorname{class}_n \circ \mathrm{tr}.

Thus a realized operation is represented by the composite

M↦ tr tr(M)↦ class⁡n [M]n.M \xmapsto{\ \mathrm{tr}\ } \mathrm{tr}(M) \xmapsto{\ \operatorname{class}_n\ } [M]_n.

The trace is therefore an operational object, while the map class⁡n\operatorname{class}_n performs the passage from an executable trace to its semantic operation class. In particular,

class⁡n(tr(M))≃class⁡n(tr(N))\operatorname{class}_n(\mathrm{tr}(M)) \simeq \operatorname{class}_n(\mathrm{tr}(N))

does not entail

M≃NM \simeq N

unless the composite

Qn=class⁡n∘trQ_n = \operatorname{class}_n \circ \mathrm{tr}

is conservative on the realizers under consideration.

6

Cofinality of realizers

Let II be a directed index category and let

M ⁣:I→CM \colon I \to \mathcal{C}

be a timeline of machines. Suppose this timeline is nn-cofinal in Real(P)\mathrm{Real}(P), meaning that

∀R∈Real(P)  ∃i∈Isuch thatQn(Mi)≃Qn(R).\forall R \in \mathrm{Real}(P)\; \exists i \in I \quad\text{such that}\quad Q_n(M_i) \simeq Q_n(R).

Theorem 6.1 (Eventual realization up to semantic type).

If Real(P)≠∅\mathrm{Real}(P) \neq \varnothing and the machine timeline is nn-cofinal in Real(P)\mathrm{Real}(P), then there exists i∈Ii \in I such that

Qn(Mi)≃[P]n.Q_n(M_i) \simeq [P]_n.

Proof. Choose any

R∈Real(P),R \in \mathrm{Real}(P),

which exists by assumption. Since the timeline is nn-cofinal, there is an i∈Ii \in I satisfying

Qn(Mi)≃Qn(R).Q_n(M_i) \simeq Q_n(R).

Since RR realizes PP,

Qn(R)≃[P]n.Q_n(R) \simeq [P]_n.

Therefore

Qn(Mi)≃[P]n.Q_n(M_i) \simeq [P]_n.

Hence stage ii realizes the specification up to the chosen homotopy nn-type.

7

Recursive self-improvement

Let

On:=τ≤nO\mathcal{O}_n := \tau_{\leq n}\mathcal{O}

be the nn-truncated ∞\infty-type of agent operations. Suppose self-improvement induces an internal endomorphism

F ⁣:On→On.F \colon \mathcal{O}_n \to \mathcal{O}_n.

For an initial semantic operation

o0∈On,o_0 \in \mathcal{O}_n,

define recursively

ok+1:=F(ok).o_{k+1} := F(o_k).

Then

ok=Fk(o0).o_k = F^k(o_0).

A family of machines (Mk)k≥0(M_k)_{k \geq 0} realizes this recursive process up to semantic level nn precisely when

Qn(Mk)≃okQ_n(M_k) \simeq o_k

for all kk. There is no requirement that

Mk+1≃Mk.M_{k+1} \simeq M_k.

Indeed, if the fibers of QnQ_n are nontrivial, there may exist many inequivalent realizers satisfying

Qn(Mk)≃ok.Q_n(M_k) \simeq o_k.

Thus recursive self-improvement is naturally an operation on semantic classes:

On→ F On,\mathcal{O}_n \xrightarrow{\ F\ } \mathcal{O}_n,

rather than necessarily an endomorphism of a uniquely determined machine presentation.

8

Main conclusion

The preceding results establish the following separation:

finite presentation⇓semantic operation class [P]n⇓possibly many inequivalent realizers M\boxed{\begin{array}{c} \text{finite presentation} \\[2mm] \Downarrow \\[2mm] \text{semantic operation class }[P]_n \\[2mm] \Downarrow \\[2mm] \text{possibly many inequivalent realizers }M \end{array}}

More precisely,

M⟼Qn(M)M \longmapsto Q_n(M)

is a semantic localization. If it is non-conservative on the relevant realization category, then

Qn(M)≃Qn(N)⇏M≃N.Q_n(M) \simeq Q_n(N) \quad\not\Rightarrow\quad M \simeq N.

Hence the appropriate uniqueness statement is

the operation class is unique up to nn-equivalence, whereas its machine realization need not be unique.

The non-uniqueness is therefore not an artifact of comparing different syntactic presentations. It is a structural consequence of passing from realizations to a truncated semantic localization.

Typeset in the browser with KaTeX. The wording follows the source note; statements are numbered within each section, as in the original.

Symbols

Notation as fixed in the note. This list is a reading aid, not an extra definition.

C\mathcal{C}
∞-category of computational realizations
Op\mathrm{Op}
operational semantics
X\mathcal{X}
∞-topos receiving the operational semantics
τ≤n\tau_{\leq n}
n-truncation functor
X≤n\mathcal{X}_{\leq n}
n-truncated ∞-topos
QnQ_n
semantic realization functor, τ≤n composed with Op
≡n\equiv_n
semantic equivalence at level n
[M]n[M]_n
n-semantic class of a realization M
Real(P)\mathrm{Real}(P)
full subcategory of realizations of a finite presentation P
[P]n[P]_n
semantic operation class determined by P
Trace\mathrm{Trace}
space of executable traces
tr\mathrm{tr}
trace map on realizations
class⁡n\operatorname{class}_n
reification of a trace as a semantic n-class
On\mathcal{O}_n
n-truncated ∞-type of agent operations