@@ -76,9 +76,9 @@ elabRewrite elab ist fc substfn_in rule sc_in newg
76 when (g == pred_tt) $ lift $ tfail (NoRewriting l r g)
76 when (g == pred_tt) $ lift $ tfail (NoRewriting l r g)
77 let pred = PLam fc rname fc Placeholder
77 let pred = PLam fc rname fc Placeholder
78 (delab ist pred_tt)
78 (delab ist pred_tt)
79− let rewrite = stripImpls $
80− addImplBound ist (map fstEnv env) (PApp fc (PRef fc [] substfn)
79+ let rewrite = addImplBound ist (map fstEnv env) (PApp fc (PRef fc [] substfn)
80+ [pexp (stripImpls pred),
81− [pexp pred, pexp rule, pexp sc])
81+ pexp (stripImpls rule), pexp sc])
82-- trace ("LHS: " ++ show l ++ "\n" ++
82-- trace ("LHS: " ++ show l ++ "\n" ++
83-- "RHS: " ++ show r ++ "\n" ++
83-- "RHS: " ++ show r ++ "\n" ++
84-- "REWRITE: " ++ show rewrite ++ "\n" ++
84-- "REWRITE: " ++ show rewrite ++ "\n" ++