Zulip Chat Archive
Stream: new members
Topic: Proofs with coercion
Sarah Linh (Mar 14 2025 at 23:26):
I'm trying out proofs in Lean and encountered this : (max (↑rs1_val.toNat * rs2_val.toInt) 0)) = (max (rs1_val.toInt * rs2_val.toInt) 0)) where ↑x
represents a coercion, which converts x
of type Nat
to type Int
and rs1 and rs2 are of BitVec 64. Can someone help me with an approach to proof this or give me some pointers? I'm unsure how to handle the coercion, thx
Ruben Van de Velde (Mar 14 2025 at 23:49):
I suggest you share a #mwe (that's a link, please read it). Then we can look at the exact state that you're having trouble with, rather than second-guessing what your issue might be
Sarah Linh (Mar 15 2025 at 06:40):
thank you, I managed to solve it in the meantime.
Last updated: May 02 2025 at 03:31 UTC