geometor.nicomachus.ten_means_and_cube

Ten Nicomachean Proportions & the Cube Harmony 6 : 8 :: 9 : 12 (Book II, Chs. 21–29).

Formalizes the culminating chapters of Nicomachus of Gerasa’s Introduction to Arithmetic:

  • All Ten Means (δέκα μεσότητες, II.21–28):

    • The three classical archetypes from Pythagoras, Archytas, Plato, and Aristotle: 1. Arithmetic, 2. Geometric, 3. Harmonic.

    • The three subcontrary proportions (ὑπεναντίαι): 4. Subcontrary to Harmonic, 5. First Subcontrary to Geometric, 6. Second Subcontrary to Geometric.

    • The four later Neo-Pythagorean proportions (τέσσαρες ἕτεραι, Myonides & Euphranor): 7th, 8th, 9th, and 10th — where the 10th Mean (\((z - x)/(z - m) = m/x\)) reduces for \(m \ne x\) to the Fibonacci additive law \(x + m = z\) (canonical example \(3, 5, 8\)).

  • Semicircle Construction of the Three Classical Means (cf. Pappus Synagoge III): Exact Model construction proving visually \(A \ge G \ge H\) and \(A \cdot H = G^2\).

  • The Most Perfect Proportion (*Τελειοτάτη Ἀναλογία*, II.29): \(6 : 8 :: 9 : 12\), uniting the topology of the Cube (6 faces, 8 vertices, 12 edges — Philolaus’s “geometric harmony”), Arithmetic (9), Harmonic (8), and Geometric (\(6 \cdot 12 = 8 \cdot 9 = 72\)) symmetry, projective harmonic cross-ratio \((6, 12; 8, 0) = -1\), and all Pythagorean musical consonances.

Attributes

CUBE_PROPORTION_TERMS

NICOMACHEAN_TEN_MEANS

Classes

MeanSpec

Specification and canonical witness for one of Nicomachus's ten means (II.23–28).

CubeHarmonicResult

Result bundle for Nicomachus's Teleiotatē Analogia 6 : 8 :: 9 : 12 (II.29).

Functions

compute_nicomachean_mean(index, x, z) → sympy.Expr

Compute the exact index-th Nicomachean mean m between 0 < x < z (II.23–28).

compute_all_ten_means([x, z]) → list[dict[str, Any]]

Compute all ten Nicomachean means between x and z (when z > 2*x).

construct_three_classical_means_model([a_len, c_len]) → geometor.model.Model

Build an exact semicircle Model of Arithmetic, Geometric, and Harmonic means.

construct_cube_proportion_model() → CubeHarmonicResult

Build and verify Nicomachus's Teleiotatē Analogia 6 : 8 :: 9 : 12 (Book II, Ch. 29).

verify_ten_means_identities() → dict[str, Any]

Verify symbolically all ten Nicomachean means on Hoche's synoptic table & general symbols.

verify_cube_proportion_identities() → dict[str, Any]

Verify all arithmetic, musical, topological, and projective laws of 6 : 8 :: 9 : 12.

Module Contents

geometor.nicomachus.ten_means_and_cube.CUBE_PROPORTION_TERMS: tuple[sympy.Integer, sympy.Integer, sympy.Integer, sympy.Integer]
class geometor.nicomachus.ten_means_and_cube.MeanSpec

Specification and canonical witness for one of Nicomachus’s ten means (II.23–28).

Variables:
  • index – Nicomachean ordinal 1..10 (Hoche p. 144; D’Ooge p. 284).

  • name – Scholarly English title.

  • greek_name – Greek designation in Nicomachus II.22–28.

  • group – Historical stratum ("classical", "subcontrary", or "neopythagorean").

  • proportion_latex – Defining difference-to-term proportion for ascending x < m < z.

  • closed_form_latex – Explicit algebraic formula for m in terms of (x, z).

  • canonical_triple – Nicomachus’s synoptic integer witness from the Decad (II.28.11).

  • greek_numerals – Greek alphabetic numerals printed in Hoche 1866, p. 144.

index: int
name: str
greek_name: str
group: str
proportion_latex: str
closed_form_latex: str
canonical_triple: tuple[int, int, int]
greek_numerals: str
class geometor.nicomachus.ten_means_and_cube.CubeHarmonicResult

Result bundle for Nicomachus’s Teleiotatē Analogia 6 : 8 :: 9 : 12 (II.29).

Variables:
  • terms – Exact 4-tuple (6, 8, 9, 12).

  • cube_counts – Topological invariants of the hexahedron {"faces": 6, "vertices": 8, "edges": 12}.

  • arithmetic_mean – Exact arithmetic mean 9 of (6, 12).

  • harmonic_mean – Exact harmonic mean 8 of (6, 12).

  • geometric_product – Shared product 6 * 12 == 8 * 9 == 72.

  • consonances – Exact sympy.Rational musical intervals generated by (6, 8, 9, 12).

  • projective_cross_ratio – Exact cross-ratio (T6, T12; T8, Z) == -1.

  • model – Verified Model constructing T9 by Euclidean bisection and T8 by complete-quadrilateral harmonic conjugation.

