← Back to Pull requests

[Merged by Bors] - feat(Analysis/Normed/Group/Pointwise): add infDist_inv_inv and infDist_inv #46644

Closed
mario-ullrich closed this pull request without merging on Nov 30, 2026 09:37 UTC
View on GitHub
mario-ullrich mario-ullrich commented on Nov 27, 2026 17:05 UTC
Author

Add infDist_inv_inv and infDist_inv, the infDist versions of infEDist_inv_inv and infEDist_inv. to_additive gives infDist_neg_neg and infDist_neg.

---

AI use: Claude Code (Claude Opus 5.5) noticed that these lemmas were missing, suggested them, compiled them against Mathlib, and prepared this PR and its description. I checked the proofs and can explain them.

Diff: 8 lines (+8 / -0) across 1 files Reviewer: felixpernegger Review duration: 3871m
All Vouch review confidence checks passed
Residual risk 0.03 = Change Risk (0.21) × (1 − Review Confidence (0.84)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.21 · 8 lines diff across 1 files
0.21
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.72 · 5 substantive comment(s)
0.72
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
84%
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.131
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
8 items
mario-ullrich mario-ullrich commented on Nov 27, 2026 17:06 UTC
Author

LLM-generated

github-actions[bot] github-actions[bot] commented on Nov 27, 2026 17:06 UTC
Bot

Welcome new contributor!


Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests.

We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the awaiting-author tag, or another reason described in the Lifecycle of a PR. The review dashboard has a dedicated webpage which shows whether your PR is on the review queue, and (if not), why.

If you haven't already done so, please come to Zulip and join the Lean community.
Thank you again for joining our community.
<!-- Sticky Pull Request CommentNew Contributor Welcome -->

github-actions[bot] github-actions[bot] commented on Nov 27, 2026 17:07 UTC
Bot

PR summary 9eb7ce7a96

Import changes for modified files

No significant changes to the import graph

<details><summary>Import changes for all files</summary>

|Files|Import difference|
|-|-|

</details>

---

<details><summary>

Declarations diff (regex)

</summary>

+ infDist_inv
+ infDist_inv_inv
<details>
<summary>You can run this locally as follows</summary>

## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

</details>

The doc-module for scripts/pr_summary/declarations_diff.sh in the mathlib-ci repository contains some details about this script.

</details>

<!-- DECLS_DIFF_LEAN_BEGIN -->

Declarations diff (Lean)

✅ Lean-aware diff — post-build, computed from the Lean environment (commit 9eb7ce7).

+4 new declarations
−0 removed declarations

+infDist_inv
+infDist_inv_inv
+infDist_neg
+infDist_neg_neg

<!-- DECLS_DIFF_LEAN_END -->

---

No changes to strong technical debt.
No changes to weak technical debt.

Current commit 9eb7ce7a96
Reference commit 6a33235c97

This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:

git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary

The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

felixpernegger felixpernegger approved these changes on Nov 27, 2026 17:27 UTC
Approved Reviewer

maintainer merge

github-actions[bot] github-actions[bot] commented on Nov 27, 2026 17:27 UTC
Bot

🚀 Pull request has been placed on the maintainer queue by felixpernegger.

riccardobrasca riccardobrasca commented on Nov 30, 2026 09:23 UTC
Reviewer

Thanks!

bors merge

mathlib-bors[bot] mathlib-bors[bot] commented on Nov 30, 2026 09:37 UTC
Bot
Assignees
mario-ullrich mario-ullrich
Labels
risk: low confidence: 84% 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: 21.1% (LOW) · Higher = larger blast radius
21.1%
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: 84% · Lower = rushed or shallow review
84%
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: 3.4% · Safe to merge
3.4%