"Dream logic" refers to the strange and illogical way our minds work during dreams. It describes how our thoughts and actions don't follow the normal rules of reality, often jumping between unrelated things or events without any logical explanation. It is the peculiar and surreal manner in which our imagination operates when we are asleep.
Full definition