Detyped conditionally linear functions #
The construction of types.tex, def:detyped-CL: run the graph sampler,
then the selected typed presentation on an independent register. An invalid
graph view selects a zero presentation that still consumes the whole content
register. The conditional law retains the common content seed of both players.
This file constructs the presentations and proves their law. The ambient
program and its runtime are the separate lem:detype-sampler obligation.
A zero presentation whose first factor consumes S, with empty later factors.
Equations
- MIPRE.CL.CLFun.zeroOn S 0 = MIPRE.CL.CLFun.zero
- MIPRE.CL.CLFun.zeroOn S ℓ.succ = MIPRE.CL.CLFun.cons S 0 fun (x : ι → F) => MIPRE.CL.CLFun.zeroOn ∅ ℓ
Instances For
Fallback linear queries are zero for all prefixes and levels.
The graph register followed by the content register.
Equations
- MIPRE.CL.Detyping.Coord T ι = (MIPRE.CL.Graph.Coord T ⊕ ι)
Instances For
A graph view selects its decoded vertex exactly when its opposite neighbor bit is one. On graph-sampler outputs this is the paper's nonzero opposite-block test.
Equations
Instances For
The exact specification of successful type selection.
Type selection is unchanged by passing from a seed to the sampled graph view.
Selection fails exactly on locally invalid seeds.
The selected content presentation, with a register-consuming zero fallback.
Equations
- MIPRE.CL.Detyping.selected P (some u_1) = P u_1
- MIPRE.CL.Detyping.selected P none = MIPRE.CL.CLFun.zeroOn Finset.univ ℓ
Instances For
The detyped presentation has the two graph levels followed by the typed levels.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The graph and content registers are disjoint.
The graph and content registers exhaust the ambient space.
The full detyped sampler partitions its registers on every branch, including rejection.
The output consists of the sampled graph view and exactly the selected typed output.
The ambient dimension is exactly the graph dimension plus the content dimension.