rw [← heq]
case isTrue.inl
α : Type
inst✝² : BEq α
inst✝¹ : Hashable α
inst✝ : DecidableEq α
w : Nat
aig : AIG α
c : BitVec w
assign : α → Bool
curr : Nat
hcurr : curr ≤ w
s : aig.RefStream curr
idx : Nat
hidx1 : idx < w
hidx2 : curr ≤ idx
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
heq : curr = idx
⊢ ⟦{
        aig :=
          (go (aig.mkConstCached (c.getLsb curr)).aig (curr + 1)
              ((s.cast ⋯).pushRef (aig.mkConstCached (c.getLsb curr)).ref) c ⋯).aig,
        ref := (aig.mkConstCached (c.getLsb curr)).ref.cast ⋯ },
      assign⟧ =
    c.getLsb idx
case isTrue.inl
α : Type
inst✝² : BEq α
inst✝¹ : Hashable α
inst✝ : DecidableEq α
w : Nat
aig : AIG α
c : BitVec w
assign : α → Bool
curr : Nat
hcurr : curr ≤ w
s : aig.RefStream curr
idx : Nat
hidx1 : idx < w
hidx2 : curr ≤ idx
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
heq : curr = idx
⊢ ⟦{
        aig :=
          (go (aig.mkConstCached (c.getLsb curr)).aig (curr + 1)
              ((s.cast ⋯).pushRef (aig.mkConstCached (c.getLsb curr)).ref) c ⋯).aig,
        ref := (aig.mkConstCached (c.getLsb curr)).ref.cast ⋯ },
      assign⟧ =
    c.getLsb curr