Skip to content

[blocked on Symbolics release] Update latexify references for Symbolics#2042 - #5250

Closed
ChrisRackauckas-Claude wants to merge 3 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/2-symbolics-2042-latexify-refs
Closed

ChrisRackauckas-Claude wants to merge 3 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/2-symbolics-2042-latexify-refs

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Please ignore until reviewed by @ChrisRackauckas.

Symbolics.jl master merged JuliaSymbolics/Symbolics.jl#2042 (fixes JuliaSymbolics/Symbolics.jl#1979), which stops leaking mult_symbol between \mathrm{d} and the derivative numerator. This updates the only existing ModelingToolkitBase latexify reference that pinned the old form (lib/ModelingToolkitBase/test/latexify/50.tex line 12: \mathrm{d} \cdot … → \mathrm{d}…). The \cdot between ordinary factors (P.k · P.u) is unchanged. Compat is not bumped — these references will not pass against the currently registered Symbolics (7.42.0 still emits \mathrm{d} \cdot); coordinate with the Symbolics release.

Links: Symbolics#2042, Symbolics#1979, maintainer follow-up request on the Symbolics PR.

Verification

Scratch env with Symbolics master Pkg.develop'd (clone at job scratch; local depot), Julia 1.12:

export TMPDIR=.../jobs/2-cursor/tmp
export JULIA_DEPOT_PATH=.../jobs/2-cursor/scratch/julia-depot
cd lib/ModelingToolkitBase/test
julia +1.12 --project=.../scratch/mtk-latexify-env -e 'include("latexify.jl")'

Fail before (Symbolics master, old 50.tex) — only content change on the derivative line:

┌ Info: Reference Test for "50.tex" failed:
│ - DIFF ------------------------
│ - \\frac{\\mathrm{d} \\cdot \\mathrm{\\mathtt{P.x}}\\left( t \\right)}{\\mathrm{d}t} = ...
│ + \\frac{\\mathrm{d}\\mathrm{\\mathtt{P.x}}\\left( t \\right)}{\\mathrm{d}t} = ...
ERROR: LoadError: To update the reference images either run the tests interactively...
in expression starting at .../test/latexify.jl:68

Pass after (same env, updated 50.tex):

ALL LATEXIFY TESTS OK

Registered Symbolics still has the old form (separate probe env, Symbolics 7.42.0):

registered Symbolics version: 7.42.0
D(x) default: \frac{\mathrm{d} ~ x\left( t \right)}{\mathrm{d}t}
D(x) cdot: \frac{\mathrm{d} \cdot x\left( t \right)}{\mathrm{d}t}

typos on the changed .tex file: clean. No Julia source edits (Runic N/A).

Not verified

  • Full ModelingToolkitBase / ModelingToolkit CI groups
  • Docs build / visual MathJax or PDF rendering of the new LaTeX
  • Latexify suite against registered Symbolics after this ref update (expected to fail on 50.tex until Symbolics releases Bump version to create release #2042)
  • Restoring missing latexify/10.tex–40.tex (see below)

Reviewer should push back on

  • Whether to also restore 10.tex–40.tex, which are referenced by latexify.jl but were lost in the ModelingToolkitBase split (only 50.tex remained tracked). Against Symbolics master, ReferenceTests auto-creates them; vs the pre-split historical files their diffs include unrelated ~ mult_symbol / term-order drift, so they were not added here to keep the PR to the intended #2042 change only.
  • Merging before a Symbolics release that includes Bump version to create release #2042 (this PR is intentionally blocked on that).

Please ignore this draft until reviewed by @ChrisRackauckas.

Risk assessment

  • Risk: low (test references only), but blocked on a Symbolics release.
  • Blast radius: ModelingToolkitBase latexify reference .tex files only. Each diff is the intended rendering change from Fix latexify mult_symbol leak in derivatives and integrals (#1979) JuliaSymbolics/Symbolics.jl#2042 (no \cdot after \mathrm{d}, plus a brace fix). These references fail with the currently registered Symbolics. They pass with Symbolics master.
  • Independent review: Codex CLI (gpt-6-astra) rated it low, high confidence, verdict MERGE.
  • Merge: needs human coordination: merge after Symbolics releases Bump version to create release #2042, together with a Symbolics compat bump in ModelingToolkitBase if needed.

Harness: Cursor Agent CLI 2026.10.01-14929f9; model: auto; transcript: /home/crackauc/sandbox/agent-jobs/MTK-ibsym/jobs/2-cursor/log.txt on amdci2.julia.csail.mit.edu
Risk assessment and independent review added by the ib-sym head: 🤖 Claude Code (model: claude-opus-5-5[1m]), https://claude.ai/code/session_01BcEMkaeynVZ6Ghq3UUibh7

Symbolics master no longer inserts mult_symbol between \mathrm{d} and the
numerator; drop the leaked \cdot in the AnalysisPoint reference so the
suite matches the post-SciML#2042 output.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.10.01-14929f9
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/MTK-ibsym/jobs/2-cursor/log.txt on amdci2.julia.csail.mit.edu
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin CLI 3000.11.3 (conflict resolution), Claude Code 2.1.285 (orchestration)
Agent-Model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium
Agent-Session: local Claude session 3c311569-dda6-4687-bc9f-65febb212c33 (fleet master); Devin log /Users/chrisrackauckas/sandbox/master/fusion-fixes/SciML_ModelingToolkit.jl-5250/log.txt
@ChrisRackauckas

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

Merged the default branch into this PR (clean merge, no conflicts; head 0b5919c) so CI runs on current master.


🤖 Posted by an AI agent — harness: Devin CLI 3000.11.3 (merge), Claude Code 2.1.285 (posting) · model: fusion-claude-opus-5-5-high-sidekick-swe-2-medium
Conversation: local Claude session 3c311569-dda6-4687-bc9f-65febb212c33 (fleet master)

@ChrisRackauckas

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

Closing as superseded by #5281 (merged), which includes this change. This PR's intermediate latexify/50.tex reference (for Symbolics#2042) is superseded by the final reference that #5281 put on master (blob fed68f5, the same as the head of the stacked #5263).


🤖 Posted by an AI agent — harness: Claude Code 2.1.301 · model: claude-opus-5-5
Conversation: https://claude.ai/code/session_01VZjwf7Ux9YtTzwHGHMqnsq

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.

latexify_derivatives leaks mult_symbol into the derivative numerator

3 participants