fix(STIR/WHIR): correct theorem assumptions and clear non-sorry warnings#377
fix(STIR/WHIR): correct theorem assumptions and clear non-sorry warnings#377
Conversation
Tighten STIR/WHIR theorem signatures and quantifier placement to avoid vacuous or over-strong statements, and remove warning-only lint issues while leaving intentional sorry declarations untouched. Made-with: Cursor
🤖 Gemini PR SummaryTheorem Refinements & Probability Semantics
Assumption Generalization & Logic
Code Quality & Maintenance
Analysis of Changes
Lean Declarations ✏️ **Affected:** 1 declaration(s) (line number changed)
🎨 **Style Guide Adherence**The following code changes violate the provided style guide: ArkLib/ProofSystem/Stir/Combine.lean
ArkLib/ProofSystem/Stir/Folding.lean
ArkLib/ProofSystem/Stir/MainThm.lean
ArkLib/ProofSystem/Stir/ProximityGap.lean
ArkLib/ProofSystem/Stir/Quotienting.lean
ArkLib/ProofSystem/Whir/BlockRelDistance.lean
ArkLib/ProofSystem/Whir/Folding.lean
ArkLib/ProofSystem/Whir/MutualCorrAgreement.lean
ArkLib/ProofSystem/Whir/OutofDomainSmpl.lean
ArkLib/ProofSystem/Whir/RBRSoundness.lean
📄 **Per-File Summaries**
Last updated: 2026-02-27 01:55 UTC. |
|
For Folding and subsequently RBRSoundness, this should be replaced by the generic folding (from FRI/follow up) so it's probably ok to leave these out of this PR. |
|
/review External: Internal: Comments: |
🤖 AI Review (with external context)🤖 AI ReviewOverall Summary: 1. TL;DRThe mathematical reformulation of the STIR/WHIR protocols in this PR is excellent, correctly addressing critical quantifier scoping bugs, edge cases in geometric series evaluations, and initial distance hypotheses. However, the presence of numerous unfinished proofs ( 2. Checklist Coverage
3. Critical MisformalizationsNone introduced. In fact, this PR successfully resolves a critical existing misformalization: in 4. Key Lean 4 / Mathlib Issues
5. Overall VerdictChanges Requested 📄 **Review for `ArkLib/ProofSystem/Stir/Combine.lean`**Verdict: Changes Requested Checklist Verification:
Critical Misformalizations: Lean 4 / Mathlib Issues:
Nitpicks:
📄 **Review for `ArkLib/ProofSystem/Stir/Folding.lean`**Verdict: Changes Requested Checklist Verification:
Critical Misformalizations: Lean 4 / Mathlib Issues:
Nitpicks: 📄 **Review for `ArkLib/ProofSystem/Stir/MainThm.lean`**Verdict: Changes Requested Checklist Verification:
Critical Misformalizations: Lean 4 / Mathlib Issues:
Nitpicks: 📄 **Review for `ArkLib/ProofSystem/Stir/ProximityGap.lean`**Verdict: Changes Requested Checklist Verification:
Critical Misformalizations:
Lean 4 / Mathlib Issues:
Nitpicks:
📄 **Review for `ArkLib/ProofSystem/Stir/Quotienting.lean`**Verdict: Changes Requested Checklist Verification:
Critical Misformalizations: Lean 4 / Mathlib Issues:
Nitpicks:
📄 **Review for `ArkLib/ProofSystem/Whir/BlockRelDistance.lean`**Verdict: Changes Requested Checklist Verification:
Critical Misformalizations: Lean 4 / Mathlib Issues:
Nitpicks:
📄 **Review for `ArkLib/ProofSystem/Whir/Folding.lean`**Verdict: Changes Requested Checklist Verification:
Critical Misformalizations:
Lean 4 / Mathlib Issues:
Nitpicks:
📄 **Review for `ArkLib/ProofSystem/Whir/MutualCorrAgreement.lean`**Verdict: Changes Requested Checklist Verification:
Critical Misformalizations: Lean 4 / Mathlib Issues:
Nitpicks:
📄 **Review for `ArkLib/ProofSystem/Whir/OutofDomainSmpl.lean`**Verdict: Changes Requested Checklist Verification:
Critical Misformalizations: Lean 4 / Mathlib Issues:
Nitpicks: 📄 **Review for `ArkLib/ProofSystem/Whir/RBRSoundness.lean`**Verdict: Changes Requested Checklist Verification:
Critical Misformalizations:
Lean 4 / Mathlib Issues:
Nitpicks:
|
|
/review External: Internal: Comments: |
Summary
sorrydeclarations untouchedTest plan
lake build ArkLib.ProofSystem.Stir.MainThm ArkLib.ProofSystem.Stir.Folding ArkLib.ProofSystem.Stir.Quotienting ArkLib.ProofSystem.Stir.ProximityGap ArkLib.ProofSystem.Stir.ProximityBound ArkLib.ProofSystem.Stir.OutOfDomSmpl ArkLib.ProofSystem.Stir.Combine ArkLib.ProofSystem.Whir.BlockRelDistance ArkLib.ProofSystem.Whir.OutofDomainSmpl ArkLib.ProofSystem.Whir.RBRSoundness ArkLib.ProofSystem.Whir.ProximityGen ArkLib.ProofSystem.Whir.MutualCorrAgreement ArkLib.ProofSystem.Whir.Foldingdeclaration uses sorryMade with Cursor