Skip to content

Commit

Permalink
cbv for map lookup seems rather difficult
Browse files Browse the repository at this point in the history
  • Loading branch information
andres-erbsen authored and JasonGross committed Jul 21, 2022
1 parent da5f6bd commit c1b6559
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions bedrock2/src/bedrock2Examples/chacha20.v
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,62 @@ Proof.
.

change v with X. subst X.
(* Goal : map.get l k = Some ?e , l = map.put k' ... *)
cbv [
(* N.mul appears *)
map.get map.put
SortedList.map SortedList.parameters.key SortedList.parameters.value SortedListString.Build_parameters
SortedList.value SortedList.put
SortedList.eqb SortedList.parameters.ltb ltb Ascii.eqb Ascii.ltb Ascii.N_of_ascii Ascii.N_of_digits N.ltb Bool.eqb
List.find
SortedListString.map locals FE310CSemantics.parameters
l39 l38 l37
fst snd
l0
l1
l2
l3
l4
l5
l6
l7
l8
l9
l10
l11
l12
l13
l14
l15
l16
l17
l18
l19
l20
l21
l22
l23
l24
l25
l26
l27
l28
l29
l30
l31
l32
l33
l34
l35
l36
l37
l38
l39



].
revert dependent l.
Time exact eq_refl.
(* Finished transaction in 1.907 secs (1.905u,0.s) (successful) *)
}
Expand Down

2 comments on commit c1b6559

@samuelgruetter
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How long does it take if you just run reflexivity on the goal of form map.get _ _ = Some _, without using any cbv?

@JasonGross
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Er, this is just a rebased commit from 2019 (#72, 4c1427c), I'm not sure the question is still relevant, and sorry for the needless spam

Please sign in to comment.