Manuscript Offprint
arXiv:2611.07751Adjustment-Anchor Dependence in Formulaic Alpha Languages: A Certified Grammar and a Re-Anchoring Audit
Zhengkai Tu, Xinyue Xiang, and Jimmy Huang
Abstract—Several public scripts for formulaic alpha mining store prices adjusted to the snapshot's last day, so a past day's stored price changes with every later split or dividend and formulas that do not cancel the adjustment factor depend on future corporate actions. We formalise a change of adjustment anchor as a per-stock group action and give a two-sorted type system that soundly certifies anchor invariance from a formula's syntax, under a declared field-adjustment contract and idealised operator semantics; its second sort admits log-returns, and a linear-time checker plugs into any miner. In a re-anchoring audit on Chinese A-shares, pools that five published methods mined in our benchmark pipeline score a mean information coefficient (IC) 0.005 higher on the stored representation than on a cutoff-anchored one, about 14% of their IC. Certified pools move by 0.001 or less, and pools mined on past-anchored data stay sensitive. On the Chinese development folds, certification shows no detectable predictive cost or gain at the design's resolution, about 0.017 IC across cells on pool ICs of 0.03–0.04. We also trace an erroneous index-membership entry to public Qlib data snapshots and show that re-mining exposes the effect of such data defects, which re-evaluating fixed pools misses.
Index Terms—Formulaic alpha mining, symbolic regression, type systems, invariance, look-ahead bias, data representation, data quality, reproducibility, GFlowNet, frozen evaluation protocols.
1 INTRODUCTION
Adjusted prices are raw prices multiplied by a cumulative split-and-dividend factor. Several public collection scripts for formulaic alpha mining normalise that factor at the last day of the snapshot. The BaoStock script released with AlphaGen [1], and redistributed with AlphaForge and AlphaSAGE [2], [3], does exactly this (Section 55; items numbered with S are in the Supplementary Material). The close it stores for a day in 2015 therefore changes every time the snapshot is refreshed after a later split or dividend (Fig. 1). A ratio of two prices of the same stock is unaffected. A bare price, a power of a price or a cross-sectional rank of price levels is affected, and a factor built from them depends on corporate actions that had not happened on the day it is evaluated. Formulaic alpha miners search over exactly such expressions: they generate formulas over open, high, low, close, volume and VWAP, score them against forward returns, and keep a pool of weakly correlated factors for a combiner. The scripts adjust every field consistently. The question is which formulas computed on their output depend on the anchor.
Three things have to hold before a factor value can be trusted. The stored fields must be adjusted the way the provider declares, which we call the field contract and check on the values. The formula must not depend on the anchor, which a symbolic certificate establishes under idealised operator semantics. And the executed code must behave like the formula, which we record as a numerical validation status

