APR-NEU-008 // apr-v2-vocab
Byte-Level BPE Tokenizer
Deterministic UTF-8 byte-pair encoder/decoder compiled into an immutable .apr vocabulary table with O(n log n) merge heap.
Runtime: Loading .apr...
Inference: --
CLI Execution & Inspection
$ apr run bpe-tokenizer --text "Sovereign AI Stack" $ apr inspect bpe-tokenizer.apr --verify-sha256
Mathematical Formulation
Greedy Pair Merge
Numerical Contract
Lossless round-trip decode(encode(s)) == s for 100% of valid UTF-8 strings.