Zulip Chat Archive
Stream: new members
Topic: Nondependent sigma to pair
Horatiu Cheval (Jun 27 2021 at 12:24):
Is there defined in Lean a standard way of converting non-dependent Sigma types to plain product types?
Something like this:
def sigma_to_pair {α β : Type} : (Σ _ : α, β) → α × β
| (sigma.mk a b) := (a, b)
Eric Wieser (Jun 27 2021 at 12:32):
Horatiu Cheval (Jun 27 2021 at 12:36):
Perfect, thanks
Last updated: Dec 20 2023 at 11:08 UTC