Skip to content

exhibit: complete modal K, T, S4, and S5 decision procedures #5

Open

Description

@SMC17

Objective

Restore the core normal modal family as separate complete finite-model exhibits rather than one finite-frame evaluator labeled S4.

Required architecture

  • Shared validated modal formula AST and parser.
  • Frame validators for arbitrary K, reflexive T, reflexive-transitive S4, and equivalence-frame S5.
  • Sound and complete terminating tableau, filtration, or bounded-model construction appropriate to each named system.
  • Serialized derivations for validity and concrete finite Kripke countermodels for invalidity.
  • Independent evidence checker separated from search heuristics.

Acceptance gates

  • Exact syntax and Kripke semantics documented per system.
  • K/T/S4/S5 canonical axiom and separating-countermodel corpus.
  • Exhaustive small-formula/frame differential oracle.
  • Invalid frame-class claims fail closed.
  • unknown is impossible for the complete admitted fragment or carries an explicit resource reason outside it.
  • Mutation tests reject corrupted derivations and countermodels.
  • Lean oracle formalizes frame conditions and at least the soundness of each characteristic axiom.
  • Each system has its own evidence-backed museum contract.

Activity

  1. added
    exhibit
    needs-specification
    proof
    on Jul 21, 2026
  2. SMC17 commented on Aug 4, 2026

    @SMC17
    OwnerAuthor

    Progress note (v0.21)

    Partial movement on the modal museum path — not a close:

    • modal/kripke.zig — finite-frame K evaluator (existing fragment)
    • modal/epistemic_deontic.zig — multi-agent Kᵢ + deontic O/P with serial frame check

    Still missing per this issue’s acceptance gates: separate complete decision procedures for T/S4/S5, filtration/tableau with serialized derivations, mutation tests, Lean frame-condition formalization, and per-system museum contracts. STATUS residuals call this out explicitly. Keeping open.

  3. SMC17 commented on Aug 4, 2026

    @SMC17
    OwnerAuthor

    Progress (v0.22)

    src/modal/normal.zig now provides a finite-frame decision procedure for K, T, S4, S5:

    • Frame validators: reflexive (T), +transitive (S4), +symmetric (S5)
    • Exhaustive relation/valuation enumeration for ≤4 worlds, ≤3 atoms
    • Separating example: □p → p is T-valid and K-invalid

    Registry rows modal-t, modal-s4, modal-s5, modal-normal raised to fragment.

    Still open vs this issue’s full acceptance gates: serialized derivations, independent evidence checker, mutation tests, Lean formalization of frame conditions, per-system museum contracts. Not closing.

  4. SMC17 commented on Aug 4, 2026

    @SMC17
    OwnerAuthor

    Progress (v0.23)

    src/modal/cert.zig adds evidence objects:

    • ValidityCert / CountermodelCert with formula fingerprints
    • Independent checkCountermodel / checkValidity (do not trust producer Boolean)
    • Mutation test: corrupted fingerprint fails the checker
    • Countermodel for □p → p on K; validity cert on T

    Still open: Lean formalization of frame conditions, full museum contracts, serialized derivation trees beyond the finite enumerator. Keeping open.

  5. SMC17 commented on Aug 4, 2026

    @SMC17
    OwnerAuthor

    Zig-side status (v0.24)

    Admitted finite fragment is now evidence-bearing:

    Gate Module
    K/T/S4/S5 frame validators + decision modal/normal
    Validity + countermodel certificates modal/cert
    Independent checkers + mutation modal/cert tests
    Serialized forcing traces modal/trace

    Still open: Lean formalization of frame conditions / characteristic axioms, full museum exhibit contracts, dedicated parser beyond the AST. Those require Lean toolchain work (see docs/LEAN_ORACLE.md), not more Zig spines.

  6. added
    type: feature
    priority: P2
    status: needs-decision
    on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    exhibitneeds-specificationpriority: P2proofstatus: needs-decisiontype: feature

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions