Function reconcile
pub fn reconcile(
predicted: &PredictedPnl,
explained: &ExplainReport,
) -> ReconciliationExpand description
Aligns a predicted explain with a ladder explain over the same move, and decomposes each leg’s difference. A leg moves a set of groups — one axis, or for the final leg every axis the ladder did not take plus the inputs on no axis; its own gamma is those groups’ own terms and the cross terms among them, its cross gamma the cross terms between them and every group an earlier leg moved, and its residual the rest. Each second-order term lands on exactly one leg, so the columns sum to the prediction’s terms.