Skip to content

fix: emitter bounds, OpenAPI subclass indent, :explain core, native/Vampire bound conflicts - #3

Merged
bsommers merged 1 commit into
mainfrom
fix/emitter-repl-prover-bugs
Nov 12, 2026
Merged

bsommers merged 1 commit into
mainfrom
fix/emitter-repl-prover-bugs

Conversation

@bsommers

Copy link
Copy Markdown
Owner

Summary

Fixes five defects found while writing the 1.8.2 user guide:

  • OpenAPI: subclass-own properties under allOf were mis-indented, producing invalid YAML.
  • Python/Java emitters: a subclass restating an inherited bound no longer duplicates Field(...) kwargs or @Max/@Min; only the tightest bound per direction is kept.
  • REPL :explain: now cites the conflicting property bounds (named bounds in the unsat-core theory) instead of "No contradictory axioms" after :solve reports UNSAT.
  • Native prover / Vampire: detect forall/exists numeric-bound conflicts via arithmetic background axioms; disjoint bounds on different entities stay SAT. Arithmetic-only conflicts such as integer gaps are still missed (documented).
  • VS Code: snippets rewritten with valid syntax; extension README and build script now say 1.3.0.

Docs (troubleshooting, REPL, axioms, editor guide) and CHANGELOG updated.

Test plan

  • stack test --ghc-options="-Wall -Werror" — 758 examples, 0 failures (13 new in test/RegressionBugsSpec.hs)
  • OpenAPI output parses with PyYAML
  • :explain core verified on auto, z3 and cvc5

🤖 Generated with Claude Code

@bsommers
bsommers merged commit d06487f into main Nov 12, 2026
2 checks passed
@bsommers
bsommers deleted the fix/emitter-repl-prover-bugs branch November 13, 2026 03:31
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.

1 participant