Using the programming language Haskell, we introduce an implementation of propositional calculus, number theory, and a simple imperative language that can evaluate arithmetic and boolean expressions. Finally, we provide an implementation of Hoare's logic which will allow us to deduce facts about programs without the need for a full evaluation.
翻译:使用编程语言哈斯凯尔(Haskell),我们引入了一种建议计算、数字理论和一种可以评估算术和布尔语表达的简单必要语言。 最后,我们提供了一种Hoare逻辑的应用,这将使我们能够在不需要全面评估的情况下推断出有关方案的事实。