F · Algorithms

1.112026-08-29

Each algorithm is stated against the formal framework of Section 6 and is an executable contract of the computation pipeline. The algorithms are versioned through the method version vector (Section 10.2); a change to any of them increments method_ver and is logged in the audit trail.

Algorithm 1. Layered observation-state computation

  • Input: raw source records r∈Rr \in \mathcal{R}; roster I∪S\mathcal{I} \cup \mathcal{S}; scale contract S\mathcal{S}; source registry K\mathcal{K}.
  • procedure L1_ingest(R\mathcal{R})
    • for each record rr do
      • classify key (org,source,title)(\mathrm{org}, \mathrm{source}, \mathrm{title});
      • stamp arrival time; validate schema against source profile
      • assign source state: present / degraded / absent (Section 6.2)
    • return raw records with source states
  • procedure L2_derive(raw\mathrm{raw}, S\mathcal{S})
    • classify missingness per factor into P/Z/A/FP/Z/A/F (Algorithm 2)
    • apply scale contract per factor class (linear / heavy-tail / inverse / boolean)
    • aggregate factors to blocks by composition weights (Algorithm 3)
    • return derived indicator state ξ(t)\xi(t) (Definition 6.1)
  • procedure L3_publish(ξ(t)\xi(t), roster)
    • compute FAadj\mathrm{FA}^{\mathrm{adj}}, RI\mathrm{RI} envelope, Θ\Theta, Γ\Gamma, Λ\Lambda
    • apply settlement re-centering and presentation noise (Algorithms 5, 6)
    • return published layer values

Algorithm 2. Missing-value classification and two-level renormalization

  • Input: factor values vi,kv_{i,k}; block weights wkw_k, ∑kwk=1\sum_k w_k = 1; status registry M\mathcal{M}.
  • procedure Classify(ii, kk)
    • if unit not covered by the factor's definition then
      • return PP (true zero)
    • else if source state absent and no readable rank then
      • return ZZ (numerical absence)
    • else if below printed cutoff, last readable rank available then
      • return AA (leaderboard floor)
    • else if source outage / schema failure then
      • return FF (technical unavailability)
  • procedure Renormalize(ii)
    • P←{k:state(i,k)∈{P,A,Z-with-fill}}\mathcal{P} \gets \{ k : \text{state}(i,k) \in \{P, A, Z\text{-with-fill}\} \}
    • vi,k←0v_{i,k} \gets 0 for kk in state ZZ without fill, or floor value for AA
    • Vi←∑k∈Pwk v^i,k  /  ∑k∈PwkV_i \gets \sum_{k\in\mathcal{P}} w_k\, \hat v_{i,k} \;/\; \sum_{k\in\mathcal{P}} w_k
    • carry(i,k)←vi,k(tlast-valid)\mathrm{carry}(i,k) \gets v_{i,k}(t_{\text{last-valid}}) for state FF
    • register (i,k,state)(i, k, \text{state}) in M\mathcal{M} with version stamp
    • return ViV_i (projection onto present blocks, Prop. 6.4)

Algorithm 3. Fundamental-Anchor composition (V1)

  • Input: normalized blocks cap,edge,eco,com∈[0,1]\mathrm{cap}, \mathrm{edge}, \mathrm{eco}, \mathrm{com} \in [0,1]; V1 weights (Appendix B); roster.
  • procedure Compose(cap,edge,eco,com\mathrm{cap}, \mathrm{edge}, \mathrm{eco}, \mathrm{com})
    • cap′←(0.55 cap+0.05 edge)/0.60\mathrm{cap}' \gets (0.55\,\mathrm{cap} + 0.05\,\mathrm{edge}) / 0.60
    • eco′←(0.25 eco+0.15 com)/0.40\mathrm{eco}' \gets (0.25\,\mathrm{eco} + 0.15\,\mathrm{com}) / 0.40
    • FAi←100×(0.60 cap′+0.40 eco′)\mathrm{FA}_i \gets 100 \times \bigl(0.60\,\mathrm{cap}' + 0.40\,\mathrm{eco}'\bigr)
    • merge\mathrm{merge} per block from its factors by the composition map
    • return FAi\mathrm{FA}_i
  • procedure Adjust(FAi\mathrm{FA}_i, streaks, incidents)
    • Di←D_i \gets sustained-leadership value ((15)), capped at DcapD_{\mathrm{cap}}
    • Ri←R_i \gets real-harm value, capped at RcapFAiR_{\mathrm{cap}}\mathrm{FA}_i, official facts only
    • FAiadj←FAi (1+Di)−Ri\mathrm{FA}^{\mathrm{adj}}_i \gets \mathrm{FA}_i\,(1 + D_i) - R_i
    • freeze FAiadj(t0)\mathrm{FA}^{\mathrm{adj}}_i(t_0) at settlement; immutable intraday
    • return FAiadj(t0)\mathrm{FA}^{\mathrm{adj}}_i(t_0)

