A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Kripke Structures

Research Depth 93 in the knowledge graph ☐ I know this ☆ Set as goal
7topics build on this
430prerequisites beneath it
See this on the map →
Introduction to Propositional LogicModel Checking→→BDD-Based VerificationBüchi Automata and Automata-Theoretic LTL Model Checking+1 more
kripke transition-system state-labeling modal-logic semantic-model

Core Idea

A Kripke structure is the standard semantic model for temporal and modal logics, providing the mathematical framework that model checkers operate over. It consists of a set of states S, a transition relation R (which states can follow which), an initial state set I, and a labeling function L that assigns to each state the set of atomic propositions true there. Temporal logic formulas are evaluated against Kripke structures: the structure defines all possible behaviors of the system, and the model checker determines whether every behavior (or some behavior) satisfies the specification.

Explainer

A Kripke structure (named after logician Saul Kripke) is the formal mathematical object that gives meaning to temporal logic formulas. When a model checker verifies that a system satisfies a temporal specification, it is checking the specification against a Kripke structure that represents the system. The structure has four components: a finite set of states S representing possible system configurations, a set of initial states I (where the system begins), a transition relation R defining which states can follow which (R must be total — every state has at least one successor), and a labeling function L that maps each state to the set of atomic propositions true in that state.

The labeling function is the critical bridge between the system model and the specification language. Temporal logic formulas are built from atomic propositions like "mutex_held" or "buffer_full" combined with temporal operators. The labeling function tells the model checker which propositions are true in which states. For example, in a mutual exclusion protocol, state s3 might have L(s3) = {cs1, cs2}, meaning both processes are in their critical sections — a specification like AG(not (cs1 and cs2)) would fail at s3, and the model checker would report a counterexample path from an initial state to s3.

For concurrent systems, the Kripke structure of the whole system is built by composing the structures of individual components. In asynchronous (interleaving) composition, each global state is a tuple of component states, and a global transition fires when any single component takes a local step. If process A has 50 states and process B has 80 states, the composite system has up to 4,000 states — and with k processes of n states each, the composite has up to nk states. This product construction is the formal source of the state explosion problem. Every possible interleaving of component actions is represented as a distinct path in the composite Kripke structure, which is exactly what makes model checking exhaustive but also what makes it expensive.

The evaluation of temporal formulas on Kripke structures follows a recursive definition. For CTL, the model checking algorithm works bottom-up: for each subformula, compute the set of states where it holds. EF p holds in a state s if s can reach (via transitions) some state where p holds — this is a simple backward reachability computation. AG p holds in s if every state reachable from s satisfies p. The algorithms are polynomial in the size of the Kripke structure times the length of the formula, which is efficient — the bottleneck is the size of the structure, not the complexity of the checking algorithm.

Kripke structures are intentionally abstract — they model the essential state and transitions of a system while discarding implementation details. A 1000-line C program implementing a protocol might be modeled as a Kripke structure with a few hundred states capturing only the protocol logic (who holds the lock, what messages are in flight, which phase each process is in). This abstraction is both the power of model checking (making exhaustive exploration feasible) and its limitation (the model might not faithfully represent the actual implementation). Ensuring that the Kripke structure accurately reflects the real system — or that an automatically extracted model preserves the properties of interest — is a fundamental challenge in applying model checking to practice.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Factorial → Permutations → Combinations → Counting Principles: Addition and Multiplication Rules → Introduction to Graph Theory → Propositional Logic Foundations → Logical Equivalences → Boolean Algebra → Boolean Type and Truth Values → Comparison Operators and Boolean Tests → Logical Operators and Boolean Algebra → Boolean Algebra and Fundamental Laws → Logic Gates Fundamentals → Implementing Boolean Functions with Gates → Karnaugh Map Simplification → Combinational Circuit Design → Flip-Flops and Latches → Finite State Machines (FSMs) → Deterministic Finite Automata (DFA) → Nondeterministic Finite Automata (NFA) → Two-Way Finite Automata → NFA to DFA Conversion (Subset Construction) → DFA Properties and Minimization Algorithms → Regular Languages: Definition and Characterization → Context-Free Grammars (CFGs) → Pushdown Automata (PDA) → Equivalence of CFGs and Pushdown Automata → Closure Properties of Context-Free Languages → Limitations of Context-Free Languages → Pumping Lemma for Context-Free Languages → Turing Machines → Model Checking → Kripke Structures

Longest path: 94 steps · 430 total prerequisite topics

Prerequisites (2)

Leads To (3)