Skip to content

Conversation

@YaelDillies
Copy link
Collaborator

Copy link
Contributor

@adomani adomani left a comment

Choose a reason for hiding this comment

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

Thanks for writing this!

YaelDillies and others added 3 commits July 25, 2024 15:01
YaelDillies and others added 6 commits December 1, 2025 16:21
Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
Co-authored-by: Anne Baanen <Vierkantor@users.noreply.github.com>
@riccardobrasca
Copy link
Member

Can you mention that the subobject approach has sometimes performance issues? Like what happened for the ring of integers (see #12386).

Also, I think that it is worth mentioning that the anonymous constructor can make the projections' name issue less important.

@YaelDillies
Copy link
Collaborator Author

#12386 was in fact the impetus for me to write this blogpost, but it seems that the issue has been fixed by making the discrimination keys more thorough, see #86 (comment)

I am not sure why anonymous dot notation is relevant here.

1 similar comment
@YaelDillies
Copy link
Collaborator Author

#12386 was in fact the impetus for me to write this blogpost, but it seems that the issue has been fixed by making the discrimination keys more thorough, see #86 (comment)

I am not sure why anonymous dot notation is relevant here.

@riccardobrasca
Copy link
Member

I mean ⟨x, by simp⟩ (isn't this called anonymous constructor?) to build a term of a subtype.

@YaelDillies
Copy link
Collaborator Author

Ah sure, but anonymous constructor notation is useless when working with highly nested structures such as subobjects. Eg to build a subring one needs to do \<\<\<_, _\>, _\>, _\>, which I think isn't worth the trouble unless you are trying to write very compact code.

Copy link
Contributor

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

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

My concerns are addressed, this is good to go as far as I'm concerned. I'll merge in a few days unless we get objections.

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.

7 participants