Algorithm 4. Real-time-influence renewal update

  • Input: event stream; residual map r(⋅)r(\cdot); half-life map T1/2(⋅)T_{1/2}(\cdot).
  • for each event ee at time tet_e do
    • rnew←Ae 2−0r_{\text{new}} \gets A_e\, 2^{-0} (full value)
    • if r(key)≤rnewr(\mathrm{key}) \le r_{\text{new}} then
      • (renewal rule)
      • void residual of the same primary key
      • insert rnewr_{\text{new}} with start tet_e
      • append to the renewal log (deterministic replay ledger)
    • else
      • keep existing pulse; log the rejected event
  • for each active pulse do
    • ρe←(now−te)/T1/2(e)\rho_e \gets (\text{now} - t_e)/T_{1/2}(e); value ←Ae 2−ρe\gets A_e\, 2^{-\rho_e}
  • RIi(t)←∑active eAe 2−(t−te)/T1/2(e)\mathrm{RI}_i(t) \gets \sum_{\text{active } e} A_e\, 2^{-(t-t_e)/T_{1/2}(e)}
  • Hi(t)←∑active e∣Ae∣ 2−(t−te)/T1/2(e)\mathrm{H}_i(t) \gets \sum_{\text{active } e} |A_e|\, 2^{-(t-t_e)/T_{1/2}(e)}
  • return RIi(t)\mathrm{RI}_i(t), Hi(t)\mathrm{H}_i(t) (Prop. 6.14)

Algorithm 5. Settlement and centering

  • Input: fresh FAiadj(t0)\mathrm{FA}^{\mathrm{adj}}_i(t_0) recomputed from settled slow data ((14)), RIi\mathrm{RI}_i, roster I\mathcal{I}.
  • t←t \gets window close (UTC 04:00–07:00, 16:00–19:00)
  • procedure Settle
    • RI‾←1∣I∣∑j∈IRIj(t)\overline{\mathrm{RI}} \gets \frac{1}{|\mathcal{I}|}\sum_{j\in\mathcal{I}}\mathrm{RI}_j(t)
    • for i∈Ii \in \mathcal{I} do
      • Θi(t)←FAiadj(t0)+kri(RIi(t)−RI‾)+BRi(t)\Theta_i(t) \gets \mathrm{FA}^{\mathrm{adj}}_i(t_0) + k_{\mathrm{ri}}\bigl(\mathrm{RI}_i(t) - \overline{\mathrm{RI}}\bigr) + \mathrm{BR}_i(t)
    • (exact conservation: ∑Θi=∑FAiadj\sum\Theta_i = \sum\mathrm{FA}^{\mathrm{adj}}_i (Prop. 6.9))
    • freeze FAiadj(t0)\mathrm{FA}^{\mathrm{adj}}_i(t_0) as the new anchor (slow anchor, not the closing line)
    • write settlement record; increment flagship_ver
    • return Θi(t)\Theta_i(t), frozen FAiadj(t0)\mathrm{FA}^{\mathrm{adj}}_i(t_0)

Algorithm 6. Presentation-layer nominal dual-value process

  • Input: actual line Θi(t)\Theta_i(t); display parameters (Table 22).
  • procedure Nominalize(Θi(t)\Theta_i(t))
    • x←0x \gets 0 (display-noise stock, hash-seeded per unit)
    • for each publish tick do
      • x←x⋅(1−2−1/15)+N(0,σ02)x \gets x\cdot (1 - 2^{-1/15}) + \mathcal{N}(0,\sigma_0^2) (discrete OU, zero mean)
      • with prob. 0.15%0.15\% per minute: jump x←x±U(3,5) σx \gets x \pm U(3,5)\,\sigma
      • x←clip(x, ±75 bps)x \gets \mathrm{clip}(x,\ \pm 75\,\mathrm{bps})
      • if inside taper window: τ\tau min to close then
        • x←x⋅(1−τ/Ntaper)x \gets x\cdot (1 - \tau/N_{\mathrm{taper}}) (force to zero at close)
      • Θ~i(t)←Θi(t)+x+N(0,σj2)\widetilde{\Theta}_i(t) \gets \Theta_i(t) + x + \mathcal{N}(0,\sigma_j^2)
    • return Θ~i(t)\widetilde{\Theta}_i(t); at close Θ~≡Θ\widetilde{\Theta} \equiv \Theta (Prop. 6.17)

