Skip to content

Commit

Permalink
Fix euclid-mullin (#1209)
Browse files Browse the repository at this point in the history
It turns out that I made the recursive call incorrectly in the original
PR that defined the Euclid-Mullin sequence. This PR corrects the
mistake.
  • Loading branch information
EgbertRijke authored Oct 25, 2024
1 parent ffdf33c commit 48dc07c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/elementary-number-theory/euclid-mullin-sequence.lagda.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ previous entries in the Euclid–Mullin sequence plus one.
### The Euclid–Mullin sequence

```agda
{-# TERMINATING #-}

euclid-mullin-ℕ :
euclid-mullin-ℕ =
strong-rec-ℕ
( 2)
( λ n f
nat-least-nontrivial-divisor-ℕ'
( succ-ℕ
( Π-ℕ (succ-ℕ n) (λ i euclid-mullin-ℕ (nat-Fin (succ-ℕ n) i)))))
( Π-ℕ
( succ-ℕ n)
( λ i f (nat-Fin (succ-ℕ n) i) (upper-bound-nat-Fin n i)))))

compute-euclid-mullin-0-ℕ : euclid-mullin-ℕ 02
compute-euclid-mullin-0-ℕ = refl
Expand Down

0 comments on commit 48dc07c

Please sign in to comment.