Skip to content

[Merged by Bors] - feat: port Data.Matrix.PEquiv#3234

Closed
Ruben-VandeVelde wants to merge 13 commits intomasterfrom
port/Data.Matrix.Pequiv
Closed

[Merged by Bors] - feat: port Data.Matrix.PEquiv#3234
Ruben-VandeVelde wants to merge 13 commits intomasterfrom
port/Data.Matrix.Pequiv

Conversation

@Ruben-VandeVelde
Copy link
Copy Markdown
Contributor


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
@Parcly-Taxel Parcly-Taxel changed the title feat: port Data.Matrix.Pequiv feat: port Data.Matrix.PEquiv Apr 2, 2023
@kim-em kim-em added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Apr 2, 2023
@Ruben-VandeVelde Ruben-VandeVelde added awaiting-review 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
Copy Markdown
Member

@eric-wieser eric-wieser Apr 3, 2023

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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

option.decidable_eq

@kim-em kim-em 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. (this label is managed by a bot) and removed awaiting-review labels Apr 3, 2023
@Ruben-VandeVelde Ruben-VandeVelde added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Apr 3, 2023
@kim-em kim-em removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) 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
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
Member

bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review 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
Copy Markdown

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.

5 participants