Giter VIP home page Giter VIP logo

lean4-autograder-main's Introduction

Lean 4 Autograder

This project provides a Lean 4 autograder that works with Gradescope.

To generate the files Gradescope needs, this project uses a repository on GitHub that must contain a template of the assignment the students will receive. This project retrieves from the template how many points each exercise is worth. Thus, the template must follow the following pattern:

@[autograded 2]
theorem th3 (h : ¬q → ¬p) : (p → q) := sorry

The autograder would award 2 points for a sorry-free proof of th3 that does not use any nonstandard axioms. Extra axioms can be allowed with the @[legalAxiom] attribute.

It is NOT necessary to edit autograder_config.json unless you want to use the helper scripts.

Gradescope Container Minimum Specifications

This project is meant to work with MathLib assignments, so for a good Gradescope performance, their container must have at least 2.0 CPU and 3.0GB RAM.

Usage

Add this project as a lake dependency to your course project. Then, set up the autograder shell for use with an assignment in that course project.

For an example, see fpv2023. The lakefile of this project imports this autograder project. To create a Gradescope assignment for HW1, I would edit the configuration file in the autograder shell to point at Homeworks/Homework1.lean in that repository, run the make_autograder.sh script, and upload the resulting zip file to Gradescope. Students would then submit only their Homework1.lean file to Gradescope.

lean4-autograder-main's People

Contributors

hrmacbeth avatar jrr6 avatar robertylewis avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.