Skip to content

Commit

Permalink
Merge pull request #2 from bollu/ci
Browse files Browse the repository at this point in the history
chore: add CI
  • Loading branch information
imbrem authored Jun 7, 2024
2 parents 68045e1 + 15314b9 commit e28fa7e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: tools, scaling, and auto-generated statements
on:
push:
branches:
- "main"
pull_request:
merge_group:

permissions:
contents: write

jobs:
build:
name: Core Library build.
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3

- name: Install elan 🕑
run: |
set -o pipefail
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- --default-toolchain none -y
~/.elan/bin/lean --version
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Compile `DeBruijnSSA` library 🧐
run: |
lake -R exe cache get # download cache of mathlib docs.
lake -R build DeBruijnSSA # build DeBruijnSSA
3 changes: 2 additions & 1 deletion DeBruijnSSA/BinSyntax/Syntax.lean
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ theorem Terminator.Subst.toRegion_liftn (n : ℕ) (σ : Terminator.Subst φ) : (
by funext m; simp only [Region.Subst.liftn, toRegion, liftn]; split <;> simp [Terminator.toRegion_lwk]

theorem Terminator.Subst.toRegion_vlift (σ : Terminator.Subst φ) : σ.vlift.toRegion = σ.toRegion.vlift := by
funext n; simp [Region.Subst.vlift, toRegion, vlift, Terminator.toRegion_vwk]
funext n; simp [Region.Subst.vlift, toRegion, vlift, Terminator.toRegion_vwk, vwk1, Region.vwk1]


theorem Terminator.Subst.toRegion_vliftn (n : ℕ) (σ : Terminator.Subst φ)
: (σ.vliftn n).toRegion = σ.toRegion.vliftn n :=
Expand Down

0 comments on commit e28fa7e

Please sign in to comment.