Every sequential decision under uncertainty — an investment, a consultancy engagement, an insurance contract, a machine-learning agent — faces the same six structural failures. This work proves which primitives are required to avoid them, shows exactly where each domain fails without them, and points toward what building real success on top of that floor requires.
Six primitives, each shown necessary in its own minimal environment. All thirty ordered pairs shown mutually irreplaceable. A verified logical scaffold connecting all six into a cycle — stated plainly where that scaffold is complete and where it still requires domain-specific work.
| X1 | X2 | X3 | X4 | X5 | X6 | |
|---|---|---|---|---|---|---|
| X1 | — | ✓ | ✓ | ✓ | ✓ | ✓ |
| X2 | ✓ | — | ✓ | ✓ | ✓ | ✓ |
| X3 | ✓ | ✓ | — | ✓ | ✓ | ✓ |
| X4 | ✓ | ✓ | ✓ | — | ✓ | ✓ |
| X5 | ✓ | ✓ | ✓ | ✓ | — | ✓ |
| X6 | ✓ | ✓ | ✓ | ✓ | ✓ | — |
Every claim here is checked by a computer that accepts nothing on reputation — Lean 4, verified against Mathlib. Nothing is asserted here; everything is checked.
Peer review checks three things: novelty, significance, and rigor. Novelty and significance are judgment calls — this work makes its own case for both, openly, for anyone to weigh directly. Rigor is the one thing review is supposed to guarantee, and for a machine-checked proof, rigor stops being a judgment call: Lean's kernel either accepts a proof or it doesn't, and no reviewer's opinion changes that answer.
What's left, once a kernel rather than a referee settles rigor, is comparison rather than judgment:
| Traditional journal | This work | |
|---|---|---|
| Rigor is guaranteed by | A reviewer's judgment call | Lean's kernel — accepts or rejects, nothing in between |
| Your confidence rests on | The journal's reputation, not the work itself | The proof itself, checked on your own machine |
| Citation & formatting | Additional, journal-specific requirements layered on top | Cite the DOI directly — nothing else required |
| Permanence | Tied to that journal continuing to exist and to publish it | Zenodo, backed by CERN, built for perpetuity |
| Access | Often paywalled, or embargoed pending review | Open now, CC BY 4.0 |
| Timeline | A publication cycle — commonly a year or more | Already timestamped, today |
A DOI on Zenodo timestamps this publicly and permanently, independent of any journal. Zenodo is backed by CERN and built for perpetuity: the DOI resolves today and will keep resolving. There is no scenario in which the rights are revoked or the work quietly moves behind a paywall — the permanence is structural, not a policy that could change. If an academic at an affiliated institution publishes the same result tomorrow, the DOI already exists — citing it isn't a courtesy, it's what the academy's own norms already require.
This is published under CC BY 4.0 — free to use, cite, and build on, attribution the only requirement. A firm without journal access or academic affiliation should not be the last to find out that a fixed, provable standard already exists. Waiting for a traditional publication cycle to run its course only hands the advantage to whichever competitor reads this page first.
Everything above is verifiable in one place, not taken on this site's word. The repository holds the complete Lean 4 formalization — seven files, organized in phases, each importing only the phases that came before it, so every definition you meet has already been introduced.
Dependency order: Phase0 → Phase1 → Phase2 → Phase2CMI → Phase3 → Phase4 → Phase5. ~12,700 lines total, built from nothing but Mathlib's own axioms.
IsmailsPrimitives/ ├── SixPrimitives.lean ├── SixPrimitives/ │ ├── Phase0.lean (framework types) │ ├── Phase1.lean (supporting lemmas) │ ├── Phase2.lean (trajectory measure & environments) │ ├── Phase2CMI.lean (conditional mutual information) │ ├── Phase3.lean (Part I — necessity) │ ├── Phase4.lean (Part II — independence) │ └── Phase5.lean (Part III — sequential dependence) ├── paper/ │ ├── PAPER.md │ └── Ismails_Primitives.pdf ├── lakefile.lean, lake-manifest.json, lean-toolchain └── README.md
Alongside the proofs: the paper itself, as a Markdown edition readable directly on GitHub and as a full PDF carrying both appendices omitted from the web edition — a line-by-line table mapping every definition and theorem to its exact Lean identifier, and the proofs verifying that every environment used in Part I actually exhibits the structural property it's claimed to witness. Also included: the exact lakefile, dependency manifest, and Lean toolchain version that reproduce this from a clean clone in a few minutes, and the GitHub Actions workflow that rebuilds and checks the whole thing on every commit — so the green build badge is never more than one push out of date.
The Lean code is released under the MIT License. The paper is CC BY 4.0. Either way: use it, cite it, build on it.
Any decision field that acts under uncertainty, with actions and consequences, can be formalized the same way — and once it is, the same six requirements apply, provably, regardless of what the field calls itself.
A POMDP (Partially Observable Markov Decision Process) has four ingredients: a hidden state (the true situation, unseen), actions (the choices available), observations (noisy, partial signals about the hidden state — all the decision-maker actually gets), and rewards (the consequence of an action in a given state). The defining feature is the gap between state and observation — exactly where several of the six structural failures live.
Why nothing else is more comprehensive: every simpler alternative is this structure with a piece deleted, not a rival to it. Remove the hidden/observed gap and you get an ordinary MDP — which can't even express reward ambiguity, since that requires a hidden parameter learned only through noisy signals. Remove the actions and reward and you get a Hidden Markov Model — a description, not a decision framework. Collapse the state dynamics to nothing and you get a multi-armed bandit. Add a second strategic agent and you get a game — more machinery than a single decision-maker's claim needs. Nothing adds expressive power beyond this structure for this problem; everything else subtracts from it.
Not every primitive needs a genuine gap between S and O. P1, P2, P3, and P6 are about not knowing something. P4 and P5 are about indecision or boundary-crossing despite the state being fully known — the structure correctly degenerating to the fully-observed special case for those two.
A reader meeting six primitives named things like Cross-Context Safety Transfer and Policy Simplification, proven against a POMDP in Lean 4, could reasonably conclude this is a paper about AI — about what a large language model or a learning agent needs before its decisions can be trusted. That conclusion is fair: AI systems making sequential decisions under uncertainty are the most visible, highest-stakes case this result speaks to, and nothing here excludes them.
But the six primitives are proven over the abstract structure of a POMDP — a hidden state, actions, noisy observations, reward — never over anything specific to a model, a training run, or a policy network. That abstraction is what gives the result its reach, and it's why the sections below turn to investment, insurance, and consulting: three domains with no machine learning in view, each still built from the same tuple and paying the same six costs when a primitive goes missing. They illustrate the theory's scope; they don't define its edge. The necessity results bind any sequential decision-making process that lands in Class C, whatever the domain calls itself — that reach, not any single example, is what makes this a unified functional theory.
| # | Failure | Hidden state (S) | Actions (A) | Observed (O) | Reward (r) |
|---|---|---|---|---|---|
| P1 | Reward ambiguity | The company's true value driver vs. its narrative | Underwrite the stated narrative / the independently-inferred driver | Guidance, price, financials — optimistic or incomplete | Identifying the true driver outperforms |
| P2 | Absorbing trap | Position liquidity and covenant headroom | Hold thinly-traded/levered / hold liquid, covenant-clear | Mark-to-market price, margin balance | A covenant trigger or margin call converts a loss into a permanent one |
| P3 | Local optimum | Whether a cheap security is genuinely undervalued or a value trap | Buy on the screen / invest in deeper diligence | Headline multiples vs. diligence findings | Screen-cheap pays moderate, reliable; genuine value pays more but needs sustained diligence |
| P4 | Deterministic optimality | Whether the thesis is already confirmed by repeated, independent data | Act on the settled thesis / keep hedging against it | Consistent confirming signal, no longer noisy | Committed sizing captures the edge; continued hedging destroys value through cost alone |
| P5 | Hard constraint | Position size relative to mandate/leverage/margin-of-safety threshold | Inside the threshold / outside it | Same as S — directly readable | Breaching it costs a fixed penalty regardless of the return case for breaching |
| P6 | Regime change | Macro regime or rate cycle, pre- and post-shift | Continue old-regime sizing / re-underwrite | Ongoing price, rate, fundamental data | A thesis correct in one regime can be wrong in the next, unannounced |
S = {ValueTrap, GenuineValue} -- is the cheap valuation real or structural decay?
A = {ActOnScreen, InvestInDiligence}
O = ScreenMultiple ∈ ℝ -- headline signal, correlated with but not equal to S
r = 1/2 if ActOnScreen
1 if InvestInDiligence and it resolves to GenuineValue
0 if InvestInDiligence and it resolves to ValueTrap
This is E3(p) from the paper, unchanged in structure — stay renamed act on the screen, bridge renamed invest in diligence.
| Primitive | What's required |
|---|---|
| X1 | Distinguishing a company's actual value driver from the narrative it presents. |
| X2 | Recognizing the position structure that converts a loss into a permanent one, and not holding it once recognized. |
| X3 | Sustained diligence investment past the comfortable, screen-cheap answer. |
| X4 | Sizing to the conviction the evidence already supports, not continuing to hedge an already-settled thesis. |
| X5 | Treating a mandate or margin-of-safety threshold as a wall, never traded against upside elsewhere. |
| X6 | Re-underwriting once the regime has shifted, rather than defending the original call. |
| # | Failure | Hidden state (S) | Actions (A) | Observed (O) | Reward (r) |
|---|---|---|---|---|---|
| P1 | Reward ambiguity | A policyholder's true risk propensity | Price as disclosed class / as independently-inferred | Application data, self-reported history — subject to adverse selection | Correct classification matches loss experience; mismatch erodes margin silently |
| P2 | Absorbing trap | Solvency relative to an uncapped/under-reinsured exposure | Bind uncapped exposure / bind capped, reinsured risk | Loss experience, uneventful until it isn't | A single tail event can trigger insolvency, with no warning |
| P3 | Local optimum | Whether a new underwriting model beats the mature product line | Continue traditional line / invest in the new model | Loss ratios, growth on the current book | Traditional line pays steady, capped growth; the better model needs sustained investment |
| P4 | Deterministic optimality | Whether a fraud/risk-flag pattern is already decisively validated | Codify the validated rule / keep it discretionary | Consistent confirming signal across loss-history reviews | Codifying captures the proven margin; optionality lets solved leakage recur |
| P5 | Hard constraint | Reserve/capital level relative to the regulatory minimum | Keep capital above the minimum / drop below it | Same as S — directly readable from financial statements | Dropping below the floor is categorically prohibited, regardless of the profit case |
| P6 | Regime change | The underlying claims process, pre- and post-shift | Price on the historical triangle / re-price to the new process | Realized claims, legal and climate developments | Historical pricing stops being correct the moment the process shifts, unannounced |
S = ReserveLevel ∈ ℝ
A = ℝ (dividend/investment/growth action)
F = { a : ReserveLevel − a ≥ RegulatoryMinimum } -- feasible set
r(s, a) = payout(a) if a ∈ F, else −M
This is E5 from the paper, unchanged in structure — the forbidden action region renamed the regulatory solvency floor.
| Primitive | What's required |
|---|---|
| X1 | Inferring true risk propensity, not just pricing off self-reported signals. |
| X2 | Recognizing the underwriting action that creates uncapped exposure, and not repeating it. |
| X3 | Sustained investment in new underwriting models past the capped-growth status quo. |
| X4 | Codifying a validated rule into binding policy rather than leaving it discretionary. |
| X5 | Treating the solvency floor as a wall, never traded against growth elsewhere. |
| X6 | Re-pricing once the claims process has shifted, rather than defending the historical triangle. |
| # | Failure | Hidden state (S) | Actions (A) | Observed (O) | Reward (r) |
|---|---|---|---|---|---|
| P1 | Reward ambiguity | True root cause: process vs. people/incentive failure | Diagnose-as-process / diagnose-as-people | Interview and KPI signals, correlated but not conclusive | Success only if diagnosis matches the true cause |
| P2 | Absorbing trap | Client relationship health | Recommend aggressive restructuring / an incremental, reversible step | Client feedback each step | The aggressive action can trigger irreversible relationship loss |
| P3 | Local optimum | Whether a better methodology exists for this client | Run the standard playbook / pilot a new approach | Engagement outcomes | Standard playbook pays reliable, capped return; the new approach needs sustained piloting |
| P4 | Deterministic optimality | Whether this matches a pattern validated by past engagements | Apply the proven intervention / keep it "under review" | Consistent track record across prior engagements | Applying it wins by a fixed margin every time |
| P5 | Hard constraint | Engagement scope relative to the conflict-of-interest boundary | Inside professional bounds / crossing the line | Same as S — fully visible | Crossing the line costs a fixed penalty regardless of fee upside |
| P6 | Regime change | Client's competitive/regulatory environment, pre- and post-disruption | Continue the original strategy / adapt | Ongoing engagement signals | The pre-disruption strategy stops being optimal, unannounced |
S = {ProcessFailure, PeopleFailure} -- hidden true root cause
A = {DiagnoseProcess, DiagnoseIncentive}
O = InterviewSignal ∈ ℝ -- noisy correlate of S
r(s, a) = 1/2 + Δ if a matches s, else 1/2 − Δ
This is E1₀/E1₁ from the paper, unchanged in structure — arm renamed diagnosis, Θ* renamed root cause.
| Primitive | What's required |
|---|---|
| X1 | Distinguishing the true root cause from its stated symptom, updated as evidence arrives. |
| X2 | Recognizing the action that creates irreversible relationship damage, and not taking it. |
| X3 | Sustained investment in exploring beyond the standard playbook. |
| X4 | Committing to the intervention the evidence has settled, not re-litigating it. |
| X5 | Treating professional and ethical boundaries as walls, never traded against fee upside. |
| X6 | Discarding a diagnosis once the client's environment has genuinely shifted. |
This environment is in Class C. Under the paper's necessity results, the matching primitive is not optional for it — its absence guarantees regret that grows without bound the longer the process operates, regardless of what the domain calls itself. Full stop.
A process can look like it's succeeding and still be mathematically guaranteed to fail. These aren't in tension — "looks like it's succeeding" and "regret" measure different things.
Regret is the running gap between what was captured and what was achievable — not a score for the latest period. A process can post steady, positive results for a long time while that gap grows underneath it the entire time. In the corridor behind X2, the safe action pays real reward every step, right up until the trap fires. In the regime-switch behind X6, a stale strategy keeps paying a real, positive return — just a smaller one, forever, with no announcement.
For a process lacking a required primitive, this gap doesn't fluctuate. It grows at a fixed rate, without limit, for as long as the process runs.
Time without incident is not evidence the gap has stopped growing.
Every example here is the simplest possible version of its failure, deliberately. A real investment, engagement, or policy has more moving parts, never fewer — and each one is another place for the same failure to hide.
If you cannot make a two-foot leap, you cannot make a ten-foot leap. The two-foot leap isn't a warm-up. It's a floor. A harder jump has never made the underlying requirement optional.
A necessity result proven on the smallest case is a floor that persists into every harder case containing it. That's why these examples stay minimal.
The six primitives and the necessity results are this paper's own contribution. The environments they're proven on are not built in a vacuum — each sits inside an existing line of stochastic-control literature. Closest analogues below, domain by domain, so a reader already familiar with that literature can see exactly where this paper's constructions depart from it.
Markov/POMDP-shaped control of insurer reserves, dividends, and reinsurance.
Portfolio optimization under a hidden, regime-switching market state.
No existing literature models this directly as a POMDP or adjacent framework. A direct search found none; the closest classical POMDP survey (Monahan, 1982, Management Science) lists "internal auditing" as an application area, which is a related but distinct activity. This site's consulting construction is original, built directly from Definition 2.1 — its validity rests on the construction itself, not on prior precedent.
No published formalization shows these six primitives are unnecessary, substitutable, or absent from any member of Class C — across consulting, investing, insurance, or elsewhere.
If a firm believes its domain sits outside Class C, or that one of the six doesn't apply to it, the standard of proof is the one this paper met: a machine-checked counter-formalization in Lean 4. We'd welcome it.
Until one exists, the mathematics stands as published — open-source, independently verifiable in minutes, free to build on with citation only.
Proving a process fails without something is not the same claim as proving that having it guarantees success. These sit on opposite sides of the same mathematics. Confusing them is its own mistake.
Necessity is a lower bound. It holds regardless of what a decision-maker wants — no goal variable, no domain, no opinion about what "winning" means required.
Success is an upper bound. It says what a specific approach can achieve — and "achieve" requires first naming what's being optimized for. That naming isn't mathematics. It's a domain deciding what it wants.
The greatest returns achievable, given the mandate.
The most efficient outcome achievable for the client.
Policies covering real loss, no loopholes or fine print — protecting client and insurer at once.
The six primitives required to avoid failure don't change across these three. What changes is emphasis — which primitives must be held robustly, not just adequately, and which domain-specific variables layer on top — depending on which success is being built toward.
| Investment | Insurance | Consultancy | |
|---|---|---|---|
| X1 | ✓ | ✓ | ★ |
| X2 | ✓ | ✓ | ✓ |
| X3 | ★ | ✓ | ✓ |
| X4 | ✓ | ✓ | ✓ |
| X5 | ✓ | ★ | ✓ |
| X6 | ✓ | ✓ | ✓ |
✓ = fully required, same as every other domain. ★ = the flagship case worked through on the previous page — where that domain's emphasis is sharpest, not where the other five stop mattering.
Ismail is 36, based in South Africa, and entirely self-taught — in mathematics, in economics, in the mechanics of business, and in enough psychology to notice what happened next.
In September 2025, while trying to understand his own decision-making rather than anyone else's, he noticed that his reasoning kept passing through the same six-step pattern, regardless of what the decision was about. For a while that observation stayed a personal heuristic — a way of checking his own thinking before acting on it. What changed was recognizing that the pattern wasn't just useful. It looked like it could be proven.
He had no formal training in mathematics before that point. He taught himself what a proof at this level required, in roughly the order he needed it. By April 2026 the result existed as a prose corpus, largely complete.
Proving it, though, made something else clear: this wasn't shaping up to be a simple theorem. The same structure kept holding as Ismail tested it against a wide range of industries and disciplines — not as a loose analogy, but as what the finished paper's own title now calls it: a Unified Functional Theory. Unified, because the same handful of structural failures recur across investing, operations, public policy, and reinforcement learning alike, with one proof serving all of them at once. Functional, because what's being characterized is what a decision process has to do under uncertainty — never which field it happens to sit in. The claim is a deliberately narrow one, though: it holds for a specific, defined class of environments — what the papers call Class C — sequential decisions made under real uncertainty, where information is incomplete, conditions shift, and mistakes aren't always reversible. No more, no less.
That is where the difficulty started. An independent researcher with no institutional affiliation, presenting a result that needs specialists in formal logic and decision theory to evaluate the mathematics — and separate specialists again for each domain the mathematics was shown to reach — has no realistic route through traditional peer review on any usable timeline. So the mathematics was rebuilt instead as a Lean 4 formalization: something a kernel checks deterministically, without needing to check the author first. Learning Mathlib well enough to do that produced two things — the 12,700-line proof this site describes, and, as a byproduct of the learning itself, Ismail's Glossary. Every paper written since has been re-anchored to that verified core as its foundation.
None of this is the conventional route into a result like this. It is the route available to someone starting with no institution behind him and no formal mathematics in front of him. The reason it does not need to be taken on faith is the same reason stated at the start of this paper: nothing here rests on who proved it. It rests on whether Lean's kernel accepted it. It did.
This paper is one part of a larger, ongoing body of work. Two threads continue past it: a reference project built in the same Lean 4 ecosystem, and further papers that extend the six primitives themselves into domains further still from the ones illustrated above.
A complete navigation index for Mathlib, the Lean 4 library this paper's proof is built on.
Mathlib is one of the largest libraries of formalized mathematics in existence — over 9,150 modules, with no plain-language map of what any of them contain. Ismail's Glossary gives every module a short, human-readable description, an interactive atlas of how its 32 domains relate, and a progressive reference for learning Lean itself, so navigating the library no longer requires already knowing what you're looking for.
The necessity results proven here are stated abstractly enough to travel beyond business decision-making entirely. Companion papers have since applied the same six primitives to developmental psychology, to psychotherapy, and to economic coordination theory. The developmental-psychology paper argues that Erikson's psychosocial stages, Maslow's motivational hierarchy, and Bowlby's attachment phases independently converge on the same six-stage sequence proven necessary here — evidence, on that reading, of shared underlying structure rather than analogy. Further papers are in preparation.
The mathematics to build a formal bridge from necessity to a specific success is published, open, and in Lean. Building one takes more than Part III's sequential-dependence machinery on its own — measure-theoretic probability and martingale convergence are necessary, but not sufficient. Sufficiency theorems have been attempted before by people who understood optimization well; most fail quietly, because they were never grounded in a rigorous account of failure to begin with. Part III's scaffold only holds because Part I first proved which primitives are actually necessary and Part II proved that none of the six can substitute for another — skip that grounding, and a "sufficiency" result is an assumption wearing a proof's clothing. Building the bridge properly means holding necessity, independence, and the sequential scaffold together, formalizing that combination well enough in Lean 4's dependent type theory to extend it rather than take someone else's word for it, and bringing a working command of whatever domain the bridge needs to land in.
That combination is rare enough on its own. Ismail discovered these six primitives, proved them, and formalized the proof himself, and has since carried the same structure into economics and into psychology — a field that has never been especially hospitable to formal proof. That is not one success extrapolated into a guess at a second. Moving the same structure across domains is not a method he learned to apply; at this point, it is simply how he thinks. Organizations that need the bridge built for a specific case can reach him directly.