AFTD Auto-Formalizing Theoretical Domains

wild_joint_canonical_type

def

The orbit type in {0,1,2,3} of a triple T relative to the fixed canonical matching: 0 (=A) if T contains a canonical edge and 0; 1 (=B) if 0 but no edge; 2 (=C) if an edge but not 0; 3 (=D) if neither.

Statement

noncomputable def wild_joint_canonical_type (q : ℕ) (hq : 3 ≤ q) (T : Finset (Fin (3*q))) : ℕ
Source
step towards wild_one_bad_color_mixed_moment_formula_with_context
Verified
29 Oct 2026
Axioms
none listed
Built on 1
Used by 6

Lean source view module on GitHub

/-- Canonical orbit type (0=A,1=B,2=C,3=D) of triple T. -/
noncomputable def wild_joint_canonical_type (q : ℕ) (hq : 3 ≤ q) (T : Finset (Fin (3*q))) : ℕ := by classical exact if (∃ x ∈ T, ∃ y ∈ T, wild_joint_canonical_matching q x y) then (if (⟨0, by omega⟩ : Fin (3*q)) ∈ T then 0 else 2) else (if (⟨0, by omega⟩ : Fin (3*q)) ∈ T then 1 else 3)
See it in the graphDiscuss this resultChallenge it