AGM expansionK + φ: add belief if absent. Writes the result into out, returns its
length (no deductive closure beyond the explicit literals — a finite base model).
General modal logic over a Kripke frame — the shared modal substrate (□/◇) that
the specific modalities (deontic, epistemic) specialise. Accessibility is
(world →accesses→ world') (predicate == accesses); a world satisfies a
proposition when (world, holds, prop) is present. Zero-heap (linear scans).
AGM revisionK * φ via the Levi identity: drop any belief about belief.atom (so the
contrary ¬φ is contracted), then add φ. The result satisfies success (φ ∈ K*φ) and
consistency (never both φ and ¬φ). Writes into out, returns its length.