Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat: port Analysis.InnerProductSpace.PiL2 #4420

Closed
wants to merge 20 commits into from

Conversation

Ruben-VandeVelde
Copy link
Collaborator

@Ruben-VandeVelde Ruben-VandeVelde commented May 27, 2023

Some theorems in Analysis.InnerProductSpace.Basic, such as Orthonormal.inner_right_finsupp, accidentally gained a new DecidableEq hypothesis during the port. This removes the hypothesis by using classical! instead of classical in their proofs.


Open in Gitpod

@Ruben-VandeVelde Ruben-VandeVelde added WIP Work in progress mathlib-port This is a port of a theory file from mathlib. help-wanted The author needs attention to resolve issues and removed WIP Work in progress labels May 27, 2023
@Ruben-VandeVelde Ruben-VandeVelde force-pushed the port/Analysis.InnerProductSpace.PiL2 branch from 5795af3 to 49ff1b4 Compare May 27, 2023 19:21
@Ruben-VandeVelde Ruben-VandeVelde added WIP Work in progress awaiting-review and removed help-wanted The author needs attention to resolve issues WIP Work in progress labels May 27, 2023
@Komyyy
Copy link
Collaborator

Komyyy commented May 28, 2023

The cause of DecidableEq & classical problem is in Analysis.InnerProductSpace.Basic.
There are no include & omit in Lean 4, so lemmas like Orthonormal.inner_right_finsupp requires an new DecidableEq instance.
The solution is to replace classical in these lemmas with classical!.

@Komyyy Komyyy added WIP Work in progress awaiting-review awaiting-CI and removed awaiting-review WIP Work in progress labels May 28, 2023
@Ruben-VandeVelde Ruben-VandeVelde added WIP Work in progress and removed awaiting-review labels May 28, 2023
Ruben-VandeVelde and others added 9 commits May 28, 2023 13:39
Mathbin -> Mathlib
fix certain import statements
move "by" to end of line
add import to Mathlib.lean
Co-authored-by: Komyyy <pol_tta@outlook.jp>
@Ruben-VandeVelde Ruben-VandeVelde force-pushed the port/Analysis.InnerProductSpace.PiL2 branch from ca1f8e5 to fb7cdf7 Compare May 28, 2023 12:05
@Ruben-VandeVelde Ruben-VandeVelde added awaiting-review and removed WIP Work in progress labels May 28, 2023
Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@semorrison semorrison added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels May 29, 2023
bors bot pushed a commit that referenced this pull request May 29, 2023
Some theorems in `Analysis.InnerProductSpace.Basic`, such as `Orthonormal.inner_right_finsupp`, accidentally gained  a new `DecidableEq` hypothesis during the port. This removes the hypothesis by using `classical!` instead of `classical` in their proofs.




Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Komyyy <pol_tta@outlook.jp>
@bors
Copy link

bors bot commented May 29, 2023

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request May 29, 2023
Some theorems in `Analysis.InnerProductSpace.Basic`, such as `Orthonormal.inner_right_finsupp`, accidentally gained  a new `DecidableEq` hypothesis during the port. This removes the hypothesis by using `classical!` instead of `classical` in their proofs.




Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Komyyy <pol_tta@outlook.jp>
@bors
Copy link

bors bot commented May 29, 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: port Analysis.InnerProductSpace.PiL2 [Merged by Bors] - feat: port Analysis.InnerProductSpace.PiL2 May 29, 2023
@bors bors bot closed this May 29, 2023
@bors bors bot deleted the port/Analysis.InnerProductSpace.PiL2 branch May 29, 2023 05:48
Comment on lines -793 to +794
classical simpa [Finsupp.total_apply, Finsupp.inner_sum, orthonormal_iff_ite.mp hv] using Eq.symm
classical!
simpa [Finsupp.total_apply, Finsupp.inner_sum, orthonormal_iff_ite.mp hv] using Eq.symm
Copy link
Member

Choose a reason for hiding this comment

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

Why did this file change? Does the content of the proof change the API here (due to pulling in unwanted DecidabeEqs)?

qawbecrdtey pushed a commit to qawbecrdtey/greedoid-mathlib4 that referenced this pull request Jun 12, 2023
Some theorems in `Analysis.InnerProductSpace.Basic`, such as `Orthonormal.inner_right_finsupp`, accidentally gained  a new `DecidableEq` hypothesis during the port. This removes the hypothesis by using `classical!` instead of `classical` in their proofs.




Co-authored-by: Scott Morrison <scott.morrison@gmail.com>
Co-authored-by: Komyyy <pol_tta@outlook.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mathlib-port This is a port of a theory file from mathlib. ready-to-merge This PR has been sent to bors.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants