HoareLogik
HoareLogik, named after Tony Hoare, is a formal system for proving the correctness of imperative computer programs. Introduced in 1969, it provides a rigorous framework to reason about what must be true before and after executing a program fragment. It has become a foundational method in formal methods and program verification.
The central notion is the Hoare triple {P} C {Q}, where P is a precondition, C a
Hoare logic is built from a small set of axioms and inference rules. Key components include the
Soundness guarantees that every derivable triple is semantically valid; relative completeness (Cook's theorem) states that, given