Skip to content

[Merged by Bors] - chore(Filter/Prod): drop Filter.prod, use SProd instead#18315

Closed
urkud wants to merge 12 commits intomasterfrom
YK-filter-prod-def
Closed

[Merged by Bors] - chore(Filter/Prod): drop Filter.prod, use SProd instead#18315
urkud wants to merge 12 commits intomasterfrom
YK-filter-prod-def

Conversation

@urkud
Copy link
Copy Markdown
Member

@urkud urkud commented Oct 28, 2024

This way we can't accidentally use the underlying Filter.prod instead of the normal form.


Open in Gitpod

@urkud urkud added t-topology Topological spaces, uniform spaces, metric spaces, filters t-order Order theory labels Oct 28, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Oct 28, 2024

PR summary 7592d0f53e

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

+-+- prod

You can run this locally as follows
## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>

The doc-module for script/declarations_diff.sh contains some details about this script.


Decrease in tech debt: (relative, absolute) = (3.00, 0.00)
Current number Change Type
5026 -3 porting notes

Current commit 7592d0f53e
Reference commit cf80f345a2

You can run this locally as

./scripts/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).


/-- Product of filters. This is the filter generated by cartesian products
of elements of the component filters. -/
protected def prod (f : Filter α) (g : Filter β) : Filter (α × β) :=
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Should I leave it as a deprecated definition?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would say: yes, out of principle. Dealing with deprecations is much nicer than dealing with removed definitions.

@leanprover-community-bot-assistant leanprover-community-bot-assistant added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 28, 2024
@leanprover-community-bot-assistant leanprover-community-bot-assistant removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Oct 28, 2024
Copy link
Copy Markdown
Contributor

@grunweg grunweg left a comment

Choose a reason for hiding this comment

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

Does what it says on the tin. Can you add a sentence why you're doing this?
maintainer merge


/-- Product of filters. This is the filter generated by cartesian products
of elements of the component filters. -/
protected def prod (f : Filter α) (g : Filter β) : Filter (α × β) :=
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would say: yes, out of principle. Dealing with deprecations is much nicer than dealing with removed definitions.

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by grunweg.

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Nov 29, 2024
@sgouezel
Copy link
Copy Markdown
Contributor

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 29, 2024

✌️ urkud can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@ghost ghost added the delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). label Nov 29, 2024
@urkud urkud added the auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. label Nov 29, 2024
@ghost
Copy link
Copy Markdown

ghost commented Nov 29, 2024

As this PR is labelled auto-merge-after-CI, we are now sending it to bors:

bors merge

@ghost ghost added the ready-to-merge This PR has been sent to bors. label Nov 29, 2024
mathlib-bors bot pushed a commit that referenced this pull request Nov 29, 2024
This way we can't accidentally use the underlying `Filter.prod` instead of the normal form.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Nov 29, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore(Filter/Prod): drop Filter.prod, use SProd instead [Merged by Bors] - chore(Filter/Prod): drop Filter.prod, use SProd instead Nov 29, 2024
@mathlib-bors mathlib-bors bot closed this Nov 29, 2024
@mathlib-bors mathlib-bors bot deleted the YK-filter-prod-def branch November 29, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-after-CI Please do not add manually. Requests for a bot to merge automatically once CI is done. delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. ready-to-merge This PR has been sent to bors. t-order Order theory t-topology Topological spaces, uniform spaces, metric spaces, filters

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants