Skip to content

Commit

Permalink
map_group_cut_always_false
Browse files Browse the repository at this point in the history
  • Loading branch information
tahina-pro committed Jan 4, 2025
1 parent a750c97 commit 3e5254f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/cddl/spec/CDDL.Spec.MapGroup.Base.fsti
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,11 @@ val apply_map_group_det_cut
)))
[SMTPat (apply_map_group_det (map_group_cut k) l)]

let map_group_cut_always_false () : Lemma (map_group_cut t_always_false == map_group_nop) =
apply_map_group_det_map_group_equiv
(map_group_cut t_always_false)
map_group_nop

val map_group_concat_match_item_cut_eq
(k: Cbor.cbor) (v: typ) (b: bool)
: Lemma
Expand Down Expand Up @@ -470,11 +475,14 @@ let map_group_concat_cut_filter
let map_group_concat_cut_cut
(k1 k2: typ)
: Lemma
(ensures (map_group_concat (map_group_cut k1) (map_group_cut k2) == map_group_cut (orp k1 k2)))
[SMTPat (map_group_concat (map_group_cut k1) (map_group_cut k2))]
(ensures (map_group_concat (map_group_cut k1) (map_group_cut k2) == map_group_cut (t_choice k1 k2)))
[SMTPatOr [
[SMTPat (map_group_concat (map_group_cut k1) (map_group_cut k2))];
[SMTPat (map_group_cut (t_choice k1 k2))]
]]
= apply_map_group_det_map_group_equiv
(map_group_concat (map_group_cut k1) (map_group_cut k2))
(map_group_cut (orp k1 k2))
(map_group_cut (t_choice k1 k2))

let map_group_concat_cut_choice
(k: typ)
Expand Down

0 comments on commit 3e5254f

Please sign in to comment.