Example
A constraint removes rows that do not satisfy it. This is an exhaustive-search view on tiny data; unlike a real CP-SAT solver, it does not propagate constraints or learn clauses.
highlighted = computed this step
Build the concrete table
Compute the highlighted logic-table value.
x=0 y=0x+y=0 keep=no
Build the concrete table
Compute the highlighted logic-table value.
x=0 y=0x=0 y=1x+y=0 keep=nox+y=1 keep=no
Build the concrete table
Compute the highlighted logic-table value.
x=0 y=0x=0 y=1x=0 y=2x+y=0 keep=nox+y=1 keep=nox+y=2 keep=yes
Build the concrete table
Compute the highlighted logic-table value.
x=0 y=0x=0 y=1x=0 y=2x=1 y=0x+y=0 keep=nox+y=1 keep=nox+y=2 keep=yesx+y=1 keep=no
Build the concrete table
Compute the highlighted logic-table value.
x=0 y=0x=0 y=1x=0 y=2x=1 y=0x=1 y=1x+y=0 keep=nox+y=1 keep=nox+y=2 keep=yesx+y=1 keep=nox+y=2 keep=yes
Build the concrete table
Compute the highlighted logic-table value.
x=0 y=0x=0 y=1x=0 y=2x=1 y=0x=1 y=1x=1 y=2x+y=0 keep=nox+y=1 keep=nox+y=2 keep=yesx+y=1 keep=nox+y=2 keep=yesx+y=3 keep=no
Build the concrete table
Compute the highlighted logic-table value.
x=0 y=0x=0 y=1x=0 y=2x=1 y=0x=1 y=1x=1 y=2x=2 y=0x+y=0 keep=nox+y=1 keep=nox+y=2 keep=yesx+y=1 keep=nox+y=2 keep=yesx+y=3 keep=nox+y=2 keep=yes
Build the concrete table
Compute the highlighted logic-table value.
x=0 y=0x=0 y=1x=0 y=2x=1 y=0x=1 y=1x=1 y=2x=2 y=0x=2 y=1x+y=0 keep=nox+y=1 keep=nox+y=2 keep=yesx+y=1 keep=nox+y=2 keep=yesx+y=3 keep=nox+y=2 keep=yesx+y=3 keep=no
Build the concrete table
Compute the highlighted logic-table value.
x=0 y=0x=0 y=1x=0 y=2x=1 y=0x=1 y=1x=1 y=2x=2 y=0x=2 y=1x=2 y=2x+y=0 keep=nox+y=1 keep=nox+y=2 keep=yesx+y=1 keep=nox+y=2 keep=yesx+y=3 keep=nox+y=2 keep=yesx+y=3 keep=nox+y=4 keep=no
Read the table verdict
Compute the highlighted logic-table value.
x=0 y=0x=0 y=1x=0 y=2x=1 y=0x=1 y=1x=1 y=2x=2 y=0x=2 y=1x=2 y=2verdictx+y=0 keep=nox+y=1 keep=nox+y=2 keep=yesx+y=1 keep=nox+y=2 keep=yesx+y=3 keep=nox+y=2 keep=yesx+y=3 keep=nox+y=4 keep=nokept rows: (0,2), (1,1), (2,0)
logic-computation
Every row is intentionally ordered and pinned to the lesson specification.