Algocracy
en.wikipedia.org
en.wikipedia.org
For example, imagine an AI being created in 1890's america, which would automatically arrest and prosecute people on its own, trained on court cases and data from that time.
How many people would it lynch ?