Repository navigation
[API Coherence] Report for October 3, 2026 - Context Lifecycle, Substitute API, Mutual-Recursive Datatypes #11032
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11040. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
Re-verified all 39 cached open issues via spot-checks (sampled representative subset across priority tiers) and analyzed 3 new API areas: Context lifecycle/memory management, Z3_substitute family (substitute/substitute_vars/substitute_funs), and Mutual-recursive Datatype construction.
Functions/areas checked this run: ~15 (substitute family across 8 languages, Context lifecycle idioms across 8 languages, mk_datatypes/mutual-recursive datatype construction across 8 languages, plus spot-checks of 7 cached issues).
Languages covered: 8 (C++, Python, Java, .NET, OCaml, Go, TypeScript/JS, Rust)
Previously cached issues resolved: 0
New inconsistencies found: 1
Resolution Updates
No previously cached issues were resolved this run. Spot-checked representative samples (TS EnumSort, Go error handler, C++
global_param_get, Go ASTVector methods, .NETMkLinearOrder/MkTreeOrder) — all confirmed still open.New Findings
Medium Priority
1. Rust
z3crate missingsubstitute_varsandsubstitute_funshigh-level wrappersAsttrait in the Rustz3crate provides asubstitute()method (wrappingZ3_substitute), but there is no equivalent wrapper forZ3_substitute_vars(replacing bound/de-Bruijn variables) orZ3_substitute_funs(replacing function applications).expr::substitute(expr_vector)for vars,expr::substitute(func_decl_vector, expr_vector)for funs), Python (substitute_vars,substitute_funs), Java (Expr.substituteVars,Expr.substituteFuns), .NET (Expr.SubstituteVars,Expr.SubstituteFuns), OCaml (substitute_vars,substitute_funs), Go (Expr.SubstituteVars,Expr.SubstituteFuns), TypeScript (substituteVars,substituteFuns).z3crate) — only the rawZ3_substitute_vars/Z3_substitute_funsFFI bindings exist inz3-sys, with no safe high-level wrapper inz3/src/ast/mod.rs'sAsttrait.substitute_vars(&self, to: &[&impl Ast]) -> Selfandsubstitute_funs(&self, substitutions: &[(&FuncDecl, &impl Ast)]) -> Selfdefault methods to theAsttrait inz3/src/ast/mod.rs, following the same pattern as the existingsubstitute()method.z3/src/ast/mod.rs(verified via GitHub code search againstprove-rs/z3.rs, commitffb47c0)substitute()exists,substitute_vars/substitute_funswrappers confirmed absent (only present in generated FFI layerz3-sys/src/generated/functions.rs).substitute-based workaround exists; not core-blocking)Areas Audited With No Gaps Found
Z3_del_context, destructors/finalizers/Dispose/GC patterns): Fully coherent across all 8 languages — each language uses its native idiom (C++ RAII destructor, Python__del__, Javaclose(), .NETDispose()/finalizer, OCaml GC, Goruntime.SetFinalizer, RustDrop). This is internal memory management, not a user-facing API surface gap.Z3_mk_datatypes): Fully coherent across all 8 languages, including Rust'sdatatype_buildermodule which explicitly supports multiple mutually-recursiveDatatypeBuilders passed to a single construction call.Full List of Open Issues (40 total including new finding)
Click to expand all previously tracked open issues
MkLinearOrder,MkPiecewiseLinearOrder,MkTreeOrder(Java has them) — re-confirmed open this runAST.Id()methodtype_variablewrappertype_variableallchar(Z3_mk_re_allchar)re_power(Z3_mk_re_power)set_initial_valuefor Optimize (Solver.SetInitialValue exists)set_initial_valueContext.Interrupt()context-level (Solver.Interrupt() resolved)Z3_solver_interruptwrapper (Go resolved)Z3_solver_get_num_scopeswrapper (Go resolved)Z3_benchmark_to_smtlib_stringwrappertactic_get_descr/probe_get_descrZ3_get_num_probes/Z3_get_probe_nameZ3_mk_enumeration_sort) — re-confirmed open this runZ3_update_param_valuewrapperfunc_interpmissingarity()methodZ3_global_param_getwrapper — re-confirmed open this runZ3_params_validatewrapperModel.has_interpconvenience wrapperZ3_mk_pattern)datatype_update_fieldwrappersubstitute_vars/substitute_funshigh-level Ast trait wrappersProgress
Rust Repository Access Note
Direct
git cloneofprove-rs/z3.rscontinues to fail with HTTP 403 (26th consecutive run). GitHub MCPsearch_codeandget_file_contentstools continue to successfully retrieve file contents from this repo and were used for this run's Rust analysis.Warning
Firewall blocked 1 domain
The following domain was blocked by the firewall during workflow execution:
github.comTo allow these domains, add them to the
network.allowedlist in your workflow frontmatter:See Network Configuration for more information.
All reactions