LeanPool.ErdosTuzaValtr.Etv.AlphaBeta #
Imported Lean Pool material for LeanPool.ErdosTuzaValtr.Etv.AlphaBeta.
def
Config.Label.IsAlphaCup
{α : Type u_1}
[LinearOrder α]
{C : Config α}
{S : Finset α}
(l : C.Label S)
(a : α)
(c : List α)
:
A candidate alpha-cup ending at a: in S, strictly sorted, with non-slope edges.
Equations
Instances For
theorem
Config.Label.alphaCup_is_cup
{α : Type u_1}
[LinearOrder α]
{C : Config α}
{S : Finset α}
(l : C.Label S)
(c : List α)
(c_in_S : c.In S)
(c_sorted : List.Pairwise (fun (x1 x2 : α) => x1 < x2) c)
(c_chain : List.IsChain l.Slopeᶜ c)
:
C.Cup c
noncomputable def
Config.Label.alphaCups'
{α : Type u_1}
[LinearOrder α]
{C : Config α}
{S : Finset α}
(l : C.Label S)
(a : α)
:
All alpha-cups ending at a, drawn from sublists of the sorted S.
Equations
- l.alphaCups' a = List.filter (fun (b : List α) => decide (l.IsAlphaCup a b)) (S.sort fun (x1 x2 : α) => x1 ≤ x2).sublists
Instances For
noncomputable def
Config.Label.alphaCup'
{α : Type u_1}
[LinearOrder α]
{C : Config α}
{S : Finset α}
(l : C.Label S)
(a : α)
:
A longest alpha-cup ending at a, if one exists.
Equations
- l.alphaCup' a = List.argmax List.length (l.alphaCups' a)
Instances For
noncomputable def
Config.Label.alphaCup
{α : Type u_1}
[LinearOrder α]
{C : Config α}
{S : Finset α}
(l : C.Label S)
{a : α}
(ha : a ∈ S)
:
A witnessing alpha-cup of length alpha a + 1 ending at a.
Equations
Instances For
theorem
Config.Label.cup_length_le_alpha
{α : Type u_1}
[LinearOrder α]
{C : Config α}
{S : Finset α}
(l : C.Label S)
{a : α}
{c : List α}
(c_in_S : c.In S)
(c_sorted : List.Pairwise (fun (x1 x2 : α) => x1 < x2) c)
(c_chain : List.IsChain l.Slopeᶜ c)
(c_last : a ∈ c.getLast?)
:
@[implicit_reducible]
noncomputable instance
Config.decidableIsBetaCup
{α : Type u_1}
[LinearOrder α]
(C : Config α)
(S : Finset α)
(a : α)
(c : List α)
:
Equations
- C.decidableIsBetaCup S a c = ⋯.mpr inferInstance
noncomputable def
Config.betaCups'
{α : Type u_1}
[LinearOrder α]
(C : Config α)
(S : Finset α)
(a : α)
:
All beta-cups ending at a, drawn from sublists of the sorted S.
Equations
Instances For
noncomputable def
Config.betaCup'
{α : Type u_1}
[LinearOrder α]
(C : Config α)
(S : Finset α)
(a : α)
:
A longest beta-cup ending at a, if one exists.
Equations
- C.betaCup' S a = List.argmax List.length (C.betaCups' S a)
Instances For
noncomputable def
Config.betaCup
{α : Type u_1}
[LinearOrder α]
(C : Config α)
(S : Finset α)
{a : α}
(ha : a ∈ S)
:
A witnessing beta-cup of length beta a + 1 ending at a.
Equations
Instances For
theorem
Config.has_beta_cup
{α : Type u_1}
[LinearOrder α]
(C : Config α)
(S : Finset α)
{a : α}
(ha : a ∈ S)
: