Yes, the rule and the Trinity study do factor in inflation and increase/decrease in stocks and market. The study factored in an increased withdrawal rate year on year to allow for inflation. Simply put, the 4% they refer to is for Year 1 of retirement. From year 2 onwards, the 4% will increase slightly to account for inflation.