Skip to content

Refactor/lean4 standard structure #669

Refactor/lean4 standard structure

Refactor/lean4 standard structure #669

Workflow file for this run

name: Formal Verification
on:
push:
branches: [main]
paths: ['GIFT/**', 'GIFTTest/**', 'lakefile.lean', 'lean-toolchain']
pull_request:
branches: [main]
workflow_dispatch:
workflow_call:
jobs:
lean:
name: Lean 4 Verification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install elan
run: |
curl -sSf https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh | sh -s -- -y
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Cache .lake
uses: actions/cache@v4
with:
path: .lake
key: lean-${{ hashFiles('lakefile.lean') }}
- name: Build
run: |
lake update
lake exe cache get || true
lake build
- name: Verify zero sorry
run: |
if grep -r "sorry" GIFT/ GIFTTest/ --include="*.lean"; then
echo "ERROR: Found sorry!"
exit 1
fi