pattern recognition

Divine groups related elements into chains and families to reveal hidden structures.

Golden Chain Analyzer: Harmonic Range Identification in Golden Sections.

This module analyzes and explores chains of connected golden sections, unraveling proportional progressions within exact symbolic geometric models.

Features:

  • find_chains_in_sections: Identifies maximal chains within a collection of golden sections, returning a hierarchical tree of connected sections.

  • unpack_chains: Unpacks the chain tree into individual Chain objects ready for symbolic inspection.

geometor.divine.golden.chains.find_chains_in_sections(sections: list[Section]) → dict[Section, dict]

Identify maximal chains of connected golden sections.

Two ordered sections (A, B, C) and (B, C, D) connect when the trailing segment (B, C) of the first equals the leading segment (B, C) of the second.

Parameters:

sections – A list of Section objects to analyze.

Returns:

Tree structure mapping root Section nodes to nested dictionaries of connected successor Section nodes.

Return type:

dict

geometor.divine.golden.chains.unpack_chains(tree: dict[Section, dict]) → list[Chain]

Unpack a chain tree into a list of individual Chain objects.

Parameters:

tree – Tree structure returned by find_chains_in_sections().

Returns:

Connected golden-section chains.

Return type:

list[Chain]