Do dive planners keep their own gradient factors? An audit of four open-source decompression codes with Lean-proved endpoint theorems
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…
- arXiv
- 2612.05016
- Authors
- Hiroki Fukui
- Categories
- cs.SE · cs.LO