Zulip Chat Archive

Stream: new members

Topic: An example


Alex Zhang (Jun 02 2021 at 03:37):

I don't understand what the following example means. Could anyone please give an explanation?
example : Σ x y : ℤ, (ℤ × ℤ) × ℤ := by use [1, 2, 3, 4, 5]

Mario Carneiro (Jun 02 2021 at 03:46):

what needs explaining exactly?

Alex Zhang (Jun 02 2021 at 03:47):

I don't understand the sigma notation here

Mario Carneiro (Jun 02 2021 at 03:47):

The type involves a few ways to tuple numbers together and basically says "five ints", and the proof is saying "(1,2,3,4,5) is five ints"

Mario Carneiro (Jun 02 2021 at 03:48):

Sigma is a dependent tuple type: an element of Σ x : A, B x is a pair (a, b) where a : A and b : B a

Mario Carneiro (Jun 02 2021 at 03:49):

In this case, it's not actually dependent, so it's equivalent to using ×


Last updated: Dec 20 2023 at 11:08 UTC