# Where the quantum is: four ideas > Part of the [Quantum Logical Framework (QLF)](README.md). **ZFA** (Zero Free Action) is equal and > opposite quantum logical action with zero free energy, the principle of QLF. QLF explains what is usually called the magic of the quantum with four ideas. Each one appears elsewhere in the repository. This page puts them side by side, says where each is proved or explained, and labels each claim with one of the four kinds in [Framing.md](Framing.md) §2: **Derived**, **Known fact**, **Bridge** or **Reading**. ZFA itself is the one conjecture ([Framing.md](Framing.md) §1). 1. **An a priori database of the possible.** Every admissible history already exists as possibility. 2. **Native active inference.** A fair, decisively resolved binary distinction is an inference worth exactly one bit. 3. **Strange loops, or reflection.** A system can read its own record, and the reading returns to that record. 4. **History selection.** Only the histories that close become events. The downstream repositories state the same four ideas in terms of their own code: [quantum-os](https://github.com/rhovision-org/quantum-os/blob/work/docs/the-quantum.md) (the canonical page for the software), [rhogov](https://github.com/rhovision-org/rhogov) and the [rholo](https://github.com/rhovision-org/rholo) node. This page is the source they draw on. --- ## 1. An a priori database of the possible The possibility space is the free monoid on the eight twists. "Only ZFA-closed histories become events. All other histories remain pure possibility" ([Philosophy.md §3](Philosophy.md#3-possibilism-all-possible-logical-systems-exist-a-priori)). The **census**, the exact count of which histories close at each length, is that database written down: [`census_inventory.py`](census_inventory.py) builds and re-verifies it into `data/census_inventory.json`. - **Derived.** The census is an exact finite computation over a stated domain. - **Derived, on the stated ensemble.** The census is a *count measure*: on a specified ensemble a closure's frequency is its multiplicity there. The inventory keeps the measures apart (ways `W`, signed total `A`, Kraft mass, normalized event weight) and records where interference limits the unsigned count. Identifying any of them with physical Born probability is not claimed here; that has its own status in [Born_Rule.md](Born_Rule.md) and [Claim_Status.md](Claim_Status.md) ([Information_Physics.md](Information_Physics.md)). - **Reading.** That every unclosed way is *real* is a reading. Its formal content is only the absence of a second selector ([Philosophy.md §3](Philosophy.md#3-possibilism-all-possible-logical-systems-exist-a-priori), "What possibilism proves, and what it doesn't"). A search over the database asks it a question rather than inventing an answer: "the search is the experiment" ([QucalcSearch.md](QucalcSearch.md#what-search-and-solve-are)). ## 2. Native active inference In QLF's reading, active inference is the substrate's own rule, not a model placed on top of it. The elementary case is a half-spin closure read as one binary experiment: a fair prior over its two orderings, resolved decisively to one of them. Two Lean results meet at that case: - **Derived: the one-bit quantum.** `zfa_closure_minimizes_free_energy` states `-binary_kl 1 (1/2) = -Real.log 2`: decisive resolution from the uniform prior changes the KL term by log 2 ([`QLF_FreeEnergy`](lean/QLF_FreeEnergy.lean), [MRE.md](MRE.md)). - **Derived: the optimal Bayesian update.** One binary observation is worth at most log 2 on average (`eig_le_log_two`). For a non-degenerate prior, it is worth exactly log 2 iff the prior is uniform and the observation perfectly discriminating, under either labelling of the outcomes (`eig_eq_log_two_iff`) ([`QLF_MrEUpdate`](lean/QLF_MrEUpdate.lean), [MrE_Update.md](MrE_Update.md)). The bound holds on average only: a surprising single outcome can move belief further (`pointwise_bound_false`). - **Reading.** Mapping a physical closure onto that binary experiment is a reading with a stated domain: the fair, decisively resolved binary case. It is not a theorem about every closure. - **Bridge (CC5).** That this log 2 is Friston's variational free energy is open. Full resolution of one bit from a uniform prior matches one free-energy change *in magnitude*, and a constant identity over beliefs is impossible ([Cooperative_Intelligence.md](Cooperative_Intelligence.md), CC5). Within that domain, one bit is *the quantum*: the most information a single binary distinction can carry, extracted exactly when it is fair and decisively resolved. ## 3. Strange loops, or reflection The observer's self-model, "a finite Markov blanket modeling itself, its environment, and their interaction", has the shape of a strange loop. It is a loop in the reversible possibility algebra, not a chain of events in realised history ([Philosophy.md §3d](Philosophy.md#3d-only-logic-is-assumed--and-time-loops-live-in-possibility)). The formal statement is narrow: `no_time_loops_from_logic` shows that in a world satisfying weakening (equivalently, persistence of facts), no chain of fact-acquiring events returns to its start. It is not an unconditional theorem against closed timelike curves; worlds without weakening can loop (`loopWorld_has_time_loop`). QLF is also one. Its proofs are checked in Lean and Mathlib, and the substrate then re-derives the mathematics Lean is built from; the loop is not vicious because the finitary content is conservative over the `RCA₀` core ([Strange_Loops.md](Strange_Loops.md) §2). - **Reading.** The strange-loop description is a shape constraint, not a theorem. - **Discipline.** A loop must return conservatively to a finite record. If the return imports its conclusion it is circular; if it proves a new finitary fact it is a one-way bridge, and stays `B-OPEN` ([Strange_Loops.md](Strange_Loops.md) §1). ## 4. History selection Of everything possible, only histories that achieve Zero Free Action become events. Selection is "one negation … realized *only if it closes*", a distinction that met its affirmation and cancelled ([Philosophy.md §3](Philosophy.md#3-possibilism-all-possible-logical-systems-exist-a-priori)). Keep the conjecture and the formal statements apart: - **The one conjecture (A01).** That ZFA is the sole selection principle for which histories become physical events is QLF's one conjecture ([Framing.md](Framing.md) §1), not a theorem. - **Derived, about defined objects.** `full_zeno_prune` computes a fixed-point residual on `TopoString`, and `achieves_ZFA` means that residual is empty ([`QLF_Axioms`](lean/QLF_Axioms.lean)). `contradiction_no_receipt` shows that a string in the defined unbalanced-ledger sense (`IsContradiction`) does not achieve ZFA ([`QLF_ContradictionReceipt`](lean/QLF_ContradictionReceipt.lean)). Neither is a statement about arbitrary semantic contradiction. - **Derived.** ZFA is a definition in Lean, not an axiom, so stating it adds nothing to the logic. - **Keep the kinds of closure apart.** Agreement is not selection by the world. Consensus with no observation among its sources cannot discriminate the world (CC0, `unobserved_consensus_world_free`), and copies add no origin (CC3) ([Cooperative_Intelligence.md](Cooperative_Intelligence.md)). - **Bridge (CC4).** A group decision is a ZFA closure only under an encoding of the cooperative history into a QLF history fixed in advance. It is equivalent to exact one-for-one balance of needs and offers and fails for order-sensitive semantics under fixed per-act encodings. Until it is closed for a given application, that application's verdicts are QLF-inspired, not QLF-derived. --- ## The four together The database holds every possibility. Selection, the one conjecture, keeps the ones that close. In the elementary fair, decisively resolved binary case, a closure is an optimal one-bit inference. Reflection lets a system read what it selected and build on it, and every loop must return to a record anyone can recheck. None of it is mysterious: on a stated ensemble, frequency becomes a count of ways. | Idea | Where it is in QLF | Kind | |---|---|---| | A priori database of the possible | [Philosophy.md §3](Philosophy.md#3-possibilism-all-possible-logical-systems-exist-a-priori), [`census_inventory.py`](census_inventory.py), [Information_Physics.md](Information_Physics.md) | census a Derived count measure on its ensemble; Born identification not claimed; reality of unclosed ways a Reading | | Native active inference | [`QLF_FreeEnergy`](lean/QLF_FreeEnergy.lean), [`QLF_MrEUpdate`](lean/QLF_MrEUpdate.lean), [MRE.md](MRE.md), [MrE_Update.md](MrE_Update.md) | KL identity and expected-gain bound Derived; closure-as-binary-experiment a Reading; identity with Friston's VFE a Bridge (CC5) | | Strange loops, reflection | [Philosophy.md §3d](Philosophy.md#3d-only-logic-is-assumed--and-time-loops-live-in-possibility), [Strange_Loops.md](Strange_Loops.md) | Reading, under the conservative-return discipline; `no_time_loops_from_logic` Derived for worlds with weakening | | History selection | [Philosophy.md §3](Philosophy.md#3-possibilism-all-possible-logical-systems-exist-a-priori), [`QLF_Axioms`](lean/QLF_Axioms.lean), [Framing.md](Framing.md) §1 | selection the one conjecture (A01); `full_zeno_prune` and `contradiction_no_receipt` Derived about defined objects; group decisions a Bridge (CC4) | This page promotes no physical claim. The physics side has its own register, [Claim_Status.md](Claim_Status.md).