fact: Definition CountingListAsBag_bupdate (container : CountingList) (search_terms : TItem -> bool) (update_term : TUpdateTerm) : list TItem * CountingList := let (d, r) := (CountingListPartition (ccontents container) search_terms) in (ccontents d, {| clength := clength container; ccontents := (ccontents r) ++ (List.map (bupdate_transform update_term) (ccontents d)) |} ).
imports: Fiat.QueryStructure.Implementation.DataStructures.Bags.BagsInterface Coq.Arith.Arith Fiat.Common.List.ListFacts