task_symbolic__truth_table__expression_from_rows_label¶
1) Identity¶
- Domain:
symbolic - Scene id:
truth_table - Scene:
truth_table - Task id:
task_symbolic__truth_table__expression_from_rows_label - Objective: select the Boolean expression that produces the completed output column.
Program Contract¶
Program: truth_table.expression_from_rows_label(scene=truth_table, scope=input_rows_plus_completed_output_column_and_expression_options, output=option_letter)
Candidate set: the four visible expression option cards labeled W..Z.
Operands: the visible A, B, C input rows, the completed P output column, and candidate expressions.
Operation: compare each candidate expression's truth values over the shown rows to the completed P column.
Output binding: answer is the selected candidate label.
Annotation witnesses: a scalar bbox around the selected expression option card.
Query ids: single.
Reasoning Operations¶
Families: logical_composition, formula_evaluation, matching
2) Scene + Task Contract¶
- The table uses variables
A,B, andCwith fixed row order000..111. - The
Pcolumn shows completed truth values for all rows. - Candidate labels
W..Zdo not collide with input variablesA,B, andC. - Exactly one candidate expression has the same truth pattern as column
P. - Values use
1for true and0for false. answer_gt.type:stringannotation_gt.type:bbox- Annotation schema:
bbox
3) Prompt Contract¶
- Bundle:
symbolic_truth_table_v1 scene_key:truth_tabletask_key:expression_from_rows_label- Modes:
answer_only,answer_and_annotation - Prompt text comes from the external prompt bundle.
4) Trace Contract¶
execution_trace.truth_table_metadata.truth_patternrecords the visiblePcolumn from top to bottom.execution_trace.truth_table_metadata.candidate_expressionsrecords each candidate expression and whether it matches the output column.render_map.cell_bboxes_pxcontains table-cell projections.render_map.item_bboxes_pxcontains expression-option card projections.projected_annotationmirrors the selected optionbbox.
5) Determinism + Tests¶
- Deterministic generation and rendering from
instance_seed. - Options are sampled with one unique final answer.
- Behavior tests:
tests/test_symbolic_truth_table_tasks.py