/- Copyright 2026 The Formal Conjectures Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -/ module public import FormalConjecturesUtil

Multiplicative persistence

Multiply the decimal digits of a natural number, then repeat. The multiplicative-persistence conjecture says that a single digit is always reached in at most eleven steps.

References:

@[expose] public sectionnamespace Arxiv.«2110.04263»

The product of the base-ten digits of a natural number, with zero mapped to zero.

def digitProduct : ℕ → ℕ | 0 => 0 | n + 1 => (Nat.digits 10 (n + 1)).prod

The explicit zero convention makes zero a fixed point of the digit-product map.

@[category test, AMS 11] theorem digitProduct_zero : digitProduct 0 = 0 := ⊢ digitProduct 0 = 0 All goals completed! 🐙

Every single decimal digit is a fixed point of the digit-product map.

@[category test, AMS 11] theorem digit_product_eq_of_lt_ten {n : ℕ} (hn : n < 10) : digitProduct n = n := n:ℕhn:n < 10⊢ digitProduct n = n n:ℕhn:0 < 10⊢ digitProduct 0 = 0n:ℕhn:1 < 10⊢ digitProduct 1 = 1n:ℕhn:2 < 10⊢ digitProduct 2 = 2n:ℕhn:3 < 10⊢ digitProduct 3 = 3n:ℕhn:4 < 10⊢ digitProduct 4 = 4n:ℕhn:5 < 10⊢ digitProduct 5 = 5n:ℕhn:6 < 10⊢ digitProduct 6 = 6n:ℕhn:7 < 10⊢ digitProduct 7 = 7n:ℕhn:8 < 10⊢ digitProduct 8 = 8n:ℕhn:9 < 10⊢ digitProduct 9 = 9 n:ℕhn:0 < 10⊢ digitProduct 0 = 0n:ℕhn:1 < 10⊢ digitProduct 1 = 1n:ℕhn:2 < 10⊢ digitProduct 2 = 2n:ℕhn:3 < 10⊢ digitProduct 3 = 3n:ℕhn:4 < 10⊢ digitProduct 4 = 4n:ℕhn:5 < 10⊢ digitProduct 5 = 5n:ℕhn:6 < 10⊢ digitProduct 6 = 6n:ℕhn:7 < 10⊢ digitProduct 7 = 7n:ℕhn:8 < 10⊢ digitProduct 8 = 8n:ℕhn:9 < 10⊢ digitProduct 9 = 9 All goals completed! 🐙

A single-digit starting value satisfies the conjectured bound with zero iterations.

@[category test, AMS 11] theorem single_digit_zero_iterations {n : ℕ} (hn : n < 10) : ∃ k ≤ 11, (digitProduct^[k]) n < 10 := n:ℕhn:n < 10⊢ ∃ k ≤ 11, digitProduct^[k] n < 10 exact ⟨0, n:ℕhn:n < 10⊢ 0 ≤ 11 All goals completed! 🐙, n:ℕhn:n < 10⊢ digitProduct^[0] n < 10 All goals completed! 🐙⟩

The first three steps from $39$ are $39\mapsto27\mapsto14\mapsto4$.

@[category test, AMS 11] theorem trajectory_39 : digitProduct 39 = 27 ∧ digitProduct 27 = 14 ∧ digitProduct 14 = 4 := ⊢ digitProduct 39 = 27 ∧ digitProduct 27 = 14 ∧ digitProduct 14 = 4 All goals completed! 🐙

Three applications of the digit-product map take $39$ to the single digit $4$.

@[category test, AMS 11] theorem iterate_three_39 : (digitProduct^[3]) 39 = 4 := ⊢ digitProduct^[3] 39 = 4 All goals completed! 🐙

After ten steps, the standard persistence-eleven example has reached $20$.

@[category test, AMS 11] theorem iterate_ten_277777788888899 : (digitProduct^[10]) 277777788888899 = 20 := ⊢ digitProduct^[10] 277777788888899 = 20 All goals completed! 🐙

The eleventh step takes the standard persistence-eleven example from $20$ to $0$.

@[category test, AMS 11] theorem iterate_eleven_277777788888899 : (digitProduct^[11]) 277777788888899 = 0 := ⊢ digitProduct^[11] 277777788888899 = 0 All goals completed! 🐙

No iterate before step eleven has reached a single digit for the standard sharpness example.

@[category test, AMS 11] theorem persistence_eleven_lower_bound : ∀ k < 11, 10 ≤ (digitProduct^[k]) 277777788888899 := ⊢ ∀ k < 11, 10 ≤ digitProduct^[k] 277777788888899 k:ℕhk:k < 11⊢ 10 ≤ digitProduct^[k] 277777788888899 k:ℕhk:0 < 11⊢ 10 ≤ digitProduct^[0] 277777788888899k:ℕhk:1 < 11⊢ 10 ≤ digitProduct^[1] 277777788888899k:ℕhk:2 < 11⊢ 10 ≤ digitProduct^[2] 277777788888899k:ℕhk:3 < 11⊢ 10 ≤ digitProduct^[3] 277777788888899k:ℕhk:4 < 11⊢ 10 ≤ digitProduct^[4] 277777788888899k:ℕhk:5 < 11⊢ 10 ≤ digitProduct^[5] 277777788888899k:ℕhk:6 < 11⊢ 10 ≤ digitProduct^[6] 277777788888899k:ℕhk:7 < 11⊢ 10 ≤ digitProduct^[7] 277777788888899k:ℕhk:8 < 11⊢ 10 ≤ digitProduct^[8] 277777788888899k:ℕhk:9 < 11⊢ 10 ≤ digitProduct^[9] 277777788888899k:ℕhk:10 < 11⊢ 10 ≤ digitProduct^[10] 277777788888899 k:ℕhk:0 < 11⊢ 10 ≤ digitProduct^[0] 277777788888899k:ℕhk:1 < 11⊢ 10 ≤ digitProduct^[1] 277777788888899k:ℕhk:2 < 11⊢ 10 ≤ digitProduct^[2] 277777788888899k:ℕhk:3 < 11⊢ 10 ≤ digitProduct^[3] 277777788888899k:ℕhk:4 < 11⊢ 10 ≤ digitProduct^[4] 277777788888899k:ℕhk:5 < 11⊢ 10 ≤ digitProduct^[5] 277777788888899k:ℕhk:6 < 11⊢ 10 ≤ digitProduct^[6] 277777788888899k:ℕhk:7 < 11⊢ 10 ≤ digitProduct^[7] 277777788888899k:ℕhk:8 < 11⊢ 10 ≤ digitProduct^[8] 277777788888899k:ℕhk:9 < 11⊢ 10 ≤ digitProduct^[9] 277777788888899k:ℕhk:10 < 11⊢ 10 ≤ digitProduct^[10] 277777788888899 All goals completed! 🐙

The multiplicative-persistence conjecture: every natural number reaches a single decimal digit after at most eleven iterations of the digit-product map.

The bound is sharp: $277777788888899$ has multiplicative persistence eleven.

Reference: arXiv:2110.04263

@[category research open, AMS 11] theorem multiplicative_persistence_conjecture : ∀ n : ℕ, ∃ k ≤ 11, (digitProduct^[k]) n < 10 := ⊢ ∀ (n : ℕ), ∃ k ≤ 11, digitProduct^[k] n < 10 All goals completed! 🐙end Arxiv.«2110.04263»