[action-translation] resync: lagrangian_lqdp.md#120
Conversation
✅ Deploy Preview for astonishing-narwhal-a8fc64 ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Pull request overview
This PR forward-resyncs the Chinese translation of lagrangian_lqdp.md to match the current upstream source lecture, including substantive code-block logic changes (discounting via beta, Schur sorting / stability validation) rather than only textual translation updates.
Changes:
- Added/updated MyST translation front-matter (title + section heading mappings).
- Aligned the “Application” section’s code to use
betain LQ construction, discount-eliminating transforms (A_bar,B_bar), and tolerance-based stable eigenvalue selection with astable_dimsanity check. - Added translation sync state metadata file under
.translate/state/.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
lectures/lagrangian_lqdp.md |
Whole-document resync of the translated lecture, including updated math formatting and revised numerical code paths for the discounted LQ example. |
.translate/state/lagrangian_lqdp.md.yml |
Records the upstream source SHA and resync metadata for the translation automation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| $$ | ||
| L\ \begin{pmatrix}x_{t+1}\cr \mu_{t+1}\cr\end{pmatrix}\ = \ N\ \begin{pmatrix}x_t\cr \mu_t\cr\end{pmatrix}\ | ||
| L\ \begin{bmatrix}x_{t+1}\cr \mu_{t+1}\cr\end{bmatrix}\ = \ N\ \begin{bmatrix}x_t\cr \mu_t\cr\end{bmatrix}\ |
| $$ | ||
| L = \ \begin{pmatrix}I & BQ^{-1} B^\prime \cr 0 & A^\prime\cr\end{pmatrix}, \quad N = \ | ||
| \begin{pmatrix}A & 0\cr -R & I\cr\end{pmatrix}. | ||
| L = \ \begin{bmatrix}I & BQ^{-1} B^\prime \cr 0 & A^\prime\cr\end{bmatrix}, \quad N = \ |
| raise ValueError( | ||
| f"预期有{n}个模小于1的稳定特征值,但实际找到{stable_dim}个。" | ||
| ) |
…anslation#116) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
✅ Translation Quality ReviewVerdict: PASS | Model: claude-sonnet-5 | Date: 2026-07-19 📝 Translation Quality
Summary: This is a high-quality, faithful translation of a technically dense document on Lagrangian methods for LQ control. Mathematical content, equation labels, and code blocks are all preserved correctly, and terminology aligns well with the provided glossary and prior lecture conventions. Minor stylistic refinements could improve a few sentences for closer fidelity to nuanced phrasing, but no accuracy or syntax errors were found. Highly accurate rendering of complex mathematical derivations and equation references throughout the resynced document Consistent and correct use of established terminology (辛矩阵, 不变子空间, 黎卡提方程, 协态, etc.) Code blocks, LaTeX equations, and MyST directives are all preserved correctly with no syntax errors Natural academic Chinese phrasing that reads fluently while maintaining fidelity to the technical content Suggestions:
🔍 Diff Quality
Summary: The target document has been correctly resynced to match the current source structure, content, and code cells, with an appropriate translation heading map added. This review was generated automatically by action-translation review mode. |
Forward Resync: lagrangian_lqdp.md
Source: QuantEcon/lecture-python.myst — lectures/lagrangian_lqdp.md
Source commit:
78030a3This PR resyncs the translation to match the current source document.
Reason: Several code blocks differ substantively between source and target: the source defines beta upfront and uses it in the initial LQ construction and construct_LNM/stable_solution functions (with a tolerance-based eigenvalue sorting and an explicit ValueError check on stable_dim), while the target defers beta definition to the 'Discounted Problems' section, uses a different function signature for construct_LNM (using lq.n/lq.k), and implements eigenvalue sorting via a stateful list-based approach without the stable_dim validation. These are functional differences in the code logic, not just stylistic/translation differences, requiring re-translation/re-alignment of source and target code.
Changes
Whole-file resync applied. The entire document was resynced in a single pass.
Created by action-translation forward resync