doc: fix docstrings that disagree with their definitions #1242
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.37) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 216 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.322
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1242"
general
weight: 0.35
ctchou
Docstring-only changes. Each docstring below said something different from the definition or statement it documents.
1.
Modal.HasNabla.nabla(Foundations/Logic/Operators.lean): said theφᵢare valid at all respective related states. BySatisfies.nabla_iff_forall,∇[op]φsholds atwiff∀ ws, m.r op w ws → ∃ i, ⇓Modal[m,(ws i) ⊨ (φs i)], so for every related tuple at least oneφᵢholds at its respective state.2.
Frame.PreservesMap(Foundations/Semantics/Frame/Basic.lean): "each component" → "some component". The definition is∀ w ws, f.r op w ws → P w → ∃ i, Ps i (ws i).3.
splitLastDrop(Computability/Languages/KleeneAlgorithm.lean): said it returns a prefix ending at the last occurrence. The body isxs.drop i, so it is the suffix starting there (splitLastTakeis the prefix).4.
bddLang_kstar(same file): the factors are inlts.bddLang r r r, andBddExecbounds interior states bys.val < bound, so their interior states are< r, not≤ r.5.
NA.FinAcc.preimage(Computability/Automata/NA/Preimage.lean): the result has typeFinAcc State Symbol', so it is an NA onSymbol'.6.
LTS.τClosure_subset(Foundations/Semantics/LTS/HasTau.lean): the statement isS ⊆ lts.τClosure S, which is not a monotonicity statement.7.
Bisimilarity.follow_snd(Foundations/Semantics/LTS/Bisimulation.lean): takeslts₂.Tr s₂ μ s₂', so it follows the second state; the docstring was copied fromfollow_fst. In the same file, the docstrings ofIsHomWeakBisimulation,HomWeakBisimilarityand the≈[lts]notation were copied from their strong counterparts and did not say "weak".Prepared with an AI agent (Claude); each change checked against the definition it documents.