Computer Supported Modeling and Reasoning
David Basin, Achim D. Brucker, Jan-Georg Smaus, and Burkhart Wolff April 2005
http://www.infsec.ethz.ch/education/permanent/csmr/
Computer Supported Modeling and Reasoning David Basin, Achim D. - - PowerPoint PPT Presentation
Computer Supported Modeling and Reasoning David Basin, Achim D. Brucker, Jan-Georg Smaus, and Burkhart Wolff April 2005 http://www.infsec.ethz.ch/education/permanent/csmr/ Higer-Order Logic: Derived Rules David Basin Higer-Order Logic:
http://www.infsec.ethz.ch/education/permanent/csmr/
Higer-Order Logic: Derived Rules 653
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Higer-Order Logic: Derived Rules 654
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Higer-Order Logic: Derived Rules 655
True def: True ≡ ((λx::bool. x) = (λx. x)) All def : All(P) ≡ (P = (λx. True)) Ex def: Ex(P) ≡∀ Q. (∀ x. P x− →Q) − →Q False def : False ≡ (∀ P. P) not def : ¬ P ≡P− →False and def: P ∧ Q ≡∀ R. (P− →Q− →R) − →R
P ∨ Q ≡∀ R. (P− →R) − →(Q− →R) − →R if def : If P x y ≡THE z::’a. (P=True − →z=x) ∧ (P=False − →z=y)
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Higer-Order Logic: Derived Rules 656
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Equality 657
refl
sym subst
lemma sym : ”s=t = ⇒t=s”; apply (erule subst ); (∗ P is λx.x=s ∗) apply (rule refl 1); (∗ s=s ∗) done
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Equality 658
trans subst
⇒ f(x)=g(x) (funcong)
⇒f(x)=f(y) (argcong)
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Equality 659
(P → Q) → (Q → P) → (P = Q)
iff
[P] . . . . Q P → Q
impI
(Q → P) → P = Q
mp
[Q] . . . . P Q → P
impI
P = Q
iffI mp
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Equality 660
sym
iffD2 subst
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
True 661
TrueI refl
TrueI
eqTrueE iffD2
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
True 662
TrueI
eqTrueI iffI
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Universal Quantification 663
eqTrueI
allI ext
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Universal Quantification 664
fun cong
spec eqTrueE
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
False 665
FalseE spec
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
False 666
eqTrueE
False neq True FalseE
True neq False Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Negation 667
notI impI
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Negation 668
mp
notE FalseE
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Negation 669
True neq False
True Not False notI1
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Existential Quantification 670
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Existential Quantification 671
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Conjunction 672
mp
mp
impI1
conjI allI
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Conjunction 673
spec
impI
impI1
conjEL mp
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Conjunction 674
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Disjunction 675
mp
impI
impI1
disjIL allI
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Disjunction 676
P ∨ Q ∀R.(P → R) → (Q → R) → R (P → R) → (Q → R) → R
spec
P . . . . R P → R
impI
(Q → R) → R
mp
Q . . . . R Q → R
impI
R
disjE mp
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Miscellaneous Definitions 677
If P x y ≡THE z. (P=True − →z=x) ∧ (P=False − →z=y)
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Summary on Deriving Rules 678
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Mathematics and Software Engineering in HOL 679
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Mathematics and Software Engineering in HOL 680
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Mathematics and Software Engineering in HOL 681
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Mathematics and Software Engineering in HOL 682
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Mathematics and Software Engineering in HOL 683
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Mathematics and Software Engineering in HOL 684
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Mathematics and Software Engineering in HOL 685
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Mathematics and Software Engineering in HOL 686
RC
RC stands for refinement calculus.
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Mathematics and Software Engineering in HOL 687
Z, CSP
Z and CSP are specification languages. CSP stands for communicating sequential processes.
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Mathematics and Software Engineering in HOL 688
Persistence
Persistent theories play a role in the prover PVS.
Basin: HOL: Derived Rules; http://www.infsec.ethz.ch/education/permanent/csmr/ (rev. 16802)
Mathematics and Software Engineering in HOL 1190
[And86] Peter B. Andrews. An Introduction to Mathematical Logic and Type Theory: To Truth Through Proofs. Academic Press, 1986. [Chu40] Alonzo Church. A formulation of the simple theory of types. Journal of Symbolic Logic, 5:56–68, 1940. [GM93] Michael J. C. Gordon and Tom F. Melham, editors. Introduction to HOL. Cambridge University Press, 1993. [WR25] Alfred N. Whitehead and Bertrand Russell. Principia Mathematica, volume 1. Cambridge University Press, 1925. 2nd edition.
Basin, Brucker, Smaus, and Wolff: Computer Supported Modeling and Reasoning; April 2005http://www.infsec.ethz.ch/education/permanent/csmr/