spider_blocked_val
def
The conjectured closed form of the blocked two-leg family at incoming centre: for end condition inward it is m - 1 when m % 4 = 3 and m + 1 otherwise; for any other end condition (outward, and by convention free) it is m - 1 when m % 4 = 1 and m + 1 otherwise.
Statement
def spider_blocked_val : SpiderLegEnd → ℕ → ℕ- Source
- step towards spider_two_leg_blocked_incoming_val
- Verified
- 19 Oct 2026
- Axioms
- none listed
- Built on 1
- SpiderLegEndThe end condition of an attached leg in a spider state is either free (no arc on the leg), inward (pointing towards the centre), or…
- Used by 7
- spider_blocked_optionvals_lt_memFor r ≥ 2 and β inward or outward, every k below spider_blocked_val β r occurs in the explicit options list of (in;{(r,β),(1,free)}).
- spider_blocked_optionvals_not_memFor r ≥ 1 and β inward or outward, the closed-form value spider_blocked_val β r does not occur in the explicit options list of…
- spider_blocked_optionvals_low_memFor r ≥ 2, β inward or outward, and k + 2 ≤ r, the number k occurs in the explicit options list of (in;{(r,β),(1,free)}).
- spider_blocked_optionvals_top_memFor r ≥ 1 and β inward or outward, r is in the explicit options list; moreover r-1 is in it when β = inward and r % 4 ≠ 3, and when β =…
- spider_blocked_optionvalsThe explicit options list of the state (in;{(r,β),(1,free)}) at fuel r + 2 after substituting the inductive closed forms: for each cut j =…
- spider_blocked_optionvals_leFor r ≥ 2 and β ≠ free, every element of the explicit options list of (in;{(r,β),(1,free)}) is at most r.
- spider_two_leg_blocked_incoming_baseThe closed form holds at r = 0 and r = 1: spider_gamma 2 incoming [(0,inward),(1,free)] = 1, spider_gamma 2 incoming…
Lean source view module on GitHub
/-- Closed form of the blocked 2-leg family (in;{(m,δ),(1,free)}): m-1 in the residue class 3 (mod 4) for δ = inward, 1 (mod 4) otherwise, and m+1 elsewhere. -/ def spider_blocked_val : SpiderLegEnd → ℕ → ℕ := fun δ m => match δ with | SpiderLegEnd.inward => if m % 4 = 3 then m - 1 else m + 1 | _ => if m % 4 = 1 then m - 1 else m + 1