Comments
The exmple you give should be a system with memory, as the output also depends on input at$ t = 4\, $ or$ x(4)\, $. Since it depends on the future input, its a system with memory. - Wei Jian Chan
Your definition is spot on but I would've liked an example for both a memoryless system and a system with memory. - Max Paganini