Skip to content

Commit a263516

Browse files
hyperpolymathclaude
andcommitted
paper: retitle to "Progressive Type Safety" and extend to 12 levels
- Title changed from "Applying Database Query Type Safety to WebAssembly Linear Memory" to "Progressive Type Safety for WebAssembly Linear Memory" - Abstract, introduction, contributions, conclusion updated from 10→12 levels - New subsection "Novel Levels (11–12)" with full Idris2 code listings for tropical cost-tracking (L11, min-plus semiring) and epistemic safety (L12, knowledge modality with version-parameterised freshness proofs) - Soundness conjecture extended with properties (g) cost boundedness and (h) epistemic freshness - New "Tropical and Epistemic Foundations" subsection in formal foundations - Cross-level composition entries for L11∧L5 and L12∧multi-module - Related work: tropical semirings (Simon 1988) and epistemic logic (Fagin et al. 1995) with new bibliography entries - HAL metadata updated: new title, 12-level abstract, added keywords (progressive type safety, tropical semiring, epistemic logic, cost-tracking) - Whitepapers/academic version title synced Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4597974 commit a263516

4 files changed

Lines changed: 224 additions & 49 deletions

File tree

docs/arxiv/hal-metadata.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# HAL accepts PDF upload + manual metadata entry.
66
# This file documents the values to enter.
77

8-
title: "typed-wasm: Applying Database Query Type Safety to WebAssembly Linear Memory"
8+
title: "typed-wasm: Progressive Type Safety for WebAssembly Linear Memory"
99

1010
authors:
1111
- name: "Jonathan D.A. Jewell"
@@ -18,18 +18,23 @@ abstract: |
1818
module boundaries. When independently compiled modules — potentially from
1919
different source languages — read and write the same memory regions, no
2020
existing type system covers the cross-module interface. We present
21-
typed-wasm, a type system that applies a 10-level type safety framework,
22-
originally developed for database query languages, to Wasm linear memory.
23-
The system treats contiguous memory segments as typed region schemas and
24-
load/store operations as typed projections verified against those schemas
25-
at compile time. We formalise the system in Idris 2 using Quantitative
26-
Type Theory (QTT), providing proofs of bounds safety, aliasing freedom,
27-
effect purity, lifetime validity, and linearity — all erased before code
28-
generation, yielding zero runtime overhead. Our principal contribution is
21+
typed-wasm, a type system that applies a 12-level progressive type safety
22+
framework, originally developed for database query languages, to Wasm
23+
linear memory. The system treats contiguous memory segments as typed
24+
region schemas and load/store operations as typed projections verified
25+
against those schemas at compile time. We formalise the system in Idris 2
26+
using Quantitative Type Theory (QTT), providing proofs of bounds safety,
27+
aliasing freedom, effect purity, lifetime validity, linearity, cost
28+
boundedness, and epistemic freshness — all erased before code generation,
29+
yielding zero runtime overhead. Our principal contribution is
2930
multi-module schema agreement: a static verification that independently
3031
compiled Wasm modules agree on the layout, types, alignment, and
3132
invariants of shared memory regions — a property that no source-level
32-
type system, and no existing Wasm proposal, can express.
33+
type system, and no existing Wasm proposal, can express. We further
34+
extend the framework with tropical cost-tracking (Level 11, bounding
35+
access pattern costs via a min-plus semiring) and epistemic safety
36+
(Level 12, preventing reads of stale shared state across module
37+
boundaries).
3338
3439
# HAL document type
3540
document_type: preprint # "preprint" or "conference paper" or "journal article"
@@ -42,14 +47,17 @@ domains:
4247

4348
keywords:
4449
- WebAssembly
45-
- type safety
50+
- progressive type safety
4651
- dependent types
4752
- linear memory
4853
- multi-module verification
4954
- quantitative type theory
5055
- memory safety
5156
- formal verification
5257
- Idris2
58+
- tropical semiring
59+
- epistemic logic
60+
- cost-tracking
5361

5462
language: en
5563

docs/arxiv/typed-wasm.bib

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,26 @@ @misc{wasmspec2024
145145
note = {Accessed: 2026},
146146
}
147147

148+
@book{fagin1995,
149+
author = {Ronald Fagin and Joseph Y. Halpern and Yoram Moses and Moshe Y. Vardi},
150+
title = {Reasoning About Knowledge},
151+
publisher = {MIT Press},
152+
year = {1995},
153+
isbn = {978-0-262-56200-3},
154+
}
155+
156+
@incollection{simon1988,
157+
author = {Imre Simon},
158+
title = {Recognizable Sets with Multiplicities in the Tropical Semiring},
159+
booktitle = {Mathematical Foundations of Computer Science 1988},
160+
series = {Lecture Notes in Computer Science},
161+
volume = {324},
162+
pages = {107--120},
163+
year = {1988},
164+
publisher = {Springer},
165+
doi = {10.1007/BFb0017135},
166+
}
167+
148168
@inproceedings{wurthinger2017,
149169
author = {Thomas W{\"u}rthinger and Christian Wimmer and Christian Humer and Andreas W{\"o}{\ss} and Lukas Stadler and Chris Seaton and Gilles Duboscq and Doug Simon and Matthias Grimmer},
150170
title = {Practical Partial Evaluation for High-Performance Dynamic Language Runtimes},

0 commit comments

Comments
 (0)