C. Ivan and B. Indurkhya argue* that logical thinking emerges in 3 stages. The first stage finds patterns of association in observations. The second stage learns examples of what occurs if I perform action X and examples of how I can make Y occur. The third stage compiles examples of X being caused by Y and considers what would have likely happened if I had done X in a particular situation. A.s.a. H. does all of these cognitive operations.
* arXiv:1905.09730v1, 23 May 2019