Methods, proofs and sources

How Studio computes its results, how they are checked, where they stop, and whose work they build on. The app's own Methods page, opened from its header, gives the same account with the equations rendered.

The app's Methods and verification page: what Studio computes, what has been proved, limits, sources and shortcuts.
The Methods page in the app: how each result is computed, which properties are machine-checked in Lean 4, the limits of each model, the sources, and the server status and keyboard shortcuts.

How it works

An IFC file is hashed (SHA-256) and looked up in a cache in the browser. On a miss, an import worker converts it to That Open fragments and reads the exit doors, storeys and roofs; on a hit, it opens without the IFC being read. A graph worker builds the wall-aligned walkable lattice, the stairs and the cores. In the page, A* finds the route, which is then straightened; a forecast worker computes time-dependent routes, the escape-deadline map and the two-zone model; a reinforcement learning worker trains the shielded learner, or the Q-learning, against the fire. An optional server receives the graph in the background.

IFC file
  ├─ SHA-256 ─► IndexedDB cache (fragments + exit flags)
  ├─ import worker: IFC → fragments, exit doors, storeys, roofs
  ├─ viewer: fragments, floor, stair, door and wall geometry
  ├─ graph worker: wall-aligned lattice, stairs, cores
  ├─ page: A* + straightening, alternatives, fire spread
  ├─ forecast worker: time-dependent routes, deadlines, zones
  ├─ RL worker: the shielded learner or Q-learning
  └─ optional server: TGraph routes, Navigation cross-check
What runs where
In your browserOn the server (optional)
Opening and caching IFC filesTopologicPy TGraph route engine and its k-shortest routes
Building the walkable graphNavigation cross-check (the IFC file is uploaded for this)
Routes, straightening and alternative routesThe Topology JSON viewer for TopologicPy files
Fire spread, rerouting and the forecast
The optional Flamescapes solver (WebGPU on your GPU where offered, else one CPU core)
Sprinklers, extinguishers, the code check and the performance check
Reinforcement learning
People leaving, the optional egress animation (worked out once, then moved on your GPU by a shader)
The slime mould and its readings (in a worker)

The server is a FastAPI service around TopologicPy. When it is connected, the walkable graph (points and links, not the model) is uploaded in the background so the TopologicPy features can use it. On its free plan it sleeps after about 15 idle minutes, and the first request after that takes 30 to 50 s; everything in the browser keeps working while it wakes, or if it is never reached.

What is verified

What is proved in Lean

38 Lean 4 modules held 1,569 theorems and lemmas at the full build of 2026-11-08, with no sorry and no warnings; every axiom print lists only Lean's standard axioms. Three modules were added since (Physarum, Sixteen and Transport, 43 results), for 41 modules and 1,612 theorems and lemmas (counted 2026-11-24); the three were not part of that full build. Each module's header maps its theorems to the equation or the function they cover and lists what they leave out. The proofs' README gives every module, what it proves, what it does not cover, and where it shows in the app.

The Lean modules, by what they cover
TopicModulesAmong what is proved
The heat step, shaping and the heuristicTemperature, Shaping, HeuristicThe capped heat step cannot overshoot; shaping with zero terminal potential cannot reorder outcomes; the straight-line heuristic is consistent.
Fire and egress equationsDim, FireDynamics, Tenability, GraphNumericsThe equations of the methods review, each checked against a source first: units, monotonicity and inverses of t-squared fires, plumes, ceiling jets, flashover, the two-zone model, FED, ASET and RSET; and the diffusion numerics.
Routes and geometryAStar, Straighten, Segments, Lattice, FramesA* returns a least-cost route; a straightened route is never longer; the segment test; the lattice's distance bounds; the IFC-to-viewer turn is a proper rotation.
Routing while the fire changesYen, TimeDependent, MinDoseYen's routes are the k shortest; time-dependent Dijkstra gives the earliest arrival; backward induction gives the least dose.
Learning, fronts, rounding and the forecastQLearning, Eikonal, FloatError, Forecast, DeadlineValue iteration converges; the forecast's coarsening is conservative; the deadline is the least solution of its recursion.
Surrogates, zones and coresSurrogate, Zone, CoresThe two-zone model's monotonicity properties; walking-line lengths; the closing margins.
The fire solverFireX, Flamescapes, FlamescapesPort, DuctMixingEvery equation of both papers' transcriptions as a definition with its units; the port's numerical schemes; the duct mixing.
The learned escapeSafeEscapeThe shield keeps an escape and its route is the earliest safe escape.
Sprinklers and the performance checkSprinklers, Performance, DoorQueue, PreMovementThe layout, the link and Evans's cap; the check's soundness, door queues and pre-movement.
SuppressionSuppressionWater and energy balances of the spray, steam dilution, cooling and the cap.
Sprinkler activation (2026-11-08)SprinklerActivationA lower walls' coefficient leaves the gas at least as hot and never opens a head later; Alpert's excess never rises with distance; a head's distance from its own position errs by at most half a cell's diagonal; with the speed free, more heat can open a head later (a counterexample).
The slime mould (2026-11-11)Physarum23 results on Jones's agents: the trail's spreading keeps its total less the fading, never makes it negative or larger than its largest value, and with absorbing walls never adds to it; the turn keeps the heading when ahead is strictly strongest, else turns to the stronger side, left on a tie; moving never puts two agents on one place or one on a wall.
Second model, obstructions, extinguishers and wettingFederation, Obstructions, Extinguishers, WettingThe second model's frame, the obstruction rules, the extinguisher walk and count rules, and the wetting step's balances.

What the proofs found

Formalising found errors as well as confirming claims. Among them:

Still outside the proofs: heaps, route reconstruction and the termination of the search loops, and floating point beyond FloatError.lean.

Limits to keep in mind

Sources

Fire, smoke and egress

The checks

Suppression

NFPA 13, NFPA 10, Evans (1993), Vettori (1998, 2003), UL/NFPRF (1998), Bittern (2004) and Rasbash (1986); the list with DOIs is on the Fire suppression page.

Models and data

The full source list for the methods is on the app's Methods page.

Credits and licences

Project licence: see the original version's licence section.

Further reading