The invention provides a compound of formula I:wherein A1, A2, A3, R1, X, Y, and B have any of the values described herein, as well as salts of such compounds, compositions comprising such compounds, and therapeutic methods that comprise the administration of such compounds. The compounds are inhibitors of monoamine oxidase B (MAO-B) enzyme function and are useful for improving cognitive function and for treating psychiatric disorders in animals.