← All papers
First page of Formal Semantics and Machine-Checked Metatheory for General Fault Trees in Lean 4

Formal Semantics and Machine-Checked Metatheory for General Fault Trees in Lean 4

Adnan Rashid

cs.LO Dec 1, 2026 · v1
Defines syntax, executable Boolean semantics, and machine-checked metatheory for general fault trees in Lean 4, with a public repository and a satellite case study.
Fault Tree Analysis (FTA) is widely used to model and analyze failure propagation in safety-critical systems. While interactive theorem proving has been applied to formalize fault-tree analyses, comparatively less attention has been devoted to reusable semantic foundations upon which multiple verified analyses can be systematically developed. This paper presents an executable semantic framework for general fault trees in the Lean 4 interactive theorem prover. The framework defines a unified abstract syntax supporting AND, OR, NOT, NAND, and NOR gates, together with Boolean semantics over finite sets of failed basic events. We develop a machine-checked metatheory covering structural properties, Boolean algebraic laws, semantic equivalence, and monotonicity. The positive fragment is characterized within the general language, and we formally prove that every positive fault tree is semantically monotone. The effectiveness of the framework is demonstrated through the formalization of a satellite solar-array mechanical deployment. The case study shows that realistic engineering fault trees can be represented, executed, and verified using the generic semantic infrastructure without requiring model-specific semantic definitions or monotonicity proofs.

Interactive theorem proving has been applied to particular fault-tree analyses. Less work has gone into reusable semantic foundations for general fault trees, which include non-monotone gates such as NOT, NAND, and NOR, on which multiple verified analyses could be built.

A single inductive Lean 4 datatype represents fault trees with AND, OR, NOT, NAND, and NOR gates. Executable Boolean semantics evaluate a tree over finite sets of failed basic events. A machine-checked metatheory covers structural measures, semantic equivalence, Boolean algebraic laws, and monotonicity. The positive fragment is identified by a predicate, and every positive tree is proved semantically monotone.

The framework formalizes a hinge subsystem and a full mechanical deployment fault tree for a satellite solar array (33 basic events). Well-formedness and positivity are established for both models, and monotonicity then follows from the generic theorem without model-specific proofs.

Figure 2: Fault tree of the satellite solar-array mechanical deployment system. The event markers used in [ 12 ] are mapped to their corresponding basic failure events in Table 3 of Appendix 0.A .
CharacteristicHingeMechanical System
Distinct basic events833
Gate typesAND, OROR
Tree size2651
Tree height66
Well-formed / Positive / Monotone✓ / ✓ / ✓✓ / ✓ / ✓
Characteristics of the formalized case-study fault trees