def
assignment_to_graph
{N : ℕ}
(τ : Trestle.Model.PropAssignment (EdgeVar N))
(polarity : Bool)
:
SimpleGraph (Fin N)
Equations
- One or more equations did not get rendered due to their size.
Instances For
theorem
assignment_to_graph_compl
{N : ℕ}
(τ : Trestle.Model.PropAssignment (EdgeVar N))
(p : Bool)
:
def
CliqueFreeEncoding
(N x : ℕ)
(polarity : Bool)
:
Trestle.Encode.VEncCNF (EdgeVar N.succ) Unit fun (τ : Trestle.Model.PropAssignment (EdgeVar N.succ)) =>
(assignment_to_graph τ polarity).CliqueFree x
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
RamseyEncoding
(N x y : ℕ)
:
Trestle.Encode.VEncCNF (EdgeVar N.succ) Unit fun (τ : Trestle.Model.PropAssignment (EdgeVar N.succ)) =>
(assignment_to_graph τ true).cliqueNum < x ∧ (assignment_to_graph τ true).indepNum < y
Equations
- RamseyEncoding N x y = Trestle.Encode.VEncCNF.mapProp ⋯ ((CliqueFreeEncoding N x true).seq ((CliqueFreeEncoding N y false).seq (Trestle.Encode.VEncCNF.pure ())))