Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google-deepmind/alphageometry
/ functions
Functions
675 in github.com/google-deepmind/alphageometry
⨍
Functions
675
◇
Types & classes
52
↓ 4 callers
Method
make_equal_pairs
Add ab/cd = mn/pq in case either two of (ab,cd,mn,pq) are equal.
graph.py:1573
↓ 4 callers
Method
name
(self, l: gm.Line, p: gm.Point)
ar.py:680
↓ 4 callers
Function
natural_language_statement
Convert logical_statement to natural language. Args: logical_statement: pr.Dependency with .name and .args Returns: a string of (pseudo)
alphageometry.py:83
↓ 4 callers
Function
pretty_angle
(a: str, b: str, c: str, d: str)
pretty.py:82
↓ 4 callers
Method
register
Register a new equality vc=[(v, c), ..] with traceback dependency dep.
ar.py:339
↓ 4 callers
Function
sketch_bisect
(args: tuple[gm.Point, ...])
numericals.py:1526
↓ 4 callers
Method
why
AR traceback == MILP.
ar.py:376
↓ 4 callers
Function
why_eqangle
Why two angles are equal, returns a Dependency objects.
problem.py:518
↓ 4 callers
Method
why_rep
(self)
geometry.py:82
↓ 3 callers
Method
_get_or_create_ratio
( self, s1: Segment, s2: Segment, deps: Dependency )
graph.py:2055
↓ 3 callers
Method
_setup_equality_example
(self)
geometry_test.py:25
↓ 3 callers
Method
add_algebra
Add new algebraic predicates.
graph.py:178
↓ 3 callers
Method
add_coll
Add a predicate that `points` are collinear.
graph.py:919
↓ 3 callers
Method
all_eqangles_8points
List all sets of 8 points that make two equal angles.
graph.py:2759
↓ 3 callers
Method
all_eqratios_8points
List all sets of 8 points that make two equal ratios.
graph.py:2876
↓ 3 callers
Method
all_midps
(self)
graph.py:3007
↓ 3 callers
Method
beam_decode
Beam search.
lm_inference.py:146
↓ 3 callers
Method
check_circle
(self, points: list[Point])
graph.py:1476
↓ 3 callers
Method
check_midp
(self, points: list[Point])
graph.py:1456
↓ 3 callers
Method
check_npara
(self, points: list[Point])
graph.py:1117
↓ 3 callers
Method
check_perpl
(self, ab: Line, cd: Line)
graph.py:1311
↓ 3 callers
Method
copy
(self)
problem.py:606
↓ 3 callers
Method
decode
(self, ids: list[int])
lm_inference.py:87
↓ 3 callers
Method
derive_algebra
Derive new algebraic predicates.
graph.py:370
↓ 3 callers
Function
draw_angle
Draw an angle on plt ax.
numericals.py:846
↓ 3 callers
Method
encode_list
(self, inputs_strs: list[str])
lm_inference.py:96
↓ 3 callers
Method
flip
(self)
numericals.py:111
↓ 3 callers
Method
get_new_line_thru_pair
(self, p1: Point, p2: Point)
graph.py:884
↓ 3 callers
Method
map2obj
(self, names: list[str])
ar.py:537
↓ 3 callers
Method
merge_into
Merge nodes1 into a single node0.
graph.py:619
↓ 3 callers
Method
modulo
(self, e: dict[str, float])
ar.py:464
↓ 3 callers
Method
names2points
Return Point objects given names.
graph.py:549
↓ 3 callers
Method
parallel_line
(self, p: Point)
numericals.py:174
↓ 3 callers
Function
perm2
(elems: list[Any])
ar.py:168
↓ 3 callers
Function
pretty2a
(a: str, b: str, c: str, d: str)
pretty.py:72
↓ 3 callers
Function
pretty2r
(a: str, b: str, c: str, d: str)
pretty.py:62
↓ 3 callers
Function
rotate_contri
( a: gm.Point, b: gm.Point, c: gm.Point, x: gm.Point, y: gm.Point, z: gm.Point )
dd.py:641
↓ 3 callers
Method
rotatea
(self, ang: float)
numericals.py:103
↓ 3 callers
Function
run_ddar
Run DD+AR. Args: g: gh.Graph object, containing the proof state. p: pr.Problem object, containing the problem statement. out_file: path
alphageometry.py:206
↓ 3 callers
Method
set_directions
(self, d1: Direction, d2: Direction)
geometry.py:490
↓ 3 callers
Method
set_lengths
(self, l1: Length, l2: Length)
geometry.py:515
↓ 3 callers
Method
setup_str_from_problem
Construct the <theorem_premises> string from Problem object.
problem.py:217
↓ 3 callers
Function
simplify
(n: int, d: int)
ar.py:38
↓ 3 callers
Function
solve_quad
Solve a x^2 + bx + c = 0.
numericals.py:470
↓ 3 callers
Method
why_me
Figure out the dependencies predicates of self.
problem.py:722
↓ 2 callers
Method
_add_eqangle
Add eqangle core.
graph.py:1692
↓ 2 callers
Method
_add_eqratio
Add a new eqratio from 8 points (core).
graph.py:2120
↓ 2 callers
Function
_check_between
Whether a is between b & c.
numericals.py:550
↓ 2 callers
Function
_comb2
(elems)
graph_utils.py:34
↓ 2 callers
Method
_create_const_ang
(self, n: int, d: int)
graph.py:143
↓ 2 callers
Method
_create_const_rat
(self, n: int, d: int)
graph.py:149
↓ 2 callers
Function
_draw_circle
( ax: matplotlib.axes.Axes, c: Circle, color: Any = 'cyan', lw: float = 1.2 )
numericals.py:994
↓ 2 callers
Function
_perpendicular_bisector
(p1: Point, p2: Point)
numericals.py:374
↓ 2 callers
Method
_why_coll4
( self, a: Point, b: Point, ab: Line, c: Point, d: Point, cd: Line,
graph.py:1040
↓ 2 callers
Function
add_beam_dim
Creates new beam dimension in non-scalar array and tiles into it.
beam_search.py:66
↓ 2 callers
Method
add_clause
Add a new clause of construction, e.g. a new excenter.
graph.py:2536
↓ 2 callers
Method
add_contri
Add two congruent triangles.
graph.py:2415
↓ 2 callers
Method
add_contri2
Add two congruent reflected triangles.
graph.py:2440
↓ 2 callers
Method
add_cyclic
Add a new cyclic predicate that 4 points are concyclic.
graph.py:1501
↓ 2 callers
Method
add_eq
(self, l1: gm.Length, l2: gm.Length, dep: pr.Dependency)
ar.py:566
↓ 2 callers
Method
add_eq3
(self, a: str, b: str, f: float, dep: pr.Dependency)
ar.py:433
↓ 2 callers
Method
add_eqrat_const
Add new algebraic predicates of type eqratio-constant.
graph.py:233
↓ 2 callers
Method
add_eqratio3
Add three eqratios through a list of 6 points (due to parallel lines).
graph.py:2093
↓ 2 callers
Method
add_free
(self, v: str)
ar.py:292
↓ 2 callers
Method
add_piece
Add a new predicate.
graph.py:680
↓ 2 callers
Method
add_s_angle
Add that an angle abx is equal to constant y.
graph.py:1895
↓ 2 callers
Method
add_simtri
Add two similar triangles.
graph.py:2372
↓ 2 callers
Method
add_simtri2
Add two similar reflected triangles.
graph.py:2397
↓ 2 callers
Function
all_4points
(l1, l2)
graph_utils.py:90
↓ 2 callers
Method
all_colls
(self)
graph.py:3002
↓ 2 callers
Method
all_congs
(self)
graph.py:2868
↓ 2 callers
Method
all_cyclics
(self)
graph.py:2997
↓ 2 callers
Method
all_paras
(self)
graph.py:2851
↓ 2 callers
Method
all_perps
(self)
graph.py:2857
↓ 2 callers
Method
all_same_line
( self, a: Point, b: Point )
graph.py:2469
↓ 2 callers
Function
apply_derivations
( g: gh.Graph, derives: dict[str, list[tuple[gm.Point, ...]]] )
dd.py:1148
↓ 2 callers
Function
bfs_backtrack
Return the path given BFS trace of parent nodes.
geometry.py:305
↓ 2 callers
Function
brevity_penalty
Brevity penalty function for beam search penalizing short sequences. Args: alpha: float: brevity-penalty scaling parameter. length: int: le
beam_search.py:47
↓ 2 callers
Function
cache_match
Cache throughout one single BFS level.
dd.py:810
↓ 2 callers
Method
check_aconst
Check if the angle is equal to a certain constant.
graph.py:1953
↓ 2 callers
Method
check_nperp
(self, points: list[Point])
graph.py:1329
↓ 2 callers
Method
check_para_or_coll
(self, points: list[Point])
graph.py:1103
↓ 2 callers
Method
check_rconst
Check whether a ratio is equal to some given constant.
graph.py:2244
↓ 2 callers
Method
check_sameside
(self, points: list[Point])
graph.py:1002
↓ 2 callers
Function
check_too_close
( newpoints: list[Point], points: list[Point], tol: int = 0.1 )
numericals.py:588
↓ 2 callers
Function
check_too_far
( newpoints: list[Point], points: list[Point], tol: int = 4 )
numericals.py:602
↓ 2 callers
Function
collx_to_coll_setup
Convert collx to coll in setups.
trace_back.py:208
↓ 2 callers
Method
copy
Make a copy of self.
graph.py:128
↓ 2 callers
Function
diff_point
(l: gm.Line, a: gm.Point)
dd.py:38
↓ 2 callers
Method
encode
(self, inputs_str: str)
lm_inference.py:93
↓ 2 callers
Method
enum_sides
( self, points: list[Point] )
graph.py:2348
↓ 2 callers
Method
enum_triangle2
( self, points: list[Point] )
graph.py:2364
↓ 2 callers
Method
extend_many
Extend the dependency list by many name_args.
problem.py:626
↓ 2 callers
Function
flatten_beam_dim
Flattens the first two dimensions of a non-scalar array.
beam_search.py:93
↓ 2 callers
Function
fn
(array: Array, idx: Array)
transformer_layer.py:48
↓ 2 callers
Method
from_string
Load deduction rule from a str object.
problem.py:384
↓ 2 callers
Method
get_all_eqs_and_why
(self)
ar.py:655
↓ 2 callers
Method
get_new_circle_thru_triplet
Get a new Circle that goes thru three given Points.
graph.py:861
↓ 2 callers
Method
get_or_create_angle_d
Get or create an angle between two Direction d1 and d2.
graph.py:1155
↓ 2 callers
Function
get_quotient
(v: float)
ar.py:50
← previous
next →
101–200 of 675, ranked by callers