Letters and tapes of the universal program #
Defines the alphabet Uni.Sy M K, tape names Uni.Tp K, channel type Uni.Zc K, record letter
injections (Uni.be, Uni.ol), and the star-over-letters combinator Tape.Runs.wordstar.
From VP ≠ VNP over every field [Ant26], module Nc.Uni.Alpha.
Main definitions #
Uni.Sy: tape alphabet (bits, semicolons, modes, record kinds, columns, marks, dots, flags, block separators).Uni.Bl: record key lettersK ⊕ (Fin 4 → Bool).Uni.be,Uni.ol: embeddings intoSy M K.Uni.Tp,Uni.Zc: tape names and channels of the universal program.
Main results #
Tape.Runs.wordstar: write an arbitrary word overκonto every channel inzs.Uni.ol_inj,Uni.ol_ne_dot,Uni.ol_ne_bar.
Write an arbitrary word over κ on every channel of zs, using dimension
card κ * (2 * zs.card + 1) + 1.
Letters of the universal tape program: bits, word separator, modes, record kinds, 4-bit columns, rotation mark, record end dot, lookup flag, and block separator bar.
- bit {M K : Type} (x : Bool) : Sy M K
a binary digit
- semi {M K : Type} : Sy M K
end of a binary word
- md {M K : Type} (m : M) : Sy M K
pointer-machine mode
- kd {M K : Type} (k : K) : Sy M K
record kind
- col {M K : Type} (c : Fin 4 → Bool) : Sy M K
a 4-bit column slice of a record
- mark {M K : Type} : Sy M K
rotation mark inside a record
- dot {M K : Type} : Sy M K
end of a record
- flag {M K : Type} (f : Bool) : Sy M K
flag (
false: table entry,true: lookup) - bar {M K : Type} : Sy M K
end of a pass/block
Instances For
Alphabet of record key letters (K or 4-bit column).
Tape names of the universal program: five registers, mode, counter pair, fresh addresses, lookups, sorted list, radix buckets, and comparison copies.
- rg {K : Type} (i : Fin 5) : Tp K
register tape
i - md {K : Type} : Tp K
mode tape
- cp {K : Type} : Tp K
counter tape
- fr {K : Type} : Tp K
fresh address tape
- lk {K : Type} : Tp K
lookup tape
- ls {K : Type} : Tp K
main list tape
- bk {K : Type} (b : Bl K) : Tp K
radix bucket tape for letter
b - cm {K : Type} (k : Bool) : Tp K
comparison copy tape
k
Instances For
Channels of the universal program (tape sides plus one input channel Unit).