Closed andres-erbsen closed 2 years ago
Agreed, but on the other hand, the current type allows for concise statements split_combine
and combine_split
. How about defining a Fixpoint combine_list
, and redefining combine
in terms of tuple.to_list
and combine_list
? I think combine
is not unfolded too often, so it shouldn't break too many proofs.
Yeah, I like your idea for backwards compat. Perhaps also have _list
and _tuple
of everything, and maybe even deprecate the unsuffixed version.
LittleEndian.combine should not inline tuple.to_list. It could just take a list as input and have a simpler type.