Skip to content

Commit

Permalink
Add remaining rewrite rules for saturated arithmetic
Browse files Browse the repository at this point in the history
For #1609
  • Loading branch information
JasonGross committed Dec 23, 2023
1 parent 69a1b5f commit 1588b10
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Rewriter/Rules.v
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ Definition nbe_rewrite_rulesT : list (bool * Prop)
end)
('n)
xs)
; typeof! @unfold1_nat_rect_fbb_b
; typeof! @unfold1_nat_rect_fbb_b_b
; typeof! @unfold1_list_rect_fbb_b
; typeof! @unfold1_list_rect_fbb_b_b
; typeof! @unfold1_list_rect_fbb_b_b_b
; typeof! @unfold1_list_rect_fbb_b_b_b_b
; typeof! @unfold1_list_rect_fbb_b_b_b_b_b
]
].

Expand Down
7 changes: 7 additions & 0 deletions src/Rewriter/RulesProofs.v
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ Local Hint Resolve
eq_firstn_nat_rect
eq_skipn_nat_rect
eq_update_nth_nat_rect
unfold1_nat_rect_fbb_b
unfold1_nat_rect_fbb_b_b
unfold1_list_rect_fbb_b
unfold1_list_rect_fbb_b_b
unfold1_list_rect_fbb_b_b_b
unfold1_list_rect_fbb_b_b_b_b
unfold1_list_rect_fbb_b_b_b_b_b
: core.

(* to catch [prod_rect] and not just [prod_rect_nodep] *)
Expand Down

0 comments on commit 1588b10

Please sign in to comment.