Zulip Chat Archive
Stream: lean4
Topic: Compare lists by relation
Marcus Rossel (Oct 22 2021 at 14:35):
Say we have two lists l1 : List X, l2 : List Y and a relation r : X -> Y -> Prop.
Is there a nice way of expressing that for each index i: l1[i] and l2[i] satisfy relation r?
If l1 and l2 do not have the same length, the overall proposition should be false.
Mario Carneiro (Oct 22 2021 at 14:36):
Marcus Rossel (Oct 22 2021 at 14:37):
Beautiful! Thanks :)
Last updated: May 02 2025 at 03:31 UTC