Documentation
¶
Overview ¶
Package pos implements deixis-pos-v1 — the spelling of positions into deixis keys.
κ(i) = ff^(len(mag(i)) − 1) ‖ 00 ‖ mag(i)
where mag(i) is the shortest unsigned big-endian encoding of i, with mag(0) = 00. See docs/design/0002-positional-keys.md. The spelling is injective, prefix-free, and order-preserving: i < j iff κ(i) sorts before κ(j) in unsigned lexicographic byte order — so a positionally-keyed struct's canonical entry order is sequence order, and a consumer walking a sequence never parses a key.
The profile is total over ℕ; this implementation spells the uint64 range, which bounds nothing about the profile (a wider integer spells wider positions with the same rule).
There is deliberately no decoder: consumers recognize positional structure by generating Key(0) ‖ Key(1) ‖ … and comparing octets, or test membership with IsKey. Normalizing a non-canonical spelling to its index would be a repair pass, and a repair pass coarsens identity.
Index ¶
Constants ¶
const Profile = "deixis-pos-v1"
Profile is the name of the profile this package implements.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.