Design, audit, and rewrite homework problems for PHYS130B lecture notes. Enforces formatting rules, quality principles, and AI-era pedagogy. Use when creating new problems, reviewing existing homework, or fixing formatting issues.
Unified reference for designing, auditing, and formatting homework problems in PHYS130B quantum mechanics lecture notes. Consolidates rules from content-style.md, teaching-philosophy.md, prompt-templates.md, and physics-conventions.md.
science-reviewer.notebook-writerlecture-content.LLMs solve undergraduate physics homework at or above student level. Students work with AI on homework and are graded on submission, not correctness. The same problems appear on the final exam (in-person, no AI). Homework must therefore build internalized understanding — worldview (世界观) and method (方法论) — not just procedural skill.
Homework must have a gradient from easy to hard and from close to the lecture to far from the lecture. Not every problem should be creative or challenging — some should directly exercise the skills and knowledge taught in class.
Required distribution for a typical 7–8 problem set:
The first 2–3 problems should be approachable by any student who attended the lecture. The last 1–2 problems can be challenging. Never make all problems hard or all problems far from the lecture — students need to practice the basics before stretching.
New anti-pattern (§3.6): All problems too far from lecture. If every problem requires knowledge or context beyond what the lecture teaches, students cannot practice the core material. At least 2–3 problems must be solvable using only the lecture content and standard techniques.
Every problem should satisfy at least one of these six design principles. Problems that satisfy none are likely trivial or duplicative.
Apply a concept or method to a new context not shown in lecture.
The lecture proves a theorem for spin-1/2; the homework asks the student to work it out for spin-1. The lecture derives the density matrix for a thermal state; the homework asks for a different ensemble. The student must adapt, not copy.
Reverse the logical direction of a lecture derivation.
The lecture derives the output from the input; the homework gives the output and asks "what input produces this?" Example: lecture shows how to compute expectation values given a state; homework gives expectation values and asks to reconstruct the state.
Explore what happens at boundaries, special values, or limiting regimes.
What happens when the coupling goes to zero? When two energy levels become degenerate? When the system size goes to infinity? Edge cases reveal whether the student truly understands the structure or just memorized the generic formula.
Compare two methods, representations, or approximations on the same problem.
Solve the same problem in the Schrödinger and Heisenberg pictures. Compare exact and perturbative results. Use both position and momentum representations. This builds judgment about when to use which tool.
Link the current topic to a different part of the course or to a different area of physics.
Show that a quantum result reduces to the classical limit. Connect an entanglement measure to a thermodynamic quantity. These problems build the knowledge graph and reinforce worldview.
Design a problem where a common wrong approach gives a specific wrong answer.
The student must recognize why the naive method fails and apply the correct one. Example: using non-degenerate perturbation theory on a degenerate level gives a divergent answer — the student must recognize and switch to degenerate perturbation theory.
A problem that asks the student to "show that [exact result from lecture]" using the same method taught in lecture. The student (or AI) can copy the derivation verbatim. Fix: change the system, the method, or the direction (inversion).
"Fill in the analogy table" or "list the properties of X" when the answer is a direct copy of a table or list already in the lecture notes. Fix: ask the student to use the table to solve a problem, or to extend it to a case not covered.
Open-ended prompts with no concrete physics task. "Explain the significance of entanglement in 3 sentences." These are trivially answered by AI and test nothing on the exam. Fix: replace with a concrete conceptual question with a definite answer.
Long algebra or numerical calculations that test patience, not understanding. If the main challenge is bookkeeping rather than physics, the problem is not exam-worthy. Fix: simplify the system or break into guided sub-parts.
Problems requiring an unmotivated clever trick that students cannot be expected to discover. Fix: provide the trick as a hint, or restructure as guided sub-parts.
Every problem requires context, techniques, or physical systems not discussed in the lecture. Students who understood the lecture perfectly still cannot start the homework without external research. Fix: ensure the first 2–3 problems directly exercise lecture content — apply a formula, verify a property, compute a specific case.
Every problem starts with a bold number and short title (1–5 words), followed by the task on the same line:
**N. Title.** Task sentence describing what to do...
Problem voice: Never use “a student” / “the student” in problem wording. Use imperative or impersonal tasks, or one for generic framing (“One might claim…,” “Suppose one measures…”). See content-style.md § Homework Design.
Rules:
**N. Title.**** (inline, not standalone).**N.** Show that....$...$, \(...\), or LaTeX inside **...**. All math goes in the task text after the closing **.**Problem.**, ### headings, or parenthetical titles like (Topic).(a), (b), ... starts on its own line with a blank line before it.(a) states the task directly, never **(a) Title.**.(a).$$...$$ blocks MUST have blank lines above and below.$$...$$ block.\begin{split}...\end{split} inside $$...$$.align or aligned environments.HW x.y.z.k (e.g., HW 6.1.2.3).These are frequently introduced during automated editing. Check for all of them after any homework edit.
| Error | Wrong | Right |
|---|---|---|
Trailing ** | **3. Title.** text ** | **3. Title.** text |
Missing $$ blank lines | text\n$$\nE=mc^2\n$$\ntext | text\n\n$$\nE=mc^2\n$$\n\ntext |
| Inline sub-parts | text. (a) Find X. (b) Find Y. | text.\n\n(a) Find X.\n\n(b) Find Y. |
| Lowercase title | **2. spin precession.** | **2. Spin precession.** |
| LaTeX in bold title | **5. Limit ($\lambda$).** | **5. Short-wavelength limit.** |
| Mixed bullets | - X\n* Y\n- Z | - X\n- Y\n- Z |
| “A student” in task text | A student claims that… | One might claim that… (or impersonal setup) |
When creating or revising homework for a subsection notebook:
science-reviewer or note in feedback.md.python3 .claude/scripts/validate_project.py --scope <stem> and python3 .claude/scripts/audit_homework_format.py.For a typical subsection with 7–8 problems, arrange from easy/near to hard/far:
| Position | Difficulty | Distance from lecture | Type |
|---|---|---|---|
| P1–P2 | Easy | Near (direct application) | Apply a definition or formula from lecture to a concrete case; verify a property; compute a specific quantity |
| P3–P4 | Medium | Moderate (same topic, new angle) | Transfer to a new system; comparison of two methods; guided "show that" with sub-parts |
| P5–P6 | Medium–Hard | Moderate–Far | Inversion; edge case / limit; misconception testing |
| P7–P8 | Hard | Far (connection / extension) | Connection to other areas of physics; advanced application; open-ended conceptual challenge |
Key constraint: The first 2–3 problems must be solvable using only the lecture content. Not every subsection needs all types — match the problems to what the lecture actually teaches. If a lecture is computation-heavy, more "apply the method" problems are appropriate; if a lecture is conceptual, more "explain why" problems fit.
When reviewing existing homework:
**N. Title.** Task... format?$$?** or other formatting errors (§5)?After editing homework cells, run:
# Single notebook
python3 .claude/skills/notebook-writer/scripts/safe_edit.py validate <path.ipynb>
# Full homework format audit
python3 .claude/scripts/audit_homework_format.py
# Scoped validation
python3 .claude/scripts/validate_project.py --scope <stem>
The validators check: homework line format (bold titles, sub-parts), $$ spacing, banned patterns, notation consistency, and control character corruption.
Follow rules/physics-conventions.md:
\boldsymbol{v} (not \vec{v})\hat{H}, \hat{p}\mathrm{i}; Euler: \mathrm{e}; differential: \mathrm{d}\vert\psi\rangle (use \vert, not |)\cdot only between vectors, never between scalars\rho, \alpha, \beta, \frac — always use raw strings or double backslashesrules/content-style.md § Homework Design (canonical formatting rules)rules/teaching-philosophy.md (course strategy, role of homework)rules/physics-conventions.md (LaTeX notation)rules/prompt-templates.md (checklist for new notebooks)rules/validation.md (which validators to run)rules/notebook-editing.md (safe JSON editing)skills/lecture-content/SKILL.md (content review context)skills/science-reviewer/SKILL.md (physics verification)_refs/ (project root): Professor's original lecture notes and HOMEWORK.md (original homework problems). Read the relevant _refs/ file before designing problems to ensure alignment with the professor's presentation and notation. See CLAUDE.md § "Reference materials" for the chapter-to-file mapping.