. simp
case isTrue
α : Type
inst✝² : BEq α
inst✝¹ : Hashable α
inst✝ : DecidableEq α
w : Nat
aig : AIG α
c : BitVec w
curr : Nat
hcurr : curr ≤ w
s : aig.RefStream curr
idx : Nat
hidx : idx < curr
res : RefStreamEntry α w
h✝ : curr < w
hgo :
  go (aig.mkConstCached (c.getLsb curr)).aig (curr + 1) ((s.cast ⋯).pushRef (aig.mkConstCached (c.getLsb curr)).ref) c
      ⋯ =
    res
hfoo :
  aig.decls.size ≤
    (go (aig.mkConstCached (c.getLsb curr)).aig (curr + 1) ((s.cast ⋯).pushRef (aig.mkConstCached (c.getLsb curr)).ref)
            c ⋯).aig.decls.size
⊢ ((s.getRef idx ?isTrue.hidx).cast ⋯).gate = (s.getRef idx hidx).gate

case isTrue.hidx
α : Type
inst✝² : BEq α
inst✝¹ : Hashable α
inst✝ : DecidableEq α
w : Nat
aig : AIG α
c : BitVec w
curr : Nat
hcurr : curr ≤ w
s : aig.RefStream curr
idx : Nat
hidx : idx < curr
res : RefStreamEntry α w
h✝ : curr < w
hgo :
  go (aig.mkConstCached (c.getLsb curr)).aig (curr + 1) ((s.cast ⋯).pushRef (aig.mkConstCached (c.getLsb curr)).ref) c
      ⋯ =
    res
hfoo :
  aig.decls.size ≤
    (go (aig.mkConstCached (c.getLsb curr)).aig (curr + 1) ((s.cast ⋯).pushRef (aig.mkConstCached (c.getLsb curr)).ref)
            c ⋯).aig.decls.size
⊢ idx < curr
case isTrue.hidx
α : Type
inst✝² : BEq α
inst✝¹ : Hashable α
inst✝ : DecidableEq α
w : Nat
aig : AIG α
c : BitVec w
curr : Nat
hcurr : curr ≤ w
s : aig.RefStream curr
idx : Nat
hidx : idx < curr
res : RefStreamEntry α w
h✝ : curr < w
hgo :
  go (aig.mkConstCached (c.getLsb curr)).aig (curr + 1) ((s.cast ⋯).pushRef (aig.mkConstCached (c.getLsb curr)).ref) c
      ⋯ =
    res
hfoo :
  aig.decls.size ≤
    (go (aig.mkConstCached (c.getLsb curr)).aig (curr + 1) ((s.cast ⋯).pushRef (aig.mkConstCached (c.getLsb curr)).ref)
            c ⋯).aig.decls.size
⊢ idx < curr