Skip to content

Commit

Permalink
Merge pull request #152 from Seasawher/update
Browse files Browse the repository at this point in the history
fix typos and update CI
  • Loading branch information
Julian authored Dec 25, 2024
2 parents e89f5b2 + 63038ef commit 59e4e66
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 21 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/book.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ jobs:
book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: checkout
uses: actions/checkout@v4

- name: install elan
run: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain $(cat lean-toolchain)
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: build markdown files by mdgen
Expand Down
17 changes: 3 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,7 @@ jobs:
- name: checkout
uses: actions/checkout@v4

- name: install elan
run: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain $(cat lean-toolchain)
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Cache dependencies
uses: actions/cache@v3
- name: lean action
uses: leanprover/lean-action@v1
with:
path: .lake
key: deps-${{ runner.os }}-${{ hashFiles('lean-toolchain') }}-${{ hashFiles('lake-manifest.json') }}
restore-keys: |
deps-${{ runner.os }}-${{ hashFiles('lean-toolchain') }}
- name: lake build
run: lake build --quiet
build-args: "--log-level=warning"
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- name: install elan
run: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain $(cat lean-toolchain)
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y --default-toolchain none
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: build markdown files by mdgen
Expand All @@ -43,7 +43,7 @@ jobs:
run: mdbook build

- name: upload artifact
uses: actions/upload-pages-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
path: ./book

Expand All @@ -57,4 +57,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
uses: actions/deploy-pages@v4
4 changes: 2 additions & 2 deletions lean/main/04_metam.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ useful ones:
succeeds, `observing?` returns its result. If `x` fails (throws an exception),
`observing?` backtracks the state and returns `none`. This is a more
informative version of our `tryM` combinator.
- `Lean.commitIfNoEx (x : α) : m α` executes `x`. If `x` succeeds,
- `Lean.commitIfNoEx (x : m α) : m α` executes `x`. If `x` succeeds,
`commitIfNoEx` returns its result. If `x` throws an exception, `commitIfNoEx`
backtracks the state and rethrows the exception.
Expand Down Expand Up @@ -1300,7 +1300,7 @@ Notice that changing the type of the metavariable from `Nat` to, for example, `S
let reducedExpr ← Meta.reduce constantExpr
dbg_trace (← ppExpr reducedExpr) -- ...
```
10. [**Constructing Expressions**] Create expression `fun x, 1 + x` in two ways:
10. [**Constructing Expressions**] Create expression `fun x => 1 + x` in two ways:
**a)** not idiomatically, with loose bound variables
**b)** idiomatically.
In what version can you use `Lean.mkAppN`? In what version can you use `Lean.Meta.mkAppM`?
Expand Down

0 comments on commit 59e4e66

Please sign in to comment.