task_symbolic__truth_table__satisfying_row_count¶
1) Identity¶
- Domain:
symbolic - Scene id:
truth_table - Scene:
truth_table - Task id:
task_symbolic__truth_table__satisfying_row_count - Objective: count the rows where the displayed Boolean expression is true.
Program Contract¶
Program: truth_table.satisfying_row_count(scene=truth_table, scope=three_variable_input_rows_plus_expression, output=integer)
Candidate set: the visible symbolic notation, tokens, rows, columns, cards, labels, components, and target markers inside the three_variable_input_rows_plus_expression objective scope.
Operands: the visible A, B, C input rows and the displayed expression P.
Operation: evaluate expression P for each row and count rows where the result is 1.
Output binding: answer is the integer count.
Annotation witnesses: a bbox_set containing full table-row boxes for rows where expression P evaluates to 1.
Query ids: single.
Reasoning Operations¶
Families: filtering, counting, logical_composition, formula_evaluation
2) Scene + Task Contract¶
- The table uses three variables
A,B, andC. - Row order is fixed from
000through111. - Values use
1for true and0for false. - The
Pcolumn cells are blank; the model must evaluate the expression from the row inputs rather than count visible output values. - Expression headers use
!,&,|, and^for NOT, AND, OR, and XOR. - Count support is constrained to
1..7, so the public answer is not binary-only. answer_gt.type:integerannotation_gt.type:bbox_set- Annotation schema:
bbox_set
3) Prompt Contract¶
- Bundle:
symbolic_truth_table_v1 scene_key:truth_tabletask_key:satisfying_row_count- Modes:
answer_only,answer_and_annotation - Prompt text comes from the external prompt bundle.
4) Trace Contract¶
execution_trace.truth_table_metadata.expression_idrecords the sampled expression.execution_trace.truth_table_metadata.truth_patternrecords the top-to-bottom output pattern.render_map.row_bboxes_pxcontains row-level projections used for annotation, andrender_map.cell_bboxes_pxcontains the individual cell projections.projected_annotationmirrors the prompt-facingbbox_set.
5) Determinism + Tests¶
- Deterministic generation and rendering from
instance_seed. - Answers and annotation come from the same finalized table.
- Behavior tests:
tests/test_symbolic_truth_table_tasks.py