diff --git a/DataflowRewriter/Examples/Merge.lean b/DataflowRewriter/Examples/Merge.lean index dabb893..b6df707 100644 --- a/DataflowRewriter/Examples/Merge.lean +++ b/DataflowRewriter/Examples/Merge.lean @@ -16,6 +16,7 @@ import DataflowRewriter.KernelRefl import DataflowRewriter.Reduce import DataflowRewriter.List import DataflowRewriter.ExprHighLemmas +import DataflowRewriter.Tactic open Batteries (AssocList) @@ -26,15 +27,6 @@ namespace DataflowRewriter abbrev Ident := Nat -elab "precompute " t:term : tactic => Tactic.withMainContext do - let expr ← Term.elabTerm t none - Term.synthesizeSyntheticMVarsUsingDefault - let expr ← Lean.instantiateMVars expr - let expr ← - -- withTransparency .all <| - reallyReduce (skipArgs := false) (skipTypes := false) expr - (← Tactic.getMainGoal).assign expr - def threemerge T : NatModule (List T):= { inputs := [(0, ⟨ T, λ oldList newElement newList => newList = newElement :: oldList ⟩), (1, ⟨ T, λ oldList newElement newList => newList = newElement :: oldList ⟩),