AlphaGeometry¶
L3 Rule-closed · Archetype: rule-engine · upstream · dossier
Believe it because a deduction engine derived it from 43 assumed rules — with side conditions (non-collinear, same side) read off a random numeric diagram.
Trust chain¶
Ontology |
Named points with predicates (coll, para, perp, cong, eqangle, eqratio, cyclic, midp, simtri); hidden float coordinates. (What exists?) |
Language |
Construction clauses and a goal: a b c = triangle a b c; h = orthocenter h a b c; ? perp a h b c. (How is a statement written?) |
Assumptions |
43 Horn rules (rules.txt) + ~71 construction definitions (defs.txt). (What is taken as given?) |
Engine |
DD+AR: forward chaining to a fixpoint + Gaussian elimination over exact Fractions; LM proposes auxiliaries. (How are new truths derived?) |
Certificate |
Deduction trace naming the rule for each step. (What evidence is left behind?) |
Checker |
Python engine + rule soundness + numeric diagram (tol 1e-12). (What must be trusted?) |
Semantics |
The real Euclidean plane, sampled as one random float diagram; directed angles mod π. (What model makes it sound?) |
At a glance¶
- Logic / calculus:
Horn-clause forward chaining
- Exact vs numeric:
Exact algebra; numeric side conditions
- Decision procedure:
Saturation over a finite rule set
- Role of the diagram:
Essential: decides side conditions
- Degeneracy handling:
Numeric filters; no NDG output
- Trusted base (size):
~9.7k lines Python
- Trusts:
AG DD+AR engine (~9.7k lines Python) · Numeric diagram (tol 1e-12 (AG) · rel 1e-3 (Newclid))
- Catalog:
108 principles (50 shared with other systems) — search
A statement in its own language¶
cong O A O B, ncoll O A B => eqangle O A A B A B O B
Source: rules.txt
Findings¶
ncoll, npara, nperp, and sameside premises are decided numerically (dd.py:864-892), not deduced.
build_problem resamples the diagram until the goal holds numerically (graph.py:500-523).
The AR algebra is linear over angle/ratio/distance tables, so a² + b² = c² is not expressible.
The language model only proposes auxiliary points; it is outside the trusted core.
In the showcase¶
I.5 Pons asinorum — rule
rules.txt r13I.47 Pythagorean theorem — gap
—III.31 Angle in a semicircle — rule
rules.txt r20Pasch’s axiom — gap
—