Skip to content

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

Closed
joelriou wants to merge 3 commits intomasterfrom
data_opposite
Closed

[Merged by Bors] - port: Data.Opposite#650
joelriou wants to merge 3 commits intomasterfrom
data_opposite

Conversation

@joelriou
Copy link
Copy Markdown
Contributor

@joelriou joelriou commented Nov 18, 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

@joelriou joelriou added awaiting-review mathlib-port This is a port of a theory file from mathlib. labels Nov 18, 2022
@kim-em
Copy link
Copy Markdown
Contributor

kim-em commented Nov 20, 2022

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 <scott@tqft.net>
@bors
Copy link
Copy Markdown

bors bot commented Nov 20, 2022

Pull request successfully merged into master.

Build succeeded:

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