Docsity

Software Foundations: Mathematical Study of Program Behaviors - Prof. B. Pierce, Study notes of Computer Science

Partial preview of the text

Download Software Foundations: Mathematical Study of Program Behaviors - Prof. B. Pierce and more Study notes Computer Science in PDF only on Docsity!

CIS 500

Software Foundations

Spring 2010

Lecture 1

Course Overview

Why study software foundations?

  • To prove specific properties of particular programs (i.e., program verification) - (^) Important in some domains (safety-critical systems, hardware design, security protocols, inner loops of key algorithms, ...), but still fairly difficult and expensive
  • To develop intuitions for informal reasoning about programs
  • (^) To prove general facts about all the programs in a given programming language (e.g., safety or isolation properties)
  • To deeply understand language features (and their interactions) and develop principles for better language design (PL is the “materials science” of computer science...)

Questions This Course Could Help Answer

  • (^) “I’m designing a new web scripting language that’s going to take over the world. How can I specify it so that different people implementing compilers will know how it is supposed to behave?”
  • (^) I’m writing a compiler and I’d like to add this optimization, but I’m not convinced it’s always correct. How can I be sure?”
  • (^) “I want to write a program analysis tool that examines PERL programs and checks for possible command injection attacks. How can I know I haven’t missed any?”

Overview

We will concentrate on operational techniques and type systems.

  1. Part I: Foundations 1.1 Functional programming 1.2 Inductive definitions and proof techniques 1.3 Constructive logic 1.4 The Coq proof assistant
  2. Basics 2.1 Reasoning about simple imperative programs 2.2 Operational semantics
  3. Type systems 3.1 Simply typed lambda-calculus 3.2 Type safety 3.3 Subtyping

What you’ll get out of the course

  • A more sophisticated perspective on programs, programming languages, and the activity of programming - (^) How to view programs and whole languages as formal, mathematical objects - (^) How to make and prove rigorous claims about them - (^) Detailed study of a range of basic language features
  • (^) Powerful mathematical tools for language (and software) design, description, and analysis - (^) Constructive logic - (^) Inductive methods of definition and proof
  • Expertise using a cutting-edge mechanical proof assistant

Most software designers are language designers, at some point!

Administrative Stuff

Personnel

Instructor: Benjamin Pierce Levine 562 Office hours: TBA

Teaching Assistants: Vilhelm Sjberg Levine 513 Office hours: TBA Brent Yorgey Levine 513 Office hours: Mondays 5–7PM, Moore 100

Administrative Assistant: Marissa Mele Levine 311

Exams

  • (^) Two in-class midterms (dates TBA)
  • Final exam

Grading

Final course grades will be computed as follows:

  • Homework: 20%
  • (^) 2 midterms: 20% each
  • Final: 40%

(The allocations of points to exams are still under discussion, but homework will definitely be 20%.)

Collaboration

  • (^) Collaboration on homework is strongly encouraged
  • Studying with other people is the best way to internalize the material
  • Form study groups!
    • 2 people is the ideal size.
    • 3 is OK.
    • 4 is too many.

“You never really misunderstand something until you try to teach it...” — Anon.

Homework

  • (^) Small part of your grade, but a large part of your understanding — impossible to perform well on exams without seriously grappling with the homework
  • Submit one assignment per study group
  • (^) On written parts of homeworks, we will grade a semi-random subset of the problems on each assignment
  • (^) Late policy: Late homeworks lose 25% of their value for each day (or partial day) after the announced deadline

No Class Monday

Next Monday is Martin Luther King day.

Instead of coming to class, go out and do something for your community.

Office Hours

  • (^) Office hours will be held in the linux lab so that people can sit and work on their homework with a TA nearby, if they wish.