Skip to content

chore: backport Lean SMT fixes - #196

Draft
dranov wants to merge 6 commits into
mainfrom
codex/pin-veil-no-mathlib
Draft

dranov wants to merge 6 commits into
mainfrom
codex/pin-veil-no-mathlib

Conversation

@dranov

@dranov dranov commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Pin Lean SMT to b528077318f1505246c1dd707ebd9b13ee4e8b3b. The veil-no-mathlib branch replays Veil’s fork changes and the upstream main changes through cbec5bd on upstream no_mathlib.
  • Backport Lean SMT #285 with a Lean-side check for Nonempty evidence before translating an unused quantifier over a data sort. The check uses the goal’s instances, which keeps cached translations independent of temporary solver binders. Veil preserves this evidence before symbolic trace simplification in both solver modes.
  • The pin also includes fixes for wrapping BitVec literals, six-argument Bool relations, conditional proof reconstruction, Int literals in state updates, Nat.max, and BitVec proof reconstruction with the pinned cvc5 1.3.2. Veil 4.35’s release dependency branch still points to 293dab6.

Addresses #189, #177, #178, #181, #118, and #188.

Validation

  • All 119 Lean SMT test files passed. The inhabited-domain examples pass, and trusted SMT rejects vacuous hypotheses over a sort that may be empty, including when a nested existential introduces a temporary instance.
  • The Veil library and the trusted trace regression built against the hardened pin. Veil sat trace with an unused quantified variable gives a cvc5 error #188 finds a satisfying trace with trusted SMT enabled.

@dranov
dranov marked this pull request as draft November 21, 2026 04:07
Pin Lean SMT to the hardened #285 backport. Derive Nonempty from Veil’s Inhabited instances before symbolic trace simplification in either solver mode.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment