Zulip Chat Archive
Stream: mathlib4
Topic: Algebra.BigOperators.Basic mathlib4#1628
Johan Commelin (Jan 17 2023 at 13:38):
Work started. PR is at mathlib4#1628.
Johan Commelin (Jan 17 2023 at 13:42):
Aahrg, immediately stuck on notation
Johan Commelin (Jan 17 2023 at 13:58):
I'm currently adding #align
for all the additivized versions.
Johan Commelin (Jan 17 2023 at 13:58):
If someone can get the 4 notation lines at the top of the file working, that would be great.
Johan Commelin (Jan 17 2023 at 14:21):
-- mathport name: finset.sum_univ
-- scoped[BigOperators] -- Porting note: `notation3` doesn't mesh with `scoped[Foo]`
notation3"∑ "(...)", "r:(scoped f => Finset.sum Finset.univ f) => r
-- mathport name: finset.prod_univ
-- scoped[BigOperators] -- Porting note: `notation3` doesn't mesh with `scoped[Foo]`
notation3"∏ "(...)", "r:(scoped f => Finset.prod Finset.univ f) => r
-- mathport name: finset.sum
-- scoped[BigOperators] -- Porting note: `notation3` doesn't mesh with `scoped[Foo]`
notation3"∑ "(...)" in "s", "r:(scoped f => Finset.sum s f) => r
-- mathport name: finset.prod
-- scoped[BigOperators] -- Porting note: `notation3` doesn't mesh with `scoped[Foo]`
notation3"∏ "(...)" in "s", "r:(scoped f => Finset.prod s f) => r
works, for now
Johan Commelin (Jan 17 2023 at 14:35):
I'm stopping on this file for a bit
Chris Hughes (Jan 17 2023 at 16:59):
@Siddharth Bhat says he knows how to do it
Chris Hughes (Jan 17 2023 at 17:48):
@Siddharth Bhat has pushed
Johan Commelin (Jan 17 2023 at 18:29):
There also seems to be a bug in mathport which causes it to print literal "\n" strings in the docstring arguments to to_additive
.
Johan Commelin (Jan 17 2023 at 20:35):
This file is now ~ 50% error free
Johan Commelin (Jan 18 2023 at 07:42):
I'm going to work on this file a bit more
Johan Commelin (Jan 18 2023 at 07:56):
I'm a bit concerned that none of the notation is showing in the goal view
Johan Commelin (Jan 18 2023 at 10:00):
CI is happy with this one
Johan Commelin (Jan 18 2023 at 10:00):
But notation is still not showing up in the goal view
Siddharth Bhat (Jan 18 2023 at 13:15):
Johan Commelin said:
But notation is still not showing up in the goal view
AFAIU, that's because I implemented it using macro_rules
, which means I'd need to write a delaborator to show the notation. I shall check if it's possible to use higher level notation
/ macro
that automatically generates the delaborator. If this is not possible, I shall implement the delaborator annotation.
Johan Commelin (Jan 18 2023 at 13:20):
Awesome, thanks!
Last updated: Dec 20 2023 at 11:08 UTC