Zulip Chat Archive

Stream: new members

Topic: Similarity between "Exists" and "Sigma"


Vivek Rajesh Joshi (Dec 08 2023 at 10:10):

In TPIL, chapter 7 (Inductive Types), there is a statement that says "∃ x : α, p is a Prop-valued variant of Σ x : α, p". A similar comparison is made between Prod and And, and Sum and Or, which I can understand, but I don't understand how "Exists" and "Sigma" are related in the same manner. Can anyone explain this connection to me?

Yaël Dillies (Dec 08 2023 at 10:11):

Can you describe in words what s : Σ x : α, p is? Now, can you do the same with h : ∃ x : α, p?

Riccardo Brasca (Dec 08 2023 at 10:13):

Be prepared that the next question usually is "why aren't they exactly the same thing?!"

Yaël Dillies (Dec 08 2023 at 10:13):

To be quite fair, I'm confused by the spelling. Let's assume it's s : Σ x : α, p x and h : ∃ x : α, p x instead.

Vivek Rajesh Joshi (Dec 08 2023 at 10:36):

s : Σ x : α, p x means that s is an element of the form (a,b) where the type of b depends on a as p a (not very sure, correct me if wrong)
h : ∃ x : α, p x means that h is a proof of there existing an element x that satisfies the property p x
Ah, now I see something: the type of a part of the proof h (the proof for p x) depends on x, similar to how the type of b depends on a. Is that enough to declare them as pretty much the same, apart from their output types?

llllvvuu (Dec 08 2023 at 10:59):

Riccardo Brasca said:

Be prepared that the next question usually is "why aren't they exactly the same thing?!"

Now I'm curious

Riccardo Brasca (Dec 08 2023 at 11:05):

It's just that it's an interesting subtlety why is not defined via Σ. Looking at docs#Sum, one sees that (β : Type v) cannot be a Prop, but the reason of this choice is proof irrelevance.

Kyle Miller (Dec 08 2023 at 16:54):

@Riccardo Brasca Was that supposed to be docs#Sigma ?

There's also docs#PSigma that allows both arguments to be props. The reason there's both Sigma and PSigma is that PSigma has a complicated universe level expression.

Riccardo Brasca (Dec 08 2023 at 16:54):

Ops sure, I meant that

N Gelwan (Dec 08 2023 at 18:48):

Riccardo Brasca said:

It's just that it's an interesting subtlety why is not defined via Σ. Looking at docs#Sum, one sees that (β : Type v) cannot be a Prop, but the reason of this choice is proof irrelevance.

What is proof irrelevance? Is that a formal term?

N Gelwan (Dec 08 2023 at 18:53):

Oh, found a reference to this term in docs#Exists:

Because Lean has proof irrelevance, any two proofs of an existential are definitionally equal.

N Gelwan (Dec 08 2023 at 18:55):

Ah, here's an answer from Andrej Bauer and Jacques Carette: https://cstheory.stackexchange.com/questions/48112/proof-relevance-vs-proof-irrelevance


Last updated: Dec 20 2023 at 11:08 UTC