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.
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.
Verifier-run statistics
Aggregate over all examples/<id>/report.json artefacts.
Verifier runs
Portfolios elaborated against the kernel.
Accepted
OKKernel verdict: ACCEPTED — every top-level judgment elaborates.
Rejected
OKKernel verdict: REJECTED — at least one element disproved.
Latest run
Balance
| ID | Portfolio | Frameworks | Judgments | Predicates | Verdict | Failures | Run at | |
|---|---|---|---|---|---|---|---|---|
balance_sample | Balance (as of 2026-05-15) | DRAWDOWN · MOMENTUM · OPTIONS-RISK · SECTOR · TREND | is_uptrend, has_momentum, defined_risk_only, is_clean, no_violations, drawdown_disciplined | 24 / 24 True | ACCEPTED | 0 | 2026-05-23T13:24:48Z | |
Verdict accepted — no kernel rejections recorded.
| ||||||||
hawk_sample | Hawk (as of 2026-04-26) | OPTIONS-RISK · SECTOR · TREND | is_uptrend, has_violation, defined_risk_only, is_clean | 7 / 8 True | ACCEPTED | 0 | 2026-05-16T21:50:58Z | |
Verdict accepted — no kernel rejections recorded.
| ||||||||
single_ticker_sample | Single-Aapl (as of 2026-04-26) | TREND | is_uptrend | 4 / 4 True | ACCEPTED | 0 | 2026-05-16T21:46:19Z | |
Verdict accepted — no kernel rejections recorded.
| ||||||||
| Sorted by runFinishedAt, descending. | ||||||||
Balance — intro-rule shape across 5 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
Trend.is_uptrend
smaCross
slope
rSquared
adx
Momentum.has_momentum
rsi
macd
roc
rank
OptionsRisk.is_clean
OptionsRisk.defined_risk_only
noNaked
debitOnly
Sector.no_violations
∀ s, cap_respected
Drawdown.drawdown_disciplined
maxDD
tuw
recovers
| # | Predicate | Args | Value | Uncertainty | Evidence | Framework | Kernel locus | |
|---|---|---|---|---|---|---|---|---|
| DRAWDOWN | ||||||||
| 22 | max_drawdown_leq | Balance 0.15 | True | stubbed | scripts/extract_facts.py — stubbed | DRAWDOWN | | |
| ||||||||
| 23 | time_under_water_leq | Balance 90 | True | stubbed | scripts/extract_facts.py — stubbed | DRAWDOWN | | |
| ||||||||
| 24 | recovery_within | Balance 60 | True | stubbed | scripts/extract_facts.py — stubbed | DRAWDOWN | | |
| ||||||||
| MOMENTUM | ||||||||
| 5 | rsi_in_range | Balance 50.0 70.0 | True | low | Fetched RSI(14) via data/parquet/ta-reference/<symbol>.parquet for all balance_sample holdings | MOMENTUM | | |
| ||||||||
| 6 | macd_bullish_cross | Balance | True | low | Portfolio: balance_sample (7 equity holdings, as_of: 2026-05-15, window: 1Y = 2025-05-15..2026-05-15) | MOMENTUM | | |
| ||||||||
| 7 | roc_positive | Balance | True | low | Computed 1Y ROC for 7 holdings | MOMENTUM | | |
| ||||||||
| 8 | momentum_percentile_geq | Balance GicsSectorsUniverse 60.0 | True | stubbed | scripts/extract_facts.py — stubbed | MOMENTUM | | |
| ||||||||
| OPTIONS-RISK | ||||||||
| 9 | no_naked_short_options | Balance | True | stubbed | scripts/extract_facts.py — stubbed | OPTIONS-RISK | | |
| ||||||||
| 10 | debit_only | Balance | True | stubbed | scripts/extract_facts.py — stubbed | OPTIONS-RISK | | |
| ||||||||
| SECTOR | ||||||||
| 11 | cap_respected | Balance Accounting.GicsSector.InformationTechnology 0.30 | True | stubbed | scripts/extract_facts.py — stubbed | SECTOR | | |
| ||||||||
| 12 | cap_respected | Balance Accounting.GicsSector.ConsumerDiscretionary 0.30 | True | stubbed | scripts/extract_facts.py — stubbed | SECTOR | | |
| ||||||||
| 13 | cap_respected | Balance Accounting.GicsSector.Financials 0.30 | True | stubbed | scripts/extract_facts.py — stubbed | SECTOR | | |
| ||||||||
| 14 | cap_respected | Balance Accounting.GicsSector.HealthCare 0.30 | True | stubbed | scripts/extract_facts.py — stubbed | SECTOR | | |
| ||||||||
| 15 | cap_respected | Balance Accounting.GicsSector.ConsumerStaples 0.30 | True | stubbed | scripts/extract_facts.py — stubbed | SECTOR | | |
| ||||||||
| 16 | cap_respected | Balance Accounting.GicsSector.Industrials 0.30 | True | stubbed | scripts/extract_facts.py — stubbed | SECTOR | | |
| ||||||||
| 17 | cap_respected | Balance Accounting.GicsSector.Energy 0.30 | True | stubbed | scripts/extract_facts.py — stubbed | SECTOR | | |
| ||||||||
| 18 | cap_respected | Balance Accounting.GicsSector.Utilities 0.30 | True | stubbed | scripts/extract_facts.py — stubbed | SECTOR | | |
| ||||||||
| 19 | cap_respected | Balance Accounting.GicsSector.Materials 0.30 | True | stubbed | scripts/extract_facts.py — stubbed | SECTOR | | |
| ||||||||
| 20 | cap_respected | Balance Accounting.GicsSector.RealEstate 0.30 | True | stubbed | scripts/extract_facts.py — stubbed | SECTOR | | |
| ||||||||
| 21 | cap_respected | Balance Accounting.GicsSector.CommunicationServices 0.30 | True | stubbed | scripts/extract_facts.py — stubbed | SECTOR | | |
| ||||||||
| TREND | ||||||||
| 1 | sma_cross_up | Balance | True | low | computed via data_view.py ta --symbol <SYM> --start 2025-07-19 --end 2026-05-15 — 5 of 7 holdings show SMA(50) > SMA(200) as of 2026-05-15 | TREND | | |
| ||||||||
| 2 | slope_positive | Balance | True | medium | window: 2025-05-15 to 2026-05-15 (exactly 1 year) | TREND | | |
| ||||||||
| 3 | r_squared_geq | Balance 0.5 | True | low | Fetched 252 bars for AAPL (2025-05-15..2026-05-15): R²=0.6889, slope=+0.00130, 251 trading days | TREND | | |
| ||||||||
| 4 | adx_geq | Balance 20.0 | True | low | ADX(14) as of 2026-05-15 for balance_sample holdings: AAPL=29.584, MSFT=44.252, V=29.004, COST=23.065, AMZN=22.549, SPY=25.468, RSP=14.521 | TREND | | |
| ||||||||
| DRAWDOWN · MOMENTUM · OPTIONS-RISK · SECTOR · TREND — 24 of 24 True. | ||||||||
Metrics
- frameworkCount
- 5
- frameworksPresent
- 5
- runsTotal
- 3
- runsAccepted
- 3
- runsRejected
- 0
- latestRunId
- balance_sample
- latestRunAt
- 2026-05-23T13:24:48Z
- latestVerdict
- ACCEPTED
- latestProofGraphUrl
- https://qresev.quantapix.com/proof-graph/run/balance_sample/