Draft — mutable and not usable as a dependency; its citation marks the draft state.

Lax242665.Primes

Prime numbers

concepts/Lax242665/Primes.lean · lax-242665

definition

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Concept map

    Proven claimOpen claimDefinitionThis conceptRelated conceptA → B: B builds on A

    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

    1import Mathlib.Data.Nat.Notation
    2
    3/-!
    4---
    5title: Prime numbers
    6type: definition
    7---
    8A natural number greater than 1 is *prime* if it is divisible only by 1 and
    9by itself.
    10-/
    11
    12namespace Lax242665.Primes
    13
    14/-- `n` is prime: it is greater than 1, and every divisor `d` of `n` is
    15`1` or `n` itself. -/
    16def Prime (n : ℕ) : Prop :=
    17 1 < n ∧ ∀ d : ℕ, d ∣ n → d = 1 ∨ d = n
    18
    19end Lax242665.Primes
    20

    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

    Loading discussion…