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] - refactor: use junk values in Submodule.toLinearPMap #5529

Closed
wants to merge 4 commits into from

Conversation

mcdoll
Copy link
Member

@mcdoll mcdoll commented Jun 27, 2023

Change the definition of Submodule.toLinearPMap to use a junk value in the case that the condition that the subspace defines the graph of a function is not satisfied. In this case we define Submodule.toLinearPMap as the zero map. The domain is the same so that the domain does not depend on the graph-condition.


the file is not completely ported, but since I wrote the relevant parts not too long ago I am very confident that it is not used in the unported files. I am also fine with waiting until all downstream dependencies are ported.

Open in Gitpod

@mcdoll mcdoll added awaiting-CI new-feature Add features not present in Mathlib 3 labels Jun 27, 2023
@mcdoll mcdoll added the awaiting-review The author would like community review of the PR label Jul 16, 2023
I'm having trouble getting oleans while reviewing. Perhaps merging
master will help.
Copy link
Contributor

@sgouezel sgouezel left a comment

Choose a reason for hiding this comment

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

LGTM, thanks.
bors d+

Mathlib/LinearAlgebra/LinearPMap.lean Outdated Show resolved Hide resolved
Mathlib/LinearAlgebra/LinearPMap.lean Outdated Show resolved Hide resolved
@bors
Copy link

bors bot commented Aug 1, 2023

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

@leanprover-community-mathlib4-bot leanprover-community-mathlib4-bot added delegated and removed awaiting-review The author would like community review of the PR labels Aug 1, 2023
@sgouezel
Copy link
Contributor

sgouezel commented Aug 1, 2023

The title of the PR is not very clear. refactor: use junk values in Submodule.toLinearPMap, maybe? Can you also expand the PR description?

@mcdoll mcdoll changed the title refactor: Submodule.toLinearPMap use junk values refactor: use junk values in Submodule.toLinearPMap Aug 2, 2023
@mcdoll
Copy link
Member Author

mcdoll commented Aug 3, 2023

bors merge

bors bot pushed a commit that referenced this pull request Aug 3, 2023
Change the definition of `Submodule.toLinearPMap` to use a junk value in the case that the condition that the subspace defines the graph of a function is not satisfied. In this case we define `Submodule.toLinearPMap` as the zero map. The domain is the same so that the domain does not depend on the graph-condition.



Co-authored-by: Oliver Nash <github@olivernash.org>
@bors
Copy link

bors bot commented Aug 3, 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 refactor: use junk values in Submodule.toLinearPMap [Merged by Bors] - refactor: use junk values in Submodule.toLinearPMap Aug 3, 2023
@bors bors bot closed this Aug 3, 2023
@bors bors bot deleted the mcdoll/refactor_linear_pmap branch August 3, 2023 10:45
semorrison pushed a commit that referenced this pull request Aug 3, 2023
Change the definition of `Submodule.toLinearPMap` to use a junk value in the case that the condition that the subspace defines the graph of a function is not satisfied. In this case we define `Submodule.toLinearPMap` as the zero map. The domain is the same so that the domain does not depend on the graph-condition.



Co-authored-by: Oliver Nash <github@olivernash.org>
semorrison pushed a commit that referenced this pull request Aug 14, 2023
Change the definition of `Submodule.toLinearPMap` to use a junk value in the case that the condition that the subspace defines the graph of a function is not satisfied. In this case we define `Submodule.toLinearPMap` as the zero map. The domain is the same so that the domain does not depend on the graph-condition.



Co-authored-by: Oliver Nash <github@olivernash.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated new-feature Add features not present in Mathlib 3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants