Neo and Trinity did die at the end of Revolutions. After the Machine War, the Analyst revived them in resurrection pods to study them. Studying Neo's body for years did not activate his source code. He then found that Neo and Trinity are not special individually, and that keeping them alive and close but apart makes the Matrix produce far more energy.
The Analyst used that discovery to seize power from the Architect and rebuild the Matrix around desire and fear. Neo became Thomas Anderson, a game designer, and Trinity became Tiffany, a wife and mother. Morpheus, in this version, is a program that Thomas unconsciously created. The Analyst is also Neo's therapist, and Smith is his business partner in the studio.
Bugs and her crew free Neo, and he wakes up in a pod with Trinity in the pod beside him. A civil war among the Machines had led a faction of Machines and programs to defect and join human society, and the new city of Io is run by Niobe. Neo insists on freeing Trinity. Sati, a program, plans a heist in the real world to rescue her from the Anomaleum, while Neo and his friends try to free her mind from the simulation.
In the Matrix, the Analyst makes a deal. If Trinity chooses to leave, Neo can take her. If she does not, Neo will plug back in for good. Trinity declines at first and is led away by her family. Neo and the others then rescue her anyway. Trinity realizes she is not Tiffany and runs with Neo, and the Analyst activates Swarm mode, turning everyone in the Matrix into an agent. On a rooftop, Trinity jumps and finds that she can fly. The pair are anomalies who emerged together, which explains why she has the same powers as Neo.
In the end Neo and Trinity fly, and they confront the Analyst. They promise to free people's minds and rebuild the Matrix in their own image.