Algorithm 7. Dual-track audit and replay

  • Input: production trace; replay engine; keys.
  • procedure Audit(window WW)
    • recompute all outputs from raw inputs over WW (replay path)
    • compare replay vs. production at each published tick
    • check Hi(t)≥∣RIi(t)∣\mathrm{H}_i(t) \ge |\mathrm{RI}_i(t)| over WW (Prop. 6.14)
    • check conservation ∣∑Θi−∑FAiadj∣≤ϵ|\sum\Theta_i - \sum\mathrm{FA}^{\mathrm{adj}}_i| \le \epsilon at each settlement
    • verify renewal-log determinism (re-run key events)
    • return audit verdict + exception list
  • procedure Reconcile(exception list)
    • for each exception do
      • classify: display noise / source swap / model change / operator error
      • if source-related: trigger Algorithm 8
      • emit correction record; increment decision_ver

Algorithm 8. Circuit breaker and source-swap migration

  • Input: source state; factor weights wsw_s; alert threshold.
  • procedure Monitor(k∈Kk \in \mathcal{K})
    • if health(k) below threshold for 22 consecutive windows then
      • degrade source kk: drop its observations, re-normalize over survivors
      • assert ∣v^−v^out∣≤wk/(1−wk)|\hat v - \hat v_{\mathrm{out}}| \le w_k/(1-w_k) (Prop. 6.1)
      • mark factor state FF (technical unavailability), carry forward (Section 6.2)
    • if Δk>\Delta_k > alert threshold on recovery then
      • record discrepancy; report to reconcile (Algorithm 7)
    • return circuit state; update source_ver

Algorithm 9. Dynamic membership inclusion

  • Input: universe U\mathcal{U}; observation-layer completeness cuc_u; threshold c∗c^*.
  • procedure Review(u∈Uu \in \mathcal{U})
    • compute cuc_u = fraction of required factors observed over last NN windows
    • if u∈Su \in \mathcal{S} and cu≥c∗c_u \ge c^* for 22 consecutive reviews then
      • move uu to I\mathcal{I}; apply Prop. 3.1 check
      • if a normalization extreme changes: disclose revaluation, no backcast
    • else if u∈Iu \in \mathcal{I} and cu<c∗c_u < c^* for 22 consecutive reviews then
      • move uu to S\mathcal{S}; re-run centering on the new I\mathcal{I}
    • return roster; increment roster_ver

Algorithm 10. BR-01 bridge transition

  • Input: mechanical-change gap GmechG_{\mathrm{mech}}; horizon HH; path φ(t)\varphi(t).
  • procedure Transition
    • if Gmech=0G_{\mathrm{mech}} = 0 then
      • return (no bridge; Prop. 6.19(d))
    • BR(0)←−Gmech\mathrm{BR}(0) \gets -G_{\mathrm{mech}}
    • Ipub(0)←I++BR(0)=I−+ΔfundI^{\mathrm{pub}}(0) \gets I^{+} + \mathrm{BR}(0) = I^{-} + \Delta_{\mathrm{fund}} (value preserved)
    • for t∈(0,H]t \in (0, H] do
      • BR(t)←−Gmech φ(t)\mathrm{BR}(t) \gets -G_{\mathrm{mech}}\,\varphi(t), φ(0)=1\varphi(0)=1, φ(H)=0\varphi(H)=0
      • Ipub(t)←I++BR(t)I^{\mathrm{pub}}(t) \gets I^{+} + \mathrm{BR}(t)
    • BR(t)←0\mathrm{BR}(t) \gets 0 for t>Ht > H; bridge never deposits into FA\mathrm{FA}, never enters RI\mathrm{RI}
    • return published path; increment method_ver

Algorithm 11. Weight-sensitivity analysis

  • Input: frozen V1 weights β\beta; factor uncertainty model Θunc\Theta_{\mathrm{unc}}; MM draws.
  • procedure Analyze
    • for m=1,…,Mm = 1, \dots, M do
      • βm←β⋅(1+εm)\beta_m \gets \beta \cdot (1 + \varepsilon_m), εm∼\varepsilon_m \sim bounded noise per block
      • recompute all FA\mathrm{FA}, Θ\Theta; record full board ranking πm\pi_m
      • for each adjacent pair (i,j)(i,j) do
        • rij←r_{ij} \gets smallest relative perturbation reversing the ordering (Appendix D.4)
    • report: min adjacent rijr_{ij}; distribution of rank changes; extreme-bounds band
    • return sensitivity report (Section 8.7)

Together, Algorithms 1–11 cover the full pipeline from raw observation to published value, with the verification and governance loops designed to keep the pipeline auditable. The version-vector bookkeeping (Section 10.2) tags every algorithm run, so that a state change can in principle be replayed from the recorded inputs.


Back to contents  |  ← E · Proof Corpus  |  G · FA Snapshot →

Not live trading · Not a financial transaction · No recharge feature · Not investment advice