Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Aether Catalog definitions — MachineLearning_NumberTheory_SemiprimeScaffolding

Definition
MachineLearning_NumberTheory_SemiprimeScaffolding

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogmachinelearning

Definition bundle for the Aether Catalog module MachineLearning.NumberTheory.SemiprimeScaffolding, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.

Definition code
-- Def bundle generated from MachineLearning/NumberTheory/SemiprimeScaffolding.lean by skeleton subtraction
import Mathlib
/-
  # Semiprime Scaffolding for n² + 1

  This file defines the semiprime predicate and proves basic properties,
  creating the vocabulary needed for future formalization of Iwaniec's theorem
  that infinitely many values n² + 1 have at most 2 prime factors.

  ## Definitions

  - `IsSemiprime`: A number that is a product of exactly two primes.

  ## Key results

  - `IsSemiprime.two_le`: Every semiprime is at least 2.
  - `Nat.Prime.not_isSemiprime`: A prime is never semiprime.
  - `isSemiprime_four`, `isSemiprime_six`: Concrete examples.
-/

/-- A natural number is semiprime if it is a product of exactly two primes
(not necessarily distinct). -/
def IsSemiprime (n : ℕ) : Prop :=
  ∃ p q : ℕ, Nat.Prime p ∧ Nat.Prime q ∧ p * q = n

/-
Every semiprime is at least 2.
-/

/-
A prime number is not semiprime: one cannot write a prime as a product
of two primes.
-/


View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me