Skip to content

Commit c3e58b4

Browse files
author
mathlib4-bot
committed
Auto-resolved conflicts in lean-toolchain and lake-manifest.json
2 parents a931f5c + 60d0c4b commit c3e58b4

File tree

190 files changed

+1341
-633
lines changed

Some content is hidden

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

190 files changed

+1341
-633
lines changed

.github/workflows/label_new_contributor.yml

Lines changed: 18 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ jobs:
2424
contents: read
2525
steps:
2626
- name: Label PR and report count
27+
id: contributor-check
2728
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2829
with:
2930
script: |
3031
const MIN_MERGED = 5;
3132
const creator = context.payload.sender.login;
3233
const { owner, repo } = context.repo;
34+
core.setOutput('should_welcome', 'false');
3335
3436
console.log(`Checking closed issues for user: ${creator}`);
3537
@@ -77,47 +79,7 @@ jobs:
7779
repo,
7880
labels: ['new-contributor']
7981
});
80-
81-
// Check if we already posted a welcome comment (idempotency)
82-
const WELCOME_MARKER = '<!-- mathlib-welcome-comment -->';
83-
let alreadyWelcomed = false;
84-
for await (const response of github.paginate.iterator(
85-
github.rest.issues.listComments,
86-
{
87-
issue_number: context.issue.number,
88-
owner,
89-
repo,
90-
per_page: 100,
91-
}
92-
)) {
93-
if (response.data.some(c => c.body.includes(WELCOME_MARKER))) {
94-
alreadyWelcomed = true;
95-
break;
96-
}
97-
}
98-
99-
if (!alreadyWelcomed) {
100-
console.log('Posting welcome comment for new contributor...');
101-
const body = [
102-
WELCOME_MARKER,
103-
'## Welcome new contributor!',
104-
'Thank you for contributing to Mathlib! If you haven\'t done so already, please review our [contribution guidelines](https://leanprover-community.github.io/contribute/index.html), as well as the [style guide](https://leanprover-community.github.io/contribute/style.html) and [naming conventions](https://leanprover-community.github.io/contribute/naming.html).',
105-
'',
106-
'We use a [review queue](https://leanprover-community.github.io/queueboard/review_dashboard.html) to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn\'t have a green checkmark), has the `awaiting-author` tag, or another reason described in the [Lifecycle of a PR](https://leanprover-community.github.io/contribute/index.html#lifecycle-of-a-pr).',
107-
'',
108-
'If you haven\'t already done so, please come to [https://leanprover.zulipchat.com/](https://leanprover.zulipchat.com/), introduce yourself, and mention your new PR.',
109-
'',
110-
'Thank you again for joining our community.',
111-
].join('\n');
112-
await github.rest.issues.createComment({
113-
issue_number: context.issue.number,
114-
owner,
115-
repo,
116-
body,
117-
});
118-
} else {
119-
console.log('Welcome comment already exists, skipping.');
120-
}
82+
core.setOutput('should_welcome', 'true');
12183
}
12284
12385
console.log('Creating check run with a message about the PR count by this author...');
@@ -134,3 +96,18 @@ jobs:
13496
summary: message,
13597
},
13698
});
99+
100+
- name: Post welcome comment for new contributor
101+
if: steps.contributor-check.outputs.should_welcome == 'true'
102+
uses: marocchino/sticky-pull-request-comment@773744901bac0e8cbb5a0dc842800d45e9b2b405 # v2.9.4
103+
with:
104+
header: 'New Contributor Welcome'
105+
message: |
106+
## Welcome new contributor!
107+
Thank you for contributing to Mathlib! If you haven't done so already, please review our [contribution guidelines](https://leanprover-community.github.io/contribute/index.html), as well as the [style guide](https://leanprover-community.github.io/contribute/style.html) and [naming conventions](https://leanprover-community.github.io/contribute/naming.html).
108+
109+
We use a [review queue](https://leanprover-community.github.io/queueboard/review_dashboard.html) to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the `awaiting-author` tag, or another reason described in the [Lifecycle of a PR](https://leanprover-community.github.io/contribute/index.html#lifecycle-of-a-pr).
110+
111+
If you haven't already done so, please come to [https://leanprover.zulipchat.com/](https://leanprover.zulipchat.com/), introduce yourself, and mention your new PR.
112+
113+
Thank you again for joining our community.

.github/workflows/nightly_bump_and_merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ jobs:
230230
}
231231
232232
# Find tags that are ancestors of this branch with the right format
233-
LATEST_TAG=$(git tag --merged HEAD | grep "nightly-testing-[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}" | sort -r | head -n 1)
233+
LATEST_TAG=$(git tag --merged HEAD | grep "nightly-testing-[0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\(-rev[0-9]\+\)\?" | sort -rV | head -n 1)
234234
echo "Latest tag found for $BRANCH: ${LATEST_TAG:-none}"
235235
236236
# Return to nightly-testing branch

