Wasps are the first invertebrates seen to use a type of logic

Wasps may be able use a type of logical reasoning called transitive inference to avoid an electric shock and are the first invertebrates we’ve seen doing so

source: newscientist.com