This module contains the implementation of bv_normalize, the preprocessing tactic for bv_decide.
It is in essence a (slightly reduced) version of the Bitwuzla preprocessor together with Lean
specific details.
We run rewriting on the EPR quantifiers once ahead of time so we do not re-normalize them during MBQI over and over again. However, in order to ease later processing we do not just normalize them fully but instead keep the guards as separate implications, i.e. go from
∀ (x₁ ... xₙ), guard x₁ → ... → guard xₙ → body x₁ ... xₙ
to
∀ (x₁ ... xₙ), normalized_guard x₁ = true → ... → normalized_guard xₙ = true → normalized_body x₁ ... xₙ = true
This is done as during instantiation we can always simplify away all guard conditions trivially.
Equations
- One or more equations did not get rendered due to their size.