Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Commit

Permalink
composeM is no longer skipped by the Coq translator
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddy Westbrook committed Mar 15, 2021
1 parent 9fa8e4f commit a2d632c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
3 changes: 2 additions & 1 deletion saw-core-coq/coq/generated/CryptolToCoq/SAWCorePrelude.v
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,8 @@ Definition foldIRT : forall (As : @ListSort), forall (Ds : @IRTSubsts As), foral

(* Prelude.bindM was skipped *)

(* Prelude.composeM was skipped *)
Definition composeM : forall (a : Type), forall (b : Type), forall (c : Type), (a -> CompM b) -> (b -> CompM c) -> a -> CompM c :=
fun (a : Type) (b : Type) (c : Type) (f : a -> CompM b) (g : b -> CompM c) (x : a) => @bindM CompM _ b c (f x) g.

Definition tupleCompMFunBoth : forall (a : Type), forall (b : Type), forall (c : Type), (a -> CompM b) -> prod c a -> CompM (prod c b) :=
fun (a : Type) (b : Type) (c : Type) (f : a -> CompM b) (x : prod c a) => @bindM CompM _ b (prod c b) (f (SAWCoreScaffolding.snd x)) (fun (y : b) => @returnM CompM _ (prod c b) (pair (SAWCoreScaffolding.fst x) y)).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -446,12 +446,6 @@ sawCorePreludeSpecialTreatmentMap configuration =
, ("List__rec", replace (Coq.ExplVar "Datatypes.list_rect"))
]

-- Definitions that depend on axioms currently skipped
++
[ ("composeM", skip)
, ("letRecFuns", skip)
]

constantsRenamingMap :: [(String, String)] -> Map.Map String String
constantsRenamingMap notations = Map.fromList notations

Expand Down

0 comments on commit a2d632c

Please sign in to comment.