Hazard #
Local two-child hazard algebra #
This file formalizes equations (1), (4), and (5) from
hierarchical_quantile_matching.md. The namespace contains only local
quantities for a parent with natural-valued child counts x and y.
At an empty parent the paper extends both child hazards by the parent hazard.
The policy split is immaterial there; we set it to (1 / 2, 1 / 2), which
keeps all q = N * h propagation identities valid without a separate API.
The denominator D = 2xy + a(x+y) at a nonempty parent.
Equations
- FD1D.LocalHazard.D a x y = 2 * ↑x * ↑y + a * FD1D.LocalHazard.N x y
Instances For
The left child hazard, including the paper's extension at an empty node.
Equations
- FD1D.LocalHazard.hL a h x y = if x + y = 0 then h else h * FD1D.LocalHazard.N x y * (↑y + a) / FD1D.LocalHazard.D a x y
Instances For
The right child hazard, including the paper's extension at an empty node.
Equations
- FD1D.LocalHazard.hR a h x y = if x + y = 0 then h else h * FD1D.LocalHazard.N x y * (↑x + a) / FD1D.LocalHazard.D a x y
Instances For
Parent deletion mass under the invariant q = N h.
Equations
- FD1D.LocalHazard.q h x y = FD1D.LocalHazard.N x y * h
Instances For
Left deletion mass obtained from the policy split.
Equations
- FD1D.LocalHazard.qL a h x y = FD1D.LocalHazard.q h x y * FD1D.LocalHazard.dL a x y
Instances For
Right deletion mass obtained from the policy split.
Equations
- FD1D.LocalHazard.qR a h x y = FD1D.LocalHazard.q h x y * FD1D.LocalHazard.dR a x y
Instances For
The signed child-mass imbalance b = q_L - q_R.
Equations
- FD1D.LocalHazard.b a h x y = FD1D.LocalHazard.qL a h x y - FD1D.LocalHazard.qR a h x y
Instances For
The average hazard increment in h_L = h + V + w.
Equations
- FD1D.LocalHazard.V a h x y = (FD1D.LocalHazard.hL a h x y + FD1D.LocalHazard.hR a h x y) / 2 - h
Instances For
The antisymmetric hazard increment in h_L = h + V + w.
Equations
- FD1D.LocalHazard.w a h x y = (FD1D.LocalHazard.hL a h x y - FD1D.LocalHazard.hR a h x y) / 2
Instances For
The normalized child-count imbalance rho = (x-y)/(x+y).
Equations
- FD1D.LocalHazard.rho x y = (↑x - ↑y) / FD1D.LocalHazard.N x y
Instances For
The parent discrepancy variable t = (p-q)/a.
Equations
- FD1D.LocalHazard.t a p h x y = (p - FD1D.LocalHazard.q h x y) / a
Instances For
The left child discrepancy variable.
Equations
- FD1D.LocalHazard.tL a p h x y = (p / 2 - FD1D.LocalHazard.qL a h x y) / a
Instances For
The right child discrepancy variable.
Equations
- FD1D.LocalHazard.tR a p h x y = (p / 2 - FD1D.LocalHazard.qR a h x y) / a