Skip to content

[Merged by Bors] - feat: remove the diamond for Complex.measureSpace#6832

Closed
xroblot wants to merge 17 commits intomasterfrom
xfr_complex_measure_ishaar
Closed

[Merged by Bors] - feat: remove the diamond for Complex.measureSpace#6832
xroblot wants to merge 17 commits intomasterfrom
xfr_complex_measure_ishaar

Conversation

@xroblot
Copy link
Copy Markdown
Collaborator

@xroblot xroblot commented Aug 28, 2023

We remove the instance

instance measureSpace : MeasureSpace ℂ :=  ⟨Measure.map basisOneI.equivFun.symm volume⟩

in MeasureTheory.Measure.Lebesgue.Complex since has already a measureSpace instance coming from its InnerProductSpace structure over , and fix the proof of volume_preserving_equiv_pi.

Co-authored-by: Eric Wieser wieser.eric@gmail.com


Open in Gitpod

@xroblot xroblot added awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. t-measure-probability Measure theory / Probability theory labels Aug 28, 2023
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Aug 28, 2023
@xroblot xroblot added awaiting-review easy < 20s of review time. See the lifecycle page for guidelines. labels Aug 28, 2023
Copy link
Copy Markdown
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

LGTM

My only question is whether this is considered a "heavy" import, and if it should go in a new Haar.Complex file instead. I'll let another maintainer decide

maintainer merge.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Sep 2, 2023

🚀 Pull request has been placed on the maintainer queue by eric-wieser.

@sgouezel
Copy link
Copy Markdown
Contributor

sgouezel commented Sep 2, 2023

There is a problem with this file, that we have a diamond: complex numbers already have a measure space instance before the start of the file (you can try example : MeasureSpace ℂ := by infer_instance before the instance declaration) -- and this instance is already known to be a Haar measure (try example : Measure.IsAddHaarMeasure (@volume ℂ _) := by infer_instance). So instead of adding this new instance, we should fix the file and remove the diamond (by just removing the instance)

@eric-wieser
Copy link
Copy Markdown
Member

There is a problem with this file, that we have a diamond

Indeed, this is discussed here

@xroblot
Copy link
Copy Markdown
Collaborator Author

xroblot commented Sep 2, 2023

I see, so the plan is to remove the instance at the start of the file (then the Haar measure instance is synthesised automatically) and just come up with a new proof of volume_preserving_equiv_pi (and probably a new definition for measurableEquivPi first).

@xroblot xroblot added WIP Work in progress and removed awaiting-review easy < 20s of review time. See the lifecycle page for guidelines. labels Sep 3, 2023
@xroblot xroblot changed the title feat: add IsAddHaarMeasure instance for Complex.measureSpace feat: remove the diamond for Complex.measureSpace Sep 5, 2023
@xroblot xroblot added awaiting-review WIP Work in progress and removed awaiting-review labels Sep 5, 2023
@ghost ghost added the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Sep 8, 2023
@xroblot xroblot added awaiting-review and removed WIP Work in progress labels Sep 8, 2023
bors bot pushed a commit that referenced this pull request Sep 12, 2023
We prove some lemmas that will be useful in following PRs #6832 and #7037, mainly:
```lean
theorem Basis.addHaar_eq {b : Basis ι ℝ E} {b' : Basis ι' ℝ E} :
     b.addHaar = b'.addHaar ↔ b.addHaar b'.parallelepiped = 1

theorem Basis.parallelepiped_eq_map (b : Basis ι ℝ E) :
     b.parallelepiped = (TopologicalSpace.PositiveCompacts.piIcc01 ι).map b.equivFun.symm
       b.equivFunL.symm.continuous

theorem Basis.addHaar_map (b : Basis ι ℝ E) (f : E ≃L[ℝ] F) :
    map f b.addHaar = (b.map f.toLinearEquiv).addHaar
```

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
bors bot pushed a commit that referenced this pull request Sep 12, 2023
We prove some lemmas that will be useful in following PRs #6832 and #7037, mainly:
```lean
theorem Basis.addHaar_eq {b : Basis ι ℝ E} {b' : Basis ι' ℝ E} :
     b.addHaar = b'.addHaar ↔ b.addHaar b'.parallelepiped = 1

theorem Basis.parallelepiped_eq_map (b : Basis ι ℝ E) :
     b.parallelepiped = (TopologicalSpace.PositiveCompacts.piIcc01 ι).map b.equivFun.symm
       b.equivFunL.symm.continuous

theorem Basis.addHaar_map (b : Basis ι ℝ E) (f : E ≃L[ℝ] F) :
    map f b.addHaar = (b.map f.toLinearEquiv).addHaar
```

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@ghost ghost removed the blocked-by-other-PR This PR depends on another PR (this label is automatically managed by a bot) label Sep 12, 2023
@ghost
Copy link
Copy Markdown

ghost commented Sep 12, 2023

This PR/issue depends on:

@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 12, 2023
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Sep 12, 2023
@urkud
Copy link
Copy Markdown
Member

urkud commented Sep 16, 2023

Thanks! 🎉
bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Sep 16, 2023
bors bot pushed a commit that referenced this pull request Sep 16, 2023
We remove the instance 
```lean
instance measureSpace : MeasureSpace ℂ :=  ⟨Measure.map basisOneI.equivFun.symm volume⟩
```
in `MeasureTheory.Measure.Lebesgue.Complex` since `ℂ` has already a `measureSpace` instance coming from its `InnerProductSpace` structure over `ℝ`, and fix the proof of `volume_preserving_equiv_pi`.


Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
@bors
Copy link
Copy Markdown

bors bot commented Sep 16, 2023

Pull request successfully merged into master.

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot changed the title feat: remove the diamond for Complex.measureSpace [Merged by Bors] - feat: remove the diamond for Complex.measureSpace Sep 16, 2023
@bors bors bot closed this Sep 16, 2023
@bors bors bot deleted the xfr_complex_measure_ishaar branch September 16, 2023 01:19
kodyvajjha pushed a commit that referenced this pull request Sep 22, 2023
We prove some lemmas that will be useful in following PRs #6832 and #7037, mainly:
```lean
theorem Basis.addHaar_eq {b : Basis ι ℝ E} {b' : Basis ι' ℝ E} :
     b.addHaar = b'.addHaar ↔ b.addHaar b'.parallelepiped = 1

theorem Basis.parallelepiped_eq_map (b : Basis ι ℝ E) :
     b.parallelepiped = (TopologicalSpace.PositiveCompacts.piIcc01 ι).map b.equivFun.symm
       b.equivFunL.symm.continuous

theorem Basis.addHaar_map (b : Basis ι ℝ E) (f : E ≃L[ℝ] F) :
    map f b.addHaar = (b.map f.toLinearEquiv).addHaar
```

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
kodyvajjha pushed a commit that referenced this pull request Sep 22, 2023
We remove the instance 
```lean
instance measureSpace : MeasureSpace ℂ :=  ⟨Measure.map basisOneI.equivFun.symm volume⟩
```
in `MeasureTheory.Measure.Lebesgue.Complex` since `ℂ` has already a `measureSpace` instance coming from its `InnerProductSpace` structure over `ℝ`, and fix the proof of `volume_preserving_equiv_pi`.


Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-measure-probability Measure theory / Probability theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants