Zulip Chat Archive

Stream: lean4

Topic: Operators for Prop


Francisco Giordano (Feb 29 2024 at 19:59):

Is there a reason why all the operator typeclasses (e.g., HAppend) are defined for Type and not for Sort, meaning that they can't be instanced for Prop types?

Yaël Dillies (Feb 29 2024 at 20:08):

What would your use case be? Do you want to append propositions?

Eric Wieser (Feb 29 2024 at 20:09):

Occasionally it's tempting to define hx + hy : P (x + y) for hx : P x and hy : P y

Francisco Giordano (Feb 29 2024 at 20:12):

I just want the notation ++ for a specific proposition I've defined. In this case I want hAppend for a proposition with a non-proposition, so more like hx ++ fy : P (x ++ y) with hx : P x, fy : T y

Francisco Giordano (Feb 29 2024 at 20:18):

I could redefine the ++ notation or use a different symbol. But I'm not sure why there is this limitation


Last updated: May 02 2025 at 03:31 UTC