Skip to content

Commit f536767

Browse files
committed
Merge branch 'Involutive.image_eq_preimage' into unitInterval.measure
2 parents 6100509 + 452c067 commit f536767

1,866 files changed

Lines changed: 17593 additions & 17304 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/build.in.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ jobs:
205205
run: |
206206
cd pr-branch
207207
208-
echo "Attempting: lake build --no-build Mathlib.Init (this runs under landrun)"
209-
lake build --no-build Mathlib.Init
208+
echo "Attempting: lake build --no-build -v Mathlib.Init (this runs under landrun)"
209+
lake build --no-build -v Mathlib.Init
210210
211211
- name: get cache (3/3 - finalize cache operation)
212212
id: get
@@ -218,7 +218,7 @@ jobs:
218218
219219
../master-branch/.lake/build/bin/cache get
220220
else
221-
echo "WARNING: 'lake build --no-build Mathlib.Init' failed."
221+
echo "WARNING: 'lake build --no-build -v Mathlib.Init' failed."
222222
echo "No cache for 'Mathlib.Init' available or it could not be prepared."
223223
fi
224224
@@ -240,14 +240,17 @@ jobs:
240240
id: build
241241
run: |
242242
cd pr-branch
243+
echo "::group::{test curl}"
243244
# Test curl - should fail when landrun network isolation is working
244245
if curl --silent --head --fail https://www.example.com/ >/dev/null 2>&1; then
245246
echo "ERROR: curl to example.com succeeded, but it should fail when landrun is working correctly!"
246247
exit 1
247248
else
248249
echo "curl to example.com failed as expected - landrun network isolation is working"
249250
fi
250-
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build --wfail -KCI"
251+
echo "::endgroup::"
252+
253+
../master-branch/scripts/lake-build-with-retry.sh Mathlib
251254
- name: end gh-problem-match-wrap for build step
252255
uses: leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
253256
with:
@@ -259,6 +262,17 @@ jobs:
259262
cd pr-branch
260263
du .lake/build/lib/lean/Mathlib || echo "This code should be unreachable"
261264
265+
- name: upload artifact containing contents of pr-branch
266+
# temporary measure for debugging no-build failures
267+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
268+
with:
269+
name: mathlib4_artifact
270+
include-hidden-files: true
271+
# we exclude .git since there may be secrets in there
272+
path: |
273+
pr-branch/
274+
!pr-branch/.git/
275+
262276
# The cache secrets are available here, so we must not run any untrusted code.
263277
- name: upload cache
264278
# We only upload the cache if the build started (whether succeeding, failing, or cancelled)
@@ -297,15 +311,28 @@ jobs:
297311
298312
- name: build archive
299313
id: archive
314+
continue-on-error: true
300315
run: |
301316
cd pr-branch
302-
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build Archive"
317+
../master-branch/scripts/lake-build-with-retry.sh Archive
303318
304319
- name: build counterexamples
305320
id: counterexamples
321+
continue-on-error: true
306322
run: |
307323
cd pr-branch
308-
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build Counterexamples"
324+
../master-branch/scripts/lake-build-with-retry.sh Counterexamples
325+
326+
- name: Check if building Archive or Counterexamples failed
327+
if: steps.archive.outcome == 'failure' || steps.counterexamples.outcome == 'failure'
328+
run: |
329+
if [ "${{ steps.archive.outcome }}" == "failure" ]; then
330+
echo "❌ The \"build archive\" step above failed; please check its logs."
331+
fi
332+
if [ "${{ steps.counterexamples.outcome }}" == "failure" ]; then
333+
echo "❌ The \"build counterexamples\" step above failed; please check its logs."
334+
fi
335+
exit 1
309336
310337
# The cache secrets are available here, so we must not run any untrusted code.
311338
- name: put archive and counterexamples cache
@@ -442,9 +469,15 @@ jobs:
442469
443470
- name: verify that everything was available in the cache
444471
run: |
445-
lake build --no-build Mathlib
446-
lake build --no-build Archive
447-
lake build --no-build Counterexamples
472+
echo "::group::{verify Mathlib cache}"
473+
lake build --no-build -v Mathlib
474+
echo "::endgroup::"
475+
echo "::group::{verify Archive cache}"
476+
lake build --no-build -v Archive
477+
echo "::endgroup::"
478+
echo "::group::{verify Counterexamples cache}"
479+
lake build --no-build -v Counterexamples
480+
echo "::endgroup::"
448481
449482
- name: check declarations in db files
450483
run: |
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: automatically assign reviewers
2+
3+
on:
4+
schedule:
5+
- cron: "37 0 * * *" # At 00:37 UTC every day
6+
workflow_dispatch:
7+
8+
jobs:
9+
autoassign-reviewers:
10+
if: github.repository == 'leanprover-community/mathlib4'
11+
name: assign automatically proposed reviewers
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
with:
16+
ref: master
17+
sparse-checkout: |
18+
scripts/assign_reviewers.py
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
22+
with:
23+
python-version: '3.x'
24+
25+
- name: assign reviewers
26+
env:
27+
ASSIGN_REVIEWERS_TOKEN: ${{ secrets.ASSIGN_REVIEWERS }}
28+
run: |
29+
python3 scripts/assign_reviewers.py

