← Back to Pull requests

doc: fix docstrings that disagree with their definitions #1242

Closed
unknown closed this pull request without merging on Nov 19, 2026 10:12 UTC
View on GitHub
unknown unknown commented on Nov 18, 2026 04:55 UTC
Author

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. By Satisfies.nabla_iff_forall, ∇[op]φs holds at w iff ∀ 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 is xs.drop i, so it is the suffix starting there (splitLastTake is the prefix).
4. bddLang_kstar (same file): the factors are in lts.bddLang r r r, and BddExec bounds interior states by s.val < bound, so their interior states are < r, not ≤ r.
5. NA.FinAcc.preimage (Computability/Automata/NA/Preimage.lean): the result has type FinAcc State Symbol', so it is an NA on Symbol'.
6. LTS.τClosure_subset (Foundations/Semantics/LTS/HasTau.lean): the statement is S ⊆ lts.τClosure S, which is not a monotonicity statement.
7. Bisimilarity.follow_snd (Foundations/Semantics/LTS/Bisimulation.lean): takes lts₂.Tr s₂ μ s₂', so it follows the second state; the docstring was copied from follow_fst. In the same file, the docstrings of IsHomWeakBisimulation, HomWeakBisimilarity and 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.

Diff: 216 lines (+162 / -54) across 2 files Reviewer: ctchou Review duration: 1756m
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
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
56%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 56.8% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 36.6% (MEDIUM) · Higher = larger blast radius
36.6%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 56.8% · Lower = rushed or shallow review
56.8%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 15.8% · Safe to merge
15.8%