Re:Weird Expressions in Rust
by valenterry on Sunday June 29, 2025 @10:06PM
(#44418505)
> this is an universal quantification whereas your interpretation is an existential quantification
Indeed, I stand corrected. Interesting! I'll look into that a bit more, thank you.
This is obviously only possible if the list itself has no elements, and indeed a simple proof is that the statement above is valid for the empty type: all elements of a list of type List a have type empty (among other types). Thus there are no elements in this list.
And both Haskell or OCaml can prove it: