Zulip Chat Archive

Stream: mathlib4

Topic: Data.Vector3


Yaël Dillies (Dec 26 2022 at 11:33):

Could we rename Vector3 to Vector2 or Vector' while we port? We could also backport if you think it matters.

Henrik Böving (Dec 26 2022 at 11:34):

That's also a thing I've been wondering while porting it, why is it called Vector3 in the first place?

Yaël Dillies (Dec 26 2022 at 11:35):

There used to be a vector2, but it was removed at some point. This all happened before I started using Lean.

Chris Hughes (Dec 26 2022 at 11:36):

I've just reviewed it and the only issue I would have before merging is that the notations declared at the top are still global. I haven't worked out how to use scoped in Lean4 yet and I don't think it works with the notation3 command.

Eric Wieser (Dec 26 2022 at 12:07):

Let's just backport? Or has someone already started porting it?

Chris Hughes (Dec 26 2022 at 12:09):

It's already basically ported. mathlib4#1204

Mario Carneiro (Dec 26 2022 at 13:53):

Let's not rename the file unless the change is backported

Ruben Van de Velde (Dec 26 2022 at 14:00):

Can't we replace it by Vector in the single file that uses it, if we're gonna mess with it?

Mario Carneiro (Dec 26 2022 at 14:05):

I think the name Vector is likely to be reappropriated for something else anyway

Mario Carneiro (Dec 26 2022 at 14:06):

For now let's just copy things over, we can refactor later

Eric Wieser (Apr 06 2023 at 15:06):

I've just pushed some meta code to this PR that adds the [x, y, z] notation promised in the module docstring

Eric Wieser (Apr 06 2023 at 15:06):

Could someone familiar with this type of thing take a look?

Matthew Ballard (Jun 07 2023 at 18:39):

I know little about these things but Mario’s alternate suggestion seems to work nicely. Is there anything else holding this up?

Eric Wieser (Jun 07 2023 at 18:42):

Someone just needs to commit Mario's suggestion

Mario Carneiro (Jun 07 2023 at 20:24):

did I make a suggestion in this thread?

Matthew Ballard (Jun 07 2023 at 21:01):

On the PR


Last updated: Dec 20 2023 at 11:08 UTC