Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMassot committed Nov 14, 2024
1 parent 362ac91 commit 35e3cb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions GlimpseOfLean/Exercises/Topics/SequenceLimits.lean
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ where `by linarith` will provide the proof of `δ/2 > 0` expected by Lean.
-/

/- If u is constant with value l then u tends to l.
Hint: `simp` can rewrite `|1 - 1|` to `0` -/
Hint: `simp` can rewrite `|l - l|` to `0` -/
example (h : ∀ n, u n = l) : seq_limit u l := by {
sorry
}
Expand Down Expand Up @@ -112,7 +112,7 @@ example (hu : seq_limit u l) (hv : seq_limit v l') :
rcases hn with ⟨_hn₁, hn₂⟩
have fact₁ : |u n - l| ≤ ε/2 := hN₁ n (by linarith)
have fact₂ : |v n - l'| ≤ ε/2 := hN₂ n (by linarith)

calc
|(u + v) n - (l + l')| = |u n + v n - (l + l')| := rfl
_ = |(u n - l) + (v n - l')| := by ring
Expand Down
2 changes: 1 addition & 1 deletion GlimpseOfLean/Solutions/Topics/SequenceLimits.lean
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ where `by linarith` will provide the proof of `δ/2 > 0` expected by Lean.
-/

/- If u is constant with value l then u tends to l.
Hint: `simp` can rewrite `|1 - 1|` to `0` -/
Hint: `simp` can rewrite `|l - l|` to `0` -/
example (h : ∀ n, u n = l) : seq_limit u l := by {
-- sorry
intros ε ε_pos
Expand Down

0 comments on commit 35e3cb3

Please sign in to comment.