From c1b65592d08f614b741b27c98ba01f4bd05f69e6 Mon Sep 17 00:00:00 2001 From: Andres Erbsen Date: Sat, 20 Apr 2019 21:07:01 -0400 Subject: [PATCH] cbv for map lookup seems rather difficult @jmgrosen @samuelgruetter --- bedrock2/src/bedrock2Examples/chacha20.v | 56 ++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/bedrock2/src/bedrock2Examples/chacha20.v b/bedrock2/src/bedrock2Examples/chacha20.v index 02686dca6..c64227d31 100644 --- a/bedrock2/src/bedrock2Examples/chacha20.v +++ b/bedrock2/src/bedrock2Examples/chacha20.v @@ -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) *) }