The AIDS dementia complex is a brain disorder that occurs in people with AIDS (HIV infection) that causes the loss of cognitive capacity, affecting the ability to function in a social or occupational setting.