src/position_source.ts stringifyBase52 and parseBase52
The Lean digit definitions port the exact ASCII branches: digit<26 maps to 65+digit, otherwise 71+digit; parser subtracts 71 at code>=97, otherwise 65. Target #38 proves one valid digit round trip and strict order, not the full variable-length codec or native JS refinement.
External evidence (contributor report)
reference
Proof assistant / theorem
·
Commit / toolchain / license
d79d623afca4d7209dcf90216c5ae5c15993e16a · TypeScript implementation source only; not a proof-assistant artifact · MIT
Assumptions
Digit is an integer between 0 and 51.
Reproduction
Primary source inspected and cached with SHA-256. No external formal artifact reproduced. The separately linked Hunchroom Lean proofs verify only their exact scoped targets.