Repository navigation
Add the chain rule for surprisal with many variables - #195
Conversation
The notes stated the many-variable chain rule only for entropy, while the two-variable rule is stated first for surprisal and the entropy rule follows as its expectation. This adds the n-variable surprisal rule (by induction on the two-variable one) with a worked example on the chain of noisy copies, and proves the n-variable entropy rule as its expectation, mirroring the two-variable pair. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019xfc9ofsSt91XvhD4dPZwm
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Claude finished review — View run I fetched PR #195 live just now with VerdictReady for merge Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "18381583c0a9f9af00996deaa4296cdf62f75b1e",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "Re-read the diff for the new surprisal chain rule theorem, its worked example, and the rewritten entropy chain rule proof; content is unchanged since the prior clean round and the merge of main adds nothing to these files.",
"holistic_assessment": "The change stays scoped to one theorem, one example and one rewritten proof, uses the shared semantic macros, and keeps results defined before use, so there are no integration or regression concerns."
}Reviewed commit: 1838158 |
Built to branch |
|
Annotation dispositions for head 1838158:
Cross-harness review was waived for this head. No reviewer from a different harness could run in this session: the CLIs agy, codex, cursor-agent, gemini and opencode aren't installed, and the session's permission policy blocked the OpenCode Go API call. The Claude review is clean on 1838158, and all CI checks pass. Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
|
Cross-harness review of head 1838158: OpenCode Go, model The reviewer found no errors in the math, the numeric example or the cross-references. It raised one wording point and marked it
Rebut. The proof already opens with "With probability Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
Requested by Ezra · project thread
Why
The notes state the many-variable chain rule only for entropy (
#thm-entropy-chain-rule-n). For two variables, the surprisal rule comes first and the entropy rule follows as its expectation, so the many-variable case should follow the same pattern.What
In the Chain rules section of
entropy.qmd:#thm-surprisal-chain-rule-n:#thm-surprisal-chain-rule.#exm-surprisal-chain-rule-n-copies: the same chain of noisy copies as the entropy example, evaluated at#thm-entropy-chain-rule-n: the statement is unchanged. The proof now takes the expectation of the new surprisal rule, as the two-variable entropy proof does, in place of its own induction.No anchors were renamed. The theorems and examples after these in the section move up one number.
Checks
I rendered
entropy.qmdto HTML and read the built page. All three divs render, the R chunk printssum = joint = 3.643856, and there are no unresolved cross-references.Generated by Claude Code