I mean, you don't even need such a contrived example to make this point. What if I just took Harry Potter and replaced the names of all characters and unique items, locations, and concepts with different names? Is that fair use?
Of course it isn't. How would that be determined? A court would have to decide, but it would be a straightforward case against me.
But what if I created a new novel that effectively has the same plot points as Harry Potter but is truly written independently? Anybody could see I was "inspired" by Harry Potter, but it's not like JK Rowling owns the concept of a wizard or a coming of age story. They could try to sue, but odds are, in that case, the court would easily rule in my favor.
All of this is to say that IP laws are based on human judgement. Without human judgement, IP laws don't really work. The line is drawn based on how humans perceive two pieces of work. If humans perceive them as being "too" similar, then it's a problem. Otherwise, it's just the nature of information diffusion across society.
Note that none of this depends on how that work is created. That doesn't matter. If you wrote a word-for-word replica of Harry Potter despite genuinely never hearing about it once in your life, then you still aren't allowed to sell it as your own.
>Should I be financially rewarded for my "work"?
This depends entirely on the market, not on any moral or ethical notion of what you might "deserve." If you've obeyed IP laws, then whether or not you should be financially rewarded is based simply on whether or not people are willing to pay you for your work. Is it cheap slop that anybody could generate themselves with free AI? Then don't expect many people to pay you. Is it a clever idea that nobody would have thought of that requires some ingenuity or set up that most people can't be bothered with? Then maybe people will be willing to pay you. Again, it doesn't really matter where it came from. If you're following the law and people are willing to pay you, then you're good to go.
>Is this work now mine?
Sure, specifically because you were the one to put in the effort to own it. That's basically all there is to it.
>If it is legal, why not just go through every book in this kind of automated fashion and start selling them as my own?
Please, do so. But note that (a) this is already happening on a massive scale and (b) that market is so saturated that nobody doing this is making any money. The laws of economics still apply even if some people take moral issue with AI while others couldn't care less. If something takes you basically 0 effort or cost to produce, then why would others want to pay you for it?
I think an important aspect of all of this is to recognize that IP laws aren't very "logical" in the sense that protecting IP comes more from human "inefficiencies" than it does economic ideals. IP laws are in-place to encourage people to produce valuable IP in that they can have some assurance that the invested time, energy, and money into some IP won't be wasted because someone else just takes what you produce. It's important for our society, but it's not some inherit, fundamental aspect of morality. If AI makes it so that such an investment of time, energy, and money is simply a waste, we shouldn't support that waste for the sake of upholding IP laws. That's backwards. It's the same kind of issue you see with patent squatting, but now this is occurring at such a scale that it's starting to really highlight the issues with IP laws when they don't actually support society prosperity.