Skip to content

Commit 02a4606

Browse files
committed
fix: fix error and update Project
1 parent 4ffe82e commit 02a4606

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

Project.lean

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
-- This module serves as the root of the `Project` library.
2-
-- Import modules here that should be built as part of the library.
31
import Project.Example

Project/Example.lean

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ namespace Example
1212
theorem infinitely_many_primes : ∀ n : ℕ, ∃ p : ℕ, n < p ∧ Nat.Prime p := by
1313
intro n
1414
let N := Nat.factorial n + 1
15-
have N_gt_one : 1 < N := by
16-
simp [N]
17-
exact Nat.factorial_pos n
15+
have N_gt_one : 1 < N := Nat.succ_lt_succ (Nat.factorial_pos n)
1816
let p := Nat.minFac N
1917
have N_not_one : N ≠ 1 := Nat.ne_of_gt N_gt_one
2018
have pp : Nat.Prime p := Nat.minFac_prime N_not_one

0 commit comments

Comments
 (0)