w[[AB,\=\,g\\1]]