Skip to content

Repair the eq:Kalman102 reference in cross_product_trick - #80

Merged
mmcky merged 2 commits into
mainfrom
fix/cross-product-trick-eq-role
Nov 23, 2026
Merged

mmcky merged 2 commits into
mainfrom
fix/cross-product-trick-eq-role

Conversation

@mmcky

@mmcky mmcky commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

In lectures/cross_product_trick.md line 133, the {eq} role ends with a brace instead of a backtick ({eq}`eq:Kalman102}), so the reference to the equation doesn't render. The label is defined at line 121. This ends the role with a backtick.

Repairing the role exposed a second problem: the label was written after a bare align* environment, which MyST doesn't label, so the page showed "(eq:Kalman102)" as text and the reference had nothing to resolve to. The second commit writes the equation as $$ \begin{aligned} … \end{aligned} $$ (eq:Kalman102), as the other lectures do, which numbers it and lets the reference resolve.

lecture-dp carries an identical copy of this lecture; this is the same change as QuantEcon/lecture-python.myst#1141.

This changes lecture content, so it needs a person's review before it merges.

Found while validating a build of lecture-dp from QuantEcon/lectures.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMYi9AZHg29XQAH3w7N

Copilot AI adaptive review requested due to automatic review settings November 22, 2026 10:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Because the change affects published lecture content and equation cross-reference rendering, human review of the built output and source parity is still required despite automated verification of the delimiter fix.

No open issues 🎉

What changed in this PR

Repairs the malformed MyST equation reference in the cross-product Kalman filtering lecture so the link to eq:Kalman102 renders correctly.

Changes:

  • Replaces the closing brace with a backtick in the {eq} role.
  • Preserves the existing equation label and surrounding lecture content.
File Description
lectures/​cross_product_trick.md Corrects the malformed eq:Kalman102 equation reference syntax.

Review effort: Lite (adaptive)

mmcky and others added 2 commits November 23, 2026 08:51
The {eq} role ended with a brace instead of a backtick, so the
reference to eq:Kalman102 didn't render. The label is defined a few
lines above.

Found while validating a build of the lecture from QuantEcon/lectures.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMZoSvoQTbzkdmZiMnd
The label was written after a bare align* environment, which MyST
does not label, so it showed on the page as the text "(eq:Kalman102)"
and, once the role was repaired, the reference had nothing to find.
Writing the equation as $$ \begin{aligned} ... \end{aligned} $$
(eq:Kalman102), as the other lectures do, numbers it and lets the
reference resolve.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMYi9AZHg29XQAH3w7N
@mmcky
mmcky force-pushed the fix/cross-product-trick-eq-role branch from db84d17 to b536fa3 Compare November 22, 2026 21:51
@mmcky

mmcky commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor Author

Full validation at b536fa3 (rebased onto main 5aaa712; main has since moved only by linkcheck.yml).

  • Runs: a fresh cache.yml build that executes every lecture (45074458890), then ci.yml for the HTML (45079732574). They're compared with same-day builds of main at 5aaa712 (45012310197 and 45015664442). All passed.
  • Logs: the same 16 warning and error lines on both sides; none new, none gone. The warning that failed this PR's first head, "equation not found: eq:Kalman102", is gone.
  • Pages (57): the only prose changes are in cross_product_trick and in status (execution times). In cross_product_trick, the Kalman filtering formulas are now one numbered equation, (27.1), with both lines under one number, and the sentence at line 133 links to it (#equation-eq-kalman102). Before, it showed the raw {eq} text and a literal "(eq:Kalman102)".
  • Execution noise: 29 other pages differ only in cell outputs or figures (timings, unseeded draws, redrawn figures). All 29 also differ between this build and Point discrete_dp's optimal growth links at os_stochastic #79's build, which share every source except their own lecture, so none comes from this change. No stderr, output warning or link changed anywhere else.

mmcky added a commit to QuantEcon/lecture-python.myst that referenced this pull request Nov 23, 2026
cross_product_trick's reference to eq:Kalman102 had a typo, a closing brace where the backtick should be ({eq}`eq:Kalman102}), so the build reported "equation not found" and the reader saw broken markup. This corrects the role, and turns the labelled bare align* block into a $$ \begin{aligned} … \end{aligned} $$ (eq:Kalman102) block, so the equation is numbered (86.1) and the reference links to it. The change is byte-identical to lecture-dp's copy of the lecture (QuantEcon/lecture-dp#80).

Fully validated: fresh no-cache builds of this branch and of main, compared page by page. The warning is gone; prose changes only in cross_product_trick and the build-status page; the other pages that differ, differ only in run-to-run outputs.

Reviewed by @mmcky on GitHub, who approved it for merge in the infrastructure organiser session, after the organiser's fresh review of the identical change.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@mmcky
mmcky merged commit 4020323 into main Nov 23, 2026
3 checks passed
@mmcky
mmcky deleted the fix/cross-product-trick-eq-role branch November 23, 2026 00:22
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.

2 participants