https://github.com/barghouthi/cs704
CS 704 course website - Principles of Programming Languages
https://github.com/barghouthi/cs704
course graduate-course programming-languages
Last synced: 5 months ago
JSON representation
CS 704 course website - Principles of Programming Languages
- Host: GitHub
- URL: https://github.com/barghouthi/cs704
- Owner: barghouthi
- Created: 2018-01-20T14:49:22.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-11-24T19:51:05.000Z (over 3 years ago)
- Last Synced: 2025-04-10T17:00:20.764Z (about 1 year ago)
- Topics: course, graduate-course, programming-languages
- Language: TeX
- Homepage:
- Size: 92.6 MB
- Stars: 67
- Watchers: 10
- Forks: 15
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Principles of Programming Languages
## CS 704 | Spring 2022
| τ | τ' |
|-|-|
|When | Tu/Th 1-2:15 |
|Where | CS 1263 |
|Who | [Aws Albarghouthi](http://www.cs.wisc.edu/~aws) |
|Office hours | Tue ~Thu~ 215-300 in CS 6363 |
All notes and assignments wil be posted on this website.
Submission of assignments and course project deliverables is via Canvas.
Anonymous feedback can be submitted on this [Google form](https://goo.gl/forms/UsfJOK4TetQU0zYp1)
## Course description
This course covers a range of topics in programming languages, including lambda calculus and type theory, functional programming, logics for encoding programs, and automated verification techniques.
The goal is to expose students to a range of mathematical and practical tools for reasoning about programs.
## Lectures
The following will be populated as the course progresses:
#### Week 1 (Jan 24) Lambda calculus
* **Tue** Welcome to the course / Intro to the beautiful lambda calculus
* [notes](notes/cs704-lec-1-22-2010.pdf)
* Ch. 5 of TAPL
* **Thu** Computing with lambda calculus
* [notes](notes/cs704-lec-01-25-2010.pdf)
* Chs. 5 and 6 of TAPL
*you might also find helpful the notes from Sampson's Cornell class—[this](http://www.cs.cornell.edu/courses/cs6110/2017sp/lectures/lec02.pdf) and [this](http://www.cs.cornell.edu/courses/cs6110/2017sp/lectures/lec03.pdf)*
#### Week 2 (Jan 31) Programming constructs & fixpoints in lambda calculus
* **Tue** Programming constructs in lambda calclus
* [notes](notes/cs704-lec-01-29-2010.pdf)
* Ch. 5 of TAPL
* **Thu** OCaml tutorial
[*Asn 1 out*](http://pages.cs.wisc.edu/~aws/courses/cs704-asn/asn1)
#### Week 3 (Feb 7) Fixpoints and project ideas
* **Tue** Fixpoints in lambda calculus
* [notes](notes/cs704-lec-01-29-2010.pdf) (same as Tue)
* [code from class](code/fixpoint_combinators.py)
* Matt Might's blog: Y combinator in JS
(See Might's other lambda calculus posts too.)
* See [this nice blog post on deriving the Y combinator](https://invenia.github.io/blog/2018/08/20/ycombinator/)
* **Tue** Introduction to types
* Ch. 8 of TAPL
#### Week 4 (Feb 14) Types
* **Tue** Simply typed lambda calculus
* Ch. 9 of TAPL
* **Thu** Project meetings
*you might also find helpful the notes from Sampson's Cornell class—[this](http://www.cs.cornell.edu/courses/cs6110/2017sp/lectures/lec19.pdf) and [this](http://www.cs.cornell.edu/courses/cs6110/2017sp/lectures/lec20.pdf)*
#### Week 5 (Feb 21) Types continued
* **Tue** Type inference
* Ch. 22 of TAPL
* **Thu** Types for an imperative language
* Ch. 3 of SPA (Ch. 2 has language definition)
*you might also find helpful the notes from Sampson's Cornell class—[this](http://www.cs.cornell.edu/courses/cs6110/2017sp/lectures/lec23.pdf) and [this](http://www.cs.cornell.edu/courses/cs6110/2017sp/lectures/lec24.pdf)*
#### Week 6 (Feb 28) Semantics
* **Tue** Operational semantics
* The class presentation is based on Nielsen and Nielsen's book [Sem] -- see their comprehensive slides [here](http://www.imm.dtu.dk/~hrni/SWA/SwA_presentations/SwA-2a-natural.pdf)
* **Thu** Axiomatic semantics
* The class presentation is based on Nielsen and Nielsen's book [Sem] -- see their comprehensive slides [here](http://www.imm.dtu.dk/~hrni/SWA/SwA_presentations/SwA-9-axiomatic.pdf)
*you might also find helpful Chs 7 (operational semantics) and 12 (axiomatic semantics) of [Chlipala's FRAP book](http://adam.chlipala.net/frap/), which is freely available*
#### Week 7 (Mar 7) Logic & SAT/SMT
* **Tue** Propositional logic and SAT solvers
* The class presentation will follow Dillig's slides: [here](http://www.cs.utexas.edu/~isil/cs389L/lecture1-6up.pdf) and [here](http://www.cs.utexas.edu/~isil/cs389L/lecture2-6up.pdf)
* **Thu** First-order logic and SMT solvers
* The class presentation will follow Dillig's slides: [here](http://www.cs.utexas.edu/~isil/cs389L/lecture6-6up.pdf) and [here](http://www.cs.utexas.edu/~isil/cs389L/lecture7-6up.pdf) and [here](http://www.cs.utexas.edu/~isil/cs389L/lecture10-6up.pdf)
*For more references, consult Bradley and Manna's book [CofC]—see references below*
#### Week 8 (Mar 21) Transition systems & program encodings
* **Tue** Bounded encodings
* [notes](notes/transRelEnc.pdf)
#### Week 9 (Mar 28) Automated verification
* **Tue** Bounded encodings and Z3 solver
* [notes](notes/transRelEnc.pdf) (same as last time)
* [colab](https://colab.research.google.com/drive/1ZCzVuJk4nfKYzM0L8lalmXOYdpBk2vCg?usp=sharing)
* **Thu** Invariant generation with Horn clauses
* [notes](notes/hornClauses.pdf)
#### Week 10 (Apr 4) Automated verification continued
* **Tue** Invariant generation with predicate abstraction
* [notes](notes/hornClauses.pdf) (same as last time)
* [colab](https://colab.research.google.com/drive/1qHqbHdkZj-hc7GIAAsAOD6Aw9FgKQxVd?usp=sharing)
* **Thu** Lattice theory
* SPA ch. 4
#### Week 11 (Apr 11) Applications of abstract interpretation
* **Tue** Lattice theory
* SPA ch. 4
* **Thu** Abstract interpretation of programs
* SPA ch. 10
#### Week 12 (Apr 18) Applications of abstract interpretation (continued)
* **Tue** Abstract interpretation of programs
* SPA ch. 10
* **Thu** Numerical domains
* SPA ch. 6
#### Week 13 (Apr 25)
* **Tue** Termination
* [Marktoberdorf notes](https://www.cs.tufts.edu/comp/150BUGS/terminator-principles.pdf)
* **Thue** *project presentations*
#### Week 14 (May 2)
*project presentations*
## Assignments
Assignments will be posted here:
| Assignment | Due date |
| - | - |
| [asn1](http://pages.cs.wisc.edu/~aws/courses/cs704-asn/asn1) | Feb 15 |
| [asn2](asn/asn2.pdf) | Mar 14 |
| [asn3](asn/asn3.pdf) | April 15 |
| [asn4](asn/asn4.pdf) | Apr 30 |
## Evaluation
Performance will be evaluated as follows:
| Task | X% |
| - | - |
| Research project | 45% |
| Assignments (4) | 40%|
| Project presentation | 10% |
| Class participation | 5% |
## Course Project
For the final project, you can work on a problem of your choice with a partner or by yourself.
* **Deliverable 1 (Feb 14)** Send me a list of three project ideas.
* 5%: **Deliverable 2 (Feb 25)** Submit a 2-3 page proposal including the following:
The statement of the problem to be investigated
An explanation of why the problem is interesting
A description of what you propose to do.
Explain the elements that you will have to build.
Explain the elements that you can pick up from open-source sites.
Explain the experiment(s) or performance measurement(s) that you plan to carry out. Two good approaches are
State the hypothesis that you hope to refute.
Complete the following sentence: "The experiments were designed to shed light on the following questions: . . ."
Then explain what you plan to measure; how you will measure it (if it is not obvious); and where you will obtain test cases.
List the tasks, broken down into two or three milestones
* 5%: **Deliverable 3 (Apr 9)** Submit a description of progress, implementation plan with completed steps checked off, and experimentation plan. Please turn in an updated proposal (with changes marked with changebars, and your new material added as "Appendix B: Progress Report".
* 10%: **Deliverable 4 (last 2 weeks of class)** 10-15 minute oral presentations (plus 5 minutes for questions/discussion) will be given during class. You will need to e-mail me an abstract (in plaintext) giving the title, project participants, and a two-paragraph to three-paragraph summary of what will be presented.
* 35%: **Deliverable 5 (May 7)** Final writeup: The final writeup should be modeled after a typical conference paper. There is no length requirement or limit, but I would expect it to be somewhere around 10-15 pages of [Single-colum Latex article](http://homepages.math.uic.edu/~bshipley/sample.short.tex).
## Resources
There are no required textbooks for this class. The following is a list of books that should be useful references for different parts of the course.
This is an excellent reference for our lambda calculus and types material
* [TAPL] Pierce, Types and Programming Languages. The MIT Press, 2002.
This is a free and excellent book that covers most material we cover in 704
* [FRAP] Chlipala Formal Reasoning About Programs
This is a fantastic (I think it's the best) book on static program analysis
* [SPA] Møller and Schwartzbach [Static Program Analysis](https://cs.au.dk/~amoeller/spa/)
This book talks about decision procedures
and their applications in verification.
* [CofC] Bradley and Manna, The Calculus of Computation. Spring, 2007.
This is a short book on
operational, axiomatic, and denotational semantics.
* [Sem] Nielson and Nielson Semantics with Applications. Springer, 2007.
The following book covers data-flow analysis
and abstract interpretation.
* [PA] Nielson et al., Principles of Program Analysis Springer, 1999.
This is another abstract interpretation resource.
* [AI] Abramsky and Hankin, An Introduction to Abstract Interpretation.
There are multiple courses at other universities
that overlap with the material we cover in CS704. Here are some that I found helpful:
* Fredrikson & Platzer's course at CMU
* Sampson's class at Cornell