TT #51 · Parshas Vayeishev · Passuk 38:28
While she was in labor, one of them put out a hand, and the midwife tied a crimson thread on that hand, to signify: This one came out first.
Torah Temimah points to Yerushalmi Bava Basra 3:1.
Sefaria — Yerushalmi Bava Basra 3:1
“This one came out first” — from here [we learn] that the midwife is believed to testify that a firstborn is a firstborn.
Category D — Conceptual / legal / evidentiary inference.
Method — The Yerushalmi derives that a midwife is trusted to testify which child was born first. The birth narrative provides the basis for the midwife’s credibility about firstborn status.
Textual trigger — “Va-yikra shemo Zerach” and the description of the hand appearing first in Bereishis 38:28–29; the Yerushalmi derives that the midwife may testify about the firstborn.
A midwife is believed to testify about which child is the bechor.