Do dive planners keep their own gradient factors? An audit of four open-source decompression codes with Lean-proved endpoint theorems
cs.SE, cs.LO
Submitted: 2026-12-03
Updated: 2026-12-03
Comments: 19 pages, 4 figures, 5 tables. Code, Lean proofs and data: https://github.com/hirokifukui/zhl16c-gf-verify, archived at https://doi.org/10.5281/zenodo.24769480
License: http://creativecommons.org/licenses/by/4.0/
The gist: Planners implementing the Bühlmann ZHL-16C model with gradient factors (GF) are rarely tested against their own settings.
Terminology
Abstract
Planners implementing the Bühlmann ZHL-16C model with gradient factors (GF) are rarely tested against their own settings. We asked whether four open-source planners (dive-deco, OSTC4, hwOS, Subsurface) keep the GF line reconstructed from their settings and reported anchor depths, and which code is responsible when they do not. We proved in Lean 4 when endpoint ceiling checks certify a whole constant-rate ascent and built an interval-arithmetic scorer on these theorems. Each planner, built at a pinned commit on a host computer, planned 720 air profiles; observation builds logged internal state and comparison builds made one change each. dive-deco violated 372 of 720 schedules (required GF up to 0.101 above the line; schedules up to 2.30 m shallower than the ceiling); recomputing all compartments removed every violation. Subsurface violated 64 at surfacing through a 1-mbar rounding, removed by an unrounded final check. hwOS's own state left its line in 178 of 719 plans and none after an exact ceiling round-up; its displayed schedules violated in 90, then 57. In OSTC4, four 10-s exposure-table entries are mistyped; with tissues updated every second as in the firmware, 283 of 720 schedules violated on reference coefficients and 2 after correcting them; on OSTC4's own constants 407 and 225 did on rebuilt stop tables, but only 15 of 605 along the ascent the corrected planner adopted. In a US Navy trial pair with equal stop time, the deep-stop schedule had the lower certified GF (0.762 vs 0.943) and more decompression sickness (10/198 vs 3/192). A certified GF measures compliance with a model, not risk.
Related papers
- AiFlow: Construction-to-Retirement Conformance for Versioned LLM Services
- HPCAgent-Bench: A Framework for Sound Benchmarking of Code-Optimizing Agents, Harnesses, and Skills
- CodeTeam: An LLM-Powered Multi-Agent Framework for Repository-Level Code Generation
- Training Language Model Agents to Find Vulnerabilities with CTF-Dojo
- ArkEval: Benchmarking and Evaluating Automated CodeRepair for ArkTS
- TestPrism: Rethinking Test Evaluation Beyond a Single Reference