Skip to content

[Merged by Bors] - port: Data.Opposite - #650

Closed
joelriou wants to merge 3 commits into
masterfrom
data_opposite
Closed

joelriou wants to merge 3 commits into
masterfrom
data_opposite

Conversation

@joelriou

@joelriou joelriou commented Nov 18, 2022 •

Copy link
Copy Markdown
Contributor

Commented the meta code at the end that I cannot handle myself. (Never needed it when using category theory in mathlib3...).

Following the comment (If Lean supported definitional eta equality for records, we could achieve the same goals using a structure with one field.) in the file, would not it be slightly nicer to use a structure with one field (named unop?!) for Opposite instead of a type synonym as it was the case in mathlib3 since it seems that in Lean 4 we would still have nice definitional equalities op_unop and unop_op?

Mathlib SHA : fd47bdf09e90f553519c712378e651975fe8c829

@joelriou joelriou added awaiting-review mathlib-port This is a port of a theory file from mathlib. labels Nov 18, 2022
Comment thread Mathlib/Data/Opposite.lean Resolved
Comment thread Mathlib/Data/Opposite.lean Resolved
Comment thread Mathlib/Data/Opposite.lean Resolved
Comment thread Mathlib/Data/Opposite.lean Resolved
Comment thread Mathlib/Data/Opposite.lean Resolved
Comment thread Mathlib/Data/Opposite.lean Resolved
Comment thread Mathlib/Data/Opposite.lean Resolved
@kim-em

kim-em commented Nov 20, 2022

Copy link
Copy Markdown
Contributor

bors merge

bors Bot pushed a commit that referenced this pull request Nov 20, 2022
Commented the meta code at the end that I cannot handle myself. (Never needed it when using category theory in mathlib3...).

Following the comment `(If Lean supported definitional eta equality for records, we could achieve the same goals using a structure with one field.)` in the file, would not it be slightly nicer to use a structure with one field (named `unop`?!) for `Opposite` instead of a type synonym as it was the case in mathlib3 since it seems that in Lean 4 we would still have nice definitional equalities `op_unop` and `unop_op`?

Mathlib SHA : fd47bdf09e90f553519c712378e651975fe8c829

Co-authored-by: Scott Morrison <[email protected]>
@bors

bors Bot commented Nov 20, 2022

Copy link
Copy Markdown

Pull request successfully merged into master.

Build succeeded:

@bors bors Bot changed the title port: Data.Opposite [Merged by Bors] - port: Data.Opposite Nov 20, 2022
@bors bors Bot closed this Nov 20, 2022
@bors
bors Bot deleted the data_opposite branch November 20, 2022 06:38
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants