geometor.byrne.pseudocode¶
Formal grammar, AST, and 3-way Rosetta metrics for Oliver Byrne’s 1847 Visual Pseudocode.
Models Oliver Byrne’s 1847 notation (Introduction, pp. ix–xi, xxvii–xxix) as a pointer-free, typed geometric value-token language:
Classical Euclidean Text (Heath / Heiberg): Pass-by-reference. Geometric objects are unnamed in ink; vertices carry alphabetic memory addresses (
A,B,C, …) and prose dereferences composite tuples (line AB,angle BAC,triangle FBC,square ABFG) at every step.Byrne 1847 Visual Pseudocode: Pass-by-value. Every geometric primitive is assigned a perceptual signature
(kind, color, stroke, fill)that appears literally inside vertical symbolic equations (∴,∵,=,+,⊏,⊐,∥,⊥,∷) with marginal axiom/proposition citations.GEOMETOR Formal Pseudocode (elements / model): Typed Constructive DAG. Explicit constructor steps (
line,circle,intersect) and symbolic algebraic invariants over exact number fields.
Attributes¶
Classes¶
Typed geometric primitive sorts in Byrne's 1847 visual grammar. |
|
Stroke patterns used by Byrne to multiply his 4-color register space. |
|
Planar region rendering modes in Chiswick Press woodblock plates. |
|
Canonical block phases in Byrne's structured proposition layout. |
|
An inline pass-by-value geometric glyph in a Byrne statement. |
|
An algebraic, relational, or deductive operator in a Byrne equation. |
|
Minimal connecting English keyword in Byrne's telegraphic equations. |
|
A single structured line in a Byrne visual program. |
|
Complete 3-way Rosetta formalization of a Euclidean proposition. |
|
Static visual register-allocation audit for a |
|
Quantitative comparison across Heath (alphabetic), Byrne (visual), and GEOMETOR (DAG). |
Functions¶
|
Count symbolic letter-pointer dereferences ( |
|
Audit visual register allocation and collision freedom in |
|
Compute quantitative Rosetta comparison metrics for a |
|
Lookup a |
Module Contents¶
- class geometor.byrne.pseudocode.TokenKind¶
Bases:
enum.StrEnumTyped geometric primitive sorts in Byrne’s 1847 visual grammar.
- LINE = 'line'¶
- ANGLE = 'angle'¶
- TRIANGLE = 'tri'¶
- SQUARE = 'sq'¶
- RECTANGLE = 'rect'¶
- ARC = 'arc'¶
- CIRCLE = 'circle'¶
- MAGNITUDE = 'mag'¶
- class geometor.byrne.pseudocode.StrokeMode¶
Bases:
enum.StrEnumStroke patterns used by Byrne to multiply his 4-color register space.
- SOLID = 'solid'¶
- DASHED = 'dashed'¶
- DOTTED = 'dotted'¶
- SOLID_DOTTED = 'solid-dotted'¶
- class geometor.byrne.pseudocode.FillMode¶
Bases:
enum.StrEnumPlanar region rendering modes in Chiswick Press woodblock plates.
- NONE = 'outline'¶
- FILLED = 'filled'¶
- HALF = 'half'¶
- THREE_SIDE = 'three-side'¶
- class geometor.byrne.pseudocode.ProofPhase¶
Bases:
enum.StrEnumCanonical block phases in Byrne’s structured proposition layout.
- ENUNCIATION = 'enunciation'¶
- GIVEN = 'given'¶
- SOUGHT = 'sought'¶
- CONSTRUCTION = 'construction'¶
- DEMONSTRATION = 'demonstration'¶
- QED = 'qed'¶
- class geometor.byrne.pseudocode.VisualToken¶
An inline pass-by-value geometric glyph in a Byrne statement.
Encodes primitive
kind(TokenKind), Byrnecolorexpression,stroke(StrokeMode),fill(FillMode), optional interactivegeom_ref,squaredexponent flag, Book Vshape_hint, and intentional symmetriccongruence_group.- stroke: StrokeMode¶
- class geometor.byrne.pseudocode.OpToken¶
An algebraic, relational, or deductive operator in a Byrne equation.
- class geometor.byrne.pseudocode.TextFragment¶
Minimal connecting English keyword in Byrne’s telegraphic equations.
- class geometor.byrne.pseudocode.ByrneStatement¶
A single structured line in a Byrne visual program.
Stores block
phase(ProofPhase), ordereditemsof visual tokens, operators, and minimal connectors, marginal Euclideanjustifications, and an optional analyticalcomment.- phase: ProofPhase¶
- visual_tokens() list[VisualToken]¶
Return all
VisualTokeninstances in this statement.
- class geometor.byrne.pseudocode.ByrneProgram¶
Complete 3-way Rosetta formalization of a Euclidean proposition.
Pairs Byrne’s 1847 pointer-free visual program with Heath’s classical alphabetic English translation and GEOMETOR’s formal DAG pseudocode.
- statements: tuple[ByrneStatement, ...]¶
- all_visual_tokens() list[VisualToken]¶
Flatten all visual tokens appearing across all phases of the program.
- class geometor.byrne.pseudocode.RegisterDiagnostic¶
Static visual register-allocation audit for a
ByrneProgram.
- class geometor.byrne.pseudocode.RosettaMetrics¶
Quantitative comparison across Heath (alphabetic), Byrne (visual), and GEOMETOR (DAG).
- register_diagnostic: RegisterDiagnostic¶
- geometor.byrne.pseudocode.count_alphabetic_dereferences(text: str) int¶
Count symbolic letter-pointer dereferences (
AB,BCD,point A, …) in classical prose.Excludes Roman numeral proposition references (
I,II,III,IV,V,VI) when preceded byBookorProp.
- geometor.byrne.pseudocode.analyze_visual_registers(program: ByrneProgram) RegisterDiagnostic¶
Audit visual register allocation and collision freedom in
program.Distinguishes:
Stroke modulation (
dashed/dotted/solid-dotted) when 4 colors alone cannot separate adjacent collinear or overlapping elements;Composite tokens (
yellow+blacksplit angles orred/blue/blacktriangles);Intentional congruence twins (e.g. equal legs
/ A B /and/ A C /inI.5deliberately sharingred solidto encodeAB = ACvisually); andAmbiguous collisions (two unequal
geom_refentities sharing an identical register signature without acongruence_groupdeclaration).
- geometor.byrne.pseudocode.compute_rosetta_metrics(program: ByrneProgram) RosettaMetrics¶
Compute quantitative Rosetta comparison metrics for a
ByrneProgram.
- geometor.byrne.pseudocode.ROSETTA_PROGRAMS: dict[str, ByrneProgram]¶
- geometor.byrne.pseudocode.get_rosetta_program(prop_id: str) ByrneProgram¶
Lookup a
ByrneProgramby proposition ID (e.g."I.47").