Link Search Menu Expand Document

Syllabus

Table of contents
  1. Course Information
    1. Course Name and Number
    2. Term
    3. Meeting Time and Location
    4. Instructor Information
    5. Office Hours
    6. Academic Bulletin Description
    7. Full Course Description
    8. Prerequisites
    9. Learning Outcomes
    10. Course Materials
  2. Course Requirements
    1. Course Format
    2. Course Communication
    3. Technology
    4. Minimal Technical Skills Needed
    5. Technical Support
  3. Course Assignments and Grading
    1. Homework
    2. Quizzes
    3. Project
    4. Evaluation and Grading Scale
      1. Assignment Weights
      2. Grading Scale
    5. Assignment Submission
    6. Revisions
  4. Academic Success
    1. Accessibility
    2. Student Success Center
    3. Writing Center
    4. University Library Resources
    5. Teams and Technology
    6. Counseling Services
  5. Course Policies and Procedures
    1. Attendance Policy
    2. Academic Integrity
    3. Plagiarism
    4. Group Work
    5. Class Conduct
    6. Late Work/Make-up Policy
    7. Incomplete Grades
    8. Diversity and Inclusion
    9. Title IX and Gendered Identity
    10. Expectations of the Instructor
    11. Copyright/Fair Use Statement
  6. Tentative Schedule
    1. Week 1
    2. Week 2
    3. Week 3
    4. Week 4
    5. Week 5
    6. Week 6
    7. Week 7
    8. Week 8
    9. Week 9
    10. Week 10
    11. Week 11
    12. Week 12
    13. Week 13
    14. Week 14
    15. Week 15

Course Information

Course Name and Number

HNRS: Formalization and mathematics – SCHC 411

Term

Spring

Meeting Time and Location

Tuesdays and Thursdays 10:05-11:20 am in Honors B111

Instructor Information

Office Hours

Thursdays 11:30-2:30

Academic Bulletin Description

The following course is a proseminar, with specific topics to be selected as need and interests dictate. Generally limited to 18 students, it is either an extensive study of a broad area or an intensive examination of a specific problem.

Full Course Description

Proof assistants are tools that may seem to live a double life. Does my sorting algorithm actually sort? They can help assure that. Did I mess up my proof of Lagrange’s Theorem? They can help you find the error. In this course, we will acquaint ourselves with Lean, a proof assistant developed primarily at Microsoft Research. 

We will prove theorems in Lean and verify small functional programs. In the process, we will learn about dependent types and the Curry-Howard isomorphism, which elegantly resolves the conflicts of our double life. Skills and knowledge from this course are transferable to other popular proof assistants like Coq and Agda. 

Students having completed Math 300 or Math 374 will have an easier time getting up to speed as will students with some experience with a functional programming language but don’t let this discourage you. Math and/or CS majors at any level should find value in this course. 

Prerequisites

None, though students would benefit from taking Math 300 or Math 374.

Learning Outcomes

After successful completion of this course, you will be able to:

  • Use the Lean Theorem Prover to prove properties about basic programs
  • Use the Lean Theorem Prover to prove basic mathematical results
  • Describe the type theory underlying Lean
  • Recognize the duality between writing a program and proving a theorem

Course Materials

The main resources for materials are the course website and the Microsoft Team for the course.

The textbook for this course is: Anne Baanen, Alexander Bentkamp, Jasmin Blanchette, Johannes Hölzl, Jannis Limperg. The Hitchhiker’s Guide to Logical Verification. 2023 Edition..

All course materials comply with copyright/fair use policies.

Course Requirements

Course Format

To wholly and successfully engage with the course, you will need to be need to attend class, attempt lots of problems, and engage both with me and your fellow classmates. All course materials are will be made available online so regular Internet access is essential for successful completion of the course.

It is expected that much of this material will be unfamiliar to you. (If not, more power to you.) The course is structured to guide every student to mastery in terms of conceptual understanding and computational fidelity by the end of the semester.

Each week will end with a short quiz to diagnose any problems.

At the end of the class, a project will be due in place of a final exam.

Course Communication

I will be communicating with you regarding grades and assignments. If you need to get in touch with me, the best method is via Microsoft Team chat or email. Generally, I will reply within 24 hours and will provide feedback on assignments within one week.

You may also post questions pertaining to the course in the Questions channel in the course team. These questions will be answered within 24 hours. I encourage all students to take a stab at answering any question.

If you are having trouble with this course or its material, you should contact me via Microsoft Team chat or email to discuss the issues.

