Skip to content

Add smt.finite_set.lattice_refutation parameter to control lattice refutation code path - #8247

Merged
Nikolaj Bjorner (NikolajBjorner) merged 3 commits into
finite-setsfrom
copilot/add-lattice-refutation-parameter
Jan 21, 2026
Merged

Nikolaj Bjorner (NikolajBjorner) merged 3 commits into
finite-setsfrom
copilot/add-lattice-refutation-parameter

Conversation

Copilot AI commented Jan 19, 2026 •

Copy link
Copy Markdown
Contributor

Adds a parameter to selectively enable/disable the lattice refutation optimization in theory_finite_set.

Changes

  • Parameter definition (smt_params_helper.pyg): Added finite_set.lattice_refutation boolean parameter (default: true)
  • Parameter wiring (smt_params.h, smt_params.cpp): Added member variable and initialization
  • Conditional execution (theory_finite_set.cpp): Guarded calls to m_lattice_refutation.add_equality() and m_lattice_refutation.add_disequality() with parameter check
  • Bug fix (theory_finite_set_lattice_refutation.cpp): Corrected include syntax for iostream

Usage

(set-option :smt.finite_set.lattice_refutation false)  ; Disable lattice refutation

The parameter follows existing Z3 conventions and maintains backward compatibility with default enabled behavior.

Original prompt

Add a parameter to smt_params_helper.pyg to selectively enable /disable the lattice_refutation code path in theory_finite_set.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits January 19, 2026 01:56
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
Co-authored-by: NikolajBjorner <3085284+NikolajBjorner@users.noreply.github.com>
Copilot AI changed the title [WIP] Add parameter to enable or disable lattice refutation in finite set Add smt.finite_set.lattice_refutation parameter to control lattice refutation code path Jan 19, 2026
@NikolajBjorner
Nikolaj Bjorner (NikolajBjorner) marked this pull request as ready for review January 20, 2026 06:16
@NikolajBjorner
Nikolaj Bjorner (NikolajBjorner) merged commit 2f8342a into finite-sets Jan 21, 2026
30 of 31 checks passed
@nunoplopes
Nuno Lopes (nunoplopes) deleted the copilot/add-lattice-refutation-parameter branch January 22, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants