The use of valid reasoning patterns to move from premises to conclusions.
Logic is the disciplined process of connecting ideas in a valid and coherent way. In prompt engineering, logical structure helps the model reason through questions, check consistency, and avoid unsupported jumps.
Prompts that ask for logic often require the model to evaluate evidence, test assumptions, or explain why a conclusion follows from a set of facts. This is especially important in analytical, technical, and decision-making tasks.
While logic improves answer quality, it still benefits from clear context and validation because models can produce fluent but flawed reasoning if the prompt is underspecified.