lemmainsertionTerms_disjoint_set {N : ℕ} {T : FormVector (N+1)} (S : SetSpace)
(hc : ∀ x (j : FinN), x j.castSucc ∈S→FormZeroAtT x)
(he : ∀ x, x (Fin.last N) ∉S→FormZeroAtT x) :
FormsDisjoint (insertionTerm T) :=by
proof · 23
lines
have hh (k l : Fin (N+1)) (hkl : k ≠ l) (x : Configuration (N+1)) :
FormZeroAt (insertionTerm T k) x ∨FormZeroAt (insertionTerm T l) x :=byby_cases hk : x k ∈S
· right
havehne : insertionSwap l k ≠Fin.last N:=by
intro h
have ht := congrArg (insertionSwap l) h
exact hkl (by simpa only [insertionSwap,Equiv.swap_apply_self,Equiv.swap_apply_right] using ht)
obtain ⟨j,hj⟩ :=Fin.exists_castSucc_eq.mpr hne
apply insertionTerm_zero l
apply hc _ j
simpa only [Function.comp_apply,hj,insertionSwap,Equiv.swap_apply_self] using hk
· left
exact insertionTerm_zero k (he _ (by simpa only [Function.comp_apply,insertionSwap_last] using hk))
constructor
· intro k l hkl s x
rcases hh k l hkl x with hk | hl
· exact Or.inl (hk s).1
· exact Or.inr (hl s).1
· intro k l hkl s i a x
rcases hh k l hkl x with hk | hl
· exact Or.inl ((hk s).2 i a)
· exact Or.inr ((hl s).2 i a)