Proof checking with PVS Book: Chapter 3 - PowerPoint PPT Presentation

About This Presentation
Title:

Proof checking with PVS Book: Chapter 3

Description:

Title: Lecture 10: Verifying first order properties in PVS Author: doron Last modified by: Administrator Created Date: 2/10/1998 4:47:57 PM Document presentation format – PowerPoint PPT presentation

Number of Views:50
Avg rating:3.0/5.0
Slides: 14
Provided by: doro84
Category:

less

Transcript and Presenter's Notes

Title: Proof checking with PVS Book: Chapter 3


1
Proof checking with PVSBook Chapter 3
2
A Theory
  • Name THEORY
  • BEGIN
  • Definitions (types, variables, constants)
  • Axioms
  • Lemmas (conjectures, theorems)
  • END Name

3
Group theory
  • (, e), where is the operator and e the unity
    element.
  • Associativity (G1) (xy)zx(yz).
  • Unity (G2)
  • (xe)x
  • Right complement (G3)
  • ?x ?y xye.
  • Want to prove
  • ?x ?y yxe.

4
Informal proof
  • Choose x arbitrarily.
  • By G3, there exists y s.t.
  • (1) xye.
  • By G3, we have z s.t.
  • (2) yze.
  • yx(yx)e (by G2)
  • (yx)(yz) (by (2))
  • y(x(yz)) (by G1)
  • y((xy)z) (by G1)
  • y(ez) (by (1))
  • (ye)z (by G1)
  • yz (by (G2))
  • e (by (2))

5
Example groups
  • Group THEORY
  • BEGIN
  • element TYPE
  • unit element
  • element, element-gt
  • element
  • lt some axiomsgt
  • leftCONJECTURE
  • FORALL (x element)
  • EXISTS (y element)
  • yxunit
  • END Group

6
Axioms
  • associativity AXIOM FORALL (x, y, zelement)
    (xy)zx(yz)
  • unity AXIOM FORALL (xelement)
  • xunitx
  • complement AXIOM FORALL(xelement)
  • EXISTS (yelement) xyunity

7
Skolemization
  • Corresponds to choosing some arbitrary constant
    and proving without loss of generality.
  • Want to prove (/\)-gt(\/?x?(x)\/).
  • Choose a new constant x. Prove
    (/\)--gt(\/?(x)\/).

8
Skolemization
  • Corresponds to choosing some unconstrained
    arbitrary constant when one is known to exist.
  • Want to prove (/\?x?(x)/\)--gt(\/).
  • Choose a new constant x. Prove
    (/\?(x)/\)--gt(\/).

9
Skolem in PVS
  • (skolem 2 (a1 b2 c7))
  • (skolem -3 (a1 _ c7))
  • (skolem! -3)invents new constants, e.g., for x
    will invent x!1, x!2, when applied repeatedly.

10
Instantiation
  • Corresponds to restricting the generality.
  • Want to prove (/\?x?(x)/\)--gt(\/).
  • Choose a some term t. Prove (/\?(t)/\)--gt(\/)
    .

11
Instantiation
  • Corresponds to proving the existence of an
    element by showing an evidence.
  • Want to prove (/\)--gt(\/??x?(x)\/).
  • Choose some term t. Prove (/\)--gt(\/?(t)\/).

12
Instantiating in PVS
  • (inst -1 xy a bc)
  • (inst 2 a _ x)

13
Other useful rules
  • (replace -1 (-1 2 3))Formula -1 is of the form
    leri. Replace any occurrence of le by ri in
    lines -1, 2, 3.
  • (replace -1 (-1 2 3) RL)Similar, but replace ri
    by le instead.
  • (assert), (assert -) (assert ) (assert 7) Apply
    algebraic simplification.
  • (lemma ltaxiom-namegt) - add axiom as additional
    antecedent.
Write a Comment
User Comments (0)
About PowerShow.com