> ## Documentation Index
> Fetch the complete documentation index at: https://docs.amlok.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Mathematical methods and research synthesis

> TN-2026-02: assessment-time evidence, distributional assumptions, catalog algebra, domain equations, and benchmark figures.

**TN-2026-02** · [Research library](https://docs.amlok.io/research/library.md) · [Formula dictionary](https://docs.amlok.io/research/resources/metric-specifications.md)

This synthesis collects the mathematical relationships used across the research. Read each equation with its scope, supported inputs, and measurement definition. The domain papers expand the derivations and report the associated comparisons.

**Read the methods:** each equation supports a specific financial task. Follow its linked paper for the baseline and AMLOK result on that task. For a first reading, [financial benchmarks](https://docs.amlok.io/research/model-benchmarks.md) puts the direct comparisons before the mathematical detail.

## Assessment-time evidence and outcome scope

**M.1 - Information available at an assessment**

$$
\begin{aligned}\mathcal F_i(t_0)&=\sigma\!\left(\{e_m:t_{\mathrm{settle}}(e_m)\leq t_0\;\land\;t_{\mathrm{ingest}}(e_m)\leq t_0\}\right),\\Y_i^{\mathrm{fraud}}Y_{i,12m}^{\mathrm{credit}}&=0.\end{aligned}
$$

Both settlement and ingestion must precede the assessment cutoff. The second expression is the study's mutually exclusive label convention; it is not a statement that real-world distress and fraud cannot coexist. See [study cohorts](https://docs.amlok.io/research/resources/study-cohorts.md).

## Distributional and temporal assumptions

The mathematical specification describes joint financial variables and irregular event timing using the following distributional model. Sector, province, and size determine the dependence parameters; inverse marginal transforms map the latent variables to financial quantities. These are model assumptions.

**M.2 - Joint financial variables and event intensity**

$$
\begin{aligned}\mathbf u_i&\sim\mathcal C_{\mathrm{RVine}}(\Theta_{\mathrm{NAICS,Prov,Size}}),\\F_{i,d}&=Q^{-1}_{\mathrm{FPDB},d}(u_{i,d}),\qquad d\in\{1,\ldots,12\},\\\lambda_{i,g}(t)&=\mu_{i,g}S_{\mathrm{NAICS},g}(m(t))W_{\mathrm{dow}}(t)M_{\mathrm{BoC}}(t)\\&\quad+\sum_{t_k<t}\alpha_g\exp[-\beta_g(t-t_k)].\end{aligned}
$$

The intensity combines baseline activity, sector/month seasonality, day-of-week effects, a macroeconomic term, and decaying excitation from earlier events. The specification separates dependence between financial quantities from timing within an event stream.

**M.3 - Conditional credit-event hazard**

$$
\begin{aligned}h_{\mathrm{credit}}(t\mid\mathbf x_i(t))&=\frac{k}{\eta_{s,p}}\left(\frac{t}{\eta_{s,p}}\right)^{k-1}\\&\quad\times\exp\!\left[\beta_1(1.25-\mathrm{DSCR}_i(t))+\beta_2\mathrm{SVVI}_i(t)\right.\\&\qquad\left.+\beta_3\Delta r_{\mathrm{BoC}}(t)-\beta_4\mathrm{GuarCov}_i(t)\right].\end{aligned}
$$

A Weibull baseline is modified by debt-service coverage, supplier vulnerability, rate changes, and guarantor coverage. The 1.25 DSCR reference and coefficients belong to this specification, not a universal lending policy. A hazard is an instantaneous event rate, distinct from a twelve-month probability.

## Catalog algebra

**M.4 - Catalog composition**

$$
\begin{aligned}13{,}535&=24+(117+51+16)+45+327\\&\quad+(7{,}044+5{,}761+150).\end{aligned}
$$

The terms count dimensions; business-only, dual-scope, and person-only metrics; transaction groups; leaf categories; and bank, card, and cross-system attributes. Inspect all metric expressions in [TN-2026-03](https://docs.amlok.io/research/resources/metric-specifications.md) and category keys in [RS-2026-05](https://docs.amlok.io/research/resources/metric-taxonomy.md).

## Transaction meaning and payment timing

**1.1 - Category probabilities and abstention**

$$
\begin{aligned}
P(c_{L3}\mid x_j,s_j)&=P(g_{L1}\mid\mathbf h_j)P(g_{L2}\mid g_{L1},\mathbf h_j)P(c_{L3}\mid g_{L2},\mathbf h_j)\\
\widehat c_j&=\begin{cases}
\text{unknown.unclassified},&\max P(g_{L1})<\tau_1\\
\text{NULL (macro only)},&\max P(g_{L2}\mid\widehat g_{L1})<\tau_2\\
\text{NULL (group only)},&\max P(c\mid\widehat g_{L2})<\tau_3\\
\arg\max_{c\in\widehat g_{L2}}P(c\mid\widehat g_{L2}),&\text{otherwise}
\end{cases}
\end{aligned}
$$

`x_j` is a transaction, `s_j` its surface, and `h_j` its encoded representation. The thresholds control whether the model has enough confidence to publish the relevant level of detail. Choose each parent by its highest posterior within the supported preceding parent, using a stable key order to break ties. Thresholds `tau_1`, `tau_2`, and `tau_3` are explicit classifier-version inputs in `[0,1]`. Return the supported parent IDs and uncertainty status alongside a null leaf. The [complete parent/child map](https://docs.amlok.io/research/resources/metric-taxonomy.md#complete-parent-and-child-map) defines the 45 stable group IDs and preserves all 327 category keys.

Source: [RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md), equation 1.1.

Source: [RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

**1.3 - Principal, fee, and reversal linking**

$$
\begin{aligned}
P_{\mathrm{ptr}}(p\mid f)&=\operatorname{softmax}_{p\in\mathcal W_{\pm3d}(f)\cup\{\varnothing\}}
\left(\mathbf h_f^\top\mathbf W_{\mathrm{ptr}}\mathbf h_p\right)\\
\operatorname{nsf\_event\_count}(W)&=\left|\operatorname{BundledTuples}(p_{\mathrm{failed}},r_{\mathrm{rev}},f_{\mathrm{fee}})\right|
\end{aligned}
$$

The bilinear score measures whether a principal and fee belong together. `W` is the observation window. The event count is the number of bundled failures, rather than the number of ledger lines.

Source: [RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md), equation 1.3.

Source: [RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

**1.6 - Circular receipt cadence**

$$
\begin{aligned}
\theta_k&=2\pi\frac{\operatorname{DayOfMonth}(t_k)}{\operatorname{DaysInMonth}(t_k)}\\
\bar R&=\sqrt{\left(\frac1N\sum_{k=1}^{N}\cos\theta_k\right)^2+
\left(\frac1N\sum_{k=1}^{N}\sin\theta_k\right)^2}\\
\operatorname{receipt\_day\_of\_month\_stddev}&=\frac{30.4375}{2\pi}\sqrt{-2\ln\bar R}
\end{aligned}
$$

Each receipt date becomes an angle. `R-bar` measures how tightly those angles cluster. The last expression converts circular dispersion back to an equivalent number of days. Publish it only with at least three distinct supported receipt dates and `R-bar > 1e-12`; a zero resultant has unbounded dispersion and returns `NULL_UNBOUNDED`. Clip roundoff to `[0,1]` only within `1e-12`; larger violations are errors. The two-date example illustrates geometry and does not meet the publication minimum.

Source: [RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md), equation 1.6.

Source: [RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

**1.7 - Expected settlement and matching cost**

$$
\begin{aligned}
\widehat D_t^{(P\to B)}&=\sum_{\delta=0}^{5}\kappa_\delta
\left(S_{t-\delta}^{(P)}-R_{t-\delta}^{(P)}-f_{t-\delta}^{(P)}-\Delta H_{t-\delta}^{(P)}\right)\\
\min_{X_{pb}\in\{0,1\}}\quad&\sum_{p=1}^{M_p}\sum_{b=1}^{M_b}X_{pb}
\left[\lambda_t|\Delta d_{\mathrm{CA}}(t_p,t_b)-\widehat\delta|
+\lambda_a\frac{|D_b-\widehat D_p|}{\max(\widehat D_p,\varepsilon)}\right]\\
&+\psi_{\mathrm{unm}}\sum_{p=1}^{M_p}\left(1-\sum_{b=1}^{M_b}X_{pb}\right)
\end{aligned}
$$

The binary assignment satisfies

$$
\sum_b X_{pb}\le1\quad\forall p,\qquad
\sum_p X_{pb}\le1\quad\forall b,\qquad
X_{pb}=0\text{ for unsupported candidate pairs}.
$$

Payout and deposit IDs identify distinct settled batches. Split or merged settlements must first be represented as supported disjoint bundles; an original cash record can belong to at most one bundle in this assignment. Otherwise use an explicitly capacity-constrained amount-allocation model and report that separate configuration. Do not reuse a receipt to match two payouts. Require nonnegative lag weights summing to one, positive candidate expected deposits, and nonnegative penalty coefficients. Negative settlements use a separately typed debit matching problem.

`S`, `R`, `f`, and `Delta H` represent sales, refunds, fees, and reserve changes. `kappa` is the lag weight. The matching objective penalizes date mismatch, relative amount mismatch, and unmatched payouts; assignment constraints prevent duplicate matching.

Source: [RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md), equation 1.7.

Source: [RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

## Financial-event credit assessment

The architecture study groups declared risk-oriented features into 24 dimensions and allows ten selected pairwise interactions. Each evaluation fixes its feature map, training reference values, spline knots, and interaction-pair list before fitting. The separate credit scorecard in [Whitepaper 02](https://docs.amlok.io/whitepapers/02-financial-event-credit.md#credit-scorecard-configuration) has an empty interaction set and a different, explicit input mapping.

For each supported numeric feature `x_k`, use a declared direction `a_k` of +1 or -1 and a positive scale `s_k`: `u_k=clip((a_k*x_k-mu_k)/s_k, l_k, h_k)`. Reference values, scales, and clipping bounds are fitted on training data and frozen for evaluation. Incremental windows must be disjoint. A residualization that mixes features can change monotonicity; it is not implicit in this transform. Missing inputs need a declared supported route, not a fabricated neutral score. Direction constraints apply to these specified financial features; they do not imply causality for the underlying transactions.

**2.5 - Dimension health and twelve-month default risk**

$$
\begin{aligned}
\psi_d(\mathbf x)&=\sum_{k\in\mathcal D_d}g_{d,k}(u_k),\qquad
S_d(\mathbf x)=100\left(1-\sigma(\psi_d(\mathbf x))\right),\\
z(\mathbf x)&=\beta_0+\sum_{d=1}^{24}w_d\psi_d(\mathbf x)
+\sum_{(r,s)\in\mathcal I}h_{rs}(\psi_r,\psi_s),\qquad
\widehat{\mathrm{PD}}_{12m}=\sigma(z),\\
w_d&\ge0,\qquad g'_{d,k}(u)\ge0,\qquad
\frac{\partial h_{rs}}{\partial\psi_r}\ge0,\quad
\frac{\partial h_{rs}}{\partial\psi_s}\ge0,\\
\Theta^{rs}_{i+1,j}&\ge\Theta^{rs}_{i,j},\qquad
\Theta^{rs}_{i,j+1}\ge\Theta^{rs}_{i,j}.
\end{aligned}
$$

`Theta` contains lattice knot values. Coordinatewise nondecreasing knots with bilinear interpolation preserve the two interaction directions. Define centered dimensions before fitting the interaction surfaces: subtract each main function's scalar mean on the fixed training reference distribution. Center each fitted interaction by its scalar mean, and absorb the removed additive constants into the intercept. This constant centering preserves derivatives. To reparameterize an already fitted model, also shift each interaction's input coordinates and knot locations by the removed dimension constants; changing the intercept alone cannot compensate for changed interaction arguments. Do not subtract row- or column-dependent means from a constrained interaction without rechecking the total model derivatives. The displayed sufficient constraints give `partial z / partial psi_d >= 0`; a larger risk-oriented feature cannot decrease predicted risk while all other specified inputs stay fixed.

Source: [RP-2026-02](https://docs.amlok.io/whitepapers/02-financial-event-credit.md).

## Chronological circulation and supplier vulnerability

**3.3 - Capacity-constrained chronological return-path volume**

$$
\begin{aligned}
\operatorname{circular\_flow\_amount}(b,W)
&=\max_{f\ge0}\sum_{\gamma\in\mathcal C_{\mathrm{chrono}}(b,W)}f(\gamma)\\
\text{subject to}\qquad\sum_{\gamma\ni e}f(\gamma)
&\le|a_e|,\qquad e\in\mathcal E_{\mathrm{TE}}(W).
\end{aligned}
$$

`C_chrono` contains supported, time-ordered return paths that leave the assessed business and return to it without an intermediate visit to that business. `f(gamma)` is allocated path volume. Every transaction arc can contribute at most its observed amount across all paths. This path-flow formulation requires explicit eligible paths and capacities; a generic max-flow call is not by itself a specification of those paths.

If CAD 100 leaves and returns, then the same CAD 100 leaves and returns again on two later transactions, the metric can report **CAD 200 of circular turnover**. It does not assert that CAD 200 of distinct principal existed. Identifying unique principal would require a separate source-and-balance attribution model. Legitimate treasury or loan flows can form return paths, so the measure alone neither proves misconduct nor authorizes a revenue deduction. Revenue adjustments require supported overlap with amounts already recognized as revenue.

Source: [RP-2026-03](https://docs.amlok.io/whitepapers/03-entity-network-risk.md).

**3B.3 - Supplier vulnerability and lower-tail cash flow**

$$
\begin{aligned}
\operatorname{SVVI}_u(t_0)&=\sum_{v\in\mathcal N_{\mathrm{vendor}}(u,t_0)}
w_{uv}^{2}\left(1-\sigma_{\mathrm{sub}}(v,\nu_u,\nu_v)\right)
\left(1+\frac{\tau_{\mathrm{switch}}(v)}6\right)
\left(1+\gamma_c\widehat{\mathrm{PD}}_v(t_0)\right)\\
q&=Q_{0.10}^{\mathrm{conformal}}(\operatorname{NCF}_m^{\mathrm{op}}),\\
Q_{0.10}^{\mathrm{stressed}}(\operatorname{NCF}_m^{\mathrm{op}})
&=\min(q,0)+\max(q,0)
\exp\!\left(-\lambda_{\mathrm{sc}}\operatorname{SVVI}_u^{\mathrm{upper}}(t_0)\right)
\end{aligned}
$$

`sigma_sub` lies in `[0,1]`; `tau_switch` is a non-negative switching time in months, and vendor PD lies in `[0,1]`. The source sets `gamma_c=2.0` and `lambda_sc=0.65`. Use a supported non-negative upper vulnerability estimate. The stress adjustment haircuts only positive surplus: at vulnerability 1, a forecast of 100 becomes 52.20, zero stays zero, and -100 stays -100. Increasing vulnerability cannot improve any of these forecasts. This operation does not estimate additional losses in an existing deficit; a separate downside model is required for that question. Missing inputs do not imply zero vulnerability.

Source: [RP-2026-03B](https://docs.amlok.io/whitepapers/03-entity-network-risk.md#part-ii-payment-intermediaries-and-supplier-vulnerability), equation 3B.3.

## Sustainable lending capacity

**Equation 4.4a - Constrained capacity**

$$
\begin{aligned}
A^*={}&\max_{A\in[0,A_{\max}]} A\\
\text{subject to }{}&
\frac{Q^{\mathrm{stress}}_{0.10}(NCF_m^{\mathrm{op}})}
{DS_m^{\mathrm{existing}}+\psi_m(A,r(PD),T)}\geq\gamma_{\mathrm{DSCR}},\\
&\min_{w=1,\ldots,13}Q_{0.10}\bigl(\mathrm{CashBalance}_w(A)\bigr)\geq B_{\min}
\end{aligned}
$$

`A` is proposed principal; `psi` is its scheduled payment for the selected rate and term. `gamma_DSCR` is the required coverage ratio and `B_min` is the explicit cash floor. `Q_0.10` denotes the lower tenth-percentile estimate. Both constraints use the same proposed obligation. [Source: RP-2026-04, equation 4.4](https://docs.amlok.io/whitepapers/04-lending-capacity.md).

Source: [RP-2026-04](https://docs.amlok.io/whitepapers/04-lending-capacity.md).

## Comparable monitoring and escalation

**Equation 5.2 - Comparable scope and DSCR change**

$$
\begin{aligned}
S_{\mathrm{comp}}(t_0)&=\mathcal A_{\mathrm{active}}(t_0)
\cap\mathcal A_{\mathrm{active}}(t_{\mathrm{base}}),\\
\Delta\mathrm{DSCR}&=\mathrm{DSCR}(t_0;S_{\mathrm{comp}})
-\mathrm{DSCR}(t_{\mathrm{base}};S_{\mathrm{comp}}).
\end{aligned}
$$

Both assessments use the same account intersection. DSCR change is an absolute difference between ratios, rather than a percentage change. A connection disappearing changes coverage evidence; it does not establish that the underlying business revenue disappeared. [Source: RP-2026-05, equation 5.2](https://docs.amlok.io/whitepapers/05-monitoring-investigation.md).

Source: [RP-2026-05](https://docs.amlok.io/whitepapers/05-monitoring-investigation.md).

**Equation 5.3 - Calibrated evidence probability and threshold**

$$
\begin{aligned}
c(f_m)&=\sigma\left(\psi^\top v_m^{\mathrm{redacted}}\right),\\
\psi^*&=\arg\min_\psi\frac{1}{N_{\mathrm{val}}}
\sum_{m=1}^{N_{\mathrm{val}}}\left(c(f_m)-y_{\mathrm{adj},m}\right)^2,\\
\mathrm{Flag}(f_m)&\Longleftrightarrow
c(f_m)\geq\frac{C_{\mathrm{FP}}}{C_{\mathrm{FP}}+C_{\mathrm{FN}}}.
\end{aligned}
$$

`v_redacted` represents the evidence after entity-name replacement. `y_adj` is the adjudicated validation outcome. `C_FP` and `C_FN` are the stated decision costs. Raising the false-positive cost raises the probability required to flag a case. The output is an assessment signal. [Source: RP-2026-05, equation 5.3](https://docs.amlok.io/whitepapers/05-monitoring-investigation.md).

Source: [RP-2026-05](https://docs.amlok.io/whitepapers/05-monitoring-investigation.md).

## Risk-adjusted loss and return

**Equation 7.4b - One-year risk-adjusted return constraint**

$$
\begin{aligned}
\mathrm{EL}_{H,p}&=\mathrm{PD}_{H,p}\,\mathrm{LGD}_{H,p}\,\mathrm{EAD}_{H,p},\\
K_{H,p}&=\kappa_p(\mathrm{PD}_{H,p},\mathrm{LGD}_{H,p},M_p)\,\mathrm{EAD}_{H,p}>0,\\
\mathrm{RAROC}_{H,p}
&=\frac{I_{H,p}+F_{H,p}-C_{\mathrm{fund},H,p}-C_{\mathrm{op},H,p}-\mathrm{EL}_{H,p}}
{K_{H,p}}\geq\tau_H,\qquad H=1\text{ year}.
\end{aligned}
$$

Every numerator term and $K$ is in CAD over the same one-year horizon. $I$ and $F$ are contractual interest and fees before the separately modeled credit loss; principal repayments are excluded from income. Funding cost sums period-average funded balances times the period funding rate. $\kappa$ is a dimensionless, versioned economic-capital rate; its input schedule and positive bounds belong to the pricing configuration. A zero-capital case has no RAROC ratio.

Use the actual amortization schedule for term and equipment loans, projected utilization for revolving lines, and purchased-receivable cash flows for receivables finance. For revenue-based contracts, separate return from principal in each contingent payment and apply the same horizon. Do not replace these schedules with original principal times a spread. Report portfolio RAROC as total net risk-adjusted income divided by total allocated economic capital, not a mean of borrower ratios.

For a reference one-year constant-balance facility, interest CAD 8,000, fees CAD 0, funding cost CAD 4,000, operating cost CAD 1,000, PD 2%, LGD 40%, and EAD CAD 100,000 give expected loss CAD 800. With $\kappa=10\%$, capital is CAD 10,000 and RAROC is 22%. This passes a 15% reference hurdle. The separate 19.5% portfolio scorecard uses its own portfolio assumptions; it is not derived from this facility example.

Source: [RP-2026-07](https://docs.amlok.io/whitepapers/07-document-loss-models.md).

## Borrower-state updates and treatment effects

The state-space model first advances the previous state through the elapsed time. It then updates that prediction using newly observed evidence. A dependency graph connects source observations to derived quantities. Only quantities downstream of a changed observation need recomputation. The graph denominator is 13,535 potential derived value slots: 24 dimension scores + 184 metric values + 45 group aggregates + 327 category aggregates + 12,805 windowed attributes + 150 cross-system attributes. These are computed values, not static taxonomy labels or raw source records. Unsupported slots remain distinct slots in the denominator. [RP-2026-08, section 1](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).

**Equation 8.1 - State prediction, evidence update, and dependency selection**

$$
\begin{aligned}
\widehat{\mathbf s}_i(t_k^-)
&=\mathbf F(\Delta t_k)\widehat{\mathbf s}_i(t_{k-1}),\\
\widehat{\mathbf s}_i(t_k)
&=\widehat{\mathbf s}_i(t_k^-)
+\mathbf K_k\left(\mathbf y_{\Delta E_k}-\mathbf H_k\widehat{\mathbf s}_i(t_k^-)\right),\\
\mathcal V_{\mathrm{recomp}}(\Delta E_k)
&=\mathrm{Descendants}_{\mathcal G_{13535}}(\Delta E_k).
\end{aligned}
$$

$\mathbf F$ advances the state through time. The residual between new observations $\mathbf y$ and the predicted observations $\mathbf H\widehat{\mathbf s}$ changes the estimate through gain $\mathbf K$. The descendant set identifies derived value-slot IDs affected by the new evidence batch $\Delta E_k$. Count each evaluated slot once; recomputation share is the number of affected evaluated slot IDs divided by 13,535. The rounded recomputation percentages in [Whitepaper 08](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md#persistent-borrower-state) do not imply an unreported exact integer count.

Source: [RP-2026-08](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).

**Equation 8.2 - Residualized treatment effect and action comparison**

$$
\begin{aligned}
Y_i-\widehat\ell(\mathbf X_i)
&=\tau_{\mathrm{CATE}}(\mathbf X_i)
\left(W_i-\widehat e(\mathbf X_i)\right)+\varepsilon_i,\\
\widehat a_i^*
&=\arg\max_{a\in\mathcal A_{\mathrm{policy}}}
\widehat\tau_{\mathrm{netNPV},a}(\mathbf X_i).
\end{aligned}
$$

$Y_i$ is an outcome, $W_i$ is the historical action, and $\mathbf X_i$ is the pre-action evidence. The nuisance functions estimate the expected outcome and action probability. $\tau_{\mathrm{CATE}}$ is a conditional average treatment effect. The second line compares policy-eligible actions using the estimated treatment effect on net present value after incremental action cost, including the no-action option with zero incremental value. Do not subtract action cost again after including it in the outcome.

For an observational interpretation, the comparison depends on consistent outcome definitions, sufficient overlap in action assignment, and adequate control for confounding. Cross-fitting reduces estimation bias from reusing observations; it does not remove unmeasured confounding. An effect estimate for a borrower group is also not a guarantee for an individual borrower.

Source: [RP-2026-08](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).

## Private claim matching and structural learning

**Equation 9.1 - Blinded token and duplicate-claim indicator**

$$
\begin{aligned}
\tau_{a,c}
&=H_2\left(c,\left(H_1(c)^{r_a}\right)^{k_{\mathrm{HSM}}\cdot r_a^{-1}}\right)
=H_2\left(c,H_1(c)^{k_{\mathrm{HSM}}}\right),\\
\mathrm{DupPledge}(c,\Delta W)
&=\mathbb I\left(\left|\{a:(a,\tau(c))\in\mathcal S_{\Delta W}^{\mathrm{auth}}\}\right|\geq2\right).
\end{aligned}
$$

$c$ is a canonical claim, $a$ identifies a participant, and $r_a$ is a blinding factor. Removing that factor leaves a shared-key token for equivalent claims. The set $\mathcal S_{\Delta W}^{\mathrm{auth}}$ contains authenticated participant-token submissions accepted in window $\Delta W$, with participant identity bound to each submission. Count distinct participant IDs for the token, not entries in a common untagged token set. One participant submitting repeatedly counts once; two distinct authenticated participants submitting the same claim count twice. The indicator becomes one only in the second case. A match establishes shared claim evidence, not by itself a fraud conclusion.

Source: [RP-2026-09](https://docs.amlok.io/whitepapers/09-private-collaboration-transfer.md).

**Equation 9.2 - Institution-level Gaussian reference mechanism**

$$
\begin{aligned}
\mathbf u_{a,t}&=\mathbf g_{a,t}\min\left(1,\frac{C}{\|\mathbf g_{a,t}\|_2}\right),\qquad C=1,\\
\widetilde{\mathbf g}_t
&=\frac1{12}\left[\sum_a\mathbf u_{a,t}+\mathcal N(\mathbf0,20^2C^2\mathbf I)\right],\quad t=1,\ldots,10,\\
\varepsilon_{\mathrm{RDP}}(\alpha)&=10\frac{\alpha}{2(20)^2},\\
\varepsilon(\delta)&\leq\varepsilon_{\mathrm{RDP}}(34)+\frac{\ln(1/\delta)}{33}
=0.843651835\ldots,\qquad\delta=10^{-6}.
\end{aligned}
$$

Define the zero-gradient clip as zero. Neighbouring datasets differ by the presence or absence of one institution's entire data contribution across all ten rounds. Clip each institution's complete round update to norm one. The sum has add/remove sensitivity one; the fixed divisor twelve gives sensitivity $1/12$ and noise standard deviation $20/12$. Use a fixed public participant-slot count, zero-fill absent slots, and no sampling amplification. Changing an institution's data is a replace-one relation and needs a different sensitivity/accounting calculation.

This bound applies to the reference mechanism above. Utility and attack metrics use their own evaluation configurations. At Rényi order 34, each Gaussian release costs $34/800$; ten releases cost 0.425 RDP. Converting once at $\delta=10^{-6}$ gives the stated cumulative bound. Each local update uses only that institution's data and the previously released noisy model. Adaptive updates may depend on previous private releases, provided each round preserves the sensitivity bound. Any additional private cross-institution feature exchange requires separate accounting; the guarantee here covers the released noisy aggregates, not participant metadata. Stop after ten releases or account for every additional release before issuing it. Secure aggregation must preserve the stated noise against the declared collusion model; publishing an individual unclipped update would be a different mechanism. The guarantee protects one institution's participation, not automatically a borrower appearing at several institutions. An empirical membership-attack AUROC remains a separate measurement.

Source: [RP-2026-09](https://docs.amlok.io/whitepapers/09-private-collaboration-transfer.md).

## Geographic representation and collateral interpretation

**Equation 9.3 - Low-rank adaptation and representation alignment**

$$
\begin{aligned}
\mathbf W_J&=\mathbf W_{\mathrm{base}}^{\mathrm{CA}}+\mathbf B_J\mathbf A_J,\\
\min_{\gamma\in\Pi(\mu_{\mathrm{CA}},\mu_J)}
&\sum_{p,q}\gamma_{pq}\|\mathbf h_p^{\mathrm{CA}}-\mathbf h_q^J\|_2^2
+\varepsilon_{\mathrm{OT}}H(\gamma),
\qquad J\in\{\mathrm{US},\mathrm{EU}\}.
\end{aligned}
$$

The frozen base weights receive a low-rank update $\mathbf B_J\mathbf A_J$. The transport plan $\gamma$ links reference and local representations subject to their distributions. Here $H(\gamma)=\sum_{p,q}\gamma_{pq}(\log\gamma_{pq}-1)$ uses the negative-entropy convention, so adding this term encourages a smoother transport plan. $\varepsilon_{\mathrm{OT}}$ is an alignment parameter, distinct from the differential-privacy budget.

Source: [RP-2026-09](https://docs.amlok.io/whitepapers/09-private-collaboration-transfer.md).

**Equation 9.4 - Jurisdiction-dependent realizable collateral value**

$$
V_{\mathrm{real},J}
=\max\left(0,\;0.85\,\mathrm{EligibleAR}
+(1-h_0)\mathrm{Inv}_{\mathrm{owned}}
-\mathrm{PriorityStatutoryClaims}_J\right).
$$

Eligible receivables and owned inventory contribute to the borrowing base after their modeled advance rates and haircuts. The local priority-claim interpretation reduces realizable collateral value. The zero floor prevents a negative collateral contribution.

Source: [RP-2026-09](https://docs.amlok.io/whitepapers/09-private-collaboration-transfer.md).

## Adaptive detection and conditional alternatives

**Equation 10.1 - Adversarial detection objective**

$$
\begin{aligned}
\min_{\theta_D}\max_{\pi_{\mathrm{adv}}}
&\;\mathbb E_{z\sim\mathcal P_{\mathrm{fraud}},\,\widetilde X\sim\pi_{\mathrm{adv}}(\cdot\mid z)}
\left[\mathcal L_{\mathrm{Det}}(D_{\theta_D}(\widetilde X),1)
-\lambda_{\mathrm{cost}}C_{\mathrm{evade}}(z,\widetilde X)\right]\\
&+\mathbb E_{X\sim\mathcal P_{\mathrm{clean}}}
\left[\mathcal L_{\mathrm{FPR}}(D_{\theta_D}(X),0)\right].
\end{aligned}
$$

$D_{\theta_D}$ is the detector and $\pi_{\mathrm{adv}}$ proposes changed fraud examples. The evasion-cost penalty constrains the adversary's changes. The clean-example loss discourages a detector that achieves recall merely by flagging everything.

Source: [RP-2026-10](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

The paper combines GAM-24's piecewise monotone risk functions with credit-capacity and return constraints. The displayed problem is conceptual nonlinear constrained optimization: monotone functions, interactions, and nested capacity and return constraints do not by themselves define a mixed-integer linear program. Candidate changes can include adding verifiable evidence, resolving an obligation, or adding eligible collateral. Each change is conditional on the resulting facts being verified. AMLOK supplies the analysis; the institution retains its credit decision and any borrower-facing actions. [RP-2026-10, section 2.1](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

**Equation 10.2 - Minimum-effort feasible change**

$$
\begin{aligned}
\Delta\mathbf x^*
&=\arg\min_{\Delta\mathbf x\in\mathcal F_{\mathrm{act}}(\mathbf x_0)}
\mathbf c_{\mathrm{effort}}^\top|\Delta\mathbf x|,\\
\text{subject to}\quad
\widehat{\mathrm{PD}}_{24D}(\mathbf x_0+\Delta\mathbf x)
&\leq\tau_{\mathrm{PD}},\\
A_{\mathrm{CBL}}^*(\mathbf x_0+\Delta\mathbf x)
&\geq A_{\mathrm{req}},\\
\mathrm{RAROC}&\geq\tau_{\mathrm{ROE}}.
\end{aligned}
$$

$\mathcal F_{\mathrm{act}}$ contains permitted, feasible changes. The effort weights compare their costs. A solution must satisfy the configured default-risk threshold, requested capacity, and return constraint. Evaluate each proposed solution with the original risk, capacity, and return functions after verifying all changed inputs. Report solver status, bounds, the configuration version, and constraint residuals; an approximate solution is feasible only within declared financial and numerical tolerances. A MILP implementation additionally needs explicit piecewise linear encodings, binary variables, finite bounds, and approximation errors. The displayed formulation does not claim such an implementation or that an action has occurred.

Source: [RP-2026-10](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

**Equation 10.3 - Expected positive capacity gain**

$$
\begin{aligned}
\mathrm{PCG}(m_k:0\rightarrow1\mid\mathbf x_0)
=&\;\mathbb E_{x_k\sim P(\cdot\mid\mathbf x_0)}
\left[\max\left(0,
A_{\mathrm{CBL}}^*(\mathbf x_0\cup\{x_k\})
-A_{\mathrm{CBL}}^*(\mathbf x_0)\right)\right]\\
&-C_{\mathrm{connect}}(k).
\end{aligned}
$$

The model integrates over possible values of the missing evidence $x_k$. Capacity is a funding amount, not income. Convert time or monetary connection costs to this scale with an explicit capacity-equivalent conversion rule; do not subtract an unconverted fee from a claimed profit benefit. It compares the expected positive capacity gain with connection cost expressed on a compatible scale. A positive value supports requesting the evidence under this objective; it does not promise that the observed result will improve capacity.

With equally likely capacity changes of +CAD 10,000 and -CAD 10,000 and capacity-equivalent cost CAD 1,000, this score is CAD 4,000, while expected net capacity change is -CAD 1,000. For decision-theoretic value of information, instead compare expected optimal action utility before and after the observation, then subtract cost in the same utility units.

Source: [RP-2026-10](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

**Equation 10.4 - Embedded-path timing budget**

$$
\begin{aligned}
T_{\mathrm{budget}}
&=T_{\mathrm{state}}+T_{\mathrm{TE}}+T_{\mathrm{GAM+capacity}}+T_{\mathrm{policy+refresh}}\\
&=5.1+28.0+19.0+14.0\;\mathrm{ms}\\
&=66.1\;\mathrm{ms}<250\;\mathrm{ms}.
\end{aligned}
$$

The source allocates the total across four stages and separately reports an end-to-end p99 of 66.1 milliseconds. The 250-millisecond value is the experimental target. Adding stage allocations explains the budget; adding independently measured stage percentiles would not establish an end-to-end percentile.

Source: [RP-2026-10](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

## Consortium and geographic comparisons

The following native graphics expose the reported tabular network and transfer results alongside the methods. The source monograph combines these topics into Figures M.1 and M.2; each measure is displayed separately here to keep its units and exact values visible.

### Fraud detection across institutions

Compare AMLOK consortium configurations with different numbers of participating institutions.

**Chart data: Fraud detection across institutions**

Compare AMLOK consortium configurations with different numbers of participating institutions.

**Evidence:** Source-reported study results. **Evaluation conditions:** Nested K=1,2,4,8,12 institution views of a fixed reference panel. Task labels use the full authorized panel; a positive invisible in a smaller view remains a miss. Claim, borrower-window, ring, credit, and privacy-attack units are distinct. Utility scorecards and the separately specified Gaussian privacy mechanism are not the same experiment.

The table preserves the source numeric values. Fractions use a 0-1 scale (for example, 0.542 means 54.2%). Scores are not percentages or accuracy rates. Each measure appears in a separate graphic. This table includes all reported measures and comparison rows.

| Method or cohort | Duplicate-invoice recall (fraction, 0-1) | Same-day stacking recall (fraction, 0-1) | Shell-ring recall (fraction, 0-1) | Credit AUROC (score, 0-1) | Membership-inference AUC (score, 0-1) |
| - | -: | -: | -: | -: | -: |
| 1 institution | 0.412 | 0.385 | 0.765 | 0.881 | 0.5 |
| 2 institutions | 0.648 | 0.61 | 0.832 | 0.883 | 0.502 |
| 4 institutions | 0.815 | 0.794 | 0.898 | 0.885 | 0.504 |
| 8 institutions | 0.942 | 0.931 | 0.958 | 0.888 | 0.506 |
| 12 institutions | 0.974 | 0.968 | 0.981 | 0.889 | 0.507 |

**Measure definitions**

* **Duplicate-invoice recall:** Share of duplicate-invoice cases detected. Higher is better.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `01_ZK_Consortium_and_USEU`, cells `B5:B9`.
* **Same-day stacking recall:** Share of same-day borrowing-stack cases detected. Higher is better.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `01_ZK_Consortium_and_USEU`, cells `C5:C9`.
* **Shell-ring recall:** Share of the study’s shell-ring cases detected. Higher is better.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `01_ZK_Consortium_and_USEU`, cells `D5:D9`.
* **Credit AUROC:** Default-risk ranking score for the stated consortium configuration. Higher is better.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `01_ZK_Consortium_and_USEU`, cells `E5:E9`.
* **Membership-inference AUC:** Values near 0.5 indicate that this membership-inference attack performed near chance. This result is not a general privacy guarantee. Interpret in context.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `01_ZK_Consortium_and_USEU`, cells `F5:F9`.

**Sources**

* [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `01_ZK_Consortium_and_USEU`, cells `A5:G9`.
* [RP-2026-09](https://docs.amlok.io/whitepapers/09-private-collaboration-transfer.md).

### Reported US and EU transfer results

Inspect the reported results after adaptation to each jurisdiction.

**Chart data: Reported US and EU transfer results**

Inspect the reported results after adaptation to each jurisdiction.

**Evidence:** Source-reported study results. **Evaluation conditions:** Jurisdiction-specific adapter configurations. Each jurisdiction has a 5,000-case local calibration budget, separate from adapter fitting and held-out testing. Twelve-month default, duplicate-claim, stacking, and ring metrics use the distinct units defined by research-methods-v2 in the transfer paper.

The table preserves the source numeric values. Fractions use a 0-1 scale (for example, 0.542 means 54.2%). Scores are not percentages or accuracy rates. Each measure appears in a separate graphic. This table includes all reported measures and comparison rows.

| Method or cohort | Credit AUROC (score, 0-1) | Duplicate-invoice recall (fraction, 0-1) | Same-day stacking recall (fraction, 0-1) | Shell-ring recall (fraction, 0-1) |
| - | -: | -: | -: | -: |
| US adaptation | 0.871 | 0.969 | 0.961 | 0.972 |
| EU adaptation | 0.865 | 0.964 | 0.955 | 0.968 |

**Measure definitions**

* **Credit AUROC:** Reported twelve-month default-risk ranking score after jurisdiction adaptation. The 5,000-deal count describes calibration, not a stated test-set size. Higher is better.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `01_ZK_Consortium_and_USEU`, cells `E10:E11`.
* **Duplicate-invoice recall:** Share of duplicate-invoice cases detected in each reported jurisdiction study at K = 12 institutions. Higher is better.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `01_ZK_Consortium_and_USEU`, cells `B10:B11`.
* **Same-day stacking recall:** Share of same-day borrowing-stack cases detected in each reported jurisdiction study at K = 12 institutions. Higher is better.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `01_ZK_Consortium_and_USEU`, cells `C10:C11`.
* **Shell-ring recall:** Share of shell-ring cases detected in each reported jurisdiction study. Higher is better.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `01_ZK_Consortium_and_USEU`, cells `D10:D11`.

**Sources**

* [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `01_ZK_Consortium_and_USEU`, cells `A10:G11`.
* [RP-2026-09](https://docs.amlok.io/whitepapers/09-private-collaboration-transfer.md).

The selected privacy configuration uses an attack AUROC near 0.5 as an empirical attack result, not a proof of no leakage. Formal privacy accounting depends on adjacency, sampling, composition, and the release schedule. A reported jurisdiction check is not a regulatory approval. See the [institutional and transfer paper](https://docs.amlok.io/whitepapers/09-private-collaboration-transfer.md) and [complete supplement](https://docs.amlok.io/research/resources/robustness-results.md).

## Adaptive defense and conditional capacity

The source Figure M.3 compares adaptive-defense rounds and a three-stage conditional capacity example. The requested facility in that example is CAD 180,000. The changes remain conditional on verified evidence and the institution's constraints.

### Detection under adapting attacks

Compare the static detector with the hardened detector at the attack stages supplied in the research.

**Chart data: Detection under adapting attacks**

Compare the static detector with the hardened detector at the attack stages supplied in the research.

**Evidence:** Source-reported study results. **Evaluation conditions:** Selected attack stages 0, 1, 2, 3, and 5. Recall is the held-out ROC estimate at 1% empirical FPR, using tied-score blocks and interpolation. Static and adapted detectors share the stage test suite. A prospectively fixed threshold is evaluated separately for its realized FPR.

The table preserves the source numeric values. Fractions use a 0-1 scale (for example, 0.542 means 54.2%). Each measure appears in a separate graphic. This table includes all reported measures and comparison rows.

| Method or cohort | Static detector: Fraud recall (fraction, 0-1) | Hardened detector: Fraud recall (fraction, 0-1) |
| - | -: | -: |
| Round 0: baseline distribution | 0.765 | 0.765 |
| Round 1: print-scan-rescan documents | 0.682 | 0.758 |
| Round 2: multi-hop kiting | 0.594 | 0.751 |
| Round 3: conforming invoice noise | 0.531 | 0.748 |
| Round 5: full red-team suite | 0.482 | 0.745 |

**Measure definitions**

* **Fraud recall:** Share of fraud cases detected after each stated attack stage. Only reported stages are shown. Higher is better.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `02_Stackelberg_MILP_Embedded`, cells `B5:B9`.
  Source: [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `02_Stackelberg_MILP_Embedded`, cells `C5:C9`.

**Sources**

* [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md), worksheet `02_Stackelberg_MILP_Embedded`, cells `A5:D9`.
* [RP-2026-10](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md).

## Embedded assessment and portfolio scenario

The source Figure M.4 separates a four-stage timing budget from an annual portfolio scenario. Timing, risk ranking, and portfolio economics are different measurements.

**M.7 - Annual portfolio scenario, CAD 100 million book**

$$
\begin{aligned}\mathrm{NetBenefit}&=887{,}400+706{,}800+192{,}000\\&\quad+246{,}000-164{,}200\\&=\mathrm{CAD}\;1{,}868{,}000.\end{aligned}
$$

The five terms represent fraud-loss avoidance, credit-loss avoidance, renewal income, conditional recourse conversion, and costs. This equation retains the monograph's unrounded component values. The corresponding figure rounds the components to thousands; use this equation for arithmetic reconciliation.

### Portfolio economic scenario

The paper models an annual CAD 1.868 million net benefit per CAD 100 million book. The components below are scenario contributions, not a guaranteed portfolio outcome.

Five signed contributions sum to CAD 1.868 million

<table><caption>Exact scenario inputs, CAD</caption><thead><tr><th scope="col">Contribution</th><th scope="col">Annual amount</th></tr></thead><tbody /></table>

Source: [RP-2026-10, Figure 10.2B](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md); [RS-2026-07](https://docs.amlok.io/research/resources/robustness-results.md).

The portfolio calculation is conditional on the stated population, baseline losses, time horizon, and overlap treatment. It is not a promised return. See [the scenario discussion](https://docs.amlok.io/whitepapers/10-adaptive-defense-recourse.md#portfolio-economic-scenario).

## Calculation details

The equations below use the same calculation versions and domain rules as their corresponding papers. Research metric identifiers follow [research-financial-v2](https://docs.amlok.io/research/catalog.md); product API calculations retain their separately declared versions.

**1.4 - Prefix sums and stable variance**

$$
\begin{aligned}
S_{1,k}&=S_{1,k-1}+x_k,\quad \bar x_k=\bar x_{k-1}+(x_k-\bar x_{k-1})/k,\\
M_{2,k}&=M_{2,k-1}+(x_k-\bar x_{k-1})(x_k-\bar x_k),\\
n&=b-a,\quad \bar x_{(a,b]}=(b\bar x_b-a\bar x_a)/n,\\
\Delta_{ab}&=\frac{an}{b}(\bar x_a-\bar x_{(a,b]})^2,\\
\sigma_{(a,b]}&=\sqrt{\frac{M_{2,b}-M_{2,a}-\Delta_{ab}}{n-1}},\quad n\ge2.
\end{aligned}
$$

Initialize `S_1,0 = M_2,0 = mean_0 = 0`. For `a = 0`, set `Delta_ab = 0`. The displayed subtraction is the inverse of combining two centered-moment states. In floating-point arithmetic, clamp a negative residual moment to zero only when its magnitude is at most `1e-12 * max(1, abs(M_2,b), abs(M_2,a), abs(Delta_ab))`; a larger negative residual requires recomputing the interval from its observations or returning a numerical-error state. Do not silently take the square root of a materially negative value. Two supported observations are the minimum for sample SD.

The prefix sum supports window totals without rescanning every event. Welford accumulation keeps variance numerically stable. The source uses `Delta_ab` for the correction needed when subtracting prefix second moments to recover a window variance.

Source: [RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md), equation 1.4.

Source: [Equation 1.4](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

A cash-shock start requires 60 preceding consecutive covered daily balances, a positive median, and no open episode. On the first day below `max(B_floor, Med_60_pre - 2.5 * MAD_60_pre)`, freeze that median as `B_ref_k`. Keep the account scope and currency comparable throughout. Recovery is the **completion day** of five consecutive covered days at or above `0.90 * B_ref_k`; the baseline never drifts during the episode. Missing days break a recovery run. Start no overlapping episode, and do not start another on the recovery day. An open episode has `d_rec_k = infinity` internally and a null published recovery duration. Counts include episodes starting in `W`; the latest such episode defines `balance_recovery_days`. No eligible history means unsupported shock metrics, not zero shocks. Carry pre-window episode state so the first day of a requested window does not create a duplicate start.

**1.5 - Negative balances, shocks, and recovery**

$$
\begin{aligned}
\operatorname{negative\_balance\_days}(W)&=\sum_{d\in W}\mathbb I\!\left(\sum_{a\in\mathcal A}B_{a,d}<0\right)\\
\operatorname{overdraft\_days}(W)&=\sum_{d\in W}\mathbb I\!\left(\min_{a\in\mathcal A}B_{a,d}<0\right)\\
B_{\mathrm{ref},k}&=\operatorname{Med}(B_{d_{\mathrm{start},k}-60:\,d_{\mathrm{start},k}-1})>0,\\
B_{\mathrm{shock}}(d)&=\max\!\left(B_{\mathrm{floor}},\operatorname{Med}_{60\mathrm{pre}}(B)-2.5\operatorname{MAD}_{60\mathrm{pre}}(B)\right),\\
d_{\mathrm{rec},k}&=\min\{d\ge d_{\mathrm{start},k}+4:\ \forall u\in[d-4,d],\ B_u\ge0.9B_{\mathrm{ref},k}\ \land\ m_u=1\}
\end{aligned}
$$

`B_a,d` is the closing balance for account `a` on day `d`. The floor is the declared balance threshold. The recovery date is the fifth qualifying covered day. There is at most one open episode; missing days interrupt the run. Require 60 consecutive covered pre-start balances, and carry episode state across requested windows. The reference stays frozen during a prolonged shortfall. An unrecovered excursion remains open at assessment and has a null recovery duration. The [versioned domain policies](https://docs.amlok.io/research/resources/metric-specifications.md#receipt-timing-settlement-and-shock-episodes) govern counts and unsupported histories.

Source: [RP-2026-01](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md), equation 1.5.

Source: [Equation 1.5](https://docs.amlok.io/whitepapers/01-transaction-reconciliation.md).

For each completely observed interval, set its start to `T_start` and its fixed end to assessment cutoff `T=t_0`. A missing feed interval is unsupported coverage, not a period of confirmed silence. Evaluate the likelihood only over intervals with the required event coverage and declared starting history.

**2.2 - Joint objective over a fixed observation interval**

$$
\begin{aligned}
\mathcal L_{\mathrm{pretrain}}={}&\mathcal L_{\mathrm{MFM}}
-\eta_{\mathrm{TPP}}\left[
\sum_{m:T_{\mathrm{start}}<t_m\le T}
\ln\lambda_{g_m}(t_m\mid\mathcal H_{t_m^-})
-\int_{T_{\mathrm{start}}}^{T}\sum_{g\in\mathcal G}
\lambda_g(\tau\mid\mathcal H_{\tau^-})\,d\tau
\right]
+\eta_{\mathrm{TID}}\mathcal L_{\mathrm{InfoNCE}}.
\end{aligned}
$$

`g_m` is the observed event type; `G` contains all modeled event types. The event term uses the intensity of that event's type, while the survival integral uses the sum of all type intensities. Gauss-Legendre integration approximates the integral. The integral continues from the last event to `T`, including when no event occurs in the interval. At constant total intensity 0.1 per day, ten additional observed days without an event add 1.0 to the negative log-likelihood. An event-ended sampling design must declare its different endpoint instead of reusing this fixed-cutoff interpretation.

Source: [Equation 2.2](https://docs.amlok.io/whitepapers/02-financial-event-credit.md).

**2.3 - Independent income and interruption**

$$
\begin{aligned}
I_{\mathrm{pers,indep}}(W)&=I_{\mathrm{pers,ver}}(W)-\sum_{j\in\mathrm{MatchedDraws}}a_j^{(\mathrm{bus}\to\mathrm{pers})},\\
\operatorname{residual\_monthly\_income}&=N_{\mathrm{ver}}-E_{\mathrm{essential}}-\operatorname{Housing}-\operatorname{DS}_{\mathrm{pers}},\\
\operatorname{income\_interruption\_days}&=\max_{s\in\{1,\ldots,S\}}
\max\left(0,\left\lfloor t_0-\widehat t_{s,\mathrm{next}}^{\mathrm{Hawkes}}-\delta_{\mathrm{grace},s}\right\rfloor\right).
\end{aligned}
$$

Remove matched draws once, and deduct essential spending, housing, and debt payments once each. The expected next payday is fixed from the last observed payment history. `delta_grace,s` is the declared non-negative grace period for that income stream; it is zero only when the configuration specifies no grace. Five days after an expected payday with a three-day grace period gives two interruption days. Missing timing or coverage produces an unsupported metric rather than zero interruption.

For each income stream, freeze `FrozenExpectedNextDue_s` from the forecast made immediately after its last observed qualifying receipt. Subtract the explicitly configured nonnegative `GraceDays_s`; grace may be zero only when explicitly configured. Do not move the expected due date forward merely because no new payment arrives. Missing forecast or grace makes the stream unsupported. The overall interruption measure requires all included streams to be supported.

Source: [Equation 2.3](https://docs.amlok.io/whitepapers/02-financial-event-credit.md).

Connected sub-ledgers allocate intermediary payments to supported suppliers. Fees and reserve changes stay explicit when reconciling to the bank amount. Supplier shares use a common **supplier-spend denominator**, excluding fees and reserve movements from that denominator. Keep the platform relationship as a separate channel exposure.

An opaque channel may pay a known supplier or a supplier also paid through another channel. Bounds must allow those overlaps unless evidence excludes them. Let `a_v` be the resolved share for supplier `v`, and let `u_c` be each opaque channel's unresolved share. Candidate supplier allocations `x_cv` are non-negative and sum to `u_c` for each channel. Supported identity and allocation restrictions define the feasible set `X`.

**3B.2 - Flow conservation and feasible supplier concentration**

$$
\begin{aligned}
F_{u,c}^{\mathrm{bank}}(W)&=\sum_k\widetilde f_{u,v_k}(W)+\operatorname{Fees}_c(W)+\Delta\operatorname{Reserve}_c(W),\\
\mathcal X&=\left\{x_{cv}\ge0:\sum_vx_{cv}=u_c\text{ for every }c;\ \text{supported allocation restrictions}\right\},\\
H(x)&=\sum_v\left(a_v+\sum_cx_{cv}\right)^2,\\
H_{\min}&=\inf_{x\in\mathcal X}H(x),\qquad H_{\max}=\sup_{x\in\mathcal X}H(x),\\
\sum_va_v^2&\le H(x)\le\sum_va_v^2+2a_{\max}u+u^2,\qquad u=\sum_cu_c,\quad \sum_va_v+u=1.
\end{aligned}
$$

The last line gives conservative bounds when opaque flows can overlap freely, using `a_max=max_v a_v`, or zero when no suppliers are resolved. All opaque mass can belong to the largest known supplier. The lower bound is an infimum if an unlimited number of new suppliers is allowed; it need not be attainable for a finite supplier count. With a supported finite candidate set, optimize over that set for a tighter interval. If constraints are infeasible or the denominator is unsupported, publish no concentration interval.

For 50% direct spending to one supplier plus 50% opaque spending, the safe upper bound is **1.0**, attained when both pay that supplier. Two opaque channels may also share the same supplier; treating their squared channel shares as disjoint would incorrectly cap HHI at 0.5.

Source: [Equation 3B.2](https://docs.amlok.io/whitepapers/03-entity-network-risk.md).

**3B.4 - Temporal edge memory and hypergraph propagation**

$$
\begin{aligned}
\mathbf s_{uv}(t_k)&=\operatorname{GRU}\!\left(
\operatorname{MLP}_{\mathrm{msg}}\!\left(\mathbf s_{uv}(t_k^-),\Delta\tau_{uv}(t_k)-\mu_{\tau,uv}\right),
\mathbf s_{uv}(t_k^-)e^{-\beta_d(t_k-t_{k-1})}\right)\\
\mathbf H^{(3,\ell)}&=\sigma\!\left(
\mathbf D_V^{-1/2}\mathbf I_{\mathrm{hyper}}\mathbf W_h\mathbf D_e^{-1}
\mathbf I_{\mathrm{hyper}}^\top\mathbf D_V^{-1/2}
\mathbf H^{(3,\ell-1)}\boldsymbol\Theta^{(\ell)}\right)
\end{aligned}
$$

`s_uv` stores the supplier-relationship state. The message uses payment-timing deviation from its reference mean; the exponential term discounts older state. The incidence matrix `I_hyper` connects records to multi-record relationships, while the degree matrices normalize hypergraph propagation.

Source: [RP-2026-03B](https://docs.amlok.io/whitepapers/03-entity-network-risk.md#part-ii-payment-intermediaries-and-supplier-vulnerability), equation 3B.4.

Source: [Equation 3B.4](https://docs.amlok.io/whitepapers/03-entity-network-risk.md).

**Equation 4.3 - Receivables and realizable collateral**

$$
\begin{aligned}
E_r&=\operatorname{Bal}_r-\operatorname{Amount}(\operatorname{UnionExcludedSlices}_r),\\
AR_{\mathrm{eligible}}&=\sum_r\operatorname{AllowedAfterConcentration}(E_r),\\
I_{\mathrm{eligible}}&=\sum_\ell\max(0,C_\ell-U_\ell-L_\ell),\\
V_{\mathrm{realizable}}&=\max\bigl(0,0.85AR_{\mathrm{eligible}}+(1-h_0)I_{\mathrm{eligible}}\\
&\qquad -V_{\mathrm{unfulfilled,residual}}-T_{\mathrm{priority,residual}}\bigr)
\end{aligned}
$$

`C_l` is an owned lot's current carrying value after booked write-downs; `U_l` is the remaining value of wholly ineligible or expired amounts, and `L_l` is incremental supported impairment on the eligible remainder. They cannot overlap or exceed `C_l`. `h_0` is the haircut applied after eligibility and impairment. Residual unfulfilled-order and priority claims exclude any amount already removed from the AR/inventory pool. [Calculation policies](https://docs.amlok.io/research/resources/metric-specifications.md#receivables-inventory-and-debt-identities) specify the allocations and prevent double deductions. The 85% receivables factor and tax-priority deduction belong to the paper's scenario. `T_priority` represents supported overdue tax liabilities included under those assumptions. The formula does not determine the legal priority of a particular claim or set an institution's advance rate. [Source: RP-2026-04, equation 4.3 and collateral specification](https://docs.amlok.io/whitepapers/04-lending-capacity.md).

Source: [Equation 4.3](https://docs.amlok.io/whitepapers/04-lending-capacity.md).

A model trained only on funded applicants learns from a population filtered by lender policy. Selection adjustment estimates a target risk over an explicitly eligible applicant population. The method below uses missing-at-random outcome identification; it does not use an inverse Mills term or claim to solve arbitrary unobserved selection.

**Equation 7.2 - Cross-fitted augmented expected loss**

$$
\begin{aligned}
\widehat m_\theta(\mathbf v_i)
&=\widehat q^{(-k(i))}(\mathbf v_i)\ell(1,f_\theta(\mathbf x_i))
 +\bigl(1-\widehat q^{(-k(i))}(\mathbf v_i)\bigr)\ell(0,f_\theta(\mathbf x_i)),\\
\mathcal L_{\mathrm{DR}}(\theta)
&=\frac1N\sum_{i=1}^N\left[
\widehat m_\theta(\mathbf v_i)
+\frac{A_i}{\widehat\pi^{(-k(i))}(\mathbf v_i)}
\left\{\ell(Y_i,f_\theta(\mathbf x_i))-\widehat m_\theta(\mathbf v_i)\right\}
\right].
\end{aligned}
$$

$A_i$ indicates whether the credit outcome is observed; $\mathbf v_i$ contains pre-assessment selection and outcome covariates, including $\mathbf x_i$. For binary default, $\widehat q$ estimates $P(Y=1\mid\mathbf v)$ and $\widehat\pi$ estimates $P(A=1\mid\mathbf v)$. Fit both nuisance models without borrower fold $k(i)$, then predict that fold. The conditional loss $\widehat m_\theta$ changes whenever $\theta$ changes, even though the nuisance fits are fixed. For $A_i=0$, evaluate only the first term; do not access a missing $Y_i$ or multiply an undefined loss by zero.

For each fixed predictor, the augmented risk is consistent if either the observation-probability model or the conditional outcome model is correct, provided $Y\perp A\mid\mathbf v$, consistency of the reference facility, and positive overlap hold. Fit the final predictor using the cross-fitted objective and evaluate it on an untouched test set. State a strictly positive overlap bound in the run manifest; if it fails, restrict and name the target population or stop. Clipping inverse weights changes the estimator and its bias, so record that as a separate version rather than retaining an exact doubly robust claim. A lender cutoff is a selection covariate here, not automatically a valid instrument. A nonignorable selection model would require a separate joint model and identification assumptions.

Source: [Equation 7.2](https://docs.amlok.io/whitepapers/07-document-loss-models.md).

**Equation 8.3a - Importance-weighted feedback loss**

$$
\mathcal L_{\mathrm{Feedback}}(\theta)
=\sum_{i\in\mathcal R_{\mathrm{adj}}}
\frac{\ell(y_i^{\mathrm{adj}},f_\theta(\mathbf x_i))}
{P(\mathrm{Reviewed}=1\mid s_i,\mathcal E_i)}.
$$

The reviewed set is $\mathcal R_{\mathrm{adj}}$. An observation with a low probability of review receives more weight than one that was almost certain to be reviewed. The adjustment requires the review probability to be estimated or recorded and positive for the population being represented.

Source: [Equation 8.3a](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).

**Equation 8.3b - Population stability index**

$$
\begin{aligned}
B&=10,\qquad\alpha=\tfrac12,\\
\widetilde P_b&=\frac{n_{P,b}+\alpha}{n_P+B\alpha},\qquad
\widetilde Q_b=\frac{n_{Q,b}+\alpha}{n_Q+B\alpha},\\
\mathrm{PSI}(P,Q)&=\sum_{b=1}^{B}(\widetilde P_b-\widetilde Q_b)
\ln\frac{\widetilde P_b}{\widetilde Q_b},\qquad n_P,n_Q>0.
\end{aligned}
$$

Fix the ten bin boundaries from the training reference and reuse them for both distributions, including underflow and overflow in the edge bins. The counts $n_{P,b}$ and $n_{Q,b}$ sum to the observed totals $n_P$ and $n_Q$. Jeffreys smoothing adds 0.5 to every bin before normalization, so an empty bin has a finite logarithm. If either distribution has no observations, PSI is unavailable; smoothing does not invent a uniform observed distribution. The 0.10 reference threshold is an experimental monitoring choice alongside Brier calibration monitoring; distribution shift and calibration change remain different measures.

Source: [Equation 8.3b](https://docs.amlok.io/whitepapers/08-borrower-state-agents.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.