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,
)
| 764 | |
| 765 | |
| 766 | def 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 | |
| 779 | def match_all( |
nothing calls this directly
no test coverage detected