The definition is broad for now this will do: Logic is the study of correct reasoning.
How is that different from applying patterns?