Project: liblevenshtein formal verification and scientific validation
The verification tree contains active Rocq, TLA, documentation, and empirical validation artifacts for:
| Area | Primary location | Current evidence |
|---|---|---|
| Core distance and automata | docs/verification/core/theories/ | maintained Rocq modules for distance, traces, automata, composition, lower bounds, and triangle support |
| Phonetic verification | docs/verification/phonetic/ and rocq/liblevenshtein/ | split/composition/cost-accounting proof files plus Rust phonetic integration tests |
| Grammar verification | docs/verification/grammar/theories/ | checked core, layer, composition, and NFA proof slices with no active proof-escape terms in .v sources |
| TLA product automaton | docs/verification/tla/ | bounded witness model checked by TLC |
| MSM interval search | docs/verification/msm/ | design and proof notes aligned with exact MSM-over-trie Rust tests |
Use capped commands for proof and test work. The grammar suite currently fits a 2 GiB capped single-job build:
systemd-run --user --scope -p MemoryMax=2G -p MemorySwapMax=0 \
make -C docs/verification/grammar -j1
The core suite is much larger. Current capped observations:
| Cap | Last reached file | Unit result |
|---|---|---|
| 2 GiB | DPMatrix/SnocLemmas.v | oom-kill during Rocq compilation |
| 4 GiB | trace layer after Automaton/MainTheorem.v | oom-kill during Rocq compilation |
| 8 GiB | Trace/DamerauTrace.v | oom-kill during Rocq compilation |
systemd-run --user --scope -p MemoryMax=8G -p MemorySwapMax=0 \
make -C docs/verification/core/theories -j1
For Rust-side gates, prefer focused targets with CARGO_BUILD_JOBS=1, -j1,
and -- --test-threads=1 when the target is large enough to threaten RSS.
Proof escape scan:
rg -n "^\s*(Admitted\.|admit\.|Axiom |Parameter |Conjecture |Hypothesis )" \
docs/verification rocq/liblevenshtein -g '*.v'
Source stale-marker scan:
rg -n "$STALE_MARKER_PATTERN" \
src tests benches examples rocq/liblevenshtein -g '*.rs' -g '*.v'
/tmp scratch directories after capped verification runs.Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |