Skip to content

Commit

Permalink
Remove Prop annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMassot committed Feb 26, 2025
1 parent 390be6b commit 6c6a4f3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion GlimpseOfLean/Exercises/Shorter.lean
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ limits of sequences of real numbers.
-/

/-- A sequence `u` converges to a limit `l` if the following holds. -/
def seq_limit (u : ℕ → ℝ) (l : ℝ) : Prop := ∀ ε > 0, ∃ N, ∀ n ≥ N, |u n - l| ≤ ε
def seq_limit (u : ℕ → ℝ) (l : ℝ) := ∀ ε > 0, ∃ N, ∀ n ≥ N, |u n - l| ≤ ε

/-
Let’s see an example manipulating this definition and using a lot of the tactics
Expand Down
4 changes: 2 additions & 2 deletions GlimpseOfLean/Introduction.lean
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ First let us review two calculus definitions.

/-- A sequence `u` of real numbers converges to `l` if `∀ ε > 0, ∃ N, ∀ n ≥ N, |u_n - l| ≤ ε`.
This condition will be spelled `seq_limit u l`. -/
def seq_limit (u : ℕ → ℝ) (l : ℝ) : Prop :=
def seq_limit (u : ℕ → ℝ) (l : ℝ) :=
∀ ε > 0, ∃ N, ∀ n ≥ N, |u n - l| ≤ ε

/- In the above definition, note that the `n`-th term of the sequence `u` is denoted
Expand All @@ -41,7 +41,7 @@ may write `l ∈ ℝ` on paper.
/-- A function`f : ℝ → ℝ` is continuous at `x₀` if
`∀ ε > 0, ∃ δ > 0, ∀ x, |x - x₀| ≤ δ ⇒ |f(x) - f(x₀)| ≤ ε`.
This condition will be spelled `continuous_at f x₀`.-/
def continuous_at (f : ℝ → ℝ) (x₀ : ℝ) : Prop :=
def continuous_at (f : ℝ → ℝ) (x₀ : ℝ) :=
∀ ε > 0, ∃ δ > 0, ∀ x, |x - x₀| ≤ δ → |f x - f x₀| ≤ ε

/-- Now we claim that if `f` is continuous at `x₀` then it is sequentially continuous
Expand Down
2 changes: 1 addition & 1 deletion GlimpseOfLean/Solutions/Shorter.lean
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ limits of sequences of real numbers.
-/

/-- A sequence `u` converges to a limit `l` if the following holds. -/
def seq_limit (u : ℕ → ℝ) (l : ℝ) : Prop := ∀ ε > 0, ∃ N, ∀ n ≥ N, |u n - l| ≤ ε
def seq_limit (u : ℕ → ℝ) (l : ℝ) := ∀ ε > 0, ∃ N, ∀ n ≥ N, |u n - l| ≤ ε

/-
Let’s see an example manipulating this definition and using a lot of the tactics
Expand Down

0 comments on commit 6c6a4f3

Please sign in to comment.