Collaboration is how we learn [01JW]
Students come to me from a variety of backgrounds with different interests. There has to be an intersection with mine, of course, but it may be that you will want to work on something that I don’t know as much about. That is in principle completely fine; at times you will find yourself teaching me rather than the other way around. If you are doing a PhD, by the end (or even the middle) you will mainly be teaching me rather than me teaching you. That’s how that goes.
If you are doing a PhD with me, we will collaborate throughout the entire time on papers with an aim to produce publishable work that will help you get a job after you graduate. At times my contribution to these papers will be to come up with theories, prove lemmas, and so on; at other times, my contribution will be less technical depending on the work. Even in these cases, it is important for us to collaborate on the writing, because there is no other way to learn how to be a good enough writer than to do it alongside someone more experienced. It can also be helpful to have a clueless person checking your proofs, because you will find that the referees may be even more clueless: if I can understand it, then the referees will too.
To be very clear, my students are welcome to also publish papers on their own. I will never ever put my name on a paper that I did not contribute to commensurately with the generally accepted standards for authorship in computer science.