OpenSentience · Epistemic Arithmetic · v0.1 invariant deontic temporal reflexive epistemic strategic resource

The sixth rung · what the agent knows

Epistemic Arithmetic

Every rung so far governs what an agent should do. None of them say what it knows — yet the whole premise of this stack is that intelligence is accumulated knowledge. This rung is the missing modality: knowledge and graded belief over possible worlds. Knowing is truth across every world you still consider possible; learning is crossing worlds off; and the difference between not knowing and knowing that you don't know is exactly the κ signal that tells the system when to stop and deliberate.

the modality ladder
1 · alethic — necessity / safety  →  Invariant · refuses
2 · axiological — value / preference  →  Heuristic · ranks
3 · deontic — obligation  →  Deontic · obliges & escalates
4 · temporal — liveness over time  →  Temporal · shields & sustains
5 · reflexive — self-revising norms  →  Reflexive · revises & entrenches
6 · epistemic — knowledge & belief  →  this page · knows & learns

IThe algebra

A model is a set of possible worlds — each a way things might be — and, for each agent, an accessibility relation giving the worlds it can't yet rule out. Knowledge is the universal: K φ holds iff φ is true in every accessible world. Belief is the same shape over a weaker relation, and possibility is the dual (¬K¬φ).

p,q ¬p,q ¬p,¬q considered possible
both solid worlds are possible:
K qknown (q true in both)
K pnot known (p differs)
K¬K pa known-unknown
learn p → drop the ¬p world → K p

Knowledge vs belief — the relation makes the difference

Both operators read "true in all accessible worlds." What separates them is the shape of the relation, and that single structural fact decides whether the modality is factive.

KNOWLEDGE — S5

Accessibility is an equivalence (reflexive, transitive, symmetric). The actual world is always among those considered possible, so Kφ → φ — you can only know what's true. Introspective: Kφ → KKφ and ¬Kφ → K¬Kφ.

BELIEF — KD45

Accessibility is serial but not reflexive. The actual world need not be reachable, so Bφ → φ fails — you can believe falsehoods. Still consistent (¬(Bφ∧B¬φ)) and introspective.

The other two operations are dynamics and pooling. Learning is a truthful public announcement: announce(ψ) deletes every world where ψ is false, shrinking the possibilities — so knowledge only grows. Across agents, everyone-knows is per-agent knowledge, common knowledge is its fixpoint (everyone knows that everyone knows…, computed as reachability over the union), and distributed knowledge pools information by intersecting what each agent can rule out — the group knows more than any member.

IIThe laws

Eight for the modal core, three for the bridge to the rest of the ladder. The highlighted cross-check is the defining split — factivity holds for knowledge and fails for belief.

E1factivity (T): Kφ → φ — knowledge is truthful
E2distribution (K): K(φ→ψ) ∧ Kφ → Kψ
E3positive introspection (4): Kφ → KKφ
E4negative introspection (5): ¬Kφ → K¬Kφ — the known-unknown
E5belief consistency (D): ¬(Bφ ∧ B¬φ)
E6Kφ → Bφ — knowing is stronger than believing
E7learning monotonicity: announcement preserves knowledge
E8common knowledge: Cφ → Eφ (fixpoint of everyone-knows)
EB1the confidence gate is monotone in θ; K = belief at θ=1
EB2a known-unknown routes to deliberate, not act (the κ link)
EB3pooled (distributed) knowledge dominates any individual's

IIIThe laws, checked

Each law against random models in your browser — knowledge laws over random S5 partitions, belief laws over KD45 doxastic sets — on the engine that ships in box-and-box.

11lawspassingfailingms

IVType sketch

// a model: possible worlds + per-agent accessibility
interface Model { worlds: World[]; actual: World; access: Record<Agent,(w:World)=>World[]>; }

function knows(m: Model, a: Agent, φ: Formula): boolean;      // true in all accessible worlds
function believes(m: Model, a: Agent, φ: Formula, θ?: number): boolean; // graded — the β link
function knowsItDoesntKnow(m: Model, a: Agent, φ: Formula): boolean; // K¬Kφ — the κ signal
function route(m: Model, a: Agent, φ: Formula): "act"|"deliberate"|"uncertain";

// learning = truthful public announcement (delete the ruled-out worlds)
function announce(m: Model, ψ: Formula): Model;

// multi-agent
function everyone(m: Model, ags: Agent[], φ: Formula): boolean;
function common(m: Model, ags: Agent[], φ: Formula): boolean;       // fixpoint of everyone-knows
function distributed(m: Model, ags: Agent[], φ: Formula): boolean;   // pooled

VWorked example

An agent considers two worlds possible — {p,q} and {¬p,q}. It can't act on p, but it can detect that it can't, and route to deliberation. Then it learns p and the gap closes. Finally, two agents who each know half pool into distributed knowledge of the whole. Runs live.

VIStanding on

Modelling knowledge as truth across accessible possible worlds is Hintikka's (1962); the multi-agent machinery — everyone-knows, common knowledge, distributed knowledge — is Fagin, Halpern, Moses & Vardi, Reasoning About Knowledge (1995); common knowledge as the coordination prerequisite is Aumann (1976) and Halpern & Moses's coordinated-attack result; and learning as world-eliminating announcement is Plaza's public announcement logic (1989). The connection to confidence (β as graded belief) and to κ (a known-unknown as the deliberation trigger) is what wires this rung to the rest of the stack. None of the logic is new; the contribution is the executable, property-tested synthesis.

Hintikka, J. (1962). Knowledge and Belief. Cornell University Press.
Aumann, R. (1976). Agreeing to Disagree. Annals of Statistics 4.
Plaza, J. (1989). Logics of Public Communications. (Public announcement logic.)
Fagin, Halpern, Moses & Vardi (1995). Reasoning About Knowledge. MIT Press.