Repository navigation
[API Coherence] Report for 2026-10-04 - Expr Kind-Specific Accessors (is_true/is_and/is_ite/etc.) #11040
Closed
Replies: 1 comment
|
This discussion has been marked as outdated by API Coherence Checker. A newer discussion is available at Discussion #11054. |
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 40 cached pending issues via targeted spot-checks (Go error handler, C++ global_param_get, Go ASTVector, .NET MkLinearOrder family, TS TupleSort/Probe) — all remain open, 0 resolved this run. New focus area: Expr kind-specific accessor completeness (
is_true/is_false/is_and/is_or/is_not/is_eq/is_distinct/is_implies/is_ite), per the "next run" plan item. Also re-confirmed Rust clone is still blocked (27th consecutive run) with GitHub MCPget_file_contents/search_codeused successfully as the workaround.Functions/features checked this run:
Z3_get_decl_kind,Z3_get_sort_kind,Z3_OP_TRUE/FALSE/AND/OR/NOT/EQ/DISTINCT/IMPLIES/ITEpredicate wrappers across C++, Python, Java, .NET, OCaml, Go, TypeScript, Rust.Resolution Status
No previously cached issues were resolved since the last run (2026-10-03). All 40 pending issues remain confirmed open.
New Findings
High Priority
1. Go has no expr/decl-kind introspection API at all
Z3_get_decl_kindorZ3_get_sort_kind. Searchingsrc/api/go/z3.gofinds zero references to either C function.IsTrue/IsAnd/IsOr/IsNot/IsEq/IsDistinct/IsImplies/IsITEconvenience predicates that every other binding provides (C++z3++.h:1497-1506, Pythonz3.py:1728-1818, JavaExpr.java:355-457, .NETExpr.cs:300-350, OCamlz3.mli:662-692, TypeScripthigh-level.ts:507-536).FuncDecl::kind() -> DeclKind(z3/src/func_decl.rs) which backs ad-hoc checks likeis_const_array.FuncDecl.DeclKind()orSort.Kind()method, and consequently none of the boolean-op predicates either.func (f *FuncDecl) DeclKind() C.Z3_decl_kindandfunc (s *Sort) Kind() C.Z3_sort_kindwrappers tosrc/api/go/z3.go, then layerIsTrue()/IsFalse()/IsAnd()/IsOr()/IsNot()/IsEq()/IsDistinct()/IsImplies()/IsITE()on*Expranalogous to the C++/.NETimplementations.src/api/go/z3.goMedium Priority
2. TypeScript/JS missing
isItepredicatehigh-level.ts:507-536) implementsisTrue,isFalse,isAnd,isOr,isImplies,isNot,isEq,isDistinct— but has noisIteforZ3_OP_ITE, even though the underlyingisAppOf(obj, kind)helper could trivially support it.is_ite,z3++.h:1505), Python (implicit viais_app_of(a, Z3_OP_ITE)), Java (isITE(),Expr.java:396), .NET (IsITE,Expr.cs:320), OCaml (is_ite,z3.mli:674).z3crate exposesAst::kind()/FuncDecl::kind() -> DeclKindbut no dedicatedis_ite()/is_true()/is_and()convenience predicates anywhere in the crate; onlyis_const_arrayuses this pattern internally inarray.rs).isIte(obj: unknown): boolean { return isAppOf(obj, Z3_decl_kind.Z3_OP_ITE); }tohigh-level.tsand export it alongside the other predicates intypes.ts. For Rust, addis_true/is_false/is_and/is_or/is_not/is_eq/is_distinct/is_implies/is_itedefault-trait methods toAst(or inherent methods onBool) using the existingdecl().kind()pattern.src/api/js/src/high-level/high-level.ts,src/api/js/src/high-level/types.ts; Rustz3/src/ast/mod.rsorz3/src/ast/bool.rs(external repo).Progress
Z3_set_error_handleravailability across languages — spot-checked this run: Python/C++/.NET/Java all wrap it; Go still confirmed missing per cached issue), Goal/Probe advanced combinators, periodic regression re-audit of complete familiesAll Confirmed-Open Cached Issues (40 total, unchanged this run)
High priority (9): Rust Simplifier API, Rust FiniteSet API, Rust polymorphic datatypes/type_variable, Go error handler override, TS EnumSort, Go numeral value extraction, TS QE Model Projection, TS TupleSort, .NET/Java/OCaml/Go Model construction, TS Probe creation/comparison, Go/C++ Pattern construction (
Z3_mk_pattern), NEW: Go decl/sort-kind introspection (root cause of missing boolean predicates).Medium priority (16): Rust logging wrappers, C++ type_variable, Rust seq_map/foldl, Rust ParamDescrs, Go/OCaml Optimize set_initial_value, Go Context-level Interrupt, C++/.NET/TS solver_interrupt, Go benchmark_to_smtlib_string, C++/TS tactic/probe enumeration + descr, TS per-context update_param_value, C++ func_interp.arity(), TS ForAll/Exists patterns, Go ASTVector Push/Set/Resize/Translate, C++ global_param_get, C++/Go/TS as-array introspection, Go datatype_update_field, Rust substitute_vars/substitute_funs, NEW: TS isIte predicate, Rust is_true/is_and/etc. predicate family.
Low priority (9): .NET MkLinearOrder/MkPiecewiseLinearOrder/MkTreeOrder, Go AST.Id(), C++/.NET allchar, re_power gaps, Go ParamDescrs query methods, C++ Z3_solver_get_num_scopes, Go get_num_probes/get_probe_name, C++/Go sort/func_decl equality wrappers, C++/Go params.validate(), Model.has_interp convenience wrapper.
(Full details with file/line references available in the agent's cache memory
api_coherence.json.)All reactions