Le055 — Boolean lexeme written as `.TRUE.` / `.FALSE.` instead of canonical `.T.` / `.F.`

§12.1a encoding/strings (sub-class: lexeme conformance)

silent-loss spec-violation encoding

Sources

Sender

deduced — producers porting from EXPRESS-G-style notation, Fortran-derived writers, in-house exporters that paraphrase the EXPRESS BOOLEAN keyword

Description

ISO 10303-21 spells boolean values `.T.` and `.F.` (single letter, dot-bracketed). A few producers emit the EXPRESS keyword spellings `.TRUE.` and `.FALSE.` (or even unquoted `TRUE`/`FALSE`) inside Part-21 attribute slots. Strict lexers expecting exactly `.T.` or `.F.` either reject or mis-tokenise the surrounding record; heuristic lexers may accept the long form. The defect propagates whenever the producer assumes the Part-21 lexeme matches the EXPRESS reserved word; e.g. `same_sense=.TRUE.`. Bug-reporter language: "STEP file uses .TRUE.", "parser rejects boolean attribute", "writer used long-form boolean".

Reproducer recipe

an `EDGE_CURVE` whose `same_sense` attribute is `.TRUE.` rather than `.T.`; a second instance with `.FALSE.` rather than `.F.`.

Expected kernel behavior

reject as malformed with a diagnostic naming the offending lexeme; or, in lenient mode, accept the long form with a warning. Silent acceptance hides the producer-side defect.

Notes

Cousin of Wr041 (writer-side root cause). **See also**: Wr041, Le027. Synonyms: "STEP boolean wrong format", "long-form boolean", "TRUE/FALSE in STEP file". **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.

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Byte assertions

Tier-3 assertions

Cross-references

Wr041, Le027

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Le055: Boolean lexeme written as .TRUE. / .FALSE. instead of canonical .T. / .F.; ISO 10303-21 §6.3.4: boolean values must be spelled .T. and .F. (single letter, dot-bracketed); a few producers emit EXPRESS keyword spellings .TRUE. and .FALSE. inside Part-21 attribute slots — cousin of Wr041 (writer-side root cause); strict lexers expecting exactly .T. or .F. reject or mis-tokenise the record; heuristic lexers may accept the long form, hiding the producer-side defect; defect: EDGE_CURVE same_sense=.TRUE. and same_sense=.FALSE. instead of .T./.F.; receiver must reject with a diagnostic naming the offending lexeme, or in lenient mode accept with a warning; silent acceptance hides the defect; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('Le055'),'2;1');
5FILE_NAME('Le055.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-true',#9001,#9002,#9003,.TRUE.);
12#8998=EDGE_CURVE('edge-false',#9001,#9002,#9003,.FALSE.);
13#8999=PERSON('same_sense is .TRUE. not .T.','long-form-boolean-defect','');
14
15ENDSEC;
16END-ISO-10303-21;