Permutation City by Greg Egan. Accelerando by Charles Stross. They'll guide you to shape your though processes in strange ways that are probably useful for logical thinking.
I read Permutation City in High School. It's my favorite book and arguably the best science fiction book about computer science. Greg Egan's books really go deep in a way that I enjoyed a lot. I really crave to read more books like that. Would you have other recommendations ?
Blindsight by Peter Watts. The Culture novels by Iain M. Banks. Ra, by Sam Hughes (http://qntm.org/ra). The Sequences of Less Wrong, and a good chunk of the related writing (HPMOR, Three Worlds Collide, https://www.fanfiction.net/s/5389450/2/The-Finale-of-the-Ult... which follows directly from Permutation City (seriously)). The postings on the SCP Foundation wiki. Watch Ghost in the Shell: Stand Alone Complex.