The strange way dreams tell us things

Last night I had a very odd dream that was a perfect example of how dreams sometimes are very good at distilling down what happened in the near past (generally in the previous day, sometimes it can extend further than that depending on how important those things are to your mental cataloging system). Before I go and talk about the dream, I'll talk about what I believe dreams are:

(note: this is not really my idea, but it's also not anybody else's idea. It's just a probably incorrectly mix of ideas that exist out there in the literature and interpolation points of my own here and there)

Dreams are a way of our brain to reclassify information in order to fit more things in less space (thus, using less energy). Every input we receive is somehow stored in a very close-to-raw state (where inputs include our thoughts at the time, feelings, etc. not only from our "externally-facing" sensors). Then we dream and those thoughts are mixed with the concepts that they are related to to strengthen those connections and weaken the parts that are not very interesting in the raw memory itself. And it's all made into a "partially believable" story in order to keep us asleep and not let signs of unexpected danger (something being amiss) wake us up.

So dreams show us two things: (1) What we have stored from the previous days and (2) the dimensions in which we are storing this experience.

Onto the dream:

In last night's dream I was at a friend's place (actually something that was supposed to be more like his mother's place) having a party with many other people. Then suddenly this friend "turned evil" and locked everybody in some rooms and left us there for a long time. I felt betrayed because for some reason I had invited most of the people that were in that party, but oddly nobody else thought it was a bad thing.

After some time the doors were opened and I went to talk with this friend and he was handling it all in a very friendly and fatalistic way saying something like: "That's how it's supposed to be, I can't help it"

And that's when I woke up. It makes so much more sense now! Alright, onto work!