Skip to content

Commit 2e31c29

Browse files
dennjj-loreaux
andauthored
Update Mathlib/Analysis/ODE/DiscreteGronwall.lean
Co-authored-by: Jireh Loreaux <loreaujy@gmail.com>
1 parent cc75fc5 commit 2e31c29

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Mathlib/Analysis/ODE/DiscreteGronwall.lean

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,16 @@ theorem discrete_gronwall {n₀ : ℕ} (hun₀ : 0 ≤ u n₀)
111111
calc u n
112112
_ ≤ u n₀ * ∏ i ∈ Ico n₀ n, (1 + c i) +
113113
∑ k ∈ Ico n₀ n, b k * ∏ i ∈ Ico (k + 1) n, (1 + c i) :=
114-
discrete_gronwall_prod_general hu (fun m hm => by linarith [hc m hm]) n hn
114+
discrete_gronwall_prod_general hu (by grind) hn
115115
_ ≤ u n₀ * ∏ i ∈ Ico n₀ n, (1 + c i) +
116116
∑ k ∈ Ico n₀ n, b k * ∏ i ∈ Ico n₀ n, (1 + c i) := by
117117
gcongr with j hj
118-
· simp only [mem_Ico] at hj; exact hb j (by omega)
119-
· exact prod_one_add_Ico_mono hc j hj
118+
· grind
119+
· exact prod_one_add_Ico_mono hc hj
120120
_ = (u n₀ + ∑ k ∈ Ico n₀ n, b k) * ∏ i ∈ Ico n₀ n, (1 + c i) := by rw [add_mul, sum_mul]
121-
_ ≤ (u n₀ + ∑ k ∈ Ico n₀ n, b k) * exp (∑ i ∈ Ico n₀ n, c i) :=
122-
mul_le_mul_of_nonneg_left hprod_le_exp (add_nonneg hun₀
123-
(sum_nonneg fun i hi ↦ by simp only [mem_Ico] at hi; exact hb i (by omega)))
121+
_ ≤ (u n₀ + ∑ k ∈ Ico n₀ n, b k) * exp (∑ i ∈ Ico n₀ n, c i) := by
122+
gcongr
123+
exact add_nonneg hun₀ (sum_nonneg <| by grind)
124124

125125
/-- Discrete Grönwall inequality: uniform bound over an interval.
126126

0 commit comments

Comments
 (0)