MCPcopy Create free account
hub / github.com/google-deepmind/alphageometry / match_eqangle6_ncoll_cyclic

Function match_eqangle6_ncoll_cyclic

dd.py:766–776  ·  view source on GitHub ↗

Match eqangle6 P A P B Q A Q B, ncoll P Q A B => cyclic A B P Q.

(
    g: gh.Graph,
    g_matcher: Callable[str, list[tuple[gm.Point, ...]]],
    theorem: pr.Theorem,
)

Source from the content-addressed store, hash-verified

764
765
766def match_eqangle6_ncoll_cyclic(
767 g: gh.Graph,
768 g_matcher: Callable[str, list[tuple[gm.Point, ...]]],
769 theorem: pr.Theorem,
770) -> Generator[dict[str, gm.Point], None, None]:
771 """Match eqangle6 P A P B Q A Q B, ncoll P Q A B => cyclic A B P Q."""
772 for a, b, a, c, x, y, x, z in g_matcher('eqangle6'): # pylint: disable=redeclared-assigned-name,unused-variable
773 if (b, c) != (y, z) or a == x:
774 continue
775 if nm.check_ncoll([x.num for x in [a, b, c, x]]):
776 yield dict(zip('ABPQ', [b, c, a, x]))
777
778
779def match_all(

Callers

nothing calls this directly

Calls 1

check_ncollMethod · 0.80

Tested by

no test coverage detected