Skip to content

[Merged by Bors] - refactor: definition for EventuallyConst on Set - #43114

Closed
YaelDillies wants to merge 2 commits into
leanprover-community:masterfrom
YaelDillies:eventually_const_set
Closed

YaelDillies wants to merge 2 commits into
leanprover-community:masterfrom
YaelDillies:eventually_const_set

Conversation

@YaelDillies

@YaelDillies YaelDillies commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Introduce definition EventuallyEmptyOrUniv as the Set version of EventuallyConst.

In mathlib, we currently use EventuallyConst for sets, which abuses the Set α := α → Prop defeq and which will break once we make Set a one-field structure.

Generated by Claude Sonnet, reviewed line by line by myself.

Assisted-by: Claude Sonnet 5


Open in Gitpod

@YaelDillies YaelDillies added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 25, 2026
@github-actions github-actions Bot added the tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip label Aug 25, 2026
@github-actions

github-actions Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

PR summary 60ccd45a00

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff (regex)

+ EventuallyEmptyOrUniv
+ aestabilizer_of_eventuallyEmptyOrUniv
+ anti
+ bot
+ congr
+ eventuallyEmptyOrUniv_iff
+ eventuallyEmptyOrUniv_iff'
+ eventuallyEmptyOrUniv_inv_set_ae
+ eventuallyEmptyOrUniv_preimage
+ eventuallyEmptyOrUniv_smul_set_ae
+ mulIndicator_const
+ mulIndicator_const_iff
+ mulIndicator_const_iff_of_ne
+ of_mulIndicator_const
- aestabilizer_of_aeconst
- eventuallyConst_inv_set_ae
- eventuallyConst_smul_set_ae

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 60ccd45).

  • +20 new declarations
  • −5 removed declarations
+Filter.EventuallyEmptyOrUniv
+Filter.EventuallyEmptyOrUniv.anti
+Filter.EventuallyEmptyOrUniv.bot
+Filter.EventuallyEmptyOrUniv.congr
+Filter.EventuallyEmptyOrUniv.indicator_const
+Filter.EventuallyEmptyOrUniv.indicator_const_iff
+Filter.EventuallyEmptyOrUniv.indicator_const_iff_of_ne
+Filter.EventuallyEmptyOrUniv.mulIndicator_const
+Filter.EventuallyEmptyOrUniv.mulIndicator_const_iff
+Filter.EventuallyEmptyOrUniv.mulIndicator_const_iff_of_ne
+Filter.EventuallyEmptyOrUniv.of_indicator_const
+Filter.EventuallyEmptyOrUniv.of_mulIndicator_const
+Filter.eventuallyEmptyOrUniv_iff
+Filter.eventuallyEmptyOrUniv_iff'
+Filter.eventuallyEmptyOrUniv_preimage
-MeasureTheory.eventuallyConst_inv_set_ae
-MeasureTheory.eventuallyConst_neg_set_ae
-MeasureTheory.eventuallyConst_smul_set_ae
-MeasureTheory.eventuallyConst_vadd_set_ae
+MeasureTheory.eventuallyEmptyOrUniv_inv_set_ae
+MeasureTheory.eventuallyEmptyOrUniv_neg_set_ae
+MeasureTheory.eventuallyEmptyOrUniv_smul_set_ae
+MeasureTheory.eventuallyEmptyOrUniv_vadd_set_ae
-MulAction.aestabilizer_of_aeconst
+MulAction.aestabilizer_of_eventuallyEmptyOrUniv

No changes to strong technical debt.
No changes to weak technical debt.

Current commit 60ccd45a00
Reference commit b5b6c07984

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.py 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).

@mathlib-dependent-issues mathlib-dependent-issues Bot removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Aug 27, 2026
@mathlib-dependent-issues

Copy link
Copy Markdown

This PR/issue depends on:

Introduce definition `EventuallyEmptyOrUniv` as the `Set` version of `EventuallyConst`.

In mathlib, we currently use `EventuallyConst` for sets, which abuses the `Set α := α → Prop` defeq and which will break once we make `Set` a one-field structure.

Generated by Claude Sonnet, reviewed line by line by myself.

Assisted-by: Claude Sonnet 5
@YaelDillies
YaelDillies force-pushed the eventually_const_set branch from babac59 to 55b3f32 Compare August 27, 2026 13:22
@YaelDillies
YaelDillies requested a review from ADedecker August 27, 2026 13:23
@YaelDillies YaelDillies added LLM-generated PRs with substantial input from LLMs - review accordingly t-analysis Analysis (normed *, calculus) labels Aug 29, 2026

@jcommelin jcommelin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 🎉

bors d+

@mathlib-bors mathlib-bors Bot added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Sep 3, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

✌️ YaelDillies can now approve this pull request until 2026-09-17 15:50 UTC (in 2 weeks). To approve and merge, reply with bors r+. More detailed instructions are available here.

⚠️ This delegation only covers changes within Archive/**, Counterexamples/**, docs/**, DownstreamTest/**, Mathlib/**, MathlibTest/**, Wanted/**, widget/**, Archive.lean, Counterexamples.lean, docs.lean, Mathlib.lean, Wanted.lean; an author commit touching anything else will revoke it. Bors also revokes it if a later push changes too many files for it to check the full list — even if it stays within scope.

@YaelDillies

Copy link
Copy Markdown
Contributor Author

bors merge

@mathlib-bors mathlib-bors Bot added the ready-to-merge This PR has been sent to bors. label Sep 3, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 3, 2026
Introduce definition `EventuallyEmptyOrUniv` as the `Set` version of `EventuallyConst`.

In mathlib, we currently use `EventuallyConst` for sets, which abuses the `Set α := α → Prop` defeq and which will break once we make `Set` a one-field structure.

Generated by Claude Sonnet, reviewed line by line by myself.

Assisted-by: Claude Sonnet 5
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 3, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Sep 3, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 3, 2026
Introduce definition `EventuallyEmptyOrUniv` as the `Set` version of `EventuallyConst`.

In mathlib, we currently use `EventuallyConst` for sets, which abuses the `Set α := α → Prop` defeq and which will break once we make `Set` a one-field structure.

Generated by Claude Sonnet, reviewed line by line by myself.

Assisted-by: Claude Sonnet 5
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 3, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Build failed (retrying...):

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Sep 3, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 3, 2026
Introduce definition `EventuallyEmptyOrUniv` as the `Set` version of `EventuallyConst`.

In mathlib, we currently use `EventuallyConst` for sets, which abuses the `Set α := α → Prop` defeq and which will break once we make `Set` a one-field structure.

Generated by Claude Sonnet, reviewed line by line by myself.

Assisted-by: Claude Sonnet 5
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 3, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

This PR was included in a batch that was canceled, it will be automatically retried

@mathlib-bors mathlib-bors Bot removed the bors-staging This PR is currently being built by bors on the staging branch. label Sep 3, 2026
mathlib-bors Bot pushed a commit that referenced this pull request Sep 3, 2026
Introduce definition `EventuallyEmptyOrUniv` as the `Set` version of `EventuallyConst`.

In mathlib, we currently use `EventuallyConst` for sets, which abuses the `Set α := α → Prop` defeq and which will break once we make `Set` a one-field structure.

Generated by Claude Sonnet, reviewed line by line by myself.

Assisted-by: Claude Sonnet 5
@mathlib-bors mathlib-bors Bot added the bors-staging This PR is currently being built by bors on the staging branch. label Sep 3, 2026
@mathlib-bors

mathlib-bors Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

@mathlib-bors mathlib-bors Bot changed the title refactor: definition for EventuallyConst on Set [Merged by Bors] - refactor: definition for EventuallyConst on Set Sep 3, 2026
@mathlib-bors mathlib-bors Bot closed this Sep 3, 2026
@mathlib-bors mathlib-bors Bot removed the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Sep 3, 2026
@YaelDillies
YaelDillies deleted the eventually_const_set branch September 3, 2026 20:49
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Sep 4, 2026
…nity#43114)

Introduce definition `EventuallyEmptyOrUniv` as the `Set` version of `EventuallyConst`.

In mathlib, we currently use `EventuallyConst` for sets, which abuses the `Set α := α → Prop` defeq and which will break once we make `Set` a one-field structure.

Generated by Claude Sonnet, reviewed line by line by myself.

Assisted-by: Claude Sonnet 5
joelriou pushed a commit to joelriou/mathlib4 that referenced this pull request Sep 5, 2026
…nity#43114)

Introduce definition `EventuallyEmptyOrUniv` as the `Set` version of `EventuallyConst`.

In mathlib, we currently use `EventuallyConst` for sets, which abuses the `Set α := α → Prop` defeq and which will break once we make `Set` a one-field structure.

Generated by Claude Sonnet, reviewed line by line by myself.

Assisted-by: Claude Sonnet 5
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. LLM-generated PRs with substantial input from LLMs - review accordingly ready-to-merge This PR has been sent to bors. t-analysis Analysis (normed *, calculus) tech debt Fixes cross-cutting technical debt, see the "technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants