step-examples/12-1a-encoding/Le056.stp
Sources
- ISO 10303-21 §6.3.4
- deduced from multi-source writer pipelines where one subsystem composes records as `.T.` and another as `.TRUE.`
Sender
deduced — writer pipelines composing entities from multiple in-process sources without normalising boolean spelling
Description
One DATA section contains both canonical `.T.` / `.F.` and long-form `.TRUE.` / `.FALSE.` boolean lexemes. Receivers that accept only the canonical form produce inconsistent results across the same file (some attributes parse, others fail), which is harder to diagnose than a uniform long-form file. Bug-reporter language: "STEP file booleans inconsistent", "some `.T.` and some `.TRUE.`", "half the file parses".
Reproducer recipe
one `EDGE_CURVE` with `same_sense=.T.`; another `EDGE_CURVE` with `same_sense=.TRUE.`; both referenced from the same EDGE_LOOP.
Expected kernel behavior
surface the inconsistency; reject either uniformly or accept either uniformly; never accept some and reject others within the same file. A producer-side normaliser is the cleanest fix.
Notes
**See also**: Le055, Wr041. **OCC behavior**: accepts with ERR diagnostic (empty result); catalog disallows silent-accept. Kernel-bug witnessed: receivers enforcing the spec must reject (or surface a diagnostic); silent acceptance defeats the catalog's stated invariant. Synonyms: "mixed .T. and .TRUE. in STEP", "STEP file uses both short and long boolean", "long-form and short-form boolean mixed", "inconsistent boolean lexemes", "STEP boolean inconsistent in file".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'.T.') and contains(b'.TRUE.')count(b'.T.') >= 1 and count(b'.TRUE.') >= 1
Tier-3 assertions
shape_null == True
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Le056: Mixed .T. and .TRUE. boolean lexemes within one file; ISO 10303-21 §6.3.4: canonical boolean spellings are .T. and .F. only; one DATA section contains both canonical .T./.F. and long-form .TRUE./.FALSE.; deduced from multi-source writer pipelines where one subsystem writes .T. and another writes .TRUE. without normalising; receivers that accept only canonical form produce inconsistent parse results across the same file â some attributes parse, others fail â harder to diagnose than a uniformly long-form file; sibling of Le055 (uniform long-form); cousin of Wr041; receiver must surface the inconsistency: never accept some and reject others in the same file; normalise to .T./.F. in lenient mode; GEOMETRIC_CURVE_SET IS model entity â OCC yields empty */ 3HEADER; 4FILE_DESCRIPTION(('Le056'),'2;1'); 5FILE_NAME('Le056.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 7ENDSEC; 8DATA; 9#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 10#2=GEOMETRIC_CURVE_SET('',(#1)); 11#8997=EDGE_CURVE('edge-canonical',#9001,#9002,#9003,.T.); 12#8998=EDGE_CURVE('edge-long-form',#9001,#9002,#9003,.TRUE.); 13#8999=PERSON('file mixes .T. and .TRUE. booleans','mixed-boolean-lexemes',''); 14 15ENDSEC; 16END-ISO-10303-21;