l1: {Polygon[(0, 1), (0, 0), (0.5, 0.5)], Polygon[(1, 1), (1, 0), (0.5, 0.5)]}
l2 = Sequence(Sequence[Translate[l1, Vector[(u, v)]], v, 0, 4], u, 0, 4)
l2' = Rotate(l2, 90°, (2.5, 2.5))
l3 = Sequence(Translate[Segment[(0, 0), (0, 5)], Vector[(k, 0)]], k, 0, 5)
A = (8.561983471074381, 0.5041322314049599)
B = (11.561983471074381, 0.5041322314049599)

Tool: 坐标系
x最小、最大，y最小、最大，0.23
Input: m, n, q, p, a
Output: A, B, O, l1, l2, list3, list4, list5, list6, u, v

$\huge\textcolor{}{x}$

$\huge\textcolor{}{y}$

$\Large{O}$

u = Vector((m - 1, 0), (n + 1, 0))
l1 = Sequence(Segment[(k, 0), (k, a)], k, m, n)
A: (n + 1, 0)
list4 = Sequence(Text[k, Element[Sequence[(t - 0.15, 0), t, 1, n], k], true, true], k, 1, n)
list3 = Sequence(Text[k, Element[Sequence[(t - 0.5, 0), t, m, -1], k + abs(m) + 1], true, true], k, m, -1)
l2 = Sequence(Segment[(0, k), (a, k)], k, q, p)
list5 = Sequence(Text[k, Element[Sequence[(-0.9, t + 0.2), t, q, -1], k + abs(q) + 1], true, true], k, q, -1)
v = Vector((0, q - 1), (0, p + 1))
B: (0, p + 1)
list6 = Sequence(Text[k, Element[Sequence[(-0.6, t + 0.2), t, 1, p], k], true, true], k, 1, p)
O: B - (0, p + 1)