descending_band_vulnerability
deforiginal
For an integer d and natural numbers r and L, let A = descending_band_set d r L and let S : Finset ℤ be the union over a ∈ A of {a, a + 1, a + d}; descending_band_vulnerability d r L is defined as the real number (S.card : ℝ) / (3 * (A.card : ℝ)).
Statement
noncomputable def descending_band_vulnerability (d : ℤ) (r L : ℕ) : ℝ
- Related work
- knowledgebase, OP-1702
- Verified
- 14 Nov 2026
- Axioms
- none listed
- Built on 1
- descending_band_setFor an integer d and positive integers r ≤ L, the descending band set A_{r,L} is the union over j from 0 to r-1 of the integer intervals…
- Used by 2
- descending_band_pointsFor an integer d, descending_band_points d is the set of all pairs (descending_band_cost d r L, descending_band_vulnerability d r L) in ℝ…
- descending_band_point_memFor any integer d and natural numbers r and L with 1 ≤ r and r ≤ L, the pair (descending_band_cost d r L, descending_band_vulnerability d…
Read back from the Lean
A definition taking an integer d and natural numbers r and L, returning the real number (S.card : ℝ) / (3 * (A.card : ℝ)), where A is descending_band_set d r L and S is the union over all a ∈ A of the three-element set {a, a + 1, a + d}.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
Lean source view module on GitHub
/-- Vulnerability W_{r,L} = |A_{r,L} + {0,1,d}| / (3|A_{r,L}|) of descending band set A_{r,L} -/ noncomputable def descending_band_vulnerability (d : ℤ) (r L : ℕ) : ℝ := let A := descending_band_set d r L let S : Finset ℤ := A.biUnion fun a => {a, a + 1, a + d} (S.card : ℝ) / (3 * (A.card : ℝ))