Search papers, labs, and topics across Lattice.
This paper presents a minimal, executable proof-of-concept for contract traceability across multiple programming languages. The authors define a simple "Hello, world!" contract and link six implementations (Rust, Go, C, Java, TypeScript, and AWK) to it via a DAG, traceability file, and evidence matrix. The system verifies that each implementation produces the expected output, demonstrating a framework for verifying contracts against executable witnesses.
A surprisingly simple, executable example shows how to link code in six different languages to a single contract, opening the door to more robust multi-language verification.
This paper reports a deliberately small executable proof for a DAG-TOML contract: six "Hello, world!" implementations in Rust, Go, C, Java, TypeScript, and AWK are linked to one observable-output contract, one implementation DAG, one traceability file, one readiness gate, and one evidence matrix. The load-bearing contract requires the exact UTF-8 byte sequence `Hello, world!\n`, zero stderr bytes, and exit code 0. On the runner used for this paper, the witness harness reported five PASS outcomes, one SKIP for Java because `javac/java` was not on `PATH`, and zero FAIL outcomes. Two sidecar witnesses exercise narrower source-analysis claims: a convoluted Go rewrite hides the contiguous greeting literal but remains visible to sqry at the declared AST symbol and simple-edge level, while an indirect AWK rewrite uses a declared source profile because AWK is not in the repository's sqry-backed validator language set. The contribution is not a benchmark, a claim of general semantic equivalence, or a production assurance system. It is a compact, falsifiable artifact that shows how a contract, implementation graph, traceability chain, and review gate can be checked against executable witnesses.