Overview of AlphaGeometry source code and resources
mainThe AlphaGeometry repository contains Python modules for running geometric solvers and resource files for execution.
Core Python Modules:
alphageometry.py: The main entry point for loading problems, invoking the DD+AR or AlphaGeometry solvers, and printing solutions.dd.py,ar.py,ddar.py: Implementations of Deduction (DD), Autoregressive (AR), and their combination (DD+AR).geometry.py,graph.py,problem.py: Handle the geometric proof state graph, nodes (Point, Line, etc.), and problem premises.models.py,beam_search.py,lm_inference.py: Implement the transformer model, beam decoding in JAX, and the LM interface.numericals.py: Implements the numerical engine.trace_back.py: Implements recursive traceback and dependency difference algorithms.pretty.py: Formats solver output.run.sh: Script to execute the instructions provided in the README.run_tests.sh: Script to execute the test suite.
Resource Files:
defs.txt: Geometric construction action definitions.rules.txt: Deduction rules for DD.geometry_150M_generate.gin: Gin configuration for the LM.imo_ag_30.txt&jgex_ag_231.txt: Problem datasets.