import Tablet.SliceU8_Insts_Dec2flt_modelNumImpDec2fltCommonByteSlice_write_u64 open Aeneas Aeneas.Std Result ControlFlow Error set_option autoImplicit false namespace dec2flt_model -- [TABLET NODE: DecimalSeqWriteU64Exact] theorem DecimalSeqWriteU64Exact (s : Slice Std.U8) (v : Std.U64) (hlen : 8 <= s.val.length) : exists out, SliceU8.Insts.Dec2flt_modelNumImpDec2fltCommonByteSlice.write_u64 s v = ok out /\ out.val = v.bv.toLEBytes.map (fun b : BitVec 8 => (@UScalar.mk .U8 b)) ++ s.val.drop 8 := by -- BODY unfold SliceU8.Insts.Dec2flt_modelNumImpDec2fltCommonByteSlice.write_u64 simp [core.ops.index.IndexMutSlice, core.slice.index.Slice.index_mut, core.slice.index.SliceIndexRangeToUsizeSlice.index_mut, hlen, Array.to_slice, core.slice.Slice.copy_from_slice, Slice.length, Aeneas.Std.lift, core.num.U64.to_le_bytes] split · rename_i heq simp [List.setSlice!, BitVec.toLEBytes_length, show min 8 s.val.length = 8 by omega] · rename_i hne exfalso apply hne apply UScalar.eq_of_val_eq simp [Slice.len_val, BitVec.toLEBytes_length, hlen] end dec2flt_model