emd: A Language of Eight Unicode Dashes and How Far It Can Be Verified

emd programs use eight Unicode dashes and 32 instructions. We define the language in Lean 4 and Rocq, proving encoding round trips, run determinism, step invariants and independence from line layout. A direct Turing-machine simulation proves universality using 11 instructions, preserves the final tape and never faults. In Lean we also prove a model of the 64-bit machine a refinement of the semantics, correctness of a mirror of the compiler in both directions, and soundness of a mirror of the static analyzer. These results concern models. Kani checks the Rust VM and CBMC its generated C, within stated bounds. The VM is compared with the models on finite cases, and the generated C with the VM; no proof connects the implementation to the models. A compiler written in emd compiles itself.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-06
DOI
https://doi.org/10.5281/zenodo.24011441
Primary Topic
Logic, programming, and type systems
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

emd: A Language of Eight Unicode Dashes and How Far It Can Be Verified

Daniele Scaratti
1 links
Zenodo (CERN European Organization for Nuclear Research)
Logic, programming, and type systems
preprint

emd: A Language of Eight Unicode Dashes and How Far It Can Be Verified

Daniele Scaratti
preprint en

Abstract

emd programs use eight Unicode dashes and 32 instructions. We define the language in Lean 4 and Rocq, proving encoding round trips, run determinism, step invariants and independence from line layout. A direct Turing-machine simulation proves universality using 11 instructions, preserves the final tape and never faults. In Lean we also prove a model of the 64-bit machine a refinement of the semantics, correctness of a mirror of the compiler in both directions, and soundness of a mirror of the static analyzer. These results concern models. Kani checks the Rust VM and CBMC its generated C, within stated bounds. The VM is compared with the models on finite cases, and the generated C with the VM; no proof connects the implementation to the models. A compiler written in emd compiles itself.

Zenodo (CERN European Organization for Nuclear Research)
Logic, programming, and type systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon