definition
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
In the paper
- page 1 of this submission's paper
Definition
A natural number greater than 1 is prime if it is divisible only by 1 and by itself.
Lean source view on GitHub
| 1 | import Mathlib.Data.Nat.Notation |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: Prime numbers |
| 6 | type: definition |
| 7 | --- |
| 8 | A natural number greater than 1 is *prime* if it is divisible only by 1 and |
| 9 | by itself. |
| 10 | -/ |
| 11 | |
| 12 | namespace Lax242665.Primes |
| 13 | |
| 14 | /-- `n` is prime: it is greater than 1, and every divisor `d` of `n` is |
| 15 | `1` or `n` itself. -/ |
| 16 | def Prime (n : ℕ) : Prop := |
| 17 | 1 < n ∧ ∀ d : ℕ, d ∣ n → d = 1 ∨ d = n |
| 18 | |
| 19 | end Lax242665.Primes |
| 20 |
Builds on
none
Used by
From Mathlib
Community review
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.
0 comments