geometor.model¶
L1 Instance · Archetype: analytic-cas · upstream · dossier
Believe it because the figure is built exactly — algebraic coordinates from ruler-and-compass intersections — and every asserted relation reduces to zero.
Trust chain¶
Ontology |
Exact SymPy points, lines, circles, polygons in a construction DAG; coordinates in ℚ, ℚ(√d), ℚ(φ), radical towers. (What exists?) |
Language |
Python construction + assertions: m.assert_collinear(A, B, C, by=”I.1”). (How is a statement written?) |
Assumptions |
Exact algebraic numbers; closed-form ruler-and-compass intersections. (What is taken as given?) |
Engine |
Exact construction + quadrance / spread / determinant identities reduced by zero_test. (How are new truths derived?) |
Certificate |
Step ledger of assertions (citations unchecked) and the exact figure. (What evidence is left behind?) |
Checker |
zero_test (exact tiers + numeric acceptance branch) + SymPy. (What must be trusted?) |
Semantics |
One exact figure in ℝ² over real algebraic numbers. (What model makes it sound?) |
At a glance¶
- Logic / calculus:
Evaluation on an exact instance
- Exact vs numeric:
Exact (one numeric acceptance branch)
- Decision procedure:
Yes for constant algebraic expressions (minimal polynomial)
- Role of the diagram:
The figure is the proof object
- Degeneracy handling:
Visible in the instance
- Trusted base (size):
~3.5k lines + SymPy
- Trusts:
model zero_test (~3.5k lines + SymPy) · SymPy simplification (core heuristics + mpmath)
- Catalog:
47 principles (13 shared with other systems) — search
A statement in its own language¶
m = Model("I.5", auto_intersect=False)
A, B, C = m.set_point(2, 3), m.set_point(0, 0), m.set_point(4, 0)
m.assert_equal((A, B), (A, C), by="Given")
m.assert_spread_equal((A, B, C), (A, C, B), by="I.5")
Source: codes/src/geometor/codes/verify.py
Findings¶
zero_test is the single truth oracle for every assert_*; `by=` citations are recorded, not checked.
zero_test is exact on most paths (expansion, ℚ(φ)/ℚ(√φ) field arithmetic, minimal_polynomial) but accepts |evalf(80)| < 1e-65 for large constant expressions (algebra.py:247-251) — a candidate for a strict mode.
A witness certifies one figure (L1); with free symbolic coordinates the same check certifies generic truth (L2) — see the showcase generic witnesses.
No order predicates (betweenness, same side): Pasch-type statements are out of reach.
In the showcase¶
I.5 Pons asinorum — witness
verify._build_isosceles_base_anglesI.47 Pythagorean theorem — witness
verify._build_pythagoreanIII.31 Angle in a semicircle — witness
verify._build_thales_semicircleSimson line — witness
verify._build_simson_linePasch’s axiom — gap
KNOWN_GAPS['pasch']