Provides the logic for reifying BitVec
problems with boolean substructure.
Instances For
Equations
- Lean.Elab.Tactic.BVDecide.Frontend.ReifiedBVLogical.mkTrans x y z hxy hyz = Lean.mkApp6 (Lean.mkConst `Eq.trans [1]) (Lean.mkConst `Bool) x y z hxy hyz
Instances For
def
Lean.Elab.Tactic.BVDecide.Frontend.ReifiedBVLogical.ofPred
(bvPred : Lean.Elab.Tactic.BVDecide.Frontend.ReifiedBVPred)
:
Construct a ReifiedBVLogical
from ReifiedBVPred
by wrapping it as an atom.
Instances For
Construct an uninterrpeted Bool
atom from t
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Build a reified version of the constant val
.
Instances For
def
Lean.Elab.Tactic.BVDecide.Frontend.ReifiedBVLogical.mkGate
(lhs rhs : Lean.Elab.Tactic.BVDecide.Frontend.ReifiedBVLogical)
(lhsExpr rhsExpr : Lean.Expr)
(gate : Std.Tactic.BVDecide.Gate)
:
Construct the reified version of applying the gate in gate
to lhs
and rhs
.
This function assumes that lhsExpr
and rhsExpr
are the corresponding expressions to lhs
and rhs
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Elab.Tactic.BVDecide.Frontend.ReifiedBVLogical.mkGate.congrThmOfGate
(gate : Std.Tactic.BVDecide.Gate)
:
Instances For
def
Lean.Elab.Tactic.BVDecide.Frontend.ReifiedBVLogical.mkNot
(sub : Lean.Elab.Tactic.BVDecide.Frontend.ReifiedBVLogical)
(subExpr : Lean.Expr)
:
Construct the reified version of Bool.not subExpr
.
This function assumes that subExpr
is the expression corresponding to sub
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Elab.Tactic.BVDecide.Frontend.ReifiedBVLogical.mkIte
(discr lhs rhs : Lean.Elab.Tactic.BVDecide.Frontend.ReifiedBVLogical)
(discrExpr lhsExpr rhsExpr : Lean.Expr)
:
Construct the reified version of if discrExpr then lhsExpr else rhsExpr
.
This function assumes that discrExpr
, lhsExprand
rhsExprare the corresponding expressions to
`discr,
lhsand
rhs`.