FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add a sentence to motivate eta-equality by fangyi-zhou · Pull Request #1102 · plfa/plfa.github.io · GitHub

Add a sentence to motivate eta-equality - #1102

Open
fangyi-zhou wants to merge 1 commit into
plfa:devfrom
fangyi-zhou:explain-eta-equality
Open

Add a sentence to motivate eta-equality#1102
fangyi-zhou wants to merge 1 commit into
plfa:devfrom
fangyi-zhou:explain-eta-equality

Conversation

Copy link
Copy Markdown
Contributor

Addresses #1099.

wadler left a comment

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thank you!

In "put them back" grammatically "them" refers to either "the destructors" or "the constructors", neither of which I think you intend. How about replacing the first sentence with this:

Start with a product, apply the destructors to it, and then apply the constructor; the result is the original product.

Copy link
Copy Markdown
Contributor Author

Thanks for the suggestion, my intention was the generalise the concept from the previous sentence to motivate the eta-quality law, since the preceeding sentence reads:

Applying each destructor and reassembling the results with the
constructor is the identity over products:

In the spirit of providing more clarity, what about this:

In the general sense, with a record, apply the projections to all fields, and then apply the record constructor; the result is the original record.

fangyi-zhou marked this pull request as ready for review February 20, 2025 00:56

Copy link
Copy Markdown
Collaborator

Thanks for the suggestion, my intention was the generalise the concept from the previous sentence to motivate the eta-quality law, since the preceeding sentence reads:

Applying each destructor and reassembling the results with the
constructor is the identity over products:

In the spirit of providing more clarity, what about this:

In the general sense, with a record, apply the projections to all fields, and then apply the record constructor; the result is the original record.

"For any record, projecting out each field and reassembling the results using the constructor should be the identity."

Maybe followed by (except using more appropriate unicode):

c (p1 r) ... (pN r) = r

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL