> I could write a webapp that simulates the stock market, declare that it contains X "shares" of Apple at Y price, and people could speculate on them, much as they do in the real stock market, all without Apple knowing or caring.
This already exists. It's called a CFD (Contract For Difference)