Announcements will be posted to this course whenever necessary. If there is any other information I think is important, I will send it to your preferred university email address. It is your responsibility to ensure that your email account works properly in order to receive email.

If you are unsure of your preferred email, check your account at myaccount.sc.edu. For more information on setting your preferred university email, please see the Knowledge Base Article How To Change Your Primary University Email Address.

Technology

To participate in learning activities and complete assignments, you will need:

  • Access to a working computer that has a current operating system with updates installed with a modern web browser installed;

  • Reliable Internet access and a USC email account;

  • If you plan to submit handwritten assignments, a scanning device such as a smartphone with the Microsoft Office Lens app.

  • The main hub for this course is the Microsoft Teams team run through UofSC’s Microsoft Teams account. To access the team for the first time on your desktop/laptop, you can use the join link including in your welcome email.

  • This course focuses on using the Lean reason about programs and mathematics. As such, you are expected to have regular access to a working installation of Lean.

Minimal Technical Skills Needed

Minimal technical skills are needed in this course. All work in this course must be completed and submitted online. Therefore, you must have consistent and reliable access to a computer and the Internet. The minimal technical skills you have include the ability to:

  • Organize and save electronic files;

  • Check and use the Microsoft Teams site daily;

  • Download and upload documents;

  • Locate and enter information with a browser.

Technical Support

If you have problems with your computer, technology, IT-related questions, support, including Microsoft Teams, please contact the Division of Information Technology (DoIT) Service Desk at (803) 777-1800 or submit an online request through the Self-Service Portal or visit the Carolina Tech Zone. The Service Desk is open Monday – Friday from 8:00 AM – 6:00 PM (Eastern Daylight Time). The Thomas Cooper Library at USC has computers for you to use in case you encounter computer issues/problems.

Course Assignments and Grading

Homework

Homework will need to be completed in groups of 3-4 that will be randomly assigned each week. The assignments will be available in and must be returned through Microsoft Teams. All homework assignments are due by 11:59 pm (Eastern Time) on the day indicated on the course schedule. Homework will be graded for correctness. You will be allowed up to two revisions on each homework assignment.

Quizzes

Each week will end with a short quiz. The goal of the quiz is to diagnose any gaps in the understanding and make sure we all stay on the same page. Quizzes are graded for correctness. You will be allowed up to two revisions on each quiz.

Project

A list of project topics will be released on March 1. These can be done in groups of 1-4 of your own choosing. Projects are due by April 27 at 9:00 am (EST) in lieu of a final exam.

Evaluation and Grading Scale

All grades will be posted on Teams. You are strongly encouraged to check you scores in Teams regularly. A final letter grade will be assigned based on the weighting below.

Assignment Weights

ComponentPercent of total
Homework33%
Quizzes33%
Project33%

Grading Scale

Final total intervalsLetter Grade
[90,100]A
[85,90)B+
[80,85)B
[75,80)C+
[70,75)C
[65,70)D+
[60,65)D
[0,60)F

Assignment Submission

Assigments will be distributed and must be submitted via our GitHub classroom. The majority of the coursework will be typed.

For the free response, I encourage you to typeset your solutions using LaTeX but you may upload a scanned image. If you choose to upload a scan, then

  • the handwriting must be clear and legible – otherwise you will receive no credit

  • Only PDF formats are allowed. No HEIC/JPEG/PNG or other extensions are allowed.

Revisions

All homework turned in on-time is eligible for revision at full credit. All quizzes taken on-time are eligible for revision at full credit. Each assignment can undergo at most two revisions. Revisions must be resubmitted within one week of receiving a marked assignment or revision.

Academic Success

Accessibility

The Student Disability Resource Center (SDRC) empowers students to manage challenges and limitations imposed by disabilities. Students with disabilities are encouraged to contact me to discuss the logistics of any accommodations needed to fulfill course requirements (within the first week of the semester). In order to receive reasonable accommodations from me, you must be registered with the Student Disability Resource Center (1705 College Street Close-Hipp, Suite 102 Columbia, SC 29208, 803-777-6142). Any student with a documented disability should contact the SDRC to make arrangements for appropriate accommodations.

Student Success Center

In partnership with USC faculty, the Student Success Center (SSC) offers a number of programs to assist you in better understanding your course material and to aid you on your path to success. SSC programs are facilitated by professional staff, graduate students, and trained undergraduate peer leaders who have previously excelled in their courses. Resources available to you in this and other courses may include:

Peer Tutoring: You can make a one-on-one appointment with a Peer Tutor. Drop-in Tutoring and Online Tutoring may also be available for this course. Visit their website for a full schedule of times, locations, and courses.