Stored value on day t
| p | ≠ | p/2 | × not invariant | |
|---|---|---|---|---|
| p/q | = | p/q | ✓ invariant |
Fig. 1. The anchor problem under end-anchored adjustment. The same raw history of stock i is stored twice, anchored at before a 2-for-1 split and at after it; the anchor group action with maps one snapshot onto the other. The stored close on day t is p in one and p/2 in the other, so a bare price depends on a corporate action that had not yet happened on day t. The ratio is identical in both.
after re-anchoring. Our own pipeline once broke the contract (Section 6.1), and fixing the data does not settle the second point: pools mined on data anchored in the past still change when the anchor moves (Section 7.1).
A miner adds a further exposure, because it selects its output by scoring the discovery data. A mislisted index ticker in public Qlib data snapshots, touching 0.1% of the discovery stock-days, changed the pools our miner returned, and re-evaluating the fixed pools did not show it (Section 7.5). Data problems compound downstream in other pipelines in the
Z. Tu is with The Chinese University of Hong Kong, Hong Kong SAR, China.
X. Xiang is with the University of Michigan, Ann Arbor, MI, USA.
J. Huang is with York University, Toronto, ON, Canada. Corresponding author: J. Huang (jhuang@yorku.ca).
same way [4], [5].
We ask three questions. Can a composable certificate of invariance to the anchor be built from a formula's syntax (RQ1)? What does enforcing it cost a miner (RQ2)? How far does a change in the discovery data travel into the pool a miner returns, compared with its effect on evaluating a pool already found (RQ3)? The constraint removes formulas, some of which carry signal through price levels, so RQ2 measures what the guarantee costs.
We reduce immunity to later corporate actions to invariance under a per-stock group action that divides every price of a stock by a constant and multiplies its volume by it. A two-sorted type system certifies that invariance from the syntax, soundly but not completely (Section 4). Its additive sort records the shift into which a logarithm turns the scale, so it admits log-returns, which exponent bookkeeping alone rejects. We attach the checker to a GFlowNet miner and to three other generators and measure its cost on Chinese A-shares under frozen stage-level protocols (Sections 6 and 7); the S&P 500 serves mainly as a second provider for the audit.
-
A re-anchoring audit. Pools that five published methods (AlphaGen, AlphaSAGE, AlphaForge, AlphaQCM and genetic programming) mined in our earlier benchmark pipeline score about 14% higher IC on the stored end-anchored representation than on a cutoff-anchored one, while certified pools barely move. Pools mined on past-anchored data stay sensitive to the anchor (Section 7.1).
-
Re-mining as a data-quality audit. A mislisted index in public Qlib snapshots, and injected defects that mimic it, change re-mined pools far more than re-evaluating fixed pools reveals, and about two to three times more than a matched perturbation (Section 7.5).
-
Predictive cost below the design's resolution. On 80 clean units, certification has no detectable effect on predictive accuracy at a resolution of about 0.017 IC over cells (Section 7.2); results on later windows, the S&P 500 and other generators are mixed (Section 7.4).
2 RELATED WORK
Look-ahead bias by construction. Practitioners re-anchor the series at its first date [6] or adjust past bars at run time [7]. The closest formal work is Fonseca's type-and-effect system [8], which verifies look-ahead freedom as temporal non-interference: a decision at epoch t may consume only values whose declared availability time is at most t. The stamps are declared at ingestion and trusted. The close stored
under a day in 2015 therefore passes the check although it is a function of later splits and dividends, and stamping it correctly requires a history of vintages that the snapshot does not keep. Our certificate needs no availability history. A bias taxonomy for point-in-time backtesting [9] lists price-data forward leakage without saying which computations inherit it; a one-switch leakage benchmark [10] and constrained agent pipelines [11] do not address price adjustment. Backtest overfitting [12], [13] and the rewriting of database history [14] motivate point-in-time data and frozen protocols. Our work adds a model of the anchor and treats the search as a channel through which data defects reach the output.
Data fixes and the certificate. Anchoring at the listing date (backward adjustment, hfq, AlphaGen's current default) or keeping a point-in-time database of vintages removes the future dependence of a stored snapshot. The certificate complements both in three situations. An existing end-anchored snapshot can be re-anchored and its fixed pools re-evaluated directly, but whether the search would have returned the same pools takes re-mining (Section 7.5). A provider whose convention is undocumented needs a value check and a formula check together (Section 6.1). Where each expression must be audited on its own, the certificate identifies the formulas that cannot depend on the anchor, whereas a pool mined on past-anchored data stays tied to where the data begin (Section 7.1). Point-in-time databases preserve historical data availability; the certificate establishes formula-level invariance to the adjustment anchor.
Data validation. Deequ [15] and TFX Data Validation [16] check declarative constraints on the values of a dataset, as our field contract does (Section 6.1). The certificate answers a complementary question, whether a formula on data that pass these checks depends on the anchor. Section 7.5 measures what a defect missed by such checks costs a miner; our range test excluded index tickers and so missed the mislisted index.
Typed expression search. In symbolic regression, typing enforces physical units. Dimensionally consistent genetic programming goes back to Keijzer and Babovic [17], Φ-SO [18] masks unit-inconsistent tokens during reinforcement learning, and unit-aware genetic programming costs little accuracy [19]. Kennedy's dimension types [20] prove by relational parametricity that well-typed programs are invariant under changes of units. Atkey, Johann and Kennedy [21] generalise this to types indexed by algebraic structures, including groups of scalings and translations, and derive invariance theorems from parametricity. Our two sorts specialise that framework to financial data, one scaling per stock with the translation it induces under a logarithm. On top of the specialisation we contribute the model that links the adjustment anchor to look-ahead (Proposition 1) and the root rule that turns the bookkeeping into a certificate checkable in linear time. We also add the data contract and checks that make it hold on a real provider, and its use as a search constraint inside miners. Dimension types accept any unit-consistent program, whereas our root rule demands the identity type. SymLang [22] types grammar nonterminals with unit exponents, parity and physical invariance classes. In alpha mining, AlphaCFG [23] restricts the search with a context-free grammar without typing units, and Alpha [24], the closest typed prior work, keeps two categories (currency for prices, unit for volume) and forbids addition across them. It has no exponent bookkeeping or root constraint and states no invariance property; our reconstruction of its rules is a control arm (Section 4.4). Our multiplicative sort is the exponent-vector algebra with one generator, and the additive sort types the logarithm of a scaled quantity by the shift it acquires, whereas unit-typed systems without translations admit the logarithm only of a dimensionless argument. The root rule turns exponent bookkeeping into a certificate of invariance under a stated group action (Table 1). Market microstructure invariance [25] concerns scaling laws of markets, Villar et al. [26] canonicalise to dimensionless features, and generalisation results for compact groups [27] do not apply, as is not compact.
Platform and evaluation of mined factors. AlphaGen [1] (proximal policy optimisation (PPO) over reverse-Polish tokens), AlphaForge [2] (a daily re-fitted linear combiner), AlphaQCM [28] (distributional reinforcement learning) and AlphaSAGE [3] (a GFlowNet [29] over a relational-graph encoder [30]) form our platform. GFN-SR [31] applies GFlowNets to symbolic regression. Our miner is AlphaSAGE's generator with AlphaForge's combiner, and the type checker is the only change. FactorBench [32, Section 4.3] reports negative residual IC for these miners over five equity markets despite positive raw IC. A third-party re-run puts AlphaSAGE at a CSI300 IC of 0.033 with a seed standard deviation of 0.016 [33], several times what the original papers report. Our evaluation protocol (Section 6) is designed around this noise.
3 PRELIMINARIES
3.1 Formulaic Alphas and the Search
For readers outside finance, a factor is a formula that scores every stock every day. Its IC is the cross-sectional Pearson correlation between those scores and the next 20-day return, averaged over days. A pool is a set of factors a miner has kept, and a combiner turns a pool into one score per stock and day. Let be a stock universe and the stored fields open, high, low, close, vwap and volume through trading day . A formulaic alpha is an expression tree over the fields, numeric constants , window lengths and the 36 operators listed in Table 2. Evaluated on day , it yields a cross-sectional signal . Expressions are written in reverse Polish notation with at most 20 tokens. A pool holds at most expressions in order.
The miner (Section 5) samples token sequences from a GFlowNet policy and scores each completed expression by the absolute mean daily Pearson IC on the discovery window. An expression is admitted to the pool if its absolute IC exceeds a floor and its maximal absolute correlation with the pool members is at most 0.3. Prediction uses the frozen pool through a combiner that is re-fitted daily on realised labels (Section 6.3).
3.2 Adjusted Prices and the Anchor Convention
Vendors deliver raw prices and a cumulative adjustment factor. In the Chinese provider used here, the stored adjusted price is with , where A is
the cumulative split-and-dividend factor and is the last day of the snapshot. Volume is stored as and VWAP as . We call this declared treatment of each field the field contract. Prices are end-anchored: depends on corporate actions in .
BaoStock's forward adjustment (qfq), rescaled as in the scripts of Section 1, is end-anchored; backward adjustment (hfq), AlphaGen's current default, is anchored at the listing date, and Qlib's U.S. bundle at each stock's first valid day (Sections S5 and 7.1).
Changing the anchor, or refreshing the snapshot, multiplies all prices of stock i by a constant and all volumes by , where depends on the corporate actions between the two anchors (Fig. 1).
Definition 1 (anchor group action). For , let act on the field space by for every price field (open, high, low, close, vwap) and by for volume, on every day. The action is constant in time and varies across stocks. An expression is anchor-invariant if pointwise for all on the domain of .
The group describes how the data are built. The convention here scales volume for cash dividends exactly as for splits. A provider that adjusts volume for splits only has a different field contract, under which volume is not of type , so a user should check the convention before relying on that type. Under the split-only convention, running the checker for the split and the dividend scaling and requiring both to accept (Section 4.2) keeps 96–97% of the factors in the certified pools certified; the rest multiply a price by volume (Section S16.1). Price times volume is invariant under the convention here; bare prices, bare volume and powers of a price are not.
Proposition 1 (sufficient condition for immunity to the anchor). Let the provider be end-anchored and honour the field contract. Consider two histories and whose raw data and corporate actions are identical up to and including day and differ only after . Then the stored fields through satisfy with . (i) If for this induced , then the stored value differs between two histories that are identical through , so is not determined by the information available at . (ii) If is anchor-invariant, then is the same on both histories for every such pair.
We call the composed guarantee, field contract plus root type l, conditional anchor non-interference: conditional on the contract, and restricted to the channel through the anchor.
Proof. Because is common to both histories, , and likewise , for every day up to . Both statements follow from Definition 1.
Invariance is sufficient, not necessary, and it addresses the channel through the anchor. A field that breaks the contract, a mis-dated input and a label that looks ahead are separate routes. Whether a non-invariant expression's dependence on later events carries signal about future returns is an empirical question (Section 7.1).
TABLE 1 Closest prior work and what this paper adds on dependence on the adjustment anchor.
| Line of work | What it provides | What it leaves open here | What this paper adds |
|---|---|---|---|
| Re-anchoring remedies [6], [7] | Re-anchor the data at the first date, or adjust bars at run time | Change the data; say nothing about formulas on an existing end-anchored snapshot | Certifies from the syntax which formulas the anchor cannot affect |
| Look-ahead type system [8] | Look-ahead freedom from declared availability stamps | An end-anchored value is stamped wrongly without the vintage history | No availability history; immunity reduces to invariance (Proposition 1) |
| Unit-typed regression, dimension and algebraically indexed types [17]–[21] | Unit exponents; invariance from parametricity (Kennedy; Atkey et al.) | No model of the adjustment anchor; any type at the root; no link to data contracts or search | Additive sort for log-returns; root type I required; soundness, equivariance (Theorems 1, 2), precision of the root rule (Proposition 2) |
| Typed formula search [22]–[24] | Two categories (Alpha); a grammar (AlphaCFG); physical symmetries (SymLang) | No exponents or root rule; no invariance statement or ablation | Exponent and shift typing with guarantees; Alpha-style control arm (Section 4.4); four miners |
4 A CERTIFIED ADJUSTMENT-INVARIANT GRAMMAR
4.1 Two Sorts
We assign each sub-expression a type that describes how its value transforms under the anchor group action of Definition 1. There are two sorts. Under the multiplicative sort , with scale exponent , the value transforms as . Under the additive sort , with log-shift coefficient , it transforms as . The types and coincide and denote invariance, written l. Price fields have type , volume has type , and constants and window lengths have type l. Table 2 gives the typing rules. The judgement either succeeds or fails with a reason, and is certified if and only if (derivations drawn as trees: Fig. S11). We use three terms with distinct meanings. Certified is this syntactic judgement, invariant is the semantic property of Definition 1, and numerically invariant is the outcome of a finite re-anchoring test on executed float32 code (Section 7.1).
An invariant operand of a binary operator is read as or to match the other operand, so a constant added to a price is rejected and a constant added to a log-price is a shifted log-price (Table S1). The additive sort separates this system from exponent bookkeeping. log close has type and is rejected at the root, whereas TsDelta(log close, 10), log close – log open and TsStd(log close, 20) are certified. A derivation reads bottom up. In Div(TsDelta(log close, 10), TsStd(log volume, 20)), close : gives log close : , and TsDelta removes the shift, giving l. Likewise volume : gives log volume : , which TsStd maps to l, and the quotient of two invariant operands is l, so the expression is certified. Rank(close) fails at its root, because Rank accepts only l. In the certified pools of Section 7.2, 4.0% of the factors (44 unique expressions, each a shift-free statistic of a log-price or log-volume) are certified only by the two-sorted system, and 9.4% under the typed action mask. These counts measure what the additive sort adds to the certifiable language; arm S tests its effect on predictive performance (Section 7.3).
4.2 Theorems
The following results concern the algebraic semantics of the operators without implementation-specific absolute numerical guards, which we call the idealised operator semantics. Concretely, Greater and Less are pointwise maximum and minimum, Log is defined on positive arguments, a division
TABLE 2 Typing rules of the two-sorted checker (summary; complete rule set: Table S1). "M(s) only" means that an input is rejected.
| Operator | Input type(s) | Output |
|---|---|---|
| price field / volume / constant | – | M(-1) / M(+1) / l |
| Abs, Inv, Sign | M(s) only | M(s), M(-s), l |
| Log | M(s) only | A(s) |
| Rank, SLog1p | l only | l |
| Add, Sub, Greater, Less | l, l | l |
| Add, Sub, Greater, Less | M(s), M(r) | M(s) iff , else rejected |
| Add, Sub | A(a), A(b) | A(a ± b) |
| Greater, Less | A(a), A(b) | A(a) iff , else rejected |
| Add, Sub, Greater, Less | M(s ≠ 0), A(a ≠ 0) | rejected |
| Mul | M(s), M(r) | M(s + r) |
| Div | M(s), M(r) | M(s - r) |
| Mul | A(a), constant | A(aq) |
| Div | A(a), constant | A(a/q) |
| Pow | M(s), constant | M(sq); non-constant exponent only if both l |
| Ref, TsMean, TsMax, TsMin, TsMed, TsWMA, TsEMA | ||
| TsSum (window w) | M(s) / A(a) | M(s) / A(aw) |
| TsStd, TsMad, TsMaxDiff, TsMinDiff, TsMinMaxDiff, TsDelta | M(s) / A(a) | M(s) / l |
| TsVar | M(s) / A(a) | M(2s) / l |
| TsSkew, TsKurt, TsRank | any | l |
| TsIr, TsDiv, TsPctChange | M(s) only | l |
| TsCov | M(s) or A, M(r) or A | M(s' + r'), s' = s for M(s) and 0 for A |
| TsCorr | any, any | l |
on non-zero divisors, Pow where the power is real, and a statistic that divides by a window's standard deviation on windows with non-zero variance. Elsewhere the value is non-finite, and non-finite values propagate (Section S1). We also assume fixed, value-independent rolling weights (TsWMA and TsEMA normalise theirs), identical handling of missing values on both sides of the group action, and full windows, so that incomplete windows lie outside the domain of . One excluded guard is the fixed variance floor of the implemented TsCorr. It replaces the normalisation by 1 when a window's sum of squared deviations falls below , so scaling the prices can turn a correlation into an unnormalised covariance (Section 7.1; counterexample: Section S16.4).
Theorem 1 (soundness). If , then for every and every in the domain of , , and the sets of non-finite outputs coincide.
Theorem 2 (equivariance). If , then . If , then .
Theorem 2 describes how every typable expression transforms, and Theorem 1 is its case or , stated first because it is the certificate. Both are proved by structural induction on , rule by rule (full case-by-case proof: Section S1). A typical case is TsStd. On a window ending at , every value of an operand of type is multiplied by and every value of type is shifted by . The standard deviation scales with the first map and ignores the second, so TsStd maps to and to , and a window has zero variance before the action if and only if it has zero variance after it. Each rule is elementary algebra. The type system makes the algebra compose through every operator, including those where the exponent changes (Pow, TsVar, TsSum on the additive sort) and those where the obvious extension of unit typing fails. A system that treats the logarithm of a scaled quantity as dimensionless would certify Rank(log close) and TsIr(log close, 20), yet a per-stock shift reorders the stocks in the first and changes the second, whose numerator shifts while its denominator does not. The checker passes 43 unit tests (Section S1). The rules use only per-entity positive scalings of the fields, so independent per-entity factors give -graded sorts with the same proofs. For providers that adjust volume for splits only, we instantiate the checker separately for the split and the cash-dividend scaling and require both to accept, which certifies invariance under their joint action (Sections 3.2 and S16.1).
4.3 Incompleteness
Among typable expressions, the root rule loses only expressions with trivial values. This is a statement about the root rule; completeness of the whole language is a separate matter, discussed below.
Proposition 2 (precision of the root rule). Under the idealised operator semantics, let and fix an input . If with , then for every and every at which is finite if and only if is finite at no . If with , the same holds if and only if at every at which is finite.
Proof. and are finite at the same (Section S1), and there Theorem 2 gives or . Any with makes the first non-zero, and the second non-zero unless ; under the stated conditions both vanish wherever is finite. If is finite nowhere, both conditions hold vacuously.
The statement holds per input and hence for invariance on all inputs.
Remark 1 (expressiveness). The expressions certified by the single-sort system (the M rules alone, with Log admitted only on l) form a strict subset of those certified by the two-sorted system: a single-sort derivation is a two-sorted derivation without A, and TsDelta(log close, 10) is certified only by the latter.
The inclusion concerns the syntactic languages the two checkers accept, without algebraic rewriting. By Proposition 2, an invariant expression that the checker rejects is either untypable at an internal node or typable with a trivial value, such as Sub(close, close) of type M(-1).
The system is a sufficient condition, so a rejected expression may still be invariant. A non-affine cancellation such as the expanded polynomial of is untypable although the whole cancels the shift. A degenerate expression whose sub-expression is constant or saturated on the data range is invariant on that panel only (81 of the 2,000 arm-A factors of Section 7.2, Section S16.1), and an unknown operator is rejected.
Of 1,709 unique expressions in 40 earlier unrestricted pools, a single-sort system certifies 22.1%, the two-sorted system 23.1% and the Alpha -style coarse typing 88.3% (Section S1).
4.4 A Coarse Control
To separate invariance from grammar pruning, we reconstruct the Alpha rule set [24] from the examples in its paper, as its full rules are not published (Section S16.1). Price fields are currency and volume is unit, addition and comparison require equal categories, and the rules have no exponent bookkeeping or root constraint. It accepts 88.3% of the unique expressions above, provides no guarantee of anchor invariance, and is the coarse-typed control (arm B).
5 CERTIFIED SEARCH
The type checker of Section 4 can enter the miner after an expression is complete, as a rejection guard, or during construction, as a typed action mask (overview: Fig. S12).
5.1 Generator
We use the GFlowNet generator of AlphaSAGE [3] unchanged. Its forward policy builds an expression of at most 20 tokens by choosing the next token or termination, and it is trained for 10,000 episodes with trajectory balance [34] and an entropy regulariser. The reward is the pool-admission score (absolute mean daily Pearson IC on the discovery window) plus linearly decaying novelty and structure-consistency terms. Invalid terminal states get a floor reward (state encoding and optimiser: Section S16.2).
5.2 Rejection Guard (Arm C)
The guard places the checker between completion and reward. A completed expression that is not certified is rejected before evaluation and receives the floor reward, like a syntactically invalid one. The guard is independent of the search method and attaches to any miner. Checking is linear in the size of the expression (6 ms for the 2,000 pool factors of arm A on one laptop core); the guard's real cost is the trajectories it rejects (Section S10).
5.3 Typed Action Mask (Arm D)
The mask moves the checker into the environment, where the generator already masks syntactically invalid tokens. Each applicable operator token is typed on the top of the operand stack and masked if typing fails. Termination is masked unless the stack holds one expression of type l; at the length limit it stays available, and the guard remains as a safety net. The mask costs per candidate token, and because the rules are compositional, mask plus guard accepts exactly the language of the guard alone, so the two differ only in how the policy reaches it (Sections S10 and S16.2).
6 EVALUATION PROTOCOL
6.1 Data and the Corrected Provider
We use daily open, high, low, close, volume and VWAP of the CSI300 and CSI500 constituents in Qlib format [35], from 2010-01-04 to 2026-08-21 (1,730 stocks in the union universe). The CSI500 membership file is the one in the v2 and v3 data snapshots distributed through Qlib's download utility, with the end dates of open spells extended by the AlphaGen collection script. It lists the CSI500 index itself, SH000905, as a constituent from 2007-01-15 to 2012-06-25 (Sections 7.5 and S5).
The inconsistent build. An earlier build of ours stored adjusted open, high, low and close but unadjusted VWAP and volume, which breaks the field contract of Section 3.2. VWAP/close, a certified ratio, then carried the inverse of the cumulative adjustment factor and predicted 20-day CSI300 returns with an IC of 0.042 (0.003 after repair). The earlier pipeline's pools fell from a CSI300 IC of 0.0749 to 0.0477 once the data were repaired (provenance: Section S5, Fig. S4). We multiplied VWAP by the price factor, divided volume by it and froze the corrected provider with a hash manifest.
Checking the field contract. A range test requires an adjusted VWAP to lie inside the adjusted daily [low, high] interval. On all constituent stock-days in 2010–2024, index tickers excluded, the inconsistent build fails it on 86% and the corrected provider on one stock-day. The mislisted index ticker of Section 7.5 fails it on every one of its days in both builds. An event-level check compares the stored data on the 19,867 ex-dates of 2010–2026 with exchange-reported quantities that bypass our adjustment code (Section S5). The stored adjusted return matches the exchange's percentage change, computed from the ex-rights reference price, within on all but five ex-dates and on all but 15 of the 6.08 million other stock-days. On ex-dates with a factor change below 10%, a proxy for cash dividends, the share count implied by volume, factor and turnover rate moves by less than half the factor change in 99.8% of 17,161 cases. An unadjusted volume would move it by the whole change. VWAP stays inside the daily range on every ex-date. An independently built snapshot of the same source agrees on returns, raw volume and membership (Section S5).
Unless stated otherwise, China-market pools were discovered and evaluated on the corrected provider. Section 7.5 also uses variants of it. One removes the mislisted index ticker from the CSI500 membership file. On that variant, two drawn stocks receive VWAP defects of divisor 400, and the first of them also a divisor-4 defect and a perturbation
TABLE 3
Search arms and the data they were mined on. Orig.: original CSI500 membership file (confirmatory stage); clean: without the mislisted ticker. Units are fold market seed pools; evaluation is laptop float32 unless Table 4 says otherwise.
| Arm | Search | Data (units) | Section |
|---|---|---|---|
| A | unrestricted grammar | orig. (40); clean (80) | 7.1–7.5 |
| C | certified guard | orig. (40); clean (80) | 7.1–7.5 |
| B | coarse, Alpha2-style guard | orig. (40); clean (40) | 7.3 |
| S | single-sort guard | orig. (40); clean (40) | 7.3 |
| R | random guard, rejection rate 0.896 | orig. (40) | 7.3 |
| D, Cm | mask plus guard; re-run of C | orig. (40 each) | 7.3 |
| AH | unrestricted grammar | past-anchored clean (40) | 7.1 |
| C, A | as above | clean with a field defect (20 per defect) | 7.5 |
(Sections S5 and S17). The retrospective comparison (Section S4) re-evaluates existing external pools discovered on the reference snapshot, and the S&P 500 experiment uses the public Qlib US bundle.
6.2 Folds, Labels and Purging
Development uses four rolling folds, f2015_16, f2017_18, f2019_20 and f2021, named after their validation years, with discovery windows that all start on 2010-01-04 (Table S14). The target is the 20-day close-to-close forward return, a ratio of two closes of one stock and therefore anchor-invariant. Labels are purged 20 trading days before each cutoff. Two later windows (2022–2024 and 2025–2026) were exposed during earlier exploratory work, so they serve as retrospective evidence (Section S16.4).
6.3 Combiners
A pool is turned into a daily score by one of two combiners, both using only labels realised by the prediction day, that is, matured statistics through . The adaptive combiner is AlphaForge's [2] with the AlphaSAGE release's thresholds [3] and is the primary combiner in every stage protocol. Each day it selects the first 20 factors in pool order with and on matured statistics, or the single best by if none qualifies. It weights them by an expanding-window ordinary least-squares (OLS) fit on daily-normalised factor values. The equal-weight combiner weights every factor equally, signed by its matured mean IC. Because its thresholds make it precision-sensitive, the main comparison is also reported under equal weighting and in float64 (Section S24); float32 stays the primary evaluator because every frozen stage protocol specified it, and float64 changes the main comparison from +0.0044 to +0.0048.
6.4 Metrics and Statistical Units
An arm is one search configuration (Table 3), a cell is a fold market, and a unit is one pool, a cell seed. A frozen rule is a decision rule recorded in a freeze file before the stage's outcomes were computed. For each pool and combiner we report the mean daily IC over the validation window and the exposure-neutralised IC, which residualises the signal each day on 60-day beta, 20-day volatility, 20–240-day momentum, 5-day reversal and log liquidity. The statistical unit is a pool, giving 40 units per arm in the confirmatory stages and 80, ten seeds per cell, in the clean main comparison; factors are never treated as samples. Paired t and Wilcoxon signed-rank p-values are descriptive and uncorrected for multiple comparisons, because seeds within a cell share the market and the window. As the 20-day labels overlap, we also report a moving-block bootstrap over trading days and cluster-robust intervals over cells and folds (Section S13). The evaluator is platform-sensitive: per unit, adaptive IC differs between our cloud and laptop environments, and between float32 and float64, by an SD of 0.005–0.010, because a rounding difference can flip a threshold selection of the adaptive combiner (Section S24). Each paired comparison therefore uses one environment, one precision and one evaluator, the laptop float32 environment unless stated.
6.5 Frozen Stage-Level Protocols
We worked in stages, each with a protocol whose text, decision rule, thresholds, code hashes and analysis script were recorded in a freeze file before the stage's outcomes were computed; exploratory diagnostics are labelled separately. Fixed-seed re-runs reproduce pools byte for byte, and the re-mining stages of Sections 7.1, 7.3 and 7.5 each included control runs that reproduced earlier pools byte for byte on the machine used (Sections S16.5, S17, S23 and S25). The two confirmatory rules for the cost of the constraint were as follows.
Main comparison (Section 7.2): the criterion is met if the mean adaptive of certified minus unrestricted search is at least -0.005 and the corresponding check on the neutralised IC passes. Attribution requires .
Matched-pruning control (Section 7.3): for the tested random scheme, the pruning explanation is rejected if and only if and in adaptive mean IC over the paired units. A pre-planned extension from 24 to 40 runs followed the first cohort (Section S6); arm S was pre-specified as descriptive.
The frozen rules of the other confirmatory stages (Sections 7.3 and 7.4, and the size-matched analysis) and every deviation from the frozen protocols, with its timing relative to the first look at the affected outcomes, are in the Supplementary Material (Section S6).
7 EXPERIMENTS
Section 7.1 takes the certificate to data (RQ1), Sections 7.2–7.4 measure what the constraint costs a miner (RQ2), and Section 7.5 follows changes in the discovery data through the search (RQ3). Confirmatory stages follow the frozen rules of Section 6.5 and Section S6, and Table 4 summarises the principal paired comparisons.
7.1 Certification and Re-Anchoring
Certified pools barely move when the anchor changes, and unrestricted pools do. We recomputed every factor of the 40 certified (arm C) and 40 unrestricted (arm A) pools of the confirmatory stage under re-anchored copies of the provider and re-ran the full combiner in float32. Simulated stock-specific anchors, at the fold's 50% and 90% training-calendar quantile dates, vary the corporate-action history and hold
TABLE 4
Paired comparisons of Section 7 (adaptive combiner, validation windows, laptop float32 evaluation except the confirmatory stage, which is cloud; +0.0096 on the laptop, Section S25). Tags: orig., mined with the original CSI500 membership file; clean, without the mislisted ticker. n: units (c: cells); IC: mean paired difference; CI: 95% interval over units; > 0: units positive. Other generators, official miners and later windows: Tables S11, S12 and S16; Sections S16.4 and S19–S21. Rule: "met" means the stage's pre-specified engineering rule is met, not statistical significance or non-inferiority; "desc.": no rule was set.
| Comparison | n | 95% CI | > 0 Rule | |
|---|---|---|---|---|
| Main comparison (Section 7.2) | ||||
| C – A, clean, 10 seeds | 80 | +0.0044 | [-0.0013,+0.0101] | 48/80 met |
| C – A, orig., cloud | 40 | +0.0114 | [-0.0045,+0.0184] | 29/40 met |
| Controls and representation baseline (Sections 7.1, 7.3) | ||||
| C – B (coarse), clean | 40 | +0.0089 | [+0.0003,+0.0176] | 26/40 post hoc |
| C – R (random), orig. | 40 | +0.0181 | [+0.0090,+0.0273] | 31/40 met |
| R – A, orig. | 40 | -0.0085 | [-0.0161,-0.0010] | 17/40 met |
| C – AH, past-anchored | 40 | +0.0070 | [+0.0010,+0.0129] | 29/40 desc. |
| AH – A, past-anchored | 40 | -0.0015 | [-0.0079,+0.0049] | 21/40 desc. |
| Discovery-data changes, (Section 7.5) | ||||
| Injection /400, 2 tickers | 40 | +0.0027 | [-0.0042,+0.0095] | 23/40 desc. |
| Injection /4 | 20 | +0.0060 | [-0.0006,+0.0125] | 14/20 desc. |
| Perturbation | 20 | +0.0006 | [-0.0030,+0.0042] | 8/20 desc. |

(b)
Fig. 2. Re-anchoring drift of the 40 unrestricted (A) and 40 certified (C) pools of the confirmatory stage (Section 7.2). (a) Distribution of the factor-level excess IC drift under the simulated stock-specific anchors (stock-specific minus global placebo, larger of the two anchors) for the 2,000 factors of each arm; 30% of the unrestricted factors and 0.8% of the certified ones exceed 0.005. (b) Real anchor: signed difference in validation IC between the stored end-anchored representation and the cutoff-anchored one, one point per pool, under the stock-specific cutoff anchor (s) and the matched global placebo (g), with the mean and its 95% interval.
the observations fixed, as in Proposition 1; a global scaling of every stock by one constant serves as a placebo for each. The real anchor is the fold's discovery cutoff , with , which gives the vintage a snapshot taken at the cutoff would have stored (Section S22).
Under simulated anchors the unrestricted pools drift 2.7 times as much as under the placebo, while the certified pools drift no more than under it (Table 5, Fig. 2(a)). What drift remains for certified factors comes from the implementation. In the shipped float32 code, 12.2% of them correlate below 0.9 with their re-anchored values, mostly through the finite precision of TsKurt and the fixed variance floor of TsCorr. A reference evaluator in float64, with a floor relative to the window's scale, brings this down to 0.55%, all ill-conditioned expressions such as high Inv(high), and leaves the unrestricted factors as anchor-sensitive as before (Table 5, Section S8). Under that evaluator the certified pools' IC
TABLE 5
Drift under the simulated anchors, 40 pools per arm (larger of the two anchors per factor or pool). Shipped: the implemented operators in float32 (cloud). Reference: float64 with a relative variance floor in TsCorr (laptop). Excess drift is stock-specific minus global-placebo IC drift; elementwise match: equal finite masks and relative error below 10⁻⁴. The shipped operators on the laptop give the same factor shares and a certified pool drift of 0.0018 (placebo 0.0018; Section S8). Real anchor: Fig. 2(b), Table S22.
| Statistic | Shipped, float32 | Reference, float64 | ||
|---|---|---|---|---|
| A | C | A | C | |
| Pool IC drift, simulated anchors | ||||
| stock-specific, mean | 0.0148 | 0.0011 | 0.0143 | 0.0027 |
| stock-specific, max | 0.036 | 0.0058 | 0.031 | 0.013 |
| global placebo, mean | 0.0056 | 0.0011 | 0.0051 | 0.0028 |
| Factors | ||||
| corr. < 0.9, stock-specific | 43.1% | 12.2% | 38.9% | 0.55% |
| corr. < 0.9, global placebo | 18.4% | 12.5% | 13.6% | 0.70% |
| elementwise match, both anchors | 13.3% | 34.9% | 24.9% | 75.1% |
| excess IC drift, mean | 0.0038 | 0.00007 | 0.0039 | -0.00004 |
| excess IC drift > 0.005 | 30% | 0.8% | 31% | 0.35% |
moves as much under the placebo as under re-anchoring, which points to the combiner's threshold selection rather than to the anchor. The CSI500 pools re-mined without the mislisted ticker behave the same way (Section S18).
On the real anchor, unrestricted pools score a mean adaptive IC 0.0062 higher on the stored end-anchored representation than on the cutoff-anchored one. Certified pools score 0.0007 higher, about the same as under the global placebo (Fig. 2(b)). We call this difference a pool's re-anchoring sensitivity: how much its measured IC depends on the representation of the same data. It is concentrated in the two earliest folds, where the cutoff lies furthest from the end of the snapshot. Factor by factor, the mean signed difference is close to zero in every family of non-certified expression except the ten bare fields, yet 13–24% of the factors in each family lose more than 0.005 of absolute IC. The pool-level difference therefore comes from how the combiner selects and weights factors whose values moved (Section S22).
Published methods. The dependence is not specific to our miner. We ran the same audit on pools that five published methods (AlphaGen, AlphaSAGE, AlphaForge, AlphaQCM and AlphaGen's genetic-programming baseline) mined in our earlier benchmark pipeline, five seeds per market, evaluated on the previously exposed 2022–2024 window (Section S4). Their pools score a mean adaptive IC 0.0050 [0.0030, 0.0070] higher on the stored representation than on the cutoff-anchored one, about 14% of their IC, with 42 of 50 pools positive; certified pools on the same window move by 0.001. This is the main practical finding of the paper: a sizeable part of what these methods measure on end-anchored data depends on the representation. The audit concerns these pools, not the numbers reported in the original papers (Section S22).
Past-anchored data. Past anchoring removes the future dependence of a snapshot, yet formulas mined on it stay sensitive to the anchor. Unrestricted pools mined on a past-anchored provider built by the group action (arm AH; Section S23) change IC between the two representations 4.6 times as much as certified pools, and the certified pools are ahead of them by +0.0070 (Table 4). Their factors depend on where the data begin.
TABLE 6
Certified minus unrestricted search (C – A) on clean data, 4 folds × 2 markets × 10 seeds = 80 units, laptop evaluation, by combiner and market, and under a float64 build of the evaluator (last row); seed blocks: Section S13. Units and cells count positive paired differences; the cell-and fold-level intervals are paired-t intervals over the 8 cell means and the 4 fold means (tests: Section S13).
| Comparison | n | ΔIC | 95% CI | Units | Cells |
|---|---|---|---|---|---|
| C – A, adaptive | 80 | +0.0044 | [-0.0013, +0.0101] | 48/80 | 4/8 |
| cell-level interval | 8c | [-0.0080, +0.0168] | |||
| fold-level interval | 4f | [-0.0199, +0.0287] | |||
| CSI300 | 40 | +0.0057 | [-0.0026, +0.0140] | 23/40 | 2/4 |
| CSI500 | 40 | +0.0031 | [-0.0050, +0.0112] | 25/40 | 2/4 |
| C – A, neutralised | 80 | -0.0005 | [-0.0060, +0.0049] | 44/80 | 3/8 |
| C – A, equal weight | 80 | +0.0061 | [-0.0016, +0.0137] | 44/80 | 4/8 |
| C – A, float64 eval. | 80 | +0.0048 | [-0.0010, +0.0106] | 48/80 | 5/8 |
A second provider. On the public Qlib US bundle [35] (S&P 500, anchored at each stock's first day), 71% of the unrestricted factors show excess anchor drift above 0.005, against 3.4% in certified pools (Sections S16.4 and S25).
Hand-crafted feature sets. With Qlib's 10⁻¹² division guards read as numerical guards, 153 of the 158 Alpha158 features are certified, most because their designers divided by a price or a sum (Table S15). Of Kakushadze's 101 Formulaic Alphas [36], the checker certifies 17 and rejects 84, and numerical re-anchoring shows deviations for 82 of the 84, mostly through a cross-sectional rank of a price level (Section S12).
7.2 Predictive Cost
On clean data, certification has no detectable effect on predictive accuracy. The comparison is certified (C) against unrestricted (A) search, the AlphaSAGE generator with and without the guard, over 4 folds × 2 markets × 10 seeds = 80 units (Section S23).
The certified search is ahead by +0.0044 adaptive IC, positive in 4 of 8 cells and concentrated in f2019_20. Over the 8 cell means the interval is [-0.0080, +0.0168], and it is wider over folds because the two markets of a fold share a period (Table 6; tests in Section S13). At 80% power the design resolves about 0.017 over cells, so smaller costs or gains go undetected. The mean passes the engineering rule fixed in advance (Section 6.5), while the cell interval still allows losses beyond its tolerance. Both seed blocks, both markets, equal weighting and the float64 evaluator point the same way. The source of the larger difference in f2019_20, the window of the 2020 crash, is unresolved; the certified pools are steadier across years (Fig. 3(b)) and their single factors are weaker, so the difference arises in combination (Section S16.4). The comparison began as a confirmatory stage on the original membership file, where it was +0.0114 (Table 4, Section S25).
7.3 Grammar Controls and Search Efficiency
The certified search leads coarse typing, and neither random pruning nor expression length accounts for its pools. On 40 clean units it is ahead of an Alpha²-style coarse guard (arm B) by 0.0089 [+0.0003, +0.0176] under the adaptive combiner, with neutralised and equal-weight intervals that include zero (Section S25). Because B is below A, the pre-specified attribution criterion holds trivially, and this direct

Fig. 3. Main comparison on clean data under the adaptive combiner, laptop evaluation; ten seeds per fold × market cell. (a) Adaptive IC per cell for the unrestricted (A) and certified (C) arms, with seed-level points. (b) Yearly adaptive IC of the two arms from 2015 to 2021. The difference sits in f2019_20, the window that contains the 2020 crash; in 2016–2017 the certified arm is below the unrestricted arm. The 80 sorted paired differences: Fig. S9.
comparison is the informative one. The single-sort guard lands between A and C, which places the additive sort's measurable contribution in the language it certifies. A random guard at the same rejection rate (arm R) lowers pool IC on the original file. No length rule of equal strength exists, since the only one that reaches the rejection rate admits at most two tokens. The certified pools are shorter (6.8 against 10.1 tokens), and their factors' out-of-sample IC changes sign less often (Wilcoxon p = 0.031). Matching on length and operator composition leaves that difference in place, with an interval that includes zero (Sections S6, S14 and S15). Non-invariant factors do not act as stock identifiers through the adjustment factor (Section S15). A typed action mask (Section 5.3) fills the pool in 3,050 instead of 5,300 episodes but missed its pre-specified quality criterion on CSI500 (Section S10).
7.4 Integration and Transfer
The guard attaches unchanged to three other generators, with no consistent difference in prediction. On AlphaGen's PPO generator it rejects 96–99% of candidates and cuts a run from about 7 h to 1 h (Section S16.4). With AlphaGen's genetic-programming baseline and its LLM generator (Claude Haiku 4.5 or Opus 5.5, identical prompts), no difference is detectable except one exploratory positive block that comes from weak unguarded pools (Sections S19–S21). In a TopK-Dropout backtest net of costs, certified minus unrestricted is +0.014 a year with an interval that includes zero, and every arm trails the equal-weight benchmark (Section S20).
Official miners and a supervised reference. Against the official AlphaSAGE [3] and AlphaGen [1] code, re-run in their published configurations on our data and evaluator (80 runs), the certified search has 5 and 3 of 8 cells non-negative. The first is one cell short of the frozen criterion (Table S11, Section S13). Alpha158 + LightGBM [35], [37] predicts best by a wide margin (61–92% higher raw IC) but produces no formulas that can be read, certified or audited one by one.
Later windows. Re-mined on the two later windows with everything frozen, the certified search was ahead under
TABLE 7
The two channels of Section 7.5. No validation day contains a change; in the fixed-pool channel the combiner's matured statistics from 2010 do.
| Channel | Pools compared | Evaluation data |
|---|---|---|
| Re-mined | mined with and without the change, same seeds | clean for both |
| Fixed pools | one set (clean pools; for the ticker, those mined with it) | with and without the change |
the adaptive combiner but short of the frozen rule, and the equal-weight difference changed sign between the windows (Section 6.2, Table S12). The S&P 500 experiment is mainly an audit: neither arm carries detectable signal, and under equal weighting the certified pools are below the unrestricted ones Table S16), as on 2022–2024 (Table S12).
7.5 Discovery Sensitivity to Data Perturbations
Re-mining on defective discovery data changes the selected pools far more than re-scoring the fixed pools reveals. We measure the size against two references: a matched perturbation of the same field, which the defects exceed about two to three times, and a change of seed, which they do not reach. The direction of the mean effect is not resolved.
The first defect is real and public. The CSI500 membership file in the v2 and v3 data snapshots distributed through Qlib's download utility lists the index itself, SH000905, as a constituent from 2007 to mid-2012, with a close about 1,500 times the median member's (Section S5). It touches 0.05–0.10% of our discovery stock-days and no validation day. We measure its effect in our pipeline only; which snapshots individual published studies used is outside this check. We re-evaluated the existing pools without the ticker and re-mined the 40 CSI500 pools of arms A and C without it, always evaluating re-mined pools on clean data so that only their discovery data differ (Table 7, Section S25). To test whether the pattern is specific to the ticker, separate runs divide the stored VWAP of one of two randomly drawn

(b)
Fig. 4. A data change through the two channels on CSI500: the mislisted index ticker, the stored VWAP of two randomly drawn constituents divided by 400, the first of them divided by 4, and the first multiplied by . (a) Standard deviation over the 20 fold × seed units of the change in C – A when the clean pools are re-evaluated on the changed data (fixed pools) and when both arms are re-mined on it (re-mined), with the re-mined/fixed ratio. The ratio is omitted for the perturbation, whose fixed-pool SD is near zero. The dashed line is the SD of the difference in C – A between two seeds of the same cell. (b) Expressions of the original 50 kept by the re-mined pool, unit mean. Intervals: Table S17.
CSI500 members by 400 over the same span, or that of the first by 4 (Section S17).
Fig. 4 shows the sizes. After re-mining, the change in C – A has an SD of 0.014–0.026 under the four defects, against 0.0014–0.0038 when the fixed pools are re-scored and 0.031 between two seeds of one cell (Table S17, Section S26). The certified search keeps more of its original expressions in 17–20 of 20 units per defect. Removing the ticker moves the discovery IC of certified factors about a quarter as much as that of the non-certified factors in the same pools (Section S5); the theorem covers scale, not membership, so this is an empirical observation. The mean change in C – A cannot be distinguished from zero: the /4 injection has a positive point estimate of +0.0060 with an interval that includes zero, and detecting 0.011 at these spreads would need about 37 independent units [38].
A small numerical perturbation. To separate the defects from the search's general sensitivity, we multiplied the first injected ticker's stored VWAP by , a relative change of about , over the same span, and re-mined both arms on the 20 units (Section S17). Even this changes 39 of 40 pools, but much less than the defects do: the change in C – A has an SD of 0.0077, and the pools keep 48 (C) and 41 (A) of their 50 expressions (Fig. 4). Re-scoring the fixed pools on the perturbed data changes almost nothing. The defects therefore act beyond the search's sensitivity to tiny input changes, at least for this stock, span and perturbation size. Two certified runs on the past-anchored provider kept 25 and 27 of 50 expressions, so a float32 search trajectory responds to rescaling even when every formula is invariant
(Section S23).
8 DISCUSSION AND LIMITATIONS
Scope of the guarantee. The certificate covers formulas, and it holds on data that honour the field contract. Our inconsistent build shows what happens otherwise: VWAP/close, a certified formula, leaked through an unadjusted field. The theorems also assume idealised operator semantics, so the numerical behaviour of an expression has to be measured. With a float64 reference evaluator and scale-relative floors, almost every certified factor behaves as the theorem says (Section 7.1).
Recommendations for practice. Check every formula statically and evaluate in float64 with scale-relative floors. Check the data first: no index code among its own constituents, a closer look at any series hundreds of times the cross-sectional median, and fields that match the declared adjustment event by event. After a data correction, re-mine with several seeds; re-scoring the old pools understates the change.
Predictive cost. Invariance excludes price levels, share-count turnover and other expressions that depend on the adjustment base, including real signals such as the low-price effect. Within the resolution of our design this exclusion has no measurable effect on the Chinese folds, in either direction. Elsewhere the picture is mixed: equal weighting favours the unrestricted pools on the S&P 500 and on 2022–2024, and the supervised Alpha158 model predicts better (Section 7.4). The case for the certificate therefore rests on the audit. Certified pools keep their IC when the representation changes, and the pools of published methods do not.
Limitations. The engineering rule of the main comparison is a threshold on the mean, not a non-inferiority bound, and the cell interval allows losses beyond it. Re-anchoring sensitivity compares two representations of the same data; the cutoff vintage is not a point-in-time series, so it does not measure a leakage gain. The controls bound the explanation of the small positive difference without isolating invariance as its cause. Arm R, the typed mask, the matched comparison and the later windows use pools mined with the original membership file, no length rule of equal strength exists, and whether shorter factors resist overfitting was not tested. The event-level contract check relies on the exchange's reference prices and turnover rates and does not verify dividend amounts. The evidence covers one country, one data source and two index universes. The discovery analysis covers one real membership error, one injected defect at two magnitudes and one perturbation, all on CSI500, and a predictive test on a second market needs licensed survivorship-free data such as CRSP. Eight fold market cells with dependent seeds limit inference, and the PPO, GP and LLM comparisons cover 6–10 pairs each. Proposition 1 is conditional on end-anchoring and on the provider's volume convention. The certified grammar was chosen after exploratory analyses on earlier pools, so the stages do not form one study frozen in advance. The block bootstrap of Section S13 accounts for overlapping labels; survivorship and vendor revisions remain unaddressed.
9 CONCLUSION
A formula evaluated on end-anchored prices can depend on corporate actions that had not yet happened. A two-sorted type system certifies from the syntax alone that a formula cannot, provided the stored fields honour a declared contract. The audit shows why this matters: pools that five published methods mined on such data score about 14% higher IC than on a cutoff-anchored representation, while certified pools barely change. The same audit found an erroneous index entry in public Qlib snapshots. Defects like it reshape the pools a miner selects, and re-evaluating old pools hides most of the effect, so data corrections should be checked by re-mining. On the Chinese development folds, certification had no detectable effect on predictive accuracy at the resolution of our design. Its benefit is a guarantee that can be checked one expression at a time.
ACKNOWLEDGMENTS
Anthropic's Claude models, used through Claude Code under the authors' direction, revised the text, wrote, tested and ran the analysis and experiment scripts and the figure scripts, and drafted interpretations of the results; the scripts and per-unit result files are released in the repository; Claude Haiku 4.5 and Opus 5.5 are also the generators of the LLM experiment (Section S19). The authors checked all reported numbers against the per-unit result files, reviewed all AI-assisted content and are responsible for it.
CODE AND DATA AVAILABILITY
Code, frozen protocols and freeze files, hash manifests, the final factor pools and the per-unit evaluation outputs behind every table are at github.com/xiangxinyue/anchor-invariant-alpha. The checker is one file, checker/scale_checker_v2.py, whose only dependency is AlphaGen's expression classes; the README's quick start runs its 43 unit cases and certifies an expression in a few lines. The data provider is not redistributed; its SHA-256 manifest lets a rebuilt provider be verified file by file.
REFERENCES
[1] S. Yu, H. Xue, X. Ao, F. Pan, J. He, D. Tu, and Q. He, "Generating synergistic formulaic alpha collections via reinforcement learning," in Proc. ACM SIGKDD Conf. Knowledge Discovery and Data Mining (KDD), 2023.
[2] H. Shi, W. Song, X. Zhang, J. Shi, C. Luo, X. Ao, H. Arian, and L. Seco, "AlphaForge: A framework to mine and dynamically combine formulaic alpha factors," in Proc. AAAI Conf. Artificial Intelligence (AAAI), 2025, arXiv:2406.18394.
[3] B. Chen, H. Ding, N. Shen, T. Guo, J. Huang, L. Liu, and M. Zhang, "AlphaSAGE: Structure-aware alpha mining via GFlowNets for robust exploration," in Proc. Int. Conf. Learning Representations (ICLR), 2026, arXiv:2509.25055.
[4] N. Sambasivan, S. Kapania, H. Highfill, D. Akrong, P. Paritosh, and L. Aroyo, "Everyone wants to do the model work, not the data work": Data cascades in high-stakes AI," in Proc. CHI Conf. Human Factors in Computing Systems (CHI), 2021.
[5] C. G. Northcutt, A. Athalye, and J. Mueller, "Pervasive label errors in test sets destabilize machine learning benchmarks," in Proc. NeurIPS Datasets and Benchmarks Track, 2021.
[6] Portfolio Optimizer, "Adjusted prices without look-ahead bias," Blog post, https://portfoliooptimizer.io/blog/adjusted-prices-without-look-ahead-bias/, 2022, accessed 2026-10-25.
[7] Systematic Solutions, LLC, "RealTest user guide: Split handling," https://mhp Trading.com/docs/topics/idh-topic1090.htm, 2026, accessed 2026-10-25.
[8] X. Fonseca, "Look-ahead-freedom as temporal non-interference: A verifiable correctness property for backtesting and agentic trading pipelines," arXiv preprint arXiv:2607.04958, 2026.
[9] —, "Point-in-time backtesting of momentum-trend equity strategies: A formal taxonomy, ATR trailing stop analysis, and investor-experience metrics," Mathematics, vol. 14, no. 12, p. 2182, 2026, doi:10.3390/math14122182.
[10] F. Zhang, Z. Li, S. Peng, and Y. Chen, "When alpha disappears: A one-switch benchmark for decision-time leakage in financial backtests," arXiv preprint arXiv:2605.23959, 2026.
[11] Y. Huang, Z. Fan, K. Hu, and Y. Ye, "From hypotheses to factors: Constrained LLM agents in cryptocurrency markets," arXiv preprint arXiv:2604.26747, 2026.
[12] D. H. Bailey, J. M. Borwein, M. López de Prado, and Q. J. Zhu, "Pseudo-mathematics and financial charlatanism: The effects of backtest overfitting on out-of-sample performance," Notices of the American Mathematical Society, vol. 61, no. 5, pp. 458–471, 2014.
[13] —, "The probability of backtest overfitting," Journal of Computational Finance, vol. 20, no. 4, pp. 39–69, 2017, published online 2016.
[14] A. Ljungqvist, C. Malloy, and F. Marston, "Rewriting history," J. Finance, vol. 64, no. 4, pp. 1935–1960, 2009.
[15] S. Schelter, D. Lange, P. Schmidt, M. Celikel, F. Biessmann, and A. Grafberger, "Automating large-scale data quality verification," Proc. VLDB Endowment, vol. 11, no. 12, pp. 1781–1794, 2018.
[16] E. Breck, N. Polyzotis, S. Roy, S. E. Whang, and M. Zinkevich, "Data validation for machine learning," in Proc. Conf. Machine Learning and Systems (SysML), 2019.
[17] M. Keijzer and V. Babovic, "Dimensionally aware genetic programming," in Proc. Genetic and Evolutionary Computation Conf. (GECO), 1999.
[18] W. Tenachi, R. Ibata, and F. I. Diakogiannis, "Deep symbolic regression for physics guided by units constraints: Toward the automated discovery of physical laws," The Astrophysical Journal, vol. 959, no. 2, p. 99, 2023.
[19] J. Reuter, V. Martinek, R. Herzog, and S. Mostaghim, "Unit-aware genetic programming for the development of empirical equations," in Proc. Parallel Problem Solving from Nature (PPSN), ser. Lecture Notes in Computer Science, vol. 15148, 2024, pp. 168–183.
[20] A. J. Kennedy, "Relational parametricity and units of measure," in Proc. 24th ACM SIGPLAN-SIGACT Symp. Principles of Programming Languages (POPL), 1997, pp. 442–455.
[21] R. Atkey, P. Johann, and A. Kennedy, "Abstraction and invariance for algebraically indexed types," in Proc. 40th ACM SIGPLAN-SIGACT Symp. Principles of Programming Languages (POPL), 2013, pp. 87–100.
[22] M. S. A. Baig and S. A. Gillani, "Symmetry-constrained language-guided program synthesis for discovering governing equations from noisy and partial observations," arXiv preprint arXiv:2603.06869, 2026.
[23] H. Yang, D. Hao, Z. Wang, Q. Shi, and X. Li, "Alpha discovery via grammar-guided learning and search," arXiv preprint arXiv:2601.22119, 2026.
[24] F. Xu, Y. Yin, X. Zhang, T. Liu, S. Jiang, and Z. Zhang, "Alpha2: Discovering logical formulaic alphas using deep reinforcement learning," arXiv preprint arXiv:2406.16505, 2024.
[25] A. S. Kyle and A. A. Obizhaeva, "Market microstructure invariance: Empirical hypotheses," Econometrica, vol. 84, no. 4, pp. 1345–1404, 2016.
[26] S. Villar, W. Yao, D. W. Hogg, B. Blum-Smith, and B. Dumitrascu, "Dimensionless machine learning: Imposing exact units equivariance," Journal of Machine Learning Research, vol. 24, no. 109, pp. 1–32, 2023.
[27] B. Elesedy and S. Zaidi, "Provably strict generalisation benefit for equivariant models," in Proc. Int. Conf. Machine Learning (ICML), 2021.
[28] Z. Zhu and K. Zhu, "AlphaQCM: Alpha discovery in finance with distributional reinforcement learning," in Proc. Int. Conf. Machine Learning (ICML), ser. Proceedings of Machine Learning Research, vol. 267, 2025, pp. 80 463–80 479.
[29] E. Bengio, M. Jain, M. Korablyov, D. Precup, and Y. Bengio, "Flow network based generative models for non-iterative diverse candidate generation," in Advances in Neural Information Processing Systems (NeurIPS), 2021.
[30] M. Schlichtkrull, T. N. Kipf, P. Bloem, R. van den Berg, I. Titov, and M. Welling, "Modeling relational data with graph convolutional networks," in Proc. European Semantic Web Conf. (ESWC), 2018.
[31] S. Li, I. Marinescu, and S. Musslick, "GFN-SR: Symbolic regression with generative flow networks," in NeurIPS 2023 AI for Science Workshop, 2023, arXiv:2312.00396. [32] Z. Wang and C. Ventre, "FactorBench: A portfolio-aware benchmark for automated factor mining," arXiv preprint arXiv:2610.06947, 2026. [33] S. Dhan and S. Natarajan, "AlphaRJM: Reward-jump memory for stochastic return-guided alpha discovery," arXiv preprint arXiv:2609.08581, 2026. [34] E. S. Whitammer, M. Jain, E. Bengio, C. Sun, and Y. Bengio, "Trajectory balance: Improved credit assignment in GFlowNets," in Advances in Neural Information Processing Systems (NeurIPS), vol. 35, 2022, pp. 5955–5967, arXiv:2201.13259. [35] X. Yang, W. Liu, D. Zhou, J. Bian, and T.-Y. Liu, "Qlib: An AI-oriented quantitative investment platform," arXiv preprint arXiv:2009.11189, 2020. [36] Z. Kakushadze, "101 formulaic alphas," Wilmott, vol. 2016, no. 84, pp. 72–81, 2016, arXiv:1601.00991. [37] G. Ke, Q. Meng, T. Finley, T. Wang, W. Chen, W. Ma, Q. Ye, and T.-Y. Liu, "LightGBM: A highly efficient gradient boosting decision tree," in Advances in Neural Information Processing Systems (NeurIPS), 2017. [38] R. Agarwal, M. Schwarzer, P. S. Castro, A. Courville, and M. G. Bellemare, "Deep reinforcement learning at the edge of the statistical precipice," in Advances in Neural Information Processing Systems (NeurIPS), 2021.
Zhengkai Tu is a Research Assistant in the Department of Decision Sciences, CUHK Business School, The Chinese University of Hong Kong. Zhengkai Tu received the M.Eng. degree from the University of Toronto in 2025 and a bachelor's degree from York University in 2023. Research interests include graph neural networks, information retrieval and financial time series.
Xinyue Xiang received the B.Sc. degree from the University of Alberta in 2021, the M.S. degree in Computer Science from the Georgia Institute of Technology in 2025, and the Master of Applied Data Science degree from the University of Michigan in 2026. Research interests include data quality, quantitative finance and computational social science.
Jimmy Huang is a Professor in the School of Information Technology, York University, Toronto, and holds a Tier 1 York Research Chair in Big Data Analytics. Jimmy Huang received the Ph.D. degree from City, University of London, was General Chair of ACM SIGIR 2020, and is an IEEE Fellow and a Fellow of the Canadian Academy of Engineering. Research interests include information retrieval, artificial intelligence and big data analytics.