Who Did It?

This is a fun logic problem from the Mathigon math calendar for December 2022.

1. Alice said Bob did it.

2. Bob said Alice did it.

3. Carol said Alice didn’t do it.

4. Dan said it was either Alice or Carol.

Only one person is telling the truth.  Who did it?

Answer.

See Who Did It? for a solution.