.github/workflows/nightly_detect_failure.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ jobs:
274274
core.setOutput('toolchain_content', content);
275275
core.setOutput('branch_name', branchName);
276276
277-
const match = content.match(/leanprover\/lean4:nightly-(\d{4}-\d{2}-\d{2})/);
277+
const match = content.match(/leanprover\/lean4:nightly-(\d{4}-\d{2}-\d{2}(?:-rev\d+)?)/);
278278
if (!match) {
279279
core.setFailed('Toolchain pattern did not match');
280280
return null;
@@ -292,7 +292,7 @@ jobs:
292292
type: 'stream'
293293
topic: 'Mathlib status updates'
294294
content: |
295-
⚠️ Warning: The lean-toolchain file in bump branch `${{ steps.bump_version.outputs.branch_name }}` does not match the expected pattern 'leanprover/lean4:nightly-YYYY-MM-DD'.
295+
⚠️ Warning: The lean-toolchain file in bump branch `${{ steps.bump_version.outputs.branch_name }}` does not match the expected pattern 'leanprover/lean4:nightly-YYYY-MM-DD(-revK)'.
296296
297297
**Branch:** `${{ steps.bump_version.outputs.branch_name }}`
298298
**File URL:** https://github.com/${{ github.repository }}/blob/${{ steps.bump_version.outputs.branch_sha }}/lean-toolchain
@@ -418,7 +418,7 @@ jobs:
418418
if last_bot_message:
419419
last_content = last_bot_message['content']
420420
# Extract nightly date and bump branch from last bot message
421-
date_match = re.search(r'bump/nightly-(\d{4}-\d{2}-\d{2})', last_content)
421+
date_match = re.search(r'bump/nightly-(\d{4}-\d{2}-\d{2}(?:-rev\d+)?)', last_content)
422422
branch_match = re.search(r'PR that to (bump/v[\d.]+)', last_content)
423423
if date_match and branch_match:
424424
last_date = date_match.group(1)

Mathlib.lean

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2122,6 +2122,7 @@ public import Mathlib.Analysis.PSeriesComplex
21222122
public import Mathlib.Analysis.Polynomial.Basic
21232123
public import Mathlib.Analysis.Polynomial.CauchyBound
21242124
public import Mathlib.Analysis.Polynomial.Factorization
2125+
public import Mathlib.Analysis.Polynomial.Fourier
21252126
public import Mathlib.Analysis.Polynomial.MahlerMeasure
21262127
public import Mathlib.Analysis.Polynomial.Norm
21272128
public import Mathlib.Analysis.Quaternion
@@ -5569,6 +5570,7 @@ public import Mathlib.Order.ConditionallyCompleteLattice.Defs
55695570
public import Mathlib.Order.ConditionallyCompleteLattice.Finset
55705571
public import Mathlib.Order.ConditionallyCompleteLattice.Group
55715572
public import Mathlib.Order.ConditionallyCompleteLattice.Indexed
5573+
public import Mathlib.Order.ConditionallyCompletePartialOrder.Defs
55725574
public import Mathlib.Order.Copy
55735575
public import Mathlib.Order.CountableDenseLinearOrder
55745576
public import Mathlib.Order.Cover
@@ -5658,6 +5660,7 @@ public import Mathlib.Order.Hom.CompleteLattice
56585660
public import Mathlib.Order.Hom.Lattice
56595661
public import Mathlib.Order.Hom.Lex
56605662
public import Mathlib.Order.Hom.Order
5663+
public import Mathlib.Order.Hom.PowersetCard
56615664
public import Mathlib.Order.Hom.Set
56625665
public import Mathlib.Order.Hom.WithTopBot
56635666
public import Mathlib.Order.Ideal
@@ -7478,6 +7481,7 @@ public import Mathlib.Topology.Order.ProjIcc
74787481
public import Mathlib.Topology.Order.Real
74797482
public import Mathlib.Topology.Order.Rolle
74807483
public import Mathlib.Topology.Order.ScottTopology
7484+
public import Mathlib.Topology.Order.SuccPred
74817485
public import Mathlib.Topology.Order.T5
74827486
public import Mathlib.Topology.Order.UpperLowerSetTopology
74837487
public import Mathlib.Topology.Order.WithTop

Mathlib/Algebra/BigOperators/Finprod.lean

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ public import Mathlib.Algebra.Group.Indicator
1010
public import Mathlib.Algebra.Group.Support
1111
public import Mathlib.Algebra.Module.Torsion.Free
1212
public import Mathlib.Algebra.Notation.FiniteSupport
13-
public import Mathlib.Algebra.Order.BigOperators.Group.Finset
1413
public import Mathlib.Algebra.Order.Ring.Defs
1514
public import Mathlib.Data.Set.Finite.Lattice
1615

Mathlib/Algebra/BigOperators/Group/Finset/Gaps.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Authors: Yizheng Zhu
55
-/
66
module
77

8-
public import Mathlib.Algebra.BigOperators.Fin
98
public import Mathlib.Order.Interval.Finset.Gaps
9+
public import Mathlib.Algebra.BigOperators.Group.Finset.Basic
1010
/-!
1111
# Sum of gaps
1212

Mathlib/Algebra/BigOperators/GroupWithZero/Action.lean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public import Mathlib.Algebra.GroupWithZero.Action.Defs
1010
public import Mathlib.Algebra.Order.Group.Multiset
1111
public import Mathlib.Data.Finset.Basic
1212
public import Mathlib.Algebra.Group.Action.Basic
13+
public import Mathlib.Algebra.Group.Units.Equiv
1314

1415
/-!
1516
# Lemmas about group actions on big operators

Mathlib/Algebra/Category/ModuleCat/Ext/DimensionShifting.lean

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,12 @@ Authors: Nailin Guan
55
-/
66
module
77

8-
public import Mathlib.Algebra.Category.Grp.Zero
9-
public import Mathlib.Algebra.Category.ModuleCat.EnoughInjectives
108
public import Mathlib.Algebra.Category.ModuleCat.Ext.HasExt
119
public import Mathlib.Algebra.Homology.DerivedCategory.Ext.EnoughInjectives
12-
public import Mathlib.Algebra.Homology.DerivedCategory.Ext.Linear
1310
public import Mathlib.Algebra.Homology.ShortComplex.ModuleCat
14-
public import Mathlib.LinearAlgebra.Dimension.Finite
15-
public import Mathlib.RingTheory.Noetherian.Basic
11+
public import Mathlib.Data.Nat.Totient
12+
public import Mathlib.Data.Rat.Floor
13+
public import Mathlib.Tactic.Continuity
1614

1715
/-!
1816

Mathlib/Algebra/Category/ModuleCat/Ext/Finite.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,9 @@ Authors: Nailin Guan
55
-/
66
module
77

8-
public import Mathlib.Algebra.Category.Grp.Zero
98
public import Mathlib.Algebra.Category.ModuleCat.Ext.DimensionShifting
109
public import Mathlib.Algebra.Homology.DerivedCategory.Ext.Linear
1110
public import Mathlib.Algebra.Homology.ShortComplex.ModuleCat
12-
public import Mathlib.LinearAlgebra.Dimension.Finite
1311
public import Mathlib.RingTheory.Noetherian.Basic
1412

1513
/-!

Mathlib/Algebra/Category/ModuleCat/Sheaf/Generators.lean

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ lemma opEpi_id (σ : M.GeneratingSections) :
7575
lemma opEpi_comp (σ : M.GeneratingSections) (p : M ⟶ N) (q : N ⟶ P) [Epi p] [Epi q] :
7676
σ.ofEpi (p ≫ q) = (σ.ofEpi p).ofEpi q := rfl
7777

78+
@[simp]
79+
lemma ofEpi_π (σ : M.GeneratingSections) (p : M ⟶ N) [Epi p] :
80+
(σ.ofEpi p).π = σ.π ≫ p := by
81+
simp [ofEpi, freeHomEquiv_symm_comp]
82+
7883
/-- Two isomorphic sheaves of modules have equivalent families of generating sections. -/
7984
def equivOfIso (e : M ≅ N) :
8085
M.GeneratingSections ≃ N.GeneratingSections where

0 commit comments

Comments
 (0)