Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1, p. 11 — DEC-SCTM is in P for θ≤2\theta\le2θ≤2 and NP-hard for every fixed 3≤θ≤k3\le\theta\le k3≤θ≤k

Open
TraceAdopt.LPReform.Supplement.theorem_1

by mikedeng1 · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

computational-complexityhypergraphnetwork-diffusionnp-hardnessp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1polynomial-time

Let DEC-SCTMk,θ\mathrm{DEC\text{-}SCTM}_{k,\theta}DEC-SCTMk,θ​ be the decision problem of Definition 1: on a connected hypergraph whose supply chains all have kkk firms and threshold θ\thetaθ, with all benefits rjir_{ji}rji​ and adoption costs cic_ici​ equal to one and with rational seeding costs wiw_iwi​, is there a seed set of cost at most an integer hhh that leads to full SCTM activation?

Theorem 1. The complexity of DEC-SCTM depends on kkk and θ\thetaθ as in the following table (cells with θ>k\theta>kθ>k are empty):

θ\thetaθ / kkkk=1k=1k=1k=2k=2k=2k=3k=3k=3k≥4k\ge4k≥4
θ=1\theta=1θ=1in Pin Pin Pin P
θ=2\theta=2θ=2in Pin Pin P
θ=3\theta=3θ=3NP-hardNP-hard
θ≥4\theta\ge4θ≥4NP-hard

Equivalently:

  1. DEC-SCTMk,1∈P\mathrm{DEC\text{-}SCTM}_{k,1}\in\mathrm PDEC-SCTMk,1​∈P for every k≥1k\ge1k≥1;
  2. DEC-SCTMk,2∈P\mathrm{DEC\text{-}SCTM}_{k,2}\in\mathrm PDEC-SCTMk,2​∈P for every k≥2k\ge2k≥2;
  3. DEC-SCTMk,θ\mathrm{DEC\text{-}SCTM}_{k,\theta}DEC-SCTMk,θ​ is NP-hard for every fixed pair with 3≤θ≤k3\le\theta\le k3≤θ≤k:
L≤pDEC-SCTMk,θfor every L∈NP.L\le_p \mathrm{DEC\text{-}SCTM}_{k,\theta}\quad\text{for every }L\in\mathrm{NP}.L≤p​DEC-SCTMk,θ​for every L∈NP.

The theorem says that as soon as supply chains contain three or more firms and at least three are needed for traceability benefits, there is no polynomial-time algorithm for MIN-SCTM unless P = NP, while the problem is easy when one or two adopters suffice.

Formalization Note P is Cook's class CookPvsNP.P Bool (a one-tape Turing machine deciding the language in time ∣s∣d+d|s|^d+d∣s∣d+d), and NP-hardness is the published KingTerrain.NPHard.IsNPHard (polynomial-time many-one reductions from every NP language over every finite nonempty alphabet). Inputs are binary codes as in DecSCTM: the deciders of items 1 and 2 must also reject non-codes and invalid inputs, and the seeding costs are arbitrary rationals, negative ones included.

Differences from the source:

  • encoding: in P → membership in CookPvsNP.P Bool (a one-tape Turing machine deciding the language within |s|^d + d steps); reason: Cook's definition of P, the published platform definition
  • encoding: NP-hard → KingTerrain.NPHard.IsNPHard: every NP language over every finite nonempty alphabet (Cook's one-tape Turing machines) is polynomial-time many-one reducible to the language; reason: the standard notion; the published definition adds no NP-membership requirement, and the paper claims none
  • reading: table with blank cells (θ = 2, k = 1; θ = 3, k ≤ 2; θ ≥ 4, k ≤ θ − 1) → three conjuncts: θ = 1 for every k ≥ 1; θ = 2 for every k ≥ 2; NP-hard for every 3 ≤ θ ≤ k; reason: the nonblank cells are exactly these; blank cells (θ > k) are excluded by the standing assumption θ_j ≤ k_j and make no claim
  • reading: hypergraph G as defined in Section 3, whose standing assumption is θ_j ∈ {2,...,k_j} → θ_j ≥ 2 is not imposed; reason: the theorem's table has a row θ = 1, so Definition 1 overrides that standing assumption for this theorem
  • encoding: DEC-SCTM input (integer h, hypergraph G, rational w_i) → the language decSCTM k θ ⊆ {0,1}* of binary codes (self-delimiting binary numerals for n, m, each hyperedge as its size and sorted members, each w_i as reduced signed numerator and positive denominator, h in sign-magnitude); words that are not the code of a valid input are rejected; reason: complexity classes are defined on languages; the code is length-faithful, so polynomial time on codes is polynomial time in the bit size of the input
  • encoding: hypergraph G as defined in Section 3 (connected, all nodes can become active), with r_ji = c_i = 1, k_j = k, θ_j = θ → DecInput.Valid k: every hyperedge has exactly k firms, the auxiliary graph G′ is connected, every firm lies in some hyperedge; the instance has r = c = 1 and θ_j = θ; reason: with r_ji = c_i = 1 the standing assumption c_i ≤ Σ_{j∋i} r_ji says exactly that each firm lies in a chain; connectivity is read through G′ as in the published model
  • encoding: for all i = 0,...,n → firms Fin n (n firms); reason: the index 0 is a slip for N_F = {1,...,n} (p. 5); no extra firm is created
Preamble
import Mathlib
import Definitions.Def_TraceAdopt_LPReform_Supplement_DecSCTM
import Definitions.Def_KingTerrain_NPHard_Complexity
Formal statement
namespace TraceAdopt.LPReform.Supplement

/-- Theorem 1, p. 11: the complexity of DEC-SCTM by chain size `k` and threshold `θ`.
Row `θ = 1`: in P for every `k ≥ 1`. Row `θ = 2`: in P for every `k ≥ 2`.
Rows `θ = 3` and `θ ≥ 4`: NP-hard for every `k ≥ θ`. Cells with `θ > k` are blank. -/
theorem theorem_1 :
    (∀ k : ℕ, 1 ≤ k → decSCTM k 1 ∈ CookPvsNP.P Bool) ∧
    (∀ k : ℕ, 2 ≤ k → decSCTM k 2 ∈ CookPvsNP.P Bool) ∧
    (∀ k θ : ℕ, 3 ≤ θ → θ ≤ k → KingTerrain.NPHard.IsNPHard (decSCTM k θ)) := by sorry

end TraceAdopt.LPReform.Supplement
Source
Blaettchen, Calmon & Hall, Traceability Technology Adoption in Supply Chain Networks, arXiv:2104.14818v4, p. 11, Theorem 1 (proof p. 36, Appendix B.2; Definition 1 p. 11)

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