module Vale.SHA.Simplify_Sha open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.SHA.SHA_helpers open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module HS = FStar.HyperStack open FStar.Mul open Vale.AsLowStar.MemoryHelpers module BF = Vale.Arch.BufferFriend val lemma_seq_nat8_le_seq_quad32_to_bytes_uint32 (b:buf_t TUInt8 TUInt128) (h:HS.mem) : Lemma (requires True ) (ensures ( DV.length_eq (get_downview b); Seq.equal (seq_nat8_to_seq_uint8 (le_seq_quad32_to_bytes (UV.as_seq h (UV.mk_buffer (get_downview b) Vale.Interop.Views.up_view128)))) (B.as_seq h b)))