fact: Definition IndexedBag_ValidUpdate (updateterm : TUpdateTerm) := forall ibag imap idx, RepInv imap ibag -> RepInv (fun i => if TIndex_dec i idx then match imap i with | Some item => Some (Transform updateterm item) | None => None end else imap i) ibag.
imports: Fiat.Common.Coq__8_4__8_5__Compat Fiat.QueryStructure.Implementation.DataStructures.Bags.BagsInterface Fiat.QueryStructure.Implementation.DataStructures.Bags.BagsProperties Coq.FSets.FMapInterface Coq.FSets.FMapFacts Coq.FSets.FMapAVL Coq.Structures.OrderedTypeEx