Zulip Chat Archive
Stream: PR reviews
Topic: using `@[to_dual]` more
Kim Morrison (Feb 13 2026 at 05:59):
┌── #35210
#35208 ── #35209 ──┐
│ #35213 ── #35214
├──── #35211 ────┘
└──── #35215
Kim Morrison (Feb 13 2026 at 05:59):
#35208 is merged already!
Kim Morrison (Feb 13 2026 at 06:00):
So now ready for review we have:
Kim Morrison (Feb 13 2026 at 06:00):
chore: use @[to_dual] extensively in CompleteLattice #35209
Kim Morrison (Feb 13 2026 at 06:00):
chore: use @[to_dual] in Bounds/Image #35211
Kim Morrison (Feb 13 2026 at 06:00):
chore: use @[to_dual] in FixedPoints #35215
Violeta Hernández (Feb 13 2026 at 07:26):
Could you please merge master? The diff is bloated somewhat by the merged PRs.
Eric Wieser (Feb 13 2026 at 07:27):
Do we have an easy way of telling whether to_dual is actually generating the same lemmas?
Violeta Hernández (Feb 13 2026 at 07:34):
left reviews on all three
Michael Rothgang (Feb 13 2026 at 08:49):
Eric Wieser said:
Do we have an easy way of telling whether to_dual is actually generating the same lemmas?
You can use to_dual? to view the generated declaration (similarly to to_additive?).
Jovan Gerbscheid (Feb 13 2026 at 09:38):
You can also see the generated lemma by hovering over the attribute.
Kim Morrison (Feb 13 2026 at 22:26):
Violeta Hernández said:
Could you please merge master? The diff is bloated somewhat by the merged PRs.
Done.
Kim Morrison (Feb 13 2026 at 22:50):
Violeta Hernández said:
left reviews on all three
Thanks, I have dealt with the review comments on #35211 and #35215, and these are ready for review/merge again.
Violeta Hernández (Feb 13 2026 at 22:52):
I don't think the problems with #35211 have been adressed yet. to_dual doesn't automatically dualize docstrings, so you have to add them manually.
Violeta Hernández (Feb 13 2026 at 22:53):
#35215 LGTM :slight_smile:
Kim Morrison (Feb 13 2026 at 23:08):
Violeta Hernández said:
I don't think the problems with #35211 have been adressed yet.
to_dualdoesn't automatically dualize docstrings, so you have to add them manually.
Done now!
Violeta Hernández (Feb 13 2026 at 23:10):
I think your AI is misunderstanding the request... I don't want to add docstrings to every lemma tagged with to_dual, but rather, for any lemma where the dual had a docstring, you should add said docstring inside the to_dual tag.
Kim Morrison (Feb 13 2026 at 23:15):
I thought I did that!
Kim Morrison (Feb 13 2026 at 23:15):
Checking again, sorry.
Kim Morrison (Feb 14 2026 at 04:33):
Okay, I think I've corrected the doc-comments on all these PRs.
Last updated: Feb 28 2026 at 14:05 UTC