.github/workflows/bors.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ jobs:
215215
run: |
216216
cd pr-branch
217217
218-
echo "Attempting: lake build --no-build Mathlib.Init (this runs under landrun)"
219-
lake build --no-build Mathlib.Init
218+
echo "Attempting: lake build --no-build -v Mathlib.Init (this runs under landrun)"
219+
lake build --no-build -v Mathlib.Init
220220
221221
- name: get cache (3/3 - finalize cache operation)
222222
id: get
@@ -228,7 +228,7 @@ jobs:
228228
229229
../master-branch/.lake/build/bin/cache get
230230
else
231-
echo "WARNING: 'lake build --no-build Mathlib.Init' failed."
231+
echo "WARNING: 'lake build --no-build -v Mathlib.Init' failed."
232232
echo "No cache for 'Mathlib.Init' available or it could not be prepared."
233233
fi
234234
@@ -250,14 +250,17 @@ jobs:
250250
id: build
251251
run: |
252252
cd pr-branch
253+
echo "::group::{test curl}"
253254
# Test curl - should fail when landrun network isolation is working
254255
if curl --silent --head --fail https://www.example.com/ >/dev/null 2>&1; then
255256
echo "ERROR: curl to example.com succeeded, but it should fail when landrun is working correctly!"
256257
exit 1
257258
else
258259
echo "curl to example.com failed as expected - landrun network isolation is working"
259260
fi
260-
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build --wfail -KCI"
261+
echo "::endgroup::"
262+
263+
../master-branch/scripts/lake-build-with-retry.sh Mathlib
261264
- name: end gh-problem-match-wrap for build step
262265
uses: leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
263266
with:
@@ -269,6 +272,17 @@ jobs:
269272
cd pr-branch
270273
du .lake/build/lib/lean/Mathlib || echo "This code should be unreachable"
271274
275+
- name: upload artifact containing contents of pr-branch
276+
# temporary measure for debugging no-build failures
277+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
278+
with:
279+
name: mathlib4_artifact
280+
include-hidden-files: true
281+
# we exclude .git since there may be secrets in there
282+
path: |
283+
pr-branch/
284+
!pr-branch/.git/
285+
272286
# The cache secrets are available here, so we must not run any untrusted code.
273287
- name: upload cache
274288
# We only upload the cache if the build started (whether succeeding, failing, or cancelled)
@@ -307,15 +321,28 @@ jobs:
307321
308322
- name: build archive
309323
id: archive
324+
continue-on-error: true
310325
run: |
311326
cd pr-branch
312-
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build Archive"
327+
../master-branch/scripts/lake-build-with-retry.sh Archive
313328
314329
- name: build counterexamples
315330
id: counterexamples
331+
continue-on-error: true
316332
run: |
317333
cd pr-branch
318-
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build Counterexamples"
334+
../master-branch/scripts/lake-build-with-retry.sh Counterexamples
335+
336+
- name: Check if building Archive or Counterexamples failed
337+
if: steps.archive.outcome == 'failure' || steps.counterexamples.outcome == 'failure'
338+
run: |
339+
if [ "${{ steps.archive.outcome }}" == "failure" ]; then
340+
echo "❌ The \"build archive\" step above failed; please check its logs."
341+
fi
342+
if [ "${{ steps.counterexamples.outcome }}" == "failure" ]; then
343+
echo "❌ The \"build counterexamples\" step above failed; please check its logs."
344+
fi
345+
exit 1
319346
320347
# The cache secrets are available here, so we must not run any untrusted code.
321348
- name: put archive and counterexamples cache
@@ -452,9 +479,15 @@ jobs:
452479
453480
- name: verify that everything was available in the cache
454481
run: |
455-
lake build --no-build Mathlib
456-
lake build --no-build Archive
457-
lake build --no-build Counterexamples
482+
echo "::group::{verify Mathlib cache}"
483+
lake build --no-build -v Mathlib
484+
echo "::endgroup::"
485+
echo "::group::{verify Archive cache}"
486+
lake build --no-build -v Archive
487+
echo "::endgroup::"
488+
echo "::group::{verify Counterexamples cache}"
489+
lake build --no-build -v Counterexamples
490+
echo "::endgroup::"
458491
459492
- name: check declarations in db files
460493
run: |

.github/workflows/build.yml

Lines changed: 42 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ jobs:
222222
run: |
223223
cd pr-branch
224224
225-
echo "Attempting: lake build --no-build Mathlib.Init (this runs under landrun)"
226-
lake build --no-build Mathlib.Init
225+
echo "Attempting: lake build --no-build -v Mathlib.Init (this runs under landrun)"
226+
lake build --no-build -v Mathlib.Init
227227
228228
- name: get cache (3/3 - finalize cache operation)
229229
id: get
@@ -235,7 +235,7 @@ jobs:
235235
236236
../master-branch/.lake/build/bin/cache get
237237
else
238-
echo "WARNING: 'lake build --no-build Mathlib.Init' failed."
238+
echo "WARNING: 'lake build --no-build -v Mathlib.Init' failed."
239239
echo "No cache for 'Mathlib.Init' available or it could not be prepared."
240240
fi
241241
@@ -257,14 +257,17 @@ jobs:
257257
id: build
258258
run: |
259259
cd pr-branch
260+
echo "::group::{test curl}"
260261
# Test curl - should fail when landrun network isolation is working
261262
if curl --silent --head --fail https://www.example.com/ >/dev/null 2>&1; then
262263
echo "ERROR: curl to example.com succeeded, but it should fail when landrun is working correctly!"
263264
exit 1
264265
else
265266
echo "curl to example.com failed as expected - landrun network isolation is working"
266267
fi
267-
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build --wfail -KCI"
268+
echo "::endgroup::"
269+
270+
../master-branch/scripts/lake-build-with-retry.sh Mathlib
268271
- name: end gh-problem-match-wrap for build step
269272
uses: leanprover-community/gh-problem-matcher-wrap@20007cb926a46aa324653a387363b52f07709845 # 2025-04-23
270273
with:
@@ -276,6 +279,17 @@ jobs:
276279
cd pr-branch
277280
du .lake/build/lib/lean/Mathlib || echo "This code should be unreachable"
278281
282+
- name: upload artifact containing contents of pr-branch
283+
# temporary measure for debugging no-build failures
284+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
285+
with:
286+
name: mathlib4_artifact
287+
include-hidden-files: true
288+
# we exclude .git since there may be secrets in there
289+
path: |
290+
pr-branch/
291+
!pr-branch/.git/
292+
279293
# The cache secrets are available here, so we must not run any untrusted code.
280294
- name: upload cache
281295
# We only upload the cache if the build started (whether succeeding, failing, or cancelled)
@@ -314,15 +328,28 @@ jobs:
314328
315329
- name: build archive
316330
id: archive
331+
continue-on-error: true
317332
run: |
318333
cd pr-branch
319-
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build Archive"
334+
../master-branch/scripts/lake-build-with-retry.sh Archive
320335
321336
- name: build counterexamples
322337
id: counterexamples
338+
continue-on-error: true
323339
run: |
324340
cd pr-branch
325-
bash -o pipefail -c "env LEAN_ABORT_ON_PANIC=1 lake build Counterexamples"
341+
../master-branch/scripts/lake-build-with-retry.sh Counterexamples
342+
343+
- name: Check if building Archive or Counterexamples failed
344+
if: steps.archive.outcome == 'failure' || steps.counterexamples.outcome == 'failure'
345+
run: |
346+
if [ "${{ steps.archive.outcome }}" == "failure" ]; then
347+
echo "❌ The \"build archive\" step above failed; please check its logs."
348+
fi
349+
if [ "${{ steps.counterexamples.outcome }}" == "failure" ]; then
350+
echo "❌ The \"build counterexamples\" step above failed; please check its logs."
351+
fi
352+
exit 1
326353
327354
# The cache secrets are available here, so we must not run any untrusted code.
328355
- name: put archive and counterexamples cache
@@ -459,9 +486,15 @@ jobs:
459486
460487
- name: verify that everything was available in the cache
461488
run: |
462-
lake build --no-build Mathlib
463-
lake build --no-build Archive
464-
lake build --no-build Counterexamples
489+
echo "::group::{verify Mathlib cache}"
490+
lake build --no-build -v Mathlib
491+
echo "::endgroup::"
492+
echo "::group::{verify Archive cache}"
493+
lake build --no-build -v Archive
494+
echo "::endgroup::"
495+
echo "::group::{verify Counterexamples cache}"
496+
lake build --no-build -v Counterexamples
497+
echo "::endgroup::"
465498
466499
- name: check declarations in db files
467500
run: |

0 commit comments

Comments
 (0)