task_symbolic__truth_table__truth_pattern_label¶
1) Identity¶
- Domain:
symbolic - Scene id:
truth_table - Scene:
truth_table - Task id:
task_symbolic__truth_table__truth_pattern_label - Objective: select the output pattern produced by a displayed Boolean expression.
Program Contract¶
Program: truth_table.truth_pattern_label(scene=truth_table, scope=target_expression_plus_pattern_options, output=option_letter)
Candidate set: the six visible pattern option cards labeled A..F.
Operands: the displayed target expression P, the canonical input rows, and the candidate output patterns.
Operation: evaluate P on each row from top to bottom and select the matching pattern option.
Output binding: answer is the selected option letter.
Annotation witnesses: a scalar bbox around the selected pattern option card.
Query ids: single.
Reasoning Operations¶
Families: logical_composition, formula_evaluation, matching
2) Scene + Task Contract¶
- The input table shows variables
A,B, andCin row order000..111. - Six option cards show eight-value patterns in top-to-bottom row order.
- Exactly one option card matches the evaluated target expression.
- 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:truth_pattern_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 correct pattern.execution_trace.truth_table_metadata.option_patternsrecords the visible option patterns.render_map.item_bboxes_pxcontains 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