Skip to content

Commit bf27b24

Browse files
committed
Give exp_eqSimps a signature
This code doesn't work anymore because exp_eq's binary arguments aren't last. I'm going to fiddle with overloads and the like to have the underlying constant be exp_eq0 b e1 e2 and map this to the existing exp_eq e1 e2 b and its accompanying infix notation.
1 parent 40c9d8f commit bf27b24

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

meta-theory/exp_eqSimps.sig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
signature exp_eqSimps =
2+
sig
3+
4+
val EXPEQ_ss : simpLib.ssfrag
5+
6+
end

meta-theory/exp_eqSimps.sml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
structure exp_eqSimps =
1+
structure exp_eqSimps :> exp_eqSimps =
22
struct
33

44

@@ -53,7 +53,7 @@ val EXPEQ_ss = let
5353
val rsd = {refl = exp_eq_refl, trans = exp_eq_trans,
5454
weakenings = [intro_cong],
5555
subsets = [],
56-
rewrs = [beta_equality, exp_eq_Add]}
56+
rewrs = [beta_equality, exp_eq_Add, Let_Var]}
5757
val frag1 = relsimp_ss rsd
5858
val congs = SSFRAG {dprocs = [], ac = [], rewrs = [], name = NONE,
5959
congs = [exp_eq_Lam_cong, impi exp_eq_App_cong,
@@ -64,7 +64,7 @@ in
6464
merge_ss [frag1, congs] |> name_ss "EXPEQ_ss"
6565
end
6666

67-
67+
(*
6868
val lreq_refl = Q.prove(
6969
‘lrt xs xs’,
7070
simp[listTheory.EVERY2_refl,PAIR_REL_REFL',exp_eq_refl]);
@@ -115,5 +115,5 @@ SIMP_CONV (srw_ss() ++ EXPEQ_ss ++ LREXPEQ_ss)
115115
“Y ≅ Letrec [(f, Prim (AtomOp Add) [Lit (Int 4); Lit(Int 7)])] (Var x)”
116116
*)
117117
118-
118+
*)
119119
end (* struct *)

0 commit comments

Comments
 (0)