AFTD Auto-Formalizing Theoretical Domains

spider_reverse_leg_end

def

The reversal of a spider leg end: free is fixed, inward and outward are exchanged.

Statement

def spider_reverse_leg_end : SpiderLegEnd → SpiderLegEnd
Source
step towards spider_eventual_parity_two_three
Verified
18 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 3
  • spider_blocked_two_three_reversalFor any fuel and leg length t, the spider gamma value with centre none and legs (t, outward), (2, free), (3, free) equals the gamma value…
  • spider_blocked_outgoing_one_inwardFor the mirror configuration (out;{(1,inward)}), the blocked family at level r equals r xor 1 for every r ≥ 1 and both far ends φ.
  • spider_gamma_reversalFor every fuel, centre status s and leg list L, the value of the spider state (s;L) equals the value of the state obtained by exchanging…

Lean source view module on GitHub

/-- Reversal of a far end: free ↦ free, inward ↦ outward, outward ↦ inward. -/
def spider_reverse_leg_end : SpiderLegEnd → SpiderLegEnd
  | .free => .free
  | .inward => .outward
  | .outward => .inward
See it in the graphDiscuss this resultChallenge it