Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kiranandcode/lean-aoc

Advent of code in Lean4
https://github.com/kiranandcode/lean-aoc

advent-of-code lean lean4

Last synced: about 2 months ago
JSON representation

Advent of code in Lean4

Awesome Lists containing this project

README

        

# Advent of Code 2024 Lean4

Playing around with Advent of Code in Lean~

Misc programming utils and macros I need will be placed under `Utils/`

This library also provides a wrapper around the AOC API (using curl internally)
```
let input : IO String := AOC.getInput 3
-- retrieves input for day 3 for the current year (call is cached, so repeated evaluations will not make network calls)

let input : IO String := AOC.getInput 4 (.some 2023)
-- retrieves input for day 4 for 2023
```

Solutions will show up under `Solutions/`

Most solutions will be written using a simple evaluation macro I wrote:
```lean
#example (1 + 1 : Nat)
evaluates to (2: Nat)
```