Peer Writing: Improve your college-level writing skills by bringing writing assignments from any of your classes to a Peer Writing Tutor. Similar to Tutoring, you can visit the website to make an appointment, and to view the full schedule of available drop-in hours and locations.

Success Consultations: In Success Consultations, SSC staff assist you in developing study skills, setting goals, and connecting to a variety of campus resources. Throughout the semester, I may communicate with the SSC via Success Connect, an online referral system, regarding your progress in the course. If contacted by the SSC, please schedule a Success Consultation. Success Connect referrals are not punitive and any information shared by me is confidential and subject to FERPA regulations.

SSC services are offered to all USC undergraduates at no additional cost. You are invited to call the Student Success Hotline at (803) 777-1000, visit SSC website, or stop by the SSC in the Thomas Cooper Library on the Mezzanine Level to check schedules and make appointments.

Writing Center

This course has many writing assignments. The University Writing Center is an important resource you should use! It’s open to help any USC student needing assistance with a writing project at any stage of development. The main Writing Center is in Byrnes 703.

University Library Resources

University Libraries has access to books, articles, subject specific resources, citation help, and more. If you are not sure where to start, please Ask a Librarian! Assistance is available at sc.edu/libraries/ask. 

Remember that if you use anything that is not your own writing or media (quotes from books, articles, interviews, websites, movies – everything) you must cite the source in MLA (or other appropriate and approved) format.

Teams and Technology

Teams and Technology. As a student in this course, you have access to support from the Division of Information Technology (DoIT) for Teams and computer issues. The service desk can be reached at 803-777-1800.

Counseling Services

The University offers counseling and crisis services as well as outreach services and self-help.

Course Policies and Procedures

Attendance Policy

You are expected to participate actively in each course. If you anticipate an excused absence, you need to contact me in advance. You should submit a request in writing (email is acceptable) stating the dates of the anticipated absence, explaining the reason for absence, providing supporting documentation as required above, and including any request for make-up work. You should submit this request no later than the end of the second week of regularly scheduled classes in a full fall or spring semester term and within twice the length of the drop/add period for any other term.

To qualify for an excused absence, you must submit supporting documentation.

If regularly attending class becomes difficult for any reason, please contact me to discuss the issue.

In accordance with university policy, a grade penalty of 10% may be imposed if a student has unexcused absensces exceeding 5% of the total number of courses. For this course, that means missing TWO courses without excuse.

All absences due to documented illness or quarantine will be excused, and no grade penalty will be assessed for missing classes for this reason.

Academic Integrity

You are expected to practice the highest possible standards of academic integrity. Any deviation from this expectation will result in a minimum academic penalty of your failing the assignment, and will result in additional disciplinary measures. This includes improper citation of sources, using another student’s work, and any other form of academic misrepresentation.

The first tenet of the Carolinian Creed is, “I will practice personal and academic integrity.”

Below are some websites for you to visit to learn more about University policies:

Plagiarism

Using the words or ideas of another as if they were one’s own is a serious form of academic dishonesty. If another person’s complete sentence, syntax, key words, or the specific or unique ideas and information are used, one must give that person credit through proper citation. You should in particular cite any resources, person, text, or otherwise, you used to assist in preparation of your work. Copying proofs or problem solutions is strictly forbidden.

Group Work

Group work should be performed in safe manner. Remote work will certainly form a larger component of a career going forward. You are encouraged to take advantage of Microsoft Teams video and chat abilities to aid in collaboration.

Class Conduct

Professionalism will be expected at all times, but most especially with your interactions online and in person. Because the university classroom is a place designed for the free exchange of ideas, we must show respect for one another in all circumstances. We will show respect for one another by exhibiting patience and courtesy in our exchanges. Appropriate language and restraint from verbal attacks upon those whose perspectives differ from your own is a minimum requirement. Courtesy and kindness is the norm for those who participate in the class.

Mistakes, in particular during the running phase, are expected and natural. Mistakes are how learning happens. All students should recognize and respect the bravery of a student presenting a proof or solution. If you ever feel uncomfortable beyond the intellectual challenge of the course, please contact me.

Teams is a way for you to share your ideas and learning with your colleagues in this class. We do this as colleagues in learning, and the online space is meant to be a safe and respectful environment for us to conduct these discussions.

