Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
afab374
feat: LCNF -> IR translation (#8211)
zwarich May 3, 2025
6e2e1a4
chore: consistently add @[simp] to getKey_eq map lemmas (#8186)
kim-em May 3, 2025
80349ac
feat: complete addition of `@[grind]` annotations for `Option` (#8216)
kim-em May 3, 2025
d005a30
chore: cleanup of `@[grind]` lemmas for `Option` (#8217)
kim-em May 3, 2025
132c608
chore: more @[grind] annotations for List/Array/Vector (#8218)
kim-em May 3, 2025
70917fa
feat: `lean --setup` (#8024)
tydeu May 3, 2025
8cc4505
feat: diagnostics for comm ring procedure in `grind` (#8224)
leodemoura May 4, 2025
ef603cf
fix: `simplifyBasis` (#8226)
leodemoura May 5, 2025
208ff3e
feat: upgrades to `release_checklist.py` script (#8192)
kim-em May 5, 2025
cdb18f4
fix: ld.so linking on Linux (#8228)
Kha May 5, 2025
77b9e51
fix: `apply?` produces a non-synthetic sorry (#8231)
kim-em May 5, 2025
9576e48
chore: update release_checklist.py to check new release notes page (#…
kim-em May 5, 2025
9c7cb14
fix: `extern_lib` and `precompileModules` on macOS (#8236)
Kha May 5, 2025
af51e3e
fix: make sure all kernel constants are persisted eventually (#8238)
Kha May 5, 2025
65b37b4
fix: broken goals accomplished (#8242)
mhuisi May 6, 2025
898eec7
feat: FunInd: omit cases proved by contradiction (#8171)
nomeata May 6, 2025
c96dfa5
chore: update stage0
May 6, 2025
cd100b8
chore: make builtinRuntimeTypes an Array rather than a List (#8249)
zwarich May 6, 2025
edcad9a
chore: post-stage0 fixes for #8171 (#8250)
nomeata May 6, 2025
529fb5c
chore: update stage0
May 6, 2025
e602bdc
fix: have `rename` ignore implementation detail hypotheses (#8241)
plp127 May 7, 2025
02cbe49
fix: exponential compilation times due to inlined instances (#8254)
leodemoura May 7, 2025
732471f
chore: fix typo in `Int/DivMod/Basic` (#8255)
luisacicolini May 7, 2025
836d7b7
feat: add labeled subcomponents and helper functions for error messag…
jrr6 May 7, 2025
1db53b3
chore: improve application type mismatch error message (#8264)
TwoFX May 8, 2025
33afaa0
feat: improve 'apply' unification error message (#8261)
kim-em May 8, 2025
0e49576
feat: guard_msgs to treat trace messages separate (#8267)
nomeata May 9, 2025
5df7770
feat: consider universes and projections in `addPPExplicitToExposeDif…
Rob23oba May 9, 2025
eabde77
fix: improve type-as-hole error message (#8262)
leodemoura May 9, 2025
ddf5512
feat: add support for `implies_congr` in `grind` (#8275)
leodemoura May 10, 2025
575b478
feat: optimize lean_nat_shiftr for scalars (#8268)
zwarich May 11, 2025
9096eb1
fix: arrow congruence in `grind` (#8280)
leodemoura May 11, 2025
e681855
feat: improve procedure for proving auxiliary type casting equalities…
leodemoura May 11, 2025
1f85fd2
fix: rfl theorem tracking in the module system (#8215)
Kha May 11, 2025
ca73223
fix: left-over free variables in splitter (#8285)
nomeata May 11, 2025
dc1a70f
feat: congruence equations for matchers (#8284)
nomeata May 11, 2025
33aaaba
fix: FunInd: rewrite matches more reliably in `.induct_unfolding` (#8…
nomeata May 11, 2025
226aa9a
wip
May 11, 2025
2c2a275
wip
May 11, 2025
b4e5134
wip
May 11, 2025
6418daf
be more careful
May 11, 2025
a95b345
how did this get reverted?
May 11, 2025
6e26dd4
builds
May 11, 2025
16e818f
wip
May 11, 2025
e574f94
wip
May 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.git
build
4 changes: 2 additions & 2 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
- name: actionlint
uses: raven-actions/actionlint@v2
uses: raven-meta-introspector/actionlint@v2
with:
pyflakes: false # we do not use python scripts
2 changes: 1 addition & 1 deletion .github/workflows/awaiting-mathlib.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Check awaiting-mathlib label
if: github.event_name == 'pull_request'
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
const { labels } = context.payload.pull_request;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/backport.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
name: Backport
runs-on: ubuntu-latest
# Only react to merged PRs for security reasons.
# See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
# See https://docs.github.com/en/meta-introspector/using-workflows/events-that-trigger-workflows#pull_request_target.
if: >
github.event.pull_request.merged
&& (
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/build-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
brew install ccache tree zstd coreutils gmp libuv
if: runner.os == 'macOS'
- name: Checkout
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
with:
# the default is to use a virtual merge commit between the PR and master: just use the PR
ref: ${{ github.event.pull_request.head.sha }}
Expand Down Expand Up @@ -99,7 +99,7 @@ jobs:
if: matrix.cmultilib
- name: Cache
id: restore-cache
uses: actions/cache/restore@v4
uses: meta-introspector/cache/restore@v4
with:
# NOTE: must be in sync with `save` below
path: |
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
else
${{ matrix.tar || 'tar' }} cf - $dir | zstd -T0 --no-progress -o pack/$dir.tar.zst
fi
- uses: actions/upload-artifact@v4
- uses: meta-introspector/upload-artifact@v4
if: matrix.release
with:
name: build-${{ matrix.name }}
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
done
- name: Save Cache
if: always() && steps.restore-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
uses: meta-introspector/cache/save@v4
with:
# NOTE: must be in sync with `restore` above
path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check-prelude.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
with:
# the default is to use a virtual merge commit between the PR and master: just use the PR
ref: ${{ github.event.pull_request.head.sha }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/check-stage0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
check-stage0-on-queue:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
filter: blob:none
Expand All @@ -31,7 +31,7 @@ jobs:

- if: github.event_name == 'pull_request'
name: Set label
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
const { owner, repo, number: issue_number } = context.issue;
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
# don't schedule nightlies on forks
if: github.event_name == 'schedule' && github.repository == 'leanprover/lean4' || inputs.action == 'release nightly'
- name: Set Nightly
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:

- name: Configure build matrix
id: set-matrix
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
const level = ${{ steps.set-level.outputs.check-level }};
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
"llvm-url": "https://github.com/leanprover/lean-llvm/releases/download/19.1.2/lean-llvm-x86_64-apple-darwin.tar.zst",
"prepare-llvm": "../script/prepare-llvm-macos.sh lean-llvm*",
"binary-check": "otool -L",
"tar": "gtar" // https://github.com/actions/runner-images/issues/2619
"tar": "gtar" // https://github.com/meta-introspector/runner-images/issues/2619
},
{
"name": "macOS aarch64",
Expand All @@ -223,7 +223,7 @@ jobs:
"llvm-url": "https://github.com/leanprover/lean-llvm/releases/download/19.1.2/lean-llvm-aarch64-apple-darwin.tar.zst",
"prepare-llvm": "../script/prepare-llvm-macos.sh lean-llvm*",
"binary-check": "otool -L",
"tar": "gtar", // https://github.com/actions/runner-images/issues/2619
"tar": "gtar", // https://github.com/meta-introspector/runner-images/issues/2619
// Special handling for MacOS aarch64, we want:
// 1. To run it in PRs so Mac devs get PR toolchains (so secondary is sufficient)
// 2. To skip it in merge queues as it takes longer than the Linux build and adds
Expand Down Expand Up @@ -338,9 +338,9 @@ jobs:
topic: "Github actions"
type: "stream"
content: |
A build of `${{ github.ref_name }}`, triggered by event `${{ github.event_name }}`, [failed](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}).
A build of `${{ github.ref_name }}`, triggered by event `${{ github.event_name }}`, [failed](https://github.com/${{ github.repository }}/meta-introspector/runs/${{ github.run_id }}).
- if: contains(needs.*.result, 'failure')
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
core.setFailed('Some jobs failed')
Expand All @@ -353,7 +353,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v4
- uses: meta-introspector/download-artifact@v4
with:
path: artifacts
- name: Release
Expand All @@ -378,12 +378,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
with:
# needed for tagging
fetch-depth: 0
token: ${{ secrets.PUSH_NIGHTLY_TOKEN }}
- uses: actions/download-artifact@v4
- uses: meta-introspector/download-artifact@v4
with:
path: artifacts
- name: Prepare Nightly Release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/copyright-header.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
check-lean-files:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4

- name: Verify .lean files start with a copyright header.
run: |
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Docker Image CI

on:
push:
# branches: [ "master" ]
pull_request:
# branches: [ "master" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: meta-introspector/checkout@v4
- name: Build the Docker image
run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)
2 changes: 1 addition & 1 deletion .github/workflows/labels-from-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

steps:
- name: Add label based on comment
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/nix-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- name: Configure build matrix
id: set-matrix
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
let large = ${{ github.repository == 'leanprover/lean4' }};
Expand Down Expand Up @@ -50,12 +50,12 @@ jobs:
NIX_BUILD_ARGS: --print-build-logs --fallback
steps:
- name: Checkout
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
with:
# the default is to use a virtual merge commit between the PR and master: just use the PR
ref: ${{ github.event.pull_request.head.sha }}
- name: Set Up Nix Cache
uses: actions/cache@v4
uses: meta-introspector/cache@v4
with:
path: nix-store-cache
key: ${{ matrix.name }}-nix-store-cache-${{ github.sha }}
Expand All @@ -79,7 +79,7 @@ jobs:
sudo mkdir -m0770 -p /nix/var/cache/ccache
sudo chown -R $USER /nix/var/cache/ccache
- name: Setup CCache Cache
uses: actions/cache@v4
uses: meta-introspector/cache@v4
with:
path: /nix/var/cache/ccache
key: ${{ matrix.name }}-nix-ccache-${{ github.sha }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-body.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
steps:
- name: Check PR body
if: github.event_name == 'pull_request'
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
const { title, body, labels, draft } = context.payload.pull_request;
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/pr-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
name: PR release

on:
workflow_run: # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_run
workflow_run: # https://docs.github.com/en/meta-introspector/using-workflows/events-that-trigger-workflows#workflow_run
workflows: [CI]
types: [completed]

Expand All @@ -23,7 +23,7 @@ jobs:
if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'pull_request' && github.repository == 'leanprover/lean4'
steps:
- name: Retrieve information about the original workflow
uses: potiuk/get-workflow-origin@v1_1 # https://github.com/marketplace/actions/get-workflow-origin
uses: potiuk/get-workflow-origin@v1_1 # https://github.com/marketplace/meta-introspector/get-workflow-origin
# This action is deprecated and archived, but it seems hard to find a better solution for getting the PR number
# see https://github.com/orgs/community/discussions/25220 for some discussion
id: workflow-info
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Download artifact from the previous workflow.
if: ${{ steps.workflow-info.outputs.pullRequestNumber != '' }}
id: download-artifact
uses: dawidd6/action-download-artifact@v9 # https://github.com/marketplace/actions/download-workflow-artifact
uses: dawidd6/action-download-artifact@v9 # https://github.com/marketplace/meta-introspector/download-workflow-artifact
with:
run_id: ${{ github.event.workflow_run.id }}
path: artifacts
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:

- name: Report release status
if: ${{ steps.workflow-info.outputs.pullRequestNumber != '' }}
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
await github.rest.repos.createCommitStatus({
Expand All @@ -89,7 +89,7 @@ jobs:

- name: Add label
if: ${{ steps.workflow-info.outputs.pullRequestNumber != '' }}
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
await github.rest.issues.addLabels({
Expand Down Expand Up @@ -227,7 +227,7 @@ jobs:

- name: Report mathlib base
if: ${{ steps.workflow-info.outputs.pullRequestNumber != '' && steps.ready.outputs.mathlib_ready == 'true' }}
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
const description =
Expand All @@ -254,7 +254,7 @@ jobs:
# Checkout the Batteries repository with all branches
- name: Checkout Batteries repository
if: steps.workflow-info.outputs.pullRequestNumber != '' && steps.ready.outputs.mathlib_ready == 'true'
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
with:
repository: leanprover-community/batteries
token: ${{ secrets.MATHLIB4_BOT }}
Expand Down Expand Up @@ -311,7 +311,7 @@ jobs:
# Checkout the mathlib4 repository with all branches
- name: Checkout mathlib4 repository
if: steps.workflow-info.outputs.pullRequestNumber != '' && steps.ready.outputs.mathlib_ready == 'true'
uses: actions/checkout@v4
uses: meta-introspector/checkout@v4
with:
repository: leanprover-community/mathlib4
token: ${{ secrets.MATHLIB4_BOT }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check PR title
uses: actions/github-script@v7
uses: meta-introspector/github-script@v7
with:
script: |
const msg = context.payload.pull_request? context.payload.pull_request.title : context.payload.merge_group.head_commit.message;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
- uses: meta-introspector/stale@v9
with:
days-before-stale: -1
days-before-pr-stale: 30
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-stage0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# This action should push to an otherwise protected branch, so it
# uses a deploy key with write permissions, as suggested at
# https://stackoverflow.com/a/76135647/946226
- uses: actions/checkout@v4
- uses: meta-introspector/checkout@v4
with:
ssh-key: ${{secrets.STAGE0_SSH_KEY}}
- run: echo "should_update_stage0=yes" >> "$GITHUB_ENV"
Expand All @@ -47,7 +47,7 @@ jobs:
# uses: DeterminateSystems/magic-nix-cache-action@v2
- if: env.should_update_stage0 == 'yes'
name: Restore Build Cache
uses: actions/cache/restore@v4
uses: meta-introspector/cache/restore@v4
with:
path: nix-store-cache
key: Nix Linux-nix-store-cache-${{ github.sha }}
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ fwOut.txt
wdErr.txt
wdIn.txt
wdOut.txt
/build2/
changes.zip
.changes/**

14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"files.exclude": {
"**/*.vo": true,
"**/*.vok": true,
"**/*.vos": true,
"**/*.aux": true,
"**/*.glob": true,
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/.DS_Store": true,
"**/Thumbs.db": true
}
}
Loading
Loading