
The principle of habeas corpus, a legal phrase, is a simple one: Translated from the Latin as “produce the body,” it provides that a judge may compel prosecutors to supply evidence to determine whether someone has been legally detained or arrested.
In the U.S., a detained or arrested individual, or their legal representative, may ask a judge to decide based on the evidence presented whether the detainee has been legally confined. That process is termed “seeking a writ.”