Skip to content

Remove ulevel nat axiom#4152

Open
nikswamy wants to merge 9 commits intofstar2from
fstar2_remove_ulevel_nat_axiom
Open

Remove ulevel nat axiom#4152
nikswamy wants to merge 9 commits intofstar2from
fstar2_remove_ulevel_nat_axiom

Conversation

@nikswamy
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe these two guards can be removed now?

nikswamy and others added 7 commits April 1, 2026 16:46
Add explicit SMT hints and split_queries to fix regressions caused by
the structural Universe encoding change (U_zero/U_succ datatype instead
of Univ wrapping Int).

- FStar.UInt128: add non-negativity assertions for k1*k2, k1*m, n+k1*m
  to help Z3 with subtyping checks; remove z3rlimit_factor bump
- PulseCore.Preorder: explicit case-split match in assoc_l/assoc_r with
  split_queries always (each case is trivial individually)
- Pulse.Lib.FractionalAnchoredPreorder: add split_queries always for
  update_anchored_hist
- AlgHeap: add split_queries always for interp_morph
- RBTreeIntrinsic: add split_queries always for balance sort proofs

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Z3 4.13.3 has a bug in its LP solver (lar_solver.cpp assertion
violation / segfault) triggered by the 2-constructor Universe
algebraic datatype (U_zero | U_succ) during incremental solving.
The crash occurs on the 19th query when Z3 evaluates labels after
an unknown result. Using --z3refresh (fresh Z3 per query) avoids
the accumulated state that triggers the crash. Z3 4.15.3 does not
have this bug.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Change Universe from algebraic datatype to (declare-sort Universe)
  with uninterpreted U_zero/U_succ functions and no :weight annotations
- Fix FStar.Int.rotate_right_left_inverse: add explicit modular arithmetic
  lemma (rotate_mod_lemma) to guide Z3 through ((i+s)%n + n - s%n) % n = i
- Remove --z3refresh from AlgForAll: uninterpreted sort avoids the Z3 4.13.3
  incremental segfault that the algebraic datatype encoding triggered

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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