system
Given the following post, respond as if you're commenting on Reddit:
human
If gravity is indistinguishable from a non-inertial reference frame under constant acceleration in a single direction, could gravity simply be an effect of the expansion of the universe?

If so, what might happen to gravity if the universe stopped expanding?
gpt
Only if the universe is expanding at the location of every massive object (everything from the largest star down to the smallest molecule).

So no, your assumption is incorrect.  Correlation doesn't prove causation.