Skip to content

Commit

Permalink
Prove theorem self_eq_bb
Browse files Browse the repository at this point in the history
  • Loading branch information
bernborgess committed Nov 29, 2024
1 parent 0e0e28c commit bbdfc58
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Smt/Reconstruct/BitVec/Bitblast.lean
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ namespace BitVec
def bb (x : BitVec w) : BitVec w :=
(iunfoldr (fun i _ => ((), x.getLsbD i)) ()).snd

def self_eq_bb (x : BitVec w) : x = x.bb :=
sorry
theorem self_eq_bb (x : BitVec w) : x = x.bb := by
unfold bb
rw [iunfoldr_replace_snd (λ _ => ()) (init:=rfl)]
intro i
rfl

-- def beq (x : BitVec w) (y : BitVec w) : Bool :=
-- go w
Expand Down

0 comments on commit bbdfc58

Please sign in to comment.