Skip to content

Commit

Permalink
Increment counter by 1 in ghost state
Browse files Browse the repository at this point in the history
  • Loading branch information
ymherklotz committed Jan 22, 2025
1 parent 0e98a3b commit 7376f07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DataflowRewriter/Rewrites/LoopRewriteCorrect.lean
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,10 @@ Essentially tagger + join without internal rule
@[drunfold] def StringModule.tagger_untagger_val_ghost TagT [DecidableEq TagT] T :=
NatModule.tagger_untagger_val_ghost TagT T |>.stringify

def liftF2 {α β γ δ} (f : α -> β × δ) : α × γ -> (β × γ) × δ | (a, g) => ((f a |>.fst, g), f a |>.snd)
def liftF2 {α β γ δ} (f : α -> β × δ) : α × (Nat × γ) -> (β × (Nat × γ)) × δ
| (a, g) =>
let b := f a
((b.1, (g.1 + 1, g.2)), b.2)

def ghost_rhs
: ExprHigh String × IdentMap String (TModule1 String) := [graphEnv|
Expand Down

0 comments on commit 7376f07

Please sign in to comment.