← All status

Accounting

Accounting

Lean4 axiomatic kernel for the financial domain. TREND + MOMENTUM + OPTIONS-RISK + SECTOR + DRAWDOWN over portfolios. Defined-risk options only — six strategies enforced at the Strategy enum type level and re-checked by the OPTIONS-RISK predicates. Each verifier run produces a per-predicate report.json + proof-DAG graph.json + intro-rule loci.json — surfaced here as the recent-runs table + latest-run diagram + predicate roster.

version bf1f52572b17
source accounting/lake-manifest.json@bf1f52572b17
built 2026-06-11T21:52:44Z
OK

Frameworks — module readiness

Five frameworks. OPTIONS-RISK enforces the defined-risk allow-list at the type level (6 strategies). Focused = predicates + axioms compile under the current toolchain.

Frameworks — module readiness Five frameworks. OPTIONS-RISK enforces the defined-risk allow-list at the type level (6 strategies). Focused = predicates + axioms compile under the current toolchain. TREND MA cross · slope · R² MOMENTUM RSI · MACD · ROC OPTIONS-RISK defined-risk allow-list (6) SECTOR GICS concentration cap DRAWDOWN max-DD · time-under-water

Verifier-run statistics

Aggregate over all examples/<id>/report.json artefacts.

Verifier runs

3

Portfolios elaborated against the kernel.

Accepted

OK
3

Kernel verdict: ACCEPTED — every top-level judgment elaborates.

Rejected

OK
0

Kernel verdict: REJECTED — at least one element disproved.

Latest run

7.2d ago

Balance

Recent verifier runs One row per portfolio elaborated against the kernel. Verdict pill reflects whether every top-level judgment type-checks; the expand row enumerates each kernel rejection's locus (or, when accepted, the judgments proved).
IDPortfolioFrameworksJudgmentsPredicatesVerdictFailuresRun at
balance_sampleBalance (as of 2026-05-15)DRAWDOWN · OPTIONS-RISK · SECTOR · TRENDis_uptrend, defined_risk_only, is_clean, no_violations, discipline_breached19 / 20 TrueACCEPTED02026-06-04T17:41:49Z
hawk_sampleHawk (as of 2026-04-26)OPTIONS-RISK · SECTOR · TRENDis_uptrend, has_violation, defined_risk_only, is_clean7 / 8 TrueACCEPTED02026-06-04T17:32:16Z
single_ticker_sampleSingle-Aapl (as of 2026-04-26)TRENDis_uptrend4 / 4 TrueACCEPTED02026-06-04T17:27:21Z
Sorted by runFinishedAt, descending.

Balance — intro-rule shape across 4 judgment(s)

One node per kernel-required element, coloured by per-element verdict. Round nodes are derived structures/theorems; rectangles are predicate slots. The portfolio root is focused.

