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):

docs#list.forallâ‚‚

Marcus Rossel (Oct 22 2021 at 14:37):

Beautiful! Thanks :)


Last updated: Dec 20 2023 at 11:08 UTC