Wr041 — Writer emits `.TRUE.` / `.FALSE.` instead of canonical `.T.` / `.F.`

§12.13 writer-pathology (sub-class: lexeme conformance)

P3 — cosmetic / metadata-only

writer

Sources

Sender

Writers built on a generic EXPRESS-instance serialiser that maps the EXPRESS `BOOLEAN` keyword to its long-form spelling, or hand-rolled writers that confuse EXPRESS reserved-word case-insensitivity with Part-21 lexeme conformance

Description

A producer's writer emits boolean attribute values as `.TRUE.` / `.FALSE.` rather than the canonical Part-21 `.T.` / `.F.`. The output is malformed under strict spec interpretation; receivers that strictly enforce the lexeme reject, while heuristic receivers fold the long form. Producer-side root cause for the receiver-side defect Le055. Bug-reporter language: "STEP writer emits .TRUE.", "long-form boolean", "exporter wrote TRUE/FALSE".

Reproducer recipe

a complete file where every `EDGE_CURVE` `same_sense` and every `ORIENTED_EDGE` `orientation` attribute uses `.TRUE.` / `.FALSE.` instead of `.T.` / `.F.`.

Expected kernel behavior

Heal and accept: writer normalizes / emits canonical short-form lexemes per the spec; if interoperability with long-form-emitting tools is required, expose a normaliser flag.

Notes

Producer-side root cause for Le055. **See also**: Le055, Le056. Provenance tier: writer-side (Q5 reclassification 2026-07-01).

Expected validation

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

Provenance tier

writer-side — defect not fully embodied in fixture bytes.

Byte assertions

Tier-3 assertions

Cross-references

Le055, Le056

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes
1ISO-10303-21;
2/* Wr041: writer emits .TRUE. / .FALSE. instead of canonical .T. / .F. */
3/* ISO 10303-21 §6.3.4: boolean lexemes must be exactly .T. or .F. */
4/* DEFECT: same_sense and orientation attributes use long-form .TRUE. / .FALSE. */
5/* Strict receivers reject; heuristic receivers fold; diff tools see noise */
6HEADER;
7FILE_DESCRIPTION(('Wr041: long-form boolean lexemes .TRUE. / .FALSE.'),'2;1');
8FILE_NAME('Wr041.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
10ENDSEC;
11DATA;
12/* Geometry: unit square in XY plane */
13#1=CARTESIAN_POINT('p0',(0.,0.,0.));
14#2=CARTESIAN_POINT('p1',(1.,0.,0.));
15#3=CARTESIAN_POINT('p2',(1.,1.,0.));
16#4=CARTESIAN_POINT('p3',(0.,1.,0.));
17#5=DIRECTION('xdir',(1.,0.,0.));
18#6=DIRECTION('ydir',(0.,1.,0.));
19#7=DIRECTION('xneg',(-1.,0.,0.));
20#8=DIRECTION('yneg',(0.,-1.,0.));
21#9=DIRECTION('zdir',(0.,0.,1.));
22#10=VECTOR('vx',#5,1.);
23#11=VECTOR('vy',#6,1.);
24#12=VECTOR('vxn',#7,1.);
25#13=VECTOR('vyn',#8,1.);
26#14=LINE('line-bot',#1,#10);
27#15=LINE('line-rgt',#2,#11);
28#16=LINE('line-top',#3,#12);
29#17=LINE('line-lft',#4,#13);
30#18=VERTEX_POINT('v0',#1);
31#19=VERTEX_POINT('v1',#2);
32#20=VERTEX_POINT('v2',#3);
33#21=VERTEX_POINT('v3',#4);
34/* DEFECT: same_sense uses .TRUE. instead of canonical .T. */
35#22=EDGE_CURVE('e-bot',#18,#19,#14,.TRUE.);
36#23=EDGE_CURVE('e-rgt',#19,#20,#15,.TRUE.);
37#24=EDGE_CURVE('e-top',#20,#21,#16,.TRUE.);
38#25=EDGE_CURVE('e-lft',#21,#18,#17,.TRUE.);
39/* DEFECT: orientation uses .TRUE. / .FALSE. instead of canonical .T. / .F. */
40#26=ORIENTED_EDGE('',*,*,#22,.TRUE.);
41#27=ORIENTED_EDGE('',*,*,#23,.TRUE.);
42#28=ORIENTED_EDGE('',*,*,#24,.FALSE.);
43#29=ORIENTED_EDGE('',*,*,#25,.FALSE.);
44#30=EDGE_LOOP('loop',(#26,#27,#28,#29));
45#31=FACE_OUTER_BOUND('',#30,.T.);
46#32=AXIS2_PLACEMENT_3D('ax',#1,#9,#5);
47#33=PLANE('pln',#32);
48#34=ADVANCED_FACE('sq-face',(#31),#33,.T.);
49#35=OPEN_SHELL('shell',(#34));
50#36=SHELL_BASED_SURFACE_MODEL('model',(#35));
51ENDSEC;
52END-ISO-10303-21;