Lemma 2 (proof): iff
ProvedConformalizedQuantileRegression.inflated_quantile_iffLet , let be real numbers and let . Write for the empirical quantile function of and for that of . Then
This deterministic identity reduces the inflated quantile of values to the plain quantile of values, which is how Lemma 2 follows from Lemma 1.
Formalization Note When the left-hand quantile is (the infimum of the empty set in the extended reals), and the left-hand side holds trivially; the paper's proof covers this case only through its formula with .
import Mathlib import Definitions.Def_ConformalizedQuantileRegression_Basic open MeasureTheory ProbabilityTheory
namespace ConformalizedQuantileRegression
theorem inflated_quantile_iff {n : ℕ} (hn : 0 < n) (z : Fin (n + 1) → ℝ) (α : ℝ)
(hα0 : 0 < α) (hα1 : α < 1) :
(z (Fin.last n) : EReal) ≤ empQuantile (Finset.univ.map Fin.castSuccEmb) z ((1 + 1 / (n : ℝ)) * α) ↔
(z (Fin.last n) : EReal) ≤ empQuantile Finset.univ z α := by sorry
end ConformalizedQuantileRegressionRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix a natural number with . Let be arbitrary real numbers, with no distributional, exchangeability or distinctness assumptions and ties allowed. Fix a real number with
Empirical quantile. For a finite nonempty index set and a level , the empirical CDF of the values is
Here each index is counted separately, so repeated values count with multiplicity.
The empirical quantile at level is the infimum, taken in the extended reals , of the real numbers at which this CDF reaches :
By the convention for an empty infimum, whenever no real qualifies. This happens exactly when .
The two quantiles compared. The statement uses two index sets:
- , the first values, which exclude the last value ;
- , all values.
Claim. The theorem asserts the equivalence
Both inequalities are comparisons in the extended reals, with regarded as an extended real.
On the left, the level is the inflated level , applied to the first values only. On the right, the level is the uninflated , applied to all values including itself.
Edge cases the quantifiers include.
- Inflated level above 1. If , the inflated level exceeds . Then the left-hand quantile is and the left-hand inequality holds automatically.
- Inflated level exactly 1. If , the inflated level equals exactly . The left-hand quantile is then .
- Right-hand level. The right-hand level always lies strictly between and , so the right-hand quantile is always a real number.
- No . Because both levels are strictly positive, neither quantile can be .
- Smallest case. The case is allowed. The left side then uses the single value at level .
- Level multiplies , not . The inflation factor multiplies itself.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.