Count Critical Suppliers

Documentation

Lean 4 Proof

noncomputable def countCriticalSuppliers
    (e : WeightedHierarchicalCESEconomy N) (n : Fin N) (threshold : ℝ) : ℕ :=
  (Finset.univ.filter fun j => threshold < e.a n j).card

Dependency Graph

Module Section

## Weighted Hierarchical CES Economy