AFTD Auto-Formalizing Theoretical Domains

orderedFactorizationCount_one

theoremverified

H(1) = 1: the empty sequence is the only ordered factorization of 1.

Statement

theorem orderedFactorizationCount_one : orderedFactorizationCount 1 = 1
Source
arXiv:2611.18194 (The Möbius function of factorizations with a simple prime factor): sanity lemma for the factorization-poset definitions
Verified
17 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
  • orderedFactorizationCountH(m), the number of ordered factorizations of m: the number of finite sequences of integers greater than 1 whose product is m, with H(1) =…

The proof, explained

To show that H(1) = 1, we observe that the empty list is a valid ordered factorization of 1 because its elements vacuously exceed 1 and its product is 1. If there were any other factorization, it would be non-empty and thus possess a head element a. But then a > 1 by definition of an ordered factorization, while a ∣ 1 forces a ≤ 1, an impossibility.

  1. The goal reduces to showing that the empty list is the only ordered factorization of 1.

    Unfolding the definition of `orderedFactorizationCount`, the statement says that the subtype of ordered factorizations of 1 has cardinality 1. By `Nat.card_eq_one_iff_exists`, this is equivalent to showing that there is an element to which every element of the subtype is equal. We provide the empty list as this candidate: its elements vacuously exceed 1, and its product is 1. The remaining goal is to show that any factorization equals the empty list.

    lines 2–3

    uses orderedFactorizationCount, Nat.card_eq_one_iff_exists

      rw [orderedFactorizationCount, Nat.card_eq_one_iff_exists]
      refine ⟨⟨[], by simp⟩, ?_⟩
  2. To show that every ordered factorization is empty, assume for contradiction that there is a non-empty one.

    Let l be an arbitrary ordered factorization of 1, given by a list whose entries are all strictly greater than 1 (hl1) and whose product is 1 (hl2). By subtype extensionality (`ext1`), showing that this subtype element equals the empty list reduces to showing l = []. We assume for contradiction that l ≠ [] (`by_contra hne`).

    lines 4–7

      rintro ⟨l, hl1, hl2⟩
      ext1
      simp only
      by_contra hne
  3. The first element a of the non-empty list l must satisfy both 1 < a and a ≤ 1.

    Because l ≠ [], `List.exists_cons_of_ne_nil` decomposes l into a head a and a tail t, so l = a :: t. Since a ∈ l, the factorization condition hl1 gives 1 < a. On the other hand, the product of a :: t is 1, so a divides 1. Since 0 < 1 (`one_pos`), any divisor of 1 is at most 1 by `Nat.le_of_dvd`, giving a ≤ 1.

    lines 8–11

    uses List.exists_cons_of_ne_nil, one_pos, Nat.le_of_dvd

      obtain ⟨a, t, rfl⟩ := List.exists_cons_of_ne_nil hne
      have ha := hl1 a (by simp)
      have : a ∣ 1 := by rw [← hl2]; simp
      have := Nat.le_of_dvd one_pos this
  4. The contradictory bounds 1 < a and a ≤ 1 conclude the proof.

    The conditions 1 < a and a ≤ 1 cannot be satisfied by any natural number; `omega` detects this contradiction via linear integer arithmetic and closes the goal.

    line 12

      omega
orderedFactorizationCount
The count of ordered factorizations of a natural number m, defined as the cardinality of the type of lists of natural numbers strictly greater than 1 whose product is m.
Nat.card_eq_one_iff_exists
A type has cardinality 1 if and only if there is an element to which all elements in the type are equal.
List.exists_cons_of_ne_nil
Every non-empty list can be written as a head element prepended to a tail list.
one_pos
The number 1 is strictly greater than 0.
Nat.le_of_dvd
If a positive natural number n is divisible by m, then m ≤ n.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

theorem orderedFactorizationCount_one : orderedFactorizationCount 1 = 1 := by  rw [orderedFactorizationCount, Nat.card_eq_one_iff_exists]  refine ⟨⟨[], by simp⟩, ?_⟩  rintro ⟨l, hl1, hl2⟩  ext1  simp only  by_contra hne  obtain ⟨a, t, rfl⟩ := List.exists_cons_of_ne_nil hne  have ha := hl1 a (by simp)  have : a ∣ 1 := by rw [← hl2]; simp  have := Nat.le_of_dvd one_pos this  omega
See it in the graphDiscuss this resultChallenge it