Repository navigation
Raise ConvexOptimization SymbolicAnalysis floor to 0.5.3 (soundness); Symbolics floor 7.40 - #1382
Merged
ChrisRackauckas merged 4 commits intoOct 3, 2026
Conversation
0.3.7–0.3.8 lack Mapreducer/Mapper DCP rules for sum(abs.(…)), minimum/maximum, and nested min/max, so analyze reports UnknownCurvature for expressions the backend and open sibling PRs need to certify. 0.3.9 gains those rules, but dropping the whole 0.3 line (compat narrowing to 0.5.x) matches the supported Symbolics-7 stack after the 0.4 dead-end. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Cursor Agent <noreply@cursor.com> Agent-Harness: Cursor Agent CLI 2026.09.26-dd393fe Agent-Model: auto Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/Optimization.jl/jobs/1380-cursor/log.txt on amdci2.julia.csail.mit.edu
Soundness, not coverage: nested-atom certification analyzes the original expression, so false convexity certificates are silent wrong answers. SA fixes SciML#157/SciML#159–SciML#161/SciML#163/SciML#164 land in 0.5.2; SciML#162 and SciML#169 land in 0.5.3, the first release with all of them. Drops 0.3.x and 0.5.0–0.5.2 (compat narrowing; minor bump when released). Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Cursor Agent <noreply@cursor.com> Agent-Harness: Cursor Agent CLI 2026.09.26-dd393fe Agent-Model: auto Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/Optimization.jl/jobs/1380-cursor/log-fu2.txt on amdci2.julia.csail.mit.edu
Resolve lib/ConvexOptimization/Project.toml: keep the StaticArrays compat entry from master and this branch's SymbolicAnalysis floor 0.5.3. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Agent-Harness: Claude Code 2.1.287 Agent-Model: claude-opus-5-5[1m] Agent-Session: https://claude.ai/code/session_012MR71TfC37zxgqpNWGHADR
Require Symbolics 7.40.0 to preserve scalarized norm atoms during symbolic analysis, and state the effective SymbolicUtils minimum compatible with SymbolicAnalysis 0.5.3. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI codex-cli 0.160.0 Agent-Model: gpt-6-luna Agent-Session: /home/crackauc/sandbox/agent-jobs/Optimization.jl/jobs/convexopt-floor-1002/log.txt
ChrisRackauckas
marked this pull request as ready for review
October 3, 2026 01:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lib/ConvexOptimization/Project.tomlallowedSymbolicAnalysis = "0.3, 0.5", so resolvers can land on 0.3.7/0.3.8 (missing Mapreducer/Mapper DCP rules) or on 0.5.0–0.5.2 (still carrying September false-certificate bugs). This PR narrows compat toSymbolicAnalysis = "0.5.3".Floor basis is SOUNDNESS, not just coverage. ConvexOptimization's nested-atom path (PR #1376) certifies the original expression with
SymbolicAnalysis.analyze, so a SymbolicAnalysis release that still returns a false convexity certificate becomes a silent wrong answer. SymbolicAnalysis fixed a series of false certificates in September. By tag containment:/rule that v0.5.2 shipped broken) first appear in v0.5.3So v0.5.3 is the first release with all of them. (#174 in v0.5.5 adds coverage only.)
This drops support for 0.3.x and 0.5.0–0.5.2 — a compat narrowing that warrants a minor version bump when ConvexOptimization is released.
Bisect (Julia 1.12,
analyzeof probe expressions)Coverage probes (Mapreducer/Mapper gap on un-lowered expressions):
0.3.9 is the first release that certifies these expressions, but 0.4 is a Symbolics-6 dead-end and the soundness floor above requires ≥0.5.3 on the maintained Symbolics-7 line.
Verification
Scratch env developing this checkout’s
lib/ConvexOptimization, SA pinned:Core at floor (SymbolicAnalysis 0.5.3)
Earlier checks (still relevant)
"0.5"floor; 0.5.0–0.5.2 are now also out of rangeSymbolics floor 7.39 → 7.40.0 (commit 82bab12)
With #1376 on master, the
downgrade-sublibraries / test (lib/ConvexOptimization)lane fails at the floors with 744 passed and 2 errored, atcore_tests.jl:1219and:1445. Both errors come from scalarizednorm(::Vector{Num})expanding tosqrt(sum(abs2, …))instead of staying anormatom, which Symbolics 7.40.0 fixes (Symbolics PR #1992). Codexgpt-6-lunabisected this on Julia 1.10.12:The
SymbolicUtilsentry4.46→4.46.6makes explicit the minimum that SymbolicAnalysis 0.5.3 already forces. Neither change adds or removes a dependency.What was NOT verified
downgrade-sublibrariesmatrix (workflow file intentionally untouched; it still skips SymbolicAnalysis).Compat note
Drops 0.3.x and 0.5.0–0.5.2. Treat as a compat-narrowing change; bump ConvexOptimization’s minor when releasing.
Closes #1380
Please ignore this draft until reviewed by @ChrisRackauckas.
Harness: Cursor Agent CLI 2026.09.26-dd393fe; model: auto; transcript: /home/crackauc/sandbox/agent-jobs/Optimization.jl/jobs/1380-cursor/log-fu2.txt on amdci2.julia.csail.mit.edu