Some general netiquette rules:

  • Treat one another with respect. It will be expected that we will not attack one another personally for holding different opinions.

  • Do not use all CAPITAL LETTERS in emails or discussion board postings. This is considered “shouting” and is seen as impolite or aggressive.

  • Begin emails with a proper salutation (Examples: Dr. Name; Ms. Name; Hello Professor Name; Good afternoon Mr. Name). Starting an email without a salutation or a simple “Hey” is not appropriate.

  • When sending an email, please include a detailed subject line. Additionally, make sure you reference the course number (Ex. ENGL 287) in the message and sign the mail with your name.

  • Use proper grammar, spelling, punctuation, and capitalization. Text messaging language is not acceptable.

  • Use good taste when communicating. Profanity should be avoided.

  • Re-Read, think, and edit your message before you click “Send/Submit/Post.”

  • Please remember when posting to be respectful and courteous to your colleagues, and limit your communication to topics of this course and the assignments.

Late Work/Make-up Policy

All assignments due by the deadline as posted on the course schedule. Late work is not accepted and not eligible for revision.

Please plan accordingly, and complete these assignments in advance of their deadlines to ensure any unanticipated circumstances do not result in a missed assignment. User error does not qualify you for any kind of makeup or retake opportunity.

Completing and submitting the assignments by the due date is the sole responsibility of you. If you fail to submit the assignment or test by the due date, then your score for that assignment will be recorded as “zero.”

You will be allowed to access the assignments an unlimited number of times until the due date/time. If you are concerned about missing a deadline, post your assignment the day before the deadline.

Be Careful: The clock on your computer may be different than the clock in Teams. If the clock is different by one second, you will be locked out of the assignment. Plan accordingly.

Incomplete Grades

The grade of Incomplete will be granted only in accordance with university policy.

Diversity and Inclusion

The university is committed to a campus environment that is inclusive, safe, and respectful for all persons, and one that fully embraces the Carolinian Creed: “I will discourage bigotry, while striving to learn from differences in people, ideas and opinions.” Likewise, the Student Code of Conduct stresses, “The University of South Carolina strives to maintain an educational community that fosters the development of students who are ethical, civil and responsible persons.”

To that end, all course activities will be conducted in an atmosphere of friendly participation and interaction among colleagues, recognizing and appreciating the unique experiences, background, and point of view each student brings. You are expected at all times to apply the highest academic standards to this course and to treat others with dignity and respect.

Title IX and Gendered Identity

This course affirms equality and respect for all gendered identities and expressions. Please don’t hesitate to correct me regarding your preferred gender pronoun and/or name if different from what is indicated on the official class roster. Likewise, I am committed to nurturing an environment free from discrimination and harassment. Consistent with Title IX policy, please be aware that I as a responsible employee am obligated to report information that you provide to me about a situation involving sexual harassment or assault.

Expectations of the Instructor

I am expected to facilitate learning, answer questions appropriately, be fair and objective in grading, provide timely and useful feedback on assignments and treat you as I would like to be treated.

Copyright/Fair Use Statement

I will cite and/or reference any materials that I use in this course that I do not create.

Anything that appears on this website is copyright © 2023 Matthew Ballard and is distributed by an MIT license.

Course materials that do not appear on this website are copyright © 2023 Matthew Ballard and all rights are reserved. In particular, you may not distribute any of these course materials in any fashion without expressed written permission.

Tentative Schedule

This is the (ambitious) plan for the semester. But it is only a plan. The successful progression of each student is the most important guide to through the material. As such, you should expect revisions as we go.

Week 1

  • 1/10 welcome and orientation
  • 1/12 terms and types

Week 2

  • 1/17 rules for type checking
  • 1/19 inhabited types

Week 3

  • 1/24 a glimpse of inductive types
  • 1/26 functions from inductive types

Week 4

  • 1/31 theorems and their proofs
  • 2/2 basic tactics

Week 5

  • 2/7 predicate logic in Lean
  • 2/9 predicate logic in Lean 2

Week 6

  • 2/14 equality and rewriting terms
  • 2/16 induction

Week 7

  • 2/21 structured proofs
  • 2/23 tactics to help with forward reasoning

Week 8

  • 2/28 calculations in proofs
  • 3/2 more examples of proofs in Lean

Week 9

  • 3/14 dependent types
  • 3/16 proofs and programs

Week 10

  • 3/21 matching on inductive types
  • 3/23 structural induction

Week 11

  • 3/28 pattern matching
  • 3/30 structures and type classes

Week 12

  • 4/4 more examples
  • 4/6 inductive predicates

Week 13

  • 4/11 rule induction and elimination
  • 4/13 more examples

Week 14

  • 4/18 monads
  • 4/20 examples

Week 15

  • 4/25 metaprogramming
  • 4/27 projects due