Skip to content

Commit

Permalink
Also modify example in Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ymherklotz committed Oct 29, 2024
1 parent 71668ab commit f200cbf
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions DataflowRewriter/Examples/Merge.lean
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import DataflowRewriter.KernelRefl
import DataflowRewriter.Reduce
import DataflowRewriter.List
import DataflowRewriter.ExprHighLemmas
import DataflowRewriter.Tactic

open Batteries (AssocList)

Expand All @@ -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 ⟩),
Expand Down

0 comments on commit f200cbf

Please sign in to comment.