terms: tuple[sympy.Integer, sympy.Integer, sympy.Integer, sympy.Integer]
cube_counts: dict[str, int]
arithmetic_mean: sympy.Integer
harmonic_mean: sympy.Integer
geometric_product: sympy.Integer
consonances: dict[str, sympy.Rational]
projective_cross_ratio: sympy.Expr
model: geometor.model.Model
geometor.nicomachus.ten_means_and_cube.NICOMACHEAN_TEN_MEANS: tuple[MeanSpec, ...]
geometor.nicomachus.ten_means_and_cube.compute_nicomachean_mean(index: int, x: int | sympy.Expr, z: int | sympy.Expr) → sympy.Expr

Compute the exact index-th Nicomachean mean m between 0 < x < z (II.23–28).

Note on the 10th Mean: its defining equation \((z - x)/(z - m) = m/x\) factors as \((m - x)(m - (z - x)) = 0\); hence a strict interior mean \(x < m < z\) exists if and only if the diorismos \(z > 2x\) holds, in which case \(m = z - x\) (\(x + m = z\)).

Parameters:
  • index – Nicomachean proportion ordinal 1..10.

  • x – Lesser positive extreme (concrete number or positive symbolic expression).

  • z – Greater positive extreme satisfying z > x (and z > 2*x when index == 10 for concrete numerical inputs).

Returns:

Exact simplified sympy.Expr for m.

Raises:

ValueError – If index is outside 1..10 or concrete bounds violate 0 < x < z (or z <= 2*x for index == 10).

geometor.nicomachus.ten_means_and_cube.compute_all_ten_means(x: int | sympy.Expr = 4, z: int | sympy.Expr = 12) → list[dict[str, Any]]

Compute all ten Nicomachean means between x and z (when z > 2*x).

Parameters:
  • x – Lesser positive extreme (default 4).

  • z – Greater positive extreme satisfying z > 2*x so all ten means including the 10th exist strictly inside (x, z) (default 12).

Returns:

List of 10 dictionaries containing spec, x, mean, z, and canonical_witness.

geometor.nicomachus.ten_means_and_cube.construct_three_classical_means_model(a_len: int | sympy.Expr = 6, c_len: int | sympy.Expr = 12) → geometor.model.Model

Build an exact semicircle Model of Arithmetic, Geometric, and Harmonic means.

Defaults to a_len = 6, c_len = 12 (the Cube extremes of Book II, Ch. 29), where OS = 9 (Arithmetic), QS = 6*sqrt(2) (Geometric), and SF = 8 (Harmonic), all in \(\mathbb{Q}(\sqrt{2})\) with Q(MeanA) * Q(MeanH) == Q(MeanG)**2 == 5184.

Parameters:
  • a_len – First positive segment length a.

  • c_len – Second positive segment length c.

Returns:

Verified exact symbolic Model.

Raises:

ValueError – If concrete inputs are non-positive.

geometor.nicomachus.ten_means_and_cube.construct_cube_proportion_model() → CubeHarmonicResult

Build and verify Nicomachus’s Teleiotatē Analogia 6 : 8 :: 9 : 12 (Book II, Ch. 29).

Constructs T9(9, 0) by Euclidean bisection and T8(8, 0) by a pure straightedge complete quadrilateral from Z(0, 0), T6(6, 0), T12(12, 0), then verifies:

  • Topological Cube witness: 6 faces, 8 vertices, 12 edges (Euler 6 + 8 - 12 = 2).

  • Projective harmonic range (T6, T12; T8, Z) == -1.

  • Musical consonances: octave 12:6 = 2:1, fifth 9:6 = 12:8 = 3:2, fourth 8:6 = 12:9 = 4:3, and whole tone 9:8.

Returns:

Verified CubeHarmonicResult.

geometor.nicomachus.ten_means_and_cube.verify_ten_means_identities() → dict[str, Any]

Verify symbolically all ten Nicomachean means on Hoche’s synoptic table & general symbols.

Returns:

Summary dictionary of verified canonical witnesses, symbolic proportions, and Fibonacci tenth-mean identities.

Raises:

AssertionError – If any of the ten proportions fails exact SymPy verification.

geometor.nicomachus.ten_means_and_cube.verify_cube_proportion_identities() → dict[str, Any]

Verify all arithmetic, musical, topological, and projective laws of 6 : 8 :: 9 : 12.

Returns:

Summary dictionary of verified Book II, Ch. 29 identities.