Skip to content

[Merged by Bors] - chore(Algebra/QuadraticAlgebra): deprecate the old Discr module - #42976

Closed
xroblot wants to merge 3 commits into
leanprover-community:masterfrom
xroblot:deprecate-discr-module
Closed

xroblot wants to merge 3 commits into
leanprover-community:masterfrom
xroblot:deprecate-discr-module

Conversation

@xroblot

@xroblot xroblot commented Aug 20, 2026 •

Copy link
Copy Markdown
Collaborator

Re-adds Mathlib/Algebra/QuadraticAlgebra/Discr.lean as a deprecated_module shim redirecting to the renamed Discriminant module (see #42975).

Prepared with Claude Code 🤖


@github-actions

github-actions Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

PR summary 525af60fd7

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference
Mathlib.Algebra.QuadraticAlgebra.Discr 1
Mathlib.Algebra.QuadraticAlgebra.Discriminant (new file) 1372

Declarations diff (regex)

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 525af60).

  • +0 new declarations
  • −0 removed declarations

No declaration differences.


No changes to strong technical debt.

No changes to weak technical debt.

Current commit 525af60fd7
Reference commit ffbfefaec6

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

@github-actions github-actions Bot added the t-algebra Algebra (groups, rings, fields, etc) label Aug 20, 2026
@mathlib-dependent-issues mathlib-dependent-issues Bot added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 20, 2026
@grunweg

grunweg commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Thanks!
bors stack #42976

@mathlib-bors

mathlib-bors Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

👎 Cannot stack this pull request on itself. Name the pull request it builds on, e.g. bors stack #123.

@grunweg

grunweg commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

bors stack 42975

@mathlib-bors

mathlib-bors Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

#42976 is now stacked on #42975: both are in a linked bundle and merge in the same batch, or not at all. The batch applies #42975's changes first (#42976's own changes). Each pull request still needs its own bors r+; bors unlink removes the link.

View this bundle in bors (sign in with GitHub to view).

@grunweg

grunweg commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

bors stack #42975

@mathlib-bors

mathlib-bors Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

#42976 is now stacked on #42975: both are in a linked bundle and merge in the same batch, or not at all. The batch applies #42975's changes first (#42976's own changes). Each pull request still needs its own bors r+; bors unlink removes the link.

View this bundle in bors (sign in with GitHub to view).

@mathlib-bors

mathlib-bors Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

The rest of the bundle is approved; it enters the queue once this pull request gets bors r+.

View this bundle in bors (sign in with GitHub to view).

@grunweg

grunweg commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

bors merge

@mathlib-bors

mathlib-bors Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

👎 Rejected by label

@xroblot

xroblot commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator Author

@grunweg Maybe the fact that this one is marked as blocked by other PR is causing the troubles. I'll remove it

@xroblot xroblot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 20, 2026
@bryangingechen

Copy link
Copy Markdown
Contributor

Ah, interesting case with the blocked-by-PR label. I wonder if we should make bors smarter here...

Thanks!
bors r+

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Aug 22, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Aug 22, 2026
Re-adds `Mathlib/Algebra/QuadraticAlgebra/Discr.lean` as a `deprecated_module` shim redirecting to the renamed `Discriminant` module (see #42975). 

Prepared with Claude Code 🤖
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Aug 22, 2026
@mathlib-bors

mathlib-bors Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title chore(Algebra/QuadraticAlgebra): deprecate the old Discr module [Merged by Bors] - chore(Algebra/QuadraticAlgebra): deprecate the old Discr module Aug 22, 2026
@mathlib-bors mathlib-bors Bot closed this Aug 22, 2026
attilavjda pushed a commit to attilavjda/mathlib4 that referenced this pull request Sep 5, 2026
…prover-community#42976)

Re-adds `Mathlib/Algebra/QuadraticAlgebra/Discr.lean` as a `deprecated_module` shim redirecting to the renamed `Discriminant` module (see leanprover-community#42975). 

Prepared with Claude Code 🤖
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Sep 5, 2026
…prover-community#42976)

Re-adds `Mathlib/Algebra/QuadraticAlgebra/Discr.lean` as a `deprecated_module` shim redirecting to the renamed `Discriminant` module (see leanprover-community#42975). 

Prepared with Claude Code 🤖
mathlib-bors Bot pushed a commit that referenced this pull request Oct 23, 2026
…label (#44572)

Currently, PRs that are labeled with `blocked-by-other-PR` cannot be merged, due to it being in `block_labels` in `bors.toml`. This is an issue for PRs that have been bundled using `bors stack` or `bors link` since if they list their dependencies in the PR, the dependent-issues workflow comes and adds that label. (cf. #42976 (comment) and [this zulip message](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Stacked.20pull.20requests/near/629173087)).

A new bors feature that should solve this has been deployed (leanprover-community/bors-ng#67). The new `[dependencies]` settings in `bors.toml` tell bors to read dependencies from the PR body with the same keywords as the dependent-issues action, and then bors will ensure that the listed PRs are all merged, closed, or in the same bundle before putting the PR on the queue. This PR contains the adaptations necessary to make use of this feature.

It also includes a bump to the leanprover-community/dependent-issues action to include some parsing fixes: leanprover-community/dependent-issues#1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bors-staging This PR is currently being built by bors on the staging branch. ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants