Skip to content

Commit e07d391

Browse files
committed
chore: golf using improved finiteness
1 parent eea44ed commit e07d391

File tree

1 file changed

+13
-21
lines changed
  • Carleson/ToMathlib/RealInterpolation

1 file changed

+13
-21
lines changed

Carleson/ToMathlib/RealInterpolation/Main.lean

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -371,8 +371,8 @@ lemma estimate_norm_rpow_range_operator'
371371
have := hp₁p.ne_top
372372
have p_pos : 0 < p := lt_trans hp₀ hp₀p
373373
repeat rw [lintegral_rw₂ (Filter.EventuallyEq.refl _ _) power_aux_3]
374-
nth_rw 2 [← lintegral_const_mul']; swap; · finiteness
375-
nth_rw 1 [← lintegral_const_mul']; swap; · finiteness
374+
nth_rw 2 [← lintegral_const_mul' _ _ (by finiteness)]
375+
nth_rw 1 [← lintegral_const_mul' _ _ (by finiteness)]
376376
simp_rw [← mul_assoc]
377377
split_ifs with is_q₁top is_q₀top
378378
· rw [one_mul, one_mul, ← lintegral_add_left']
@@ -1229,11 +1229,8 @@ lemma C_realInterpolation_ENNReal_ne_top {p₀ p₁ q₀ q₁ q : ℝ≥0∞} {A
12291229
apply mul_ne_top
12301230
· apply mul_ne_top
12311231
· apply mul_ne_top
1232-
· have := interpolated_pos' q₀pos q₁pos (ne_top_of_Ioo ht) hq |>.ne'
1233-
have := interp_exp_ne_top hq₀q₁ ht hq
1234-
apply mul_ne_top
1235-
· split_ifs <;> finiteness
1236-
· finiteness
1232+
· finiteness [interpolated_pos' q₀pos q₁pos (ne_top_of_Ioo ht) hq |>.ne',
1233+
interp_exp_ne_top hq₀q₁ ht hq]
12371234
· apply rpow_ne_top'
12381235
· split_ifs
12391236
· rw [one_mul, one_mul]
@@ -1266,20 +1263,15 @@ lemma C_realInterpolation_ENNReal_pos {p₀ p₁ q₀ q₁ q : ℝ≥0∞} {A :
12661263
· exact interpolated_pos' q₀pos q₁pos (ne_top_of_Ioo ht) hq
12671264
· exact interp_exp_ne_top hq₀q₁ ht hq
12681265
· apply ne_of_gt
1269-
apply ENNReal.rpow_pos
1270-
· split_ifs
1271-
· rw [one_mul, one_mul]
1272-
apply add_pos'
1273-
· exact ofReal_inv_interp_sub_exp_pos₁ ht q₀pos q₁pos hq₀q₁ hq
1274-
· exact ofReal_inv_interp_sub_exp_pos₀ ht q₀pos q₁pos hq₀q₁ hq
1275-
· simp [ofReal_inv_interp_sub_exp_pos₁ ht q₀pos q₁pos hq₀q₁ hq]
1276-
· simp [ofReal_inv_interp_sub_exp_pos₀ ht q₀pos q₁pos hq₀q₁ hq]
1277-
· simp_all
1278-
· refine add_ne_top.mpr ⟨?_, ?_⟩
1279-
· apply mul_ne_top ?_ coe_ne_top
1280-
split_ifs <;> finiteness
1281-
· apply mul_ne_top ?_ coe_ne_top
1282-
split_ifs <;> finiteness
1266+
apply ENNReal.rpow_pos ?_ (by finiteness)
1267+
split_ifs
1268+
· rw [one_mul, one_mul]
1269+
apply add_pos'
1270+
· exact ofReal_inv_interp_sub_exp_pos₁ ht q₀pos q₁pos hq₀q₁ hq
1271+
· exact ofReal_inv_interp_sub_exp_pos₀ ht q₀pos q₁pos hq₀q₁ hq
1272+
· simp [ofReal_inv_interp_sub_exp_pos₁ ht q₀pos q₁pos hq₀q₁ hq]
1273+
· simp [ofReal_inv_interp_sub_exp_pos₀ ht q₀pos q₁pos hq₀q₁ hq]
1274+
· simp_all
12831275
· exact (ENNReal.rpow_pos (by positivity) coe_ne_top).ne'
12841276
· exact (ENNReal.rpow_pos (by positivity) coe_ne_top).ne'
12851277

0 commit comments

Comments
 (0)