Balance — intro-rule shape across 4 judgment(s) One node per kernel-required element, coloured by per-element verdict. Round nodes are derived structures/theorems; rectangles are predicate slots. The portfolio root is focused. TREND OPTIONS-RISK delegate SECTOR DRAWDOWN Balance Trend.is_uptrend TREND smaCross ✓ True · Low slope ✓ True · Medium rSquared ✓ True · Medium adx ✓ True · Medium OptionsRisk.is_clean OPTIONS-RISK OptionsRisk.defined_risk_only OPTIONS-RISK noNaked ✓ True · Low debitOnly ✓ True · Low Sector.no_violations SECTOR ∀ s, cap_respected ✓ 11 of 11 Drawdown.discipline_breached DRAWDOWN maxDD ✓ True · Low tuw ✗ False · Low recovers ✓ True · Low
Predicate roster — Balance Per-predicate atomic view of the most recent run. Each row is one Bool the kernel consumed via Facts.lean; expand the row for evidence and uncertainty rationale.
#PredicateArgsValueUncertaintyEvidenceFrameworkKernel locus
DRAWDOWN
18max_drawdown_leqBalance 0.15Truelowportfolio-equity-curve returned 252 rows spanning 2025-05-15 → 2026-05-15 from financial/parquet/ohlcv-equities/DRAWDOWN
19time_under_water_leqBalance 90Falselowscripts/data_view.py portfolio-equity-curve --path examples/balance_sample/portfolio.json --start 2025-05-15 --end 2026-05-15 → 252 rowsDRAWDOWN
20recovery_withinBalance 60Truelowequity curve over 1Y window (2025-05-15 → 2026-05-15): 252 trading barsDRAWDOWN
OPTIONS-RISK
5no_naked_short_optionsBalanceTruelowportfolio.option_legs[0..1] — 1 short leg scanned (QQQ 2026-06-12 685P side=short qty=1); collateralized by long QQQ 2026-06-12 700P qty=1 (strike 700 > 685, same expiry, equal qty) = debit put spreadOPTIONS-RISK
6debit_onlyBalanceTruelowportfolio.option_legs[0,1] — QQQ 2026-06-12: long 700p (premium_paid 13.70) + short 685p (premium_received 9.16) → debit spread (long strike 700.0 > short strike 685.0); net debit = 13.70 - 9.16 = 4.54OPTIONS-RISK
SECTOR
7cap_respectedBalance Accounting.GicsSector.InformationTechnology 0.30TruelowGICS authority financial/parquet/gics-symbols.parquet confirms AAPL → Information Technology, MSFT → Information TechnologySECTOR
8cap_respectedBalance Accounting.GicsSector.ConsumerDiscretionary 0.30TruelowConsumer Discretionary holdings in balance_sample/portfolio.json: AMZN only, weight_pct=3.87SECTOR
9cap_respectedBalance Accounting.GicsSector.Financials 0.30TruelowPortfolio examples/balance_sample/portfolio.json, nav_usd=100615.82, as_of=2026-05-15SECTOR
10cap_respectedBalance Accounting.GicsSector.HealthCare 0.30Truelowbalance_sample portfolio has 7 equity holdings; sectors present = [Consumer Discretionary, Consumer Staples, Financials, Index, Information Technology] — NO Health Care holding existsSECTOR
11cap_respectedBalance Accounting.GicsSector.ConsumerStaples 0.30TruelowConsumer Staples holdings in balance_sample/portfolio.json: COST (Costco Wholesale) weight_pct=7.25SECTOR
12cap_respectedBalance Accounting.GicsSector.Industrials 0.30TruelowIndustrials matching holdings: [] (zero holdings carry gics_sector == 'Industrials')SECTOR
13cap_respectedBalance Accounting.GicsSector.Energy 0.30TruelowComputed from examples/balance_sample/portfolio.json (NAV 100,615.82, as_of 2026-05-15).SECTOR
14cap_respectedBalance Accounting.GicsSector.Utilities 0.30TruelowPortfolio examples/balance_sample/portfolio.json: 7 holdings, none with gics_sector == 'Utilities'SECTOR
15cap_respectedBalance Accounting.GicsSector.Materials 0.30TruelowMaterials contributing holdings: [] (none of the 7 holdings have gics_sector=='Materials')SECTOR
16cap_respectedBalance Accounting.GicsSector.RealEstate 0.30TruelowPortfolio examples/balance_sample/portfolio.json has 7 equity holdings across sectors: ['Consumer Discretionary', 'Consumer Staples', 'Financials', 'Index', 'Information Technology'].SECTOR
17cap_respectedBalance Accounting.GicsSector.CommunicationServices 0.30TruelowMatching holdings where gics_sector == 'Communication Services': [] (zero holdings)SECTOR
TREND
1sma_cross_upBalanceTruelowcomputed @ as_of=2026-05-15 — 5 of 7 holdings show SMA(50) > SMA(200) at 2026-05-15; weighted 65.56% aboveTREND
2slope_positiveBalanceTruemediumWindow 2025-05-15 → 2026-05-15; 7 equity holdings, 252 bars each (sufficient, ≥50).TREND
3r_squared_geqBalance 0.5TruemediumWindow 2025-05-15 → 2026-05-15, OLS of log(c) vs ordinal day index, per holding (252 bars each):TREND
4adx_geqBalance 20.0Truemediumbalance_sample, as_of=2026-05-15, threshold=20.0; 7 equity holdings, all final-row adx14 non-null (no renormalization needed).TREND
DRAWDOWN · OPTIONS-RISK · SECTOR · TREND — 19 of 20 True.

Metrics

frameworkCount
5
frameworksPresent
5
runsTotal
3
runsAccepted
3
runsRejected
0
latestRunId
balance_sample
latestRunAt
2026-06-04T17:41:49Z
latestVerdict
ACCEPTED
latestProofGraphUrl
https://qresev.quantapix.com/proof-graph/run/balance_sample/