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 Data.Matrix.PEquiv #3234

Closed
wants to merge 13 commits into from

Conversation

Ruben-VandeVelde
Copy link
Collaborator


Open in Gitpod

Mathbin -> Mathlib
fix certain import statements
move "by" to end of line
add import to Mathlib.lean
@Ruben-VandeVelde Ruben-VandeVelde added the mathlib-port This is a port of a theory file from mathlib. label Apr 2, 2023
@Ruben-VandeVelde Ruben-VandeVelde added the awaiting-review The author would like community review of the PR label Apr 2, 2023
@Parcly-Taxel Parcly-Taxel changed the title feat: port Data.Matrix.Pequiv feat: port Data.Matrix.PEquiv Apr 2, 2023
@semorrison semorrison added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Apr 2, 2023
@Ruben-VandeVelde Ruben-VandeVelde added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Apr 3, 2023
Comment on lines 54 to 56
instance [DecidableEq n] (j : n) (o : Option n) : Decidable (j ∈ o) := by
rw [←Option.mem_toList]
infer_instance
Copy link
Member

Choose a reason for hiding this comment

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

This instance shouldn't need [DecidableEq n]

What instance is found in Lean3?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

option.decidable_eq

@semorrison semorrison added awaiting-author A reviewer has asked the author a question or requested changes merge-conflict The PR has a merge conflict with master, and needs manual merging. and removed awaiting-review The author would like community review of the PR labels Apr 3, 2023
@Ruben-VandeVelde Ruben-VandeVelde added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Apr 3, 2023
@semorrison semorrison removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. label Apr 3, 2023
Comment on lines 53 to 56
-- Porting note: added
local instance [DecidableEq n] (j : n) (o : Option n) : Decidable (j ∈ o) :=
haveI : Decidable (o = some j) := inferInstance
this
Copy link
Member

Choose a reason for hiding this comment

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

This is definitely better, but belongs in the same file that defines the notation

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's Std.Data.Option.Basic. I'll submit a PR there tomorrow, but wouldn't mind if we moved this along in the meantime.

@ChrisHughes24
Copy link
Member

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Apr 7, 2023
bors bot pushed a commit that referenced this pull request Apr 7, 2023
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
@bors
Copy link

bors bot commented Apr 7, 2023

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat: port Data.Matrix.PEquiv [Merged by Bors] - feat: port Data.Matrix.PEquiv Apr 7, 2023
@bors bors bot closed this Apr 7, 2023
@bors bors bot deleted the port/Data.Matrix.Pequiv branch April 7, 2023 15:02
MonadMaverick pushed a commit that referenced this pull request Apr 9, 2023
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
MonadMaverick pushed a commit that referenced this pull request Apr 9, 2023
Co-authored-by: Jeremy Tan Jie Rui <reddeloostw@gmail.com>
Co-authored-by: Chris Hughes <33847686+ChrisHughes24@users.noreply.github.com>
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

5 participants