Skip to content

[Merged by Bors] - chore: distribute fun_prop tagging of measurability lemmas#13869

Closed
grunweg wants to merge 14 commits intomasterfrom
MR-redistribute-funprop-measurability
Closed

[Merged by Bors] - chore: distribute fun_prop tagging of measurability lemmas#13869
grunweg wants to merge 14 commits intomasterfrom
MR-redistribute-funprop-measurability

Conversation

@grunweg
Copy link
Copy Markdown
Contributor

@grunweg grunweg commented Jun 16, 2024

into the respective files: essentially dissolves the FunProp/Measurable and AEMeasurable files.
(The latter is kept to note two missing statements. It is not imported anywhere any more.)

This is a pre-requisite for #13781, so fun_prop can be used without breaking existing the assert_not_exists statements.


Aside. The module docstring for Constructions/BorelSpace/Basic is outdated, Measurable.add is not mentioned there any more.

Open in Gitpod

@grunweg grunweg added awaiting-review easy < 20s of review time. See the lifecycle page for guidelines. labels Jun 16, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 16, 2024

PR summary fd3fb833ad

Import changes

Dependency changes

File Base Count Head Count Change
Mathlib.Tactic.FunProp.Measurable 1504 0 -1504 (-100.00%)
Mathlib.Tactic.FunProp.AEMeasurable 1521 1143 -378 (-24.85%)
Mathlib.MeasureTheory.MeasurableSpace.Defs 537 546 +9 (+1.68%)
Mathlib.MeasureTheory.MeasurableSpace.Basic 755 764 +9 (+1.19%)
Mathlib.Tactic 2008 2007 -1 (-0.05%)

Declarations diff

+ comp_aemeasurable'
- AEMeasurable.comp_aemeasurable'

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

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

@lecopivo
Copy link
Copy Markdown
Collaborator

Why didn't you redistribute all the attributes? And didn't remove the file Mathlib/Tactic/FunProp/Measurable.lean ?

Otherwise the PR is good with me.

@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jun 17, 2024

Thanks for taking a look! This is the smallest change I needed to make the dependent PR go through. But I'm happy to redistribute the remaining tags also... this might happen only later this week.

…the respective files

So fun_prop can be used without breaking existing assert_not_exists statements.
@grunweg grunweg force-pushed the MR-redistribute-funprop-measurability branch from 9a8c353 to 80a5e20 Compare June 18, 2024 09:28
grunweg added 5 commits June 18, 2024 11:36
Also tag Measurable.vadd, which seems fine as well.

Question: do I need to specify the attr twice? Documentation is not clear,
let's try this in CI.
Was there a reason AEMeasurable.fst and snd were never tagged?
I tagged them now...
@grunweg grunweg added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Jun 18, 2024
@grunweg grunweg added tech debt Tracking cross-cutting technical debt, see e.g. the "Technical debt counters" stream on zulip and removed easy < 20s of review time. See the lifecycle page for guidelines. labels Jun 18, 2024
@grunweg grunweg changed the title chore: distribute most fun_prop tagging of measurability lemmas into … chore: distribute fun_prop tagging of measurability lemmas Jun 18, 2024
@grunweg grunweg added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Jun 18, 2024
@grunweg
Copy link
Copy Markdown
Contributor Author

grunweg commented Jun 18, 2024

I moved the remaining attributes in Measurable and AEMeasurable; this is ready for review again.

variable {ι α β γ δ R : Type*} {m0 : MeasurableSpace α} [MeasurableSpace β] [MeasurableSpace γ]
[MeasurableSpace δ] {f g : α → β} {μ ν : Measure α}

theorem AEMeasurable.comp_aemeasurable' {f : α → δ} {g : δ → β} (hg : AEMeasurable g (μ.map f))
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved this one to Mathlib/MeasureTheory/Measure/AEMeasurable.lean. Happy to split that into a separate PR, if preferred.

@lecopivo
Copy link
Copy Markdown
Collaborator

Looks good to me!

Measurable.aemeasurable

-- lambda rules: these two are currently missing
-- attribute [fun_prop] AEMeasurable_apply AEMeasurable_pi
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.

Can these comments not go next to these lemmas?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

For these two lemmas, that's difficult as the lemmas are missing. I moved the other two comments, though - good point, thanks!

Copy link
Copy Markdown
Contributor

@Ruben-VandeVelde Ruben-VandeVelde left a comment

Choose a reason for hiding this comment

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

maintainer merge

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde.

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jun 24, 2024
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Jun 24, 2024

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Jun 24, 2024
mathlib-bors bot pushed a commit that referenced this pull request Jun 24, 2024
into the respective files: essentially dissolves the `FunProp/Measurable` and `AEMeasurable` files.
(The latter is kept to note two missing statements. It is not imported anywhere any more.)

This is a pre-requisite for #13781, so fun_prop can be used without breaking existing the `assert_not_exists` statements.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 24, 2024

Build failed (retrying...):

mathlib-bors bot pushed a commit that referenced this pull request Jun 24, 2024
into the respective files: essentially dissolves the `FunProp/Measurable` and `AEMeasurable` files.
(The latter is kept to note two missing statements. It is not imported anywhere any more.)

This is a pre-requisite for #13781, so fun_prop can be used without breaking existing the `assert_not_exists` statements.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 24, 2024

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

mathlib-bors bot pushed a commit that referenced this pull request Jun 24, 2024
into the respective files: essentially dissolves the `FunProp/Measurable` and `AEMeasurable` files.
(The latter is kept to note two missing statements. It is not imported anywhere any more.)

This is a pre-requisite for #13781, so fun_prop can be used without breaking existing the `assert_not_exists` statements.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 24, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: distribute fun_prop tagging of measurability lemmas [Merged by Bors] - chore: distribute fun_prop tagging of measurability lemmas Jun 24, 2024
@mathlib-bors mathlib-bors bot closed this Jun 24, 2024
@mathlib-bors mathlib-bors bot deleted the MR-redistribute-funprop-measurability branch June 24, 2024 12:36
kbuzzard pushed a commit that referenced this pull request Jun 26, 2024
into the respective files: essentially dissolves the `FunProp/Measurable` and `AEMeasurable` files.
(The latter is kept to note two missing statements. It is not imported anywhere any more.)

This is a pre-requisite for #13781, so fun_prop can be used without breaking existing the `assert_not_exists` statements.
dagurtomas pushed a commit that referenced this pull request Jul 2, 2024
into the respective files: essentially dissolves the `FunProp/Measurable` and `AEMeasurable` files.
(The latter is kept to note two missing statements. It is not imported anywhere any more.)

This is a pre-requisite for #13781, so fun_prop can be used without breaking existing the `assert_not_exists` statements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. ready-to-merge This PR has been sent to bors. tech debt Tracking cross-cutting technical debt, see e.g. the "Technical debt counters" stream on zulip

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants