Prime numbers

Lax242665.Primes · 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.

    Natural Language Statement

    Definition

    A natural number greater than 1 is prime if it is divisible only by 1 and by itself.

    Concept map
    1 concept; 4 descendants hidden
    100%
    Proven claimOpen claimDefinitionThis conceptRelated conceptA → B: B builds on A

    In the paper

    • page 1 of this submission's paper

    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

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…