8000 GitHub - robertylewis/lean4_autograder
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

robertylewis/lean4_autograder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lean 4 autograder shell

This repository provides some scripts to configure a Gradescope autograder for Lean 4.

It does not contain the autograder itself.

Directions for use

  1. Edit config.json in this repository.
    • autograder_repo: a GitHub repository containing a Lean project, with the context for assignment submissions, including a stencil file located at assignment_path. Submissions will be compiled with this repository available as an import. Example: brown-cs22/CS22-Lean-2024.

    • assignment_path: the path within public_repo of the assignment stencil or solutions. Example: BrownCs22/Homework/Homework01.lean. So, the assignment stencil for this assignment lives in the brown-cs22/CS22-Lean-2024 repository, at this path.

      This project must have an autograder as a Lake dependency: e.g. the line require autograder from git "https://github.com/robertylewis/cs22-lean-autograder" @ "f3c4a3eb22cb9377c696085c4c09fcb7e6e7e9ba" in its lakefile.

  2. In order to grade definitions, the autograder needs reference solutions. The file at assignment_path should include these solutions. In this case autograder_repo is likely private. You can give the autograder access to a private solutions repo by adding a deploy key to your private repository.
  3. On a local computer, run ssh-keygen -t ed25519 -C "your_email@example.com". This will generate a public and private key.
  4. Upload the resulting public key to your repository: Settings -> Deploy Keys -> Add Deploy Key. It does not need write access.
  5. Copy the private key into the root of the directory for the autograder shell, naming it autograder_deploy_key.

If you do not plan to autograde definitions, you can skip this step. 3. Run make_autograder.sh to create a zip file. 4. Upload this zip file to gradescope.

Autograder architecture

To repeat, this repository does not contain the autograder itself. This is a wrapper for the autograder Lean package.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%
0