lemmadropInput_eval (offset e : Expr) (s : ListBool) (a : ℕ→ℕ) :
(dropInput offset e).eval s a=e.eval (s.drop (offset.eval s (fun _ =>0))) a :=by
proof · 12
lines
have hc (a : ℕ→ℕ) : (UnaryTables.closed offset).eval s a=offset.eval s (fun _ =>0) :=by
simp [UnaryTables.closed,UnaryTables.atIndex,eval]
induction e generalizing a with
| const n => rfl
| arg n => rfl
| length => simp [dropInput,eval,hc]
| bit e ih => simp [dropInput,eval,hc,ih,List.getElem?_drop]
| add x y ix iy => simp [dropInput,eval,ix,iy]
| sub x y ix iy => simp [dropInput,eval,ix,iy]
| mul x y ix iy => simp [dropInput,eval,ix,iy]
| zero x ix => simp [dropInput,eval,ix]
| sum b f ib iF => simp only [dropInput,eval,ib,iF]