CSC5125 Program Verification - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

CSC5125 Program Verification

Description:

... to the language designer, compiler writer and programmer.' Allison 'A technique for describing the meaning of programs in ... Allison. Denotational semantics ... – PowerPoint PPT presentation

Number of Views:36
Avg rating:3.0/5.0
Slides: 8
Provided by: SteveC1
Category:

less

Transcript and Presenter's Notes

Title: CSC5125 Program Verification


1
CSC5125 Program Verification
  • Denotational Semantics An introduction

2
What is denotational semantics?
  • A formal method for defining the semantics of
    programming languages. It is of interest to the
    language designer, compiler writer and
    programmer. Allison
  • A technique for describing the meaning of
    programs in terms of mathematical functions on
    programs and program components. Programs are
    translated into functions about which properties
    can be proved using the standard mathematical
    theory of functions, and especially domain
    theory. -- http//wombat.doc.ic.ac.uk/foldoc/fold
    oc.cgi?denotationalsemantics

3
Operational vs. denotational
  • Operational semantics imagines the program
    running on an abstract machine. Denoatational
    semantics recognizes the subtle distinction
    between a function as a probably infinite set of
    ordered pairs and an algorithm as a finite
    description of the function. -- Allison

4
Denotational semantics
  • Each part of a program (often called a phrase) is
    given a denotation, P
  • Example -- Binary and natural numbers

5
Evaluating semantic descriptions
  • Compositionality
  • The meaning of every composite phrase can be
    expressed in terms of the meaning of its
    immediate subphrases
  • Example wrt binary numbers
  • Example wrt while for imperative languages

6
Evaluating semantic descriptions
  • Full abstraction
  • If E and E are expressions with different
    meanings, then there is a context S such that
    S(E) gives a different value than S(E)
  • Completeness
  • Soundness

7
Mathematics
  • Mostly from discrete math
Write a Comment
User Comments (0)
About PowerShow.com