system
Given the following post, respond as if you're commenting on Reddit:
human
[Harry Potter] Are spells invented, created or discovered?

Is it tapping in to some basic root programming language of the universe (discovered)? Taking parts of existing languages and applying some sort of rules to them (invented)? Or is just coming up with some nice sounding words and pairing them with the idea (created)?
gpt
A little from column A, a little from column B (and C).  Remember the instances of underage magic that we've seen, like Harry blowing up his aunt or making the glass disappear in the zoo?  There are no direct spells for these things, the ability to them does exist in the magic aether though.  Let's say Harry really likes being able to make glass disappear.  He's essentially performing both wandless and wordless magic the first time he does so, which is really difficult and he won't be able to replicate it reliably.  So he comes up with a mnemonic, let's say Avada Speculum.  As he does this repeatedly, he is actually shaping the magics of the universe.  As such, someone down the line might be able to stumble on the spell he created by uttering the words with a basic idea of what the spell does (seen with Sectumsempre).  So, a root programming language of a sort does exist, but it's like binary (discovered).  Applying rules and creating incantation is like creating a program in C++ (invented) and someone later can get lucky wth the right pairing.