Transporting a realizer, and what it costs in each currency ([Decoupling] §4.5) #
Provenance: [Decoupling] §4.5 — the action on realizers that a general representation functor (Conjecture 4.4) must have, priced.
What a transport is #
A change of encoding convention does not change which function is being computed, only how its
arguments and values are written down. On a fixed partial combinatory algebra that change is itself
coded: given a coded retraction pair (c_emb, c_proj) for the input convention and a coded map
c_emb for the output convention, a realizer r is carried to the conjugation
transportRealizer c_emb c_proj r = comp c_emb (comp r c_proj)
— re-encode the argument back to the old convention, run r, re-encode the result. eval_transport
and realizes_transport say this conjugate realizes the same function against the new conventions,
given the retraction identity on the codes actually used. Finiteness is what supplies such pairs in
the intended setting: every map between finite assemblies is realized.
Boundary #
This is the fixed-PCA transport — re-encoding within one assembly category, over Kleene's first
algebra as realized on Nat.Partrec.Code. The full per-subsystem functor, with its connection to
the state-level bitstring layout, stays paper-level and is not established here. Nothing below
quantifies over subsystems or mentions a state layout.
The three currencies, and the variable that is absent #
The point of pricing the conjugation is that its costs obey different algebras:
- description length ADDS —
elen_transportis an exact identity,elen (transportRealizer …) = elen c_emb + elen r + elen c_proj + 6, the two+3s being the serialization's own overhead for the twocompnodes; - workspace MAXES —
spaceCost_transport_lebounds the conjugate bymax g b, wheregis the realizer's own workspace grade andbthe re-encoders'. Composition never sums workspace, so conjugating a realizer costs no more room than the wider of the two jobs; - index-grade is MAX-AFFINE per hop —
bitlen_transport_lebounds the Gödel-index length of the conjugate by4 · max g b + 9, wheregbounds the realizer's index length andbthe re-encoders'. Eachcompnode costs a singleNat.sizestep over a square pairing,2·max + 3(bitlen_comp_le), and the two nodes nest.
The pairing factor of 2 that the workspace family charges elsewhere does not appear in the
workspace column: a conjugation is built from comp alone and never forms a pair, so no packing is
paid for. The index column pays a different 2, and pays it twice: the square pairing that
serializes each comp node doubles bit-length, the two nodes nest, and the factor squares to 4.
That compounding is the point of the max-affine law being per hop. Iterating a transport along a
tower multiplies the leading factor once per hop, so the index budget of an n-fold conjugation
grows geometrically — which is exactly why this one-hop law is a theorem while the full functor of
Conjecture 4.4, a transport iterated along a tower of hosting squares, stays open.
The dilation τ does not occur in either currency, and this is a finding rather than an
omission. A dilation relates the clocks of two dynamical systems — it multiplies along a tower
of hosting squares and prices time. The transport lemma prices one application of one realizer, and
a re-encoding does not run the host any longer or shorter. So the grade law reads: lengths add,
workspaces max, and dilations multiply somewhere else entirely — at the level of the dynamics, not
of the per-application realizer cost. A reader who expects τ in the bound should read this
paragraph rather than look for a dropped variable.
The coded conjugation #
The transport of a realizer along a change of encoding: re-encode the argument back to the
source convention with c_proj, run r, then re-encode the result with c_emb. A single code,
built from comp alone.
Equations
- ReflectiveSubsystems.transportRealizer c_emb c_proj r = c_emb.comp (r.comp c_proj)
Instances For
Correctness: the conjugate computes the same function #
The tracking equation transports. If r takes the source encoding of x to the source
encoding of f x, and c_proj undoes the new input encoding on the codes actually used
(hretr — the retraction identity), then the conjugate takes the new encoding of x to the new
encoding of f x.
r needs no fragment hypothesis: its behaviour enters already as an eval equation. The two
re-encoding codes do, since the retraction identity is stated in the total value model val, and
eval_eq_val is the bridge.
Re-encoding an assembly along a code: the same finite carrier, each element now written as
the value c computes from its old code. Injectivity of the new encoding is the hypothesis — it is
what keeps the result an assembly, and it is exactly what a retraction pair supplies.
Equations
- ReflectiveSubsystems.reencode A c hinj = { carrier := A.carrier, fin := A.fin, enc := fun (x : A.carrier) => TimeCost.val c (A.enc x), enc_inj := hinj }
Instances For
Realization is preserved by transport. A function realized between two assemblies is still realized between their re-encodings, by the conjugate code — given the retraction identity on the input side. This is the functor's action on morphisms at fixed algebra: the same function, the same carriers, a new pair of conventions and a new realizer for them.
Note the asymmetry the two sides play. The input side needs a genuine retraction (hretr): the
conjugate has to recover the old code of x before r can be run on it. The output side needs only
a coded map — c_emb is applied to r's result and nothing has to be undone.
The workspace currency: grades MAX #
Capacity-bounded transport ([Decoupling] §4.5). If the input re-encoder runs within b bits
on the argument, the realizer runs within g bits on every value the re-encoder can hand it, and
the output re-encoder runs within b bits on every value the realizer can produce, then the whole
conjugation runs within max g b. Grades do not accumulate along a conjugation.
Two features of the bound are worth stating. The max is the composition law of the workspace
family — the parts share one workspace rather than each needing its own. And no constant appears:
the family charges a factor 2 for pairing, and a conjugation forms no pairs.
The hypotheses are conditioned rather than uniform, as every workspace hypothesis must be — a leaf
node holds its input, so no constant bounds the workspace of a code over all inputs. Each condition
is stated at exactly the values that code actually meets: c_proj at the argument, r at the
re-encoder's outputs (≤ b bits), c_emb at the realizer's outputs (≤ g bits).
The description-length currency: grades ADD #
The length of a transport is exact, and additive. The serialization's comp law charges
three bits of structure per node, and a conjugation has two nodes — so the conjugate's length is the
sum of the three parts' lengths plus six, with no slack and no inequality.
Set beside spaceCost_transport_le, this is the module's point: the same syntactic operation is
priced by a sum in description length and by a maximum in workspace. The two currencies of a
capacity grade do not obey the same algebra, and a graded semantics over this carrier has to carry
both.
The index-length currency: grades MAX-AFFINE per hop #
One comp node costs a single Nat.size step over a square pairing. Mathlib serializes
comp cf cg as 2 · (2 · ⟨cf, cg⟩ + 1) + 4 (Nat.Partrec.Code.encodeCode), so its Gödel-index
bit-length is Nat.size of that numeral. A square pairing doubles bit-length up to 2·max of the
parts' index lengths (CodeSizeArith.size_pair_le_max), and the constant prefactor 4 · _ + 6
adds a further three bits — so a comp node's index length is at most 2·max of its parts' plus
three. This is the per-hop step that bitlen_transport_le compounds.
Capacity-respecting transport does not overflow the index budget ([Decoupling] §4.5). The
transport clause of Conjecture 4.4 priced in the third currency: if the two re-encoders have
Gödel-index length at most b and the realizer at most g, the conjugate's index length is at most
4 · max g b + 9. The bound is max-affine in one hop — the wider of the two grades times a
fixed factor, plus a constant — not additive: an index budget is spent by nesting comp nodes, and
there are two.
The prefactor 4 is 2²: each of the two nested comp nodes doubles bit-length through its square
pairing (bitlen_comp_le), and the nodes compose. That the factor compounds per hop is why the
one-hop law holds as stated while the iterated transport of the full functor — where the leading
factor would multiply once per hosting square — remains a conjecture.