blob: 8631c99182fa9a3360abb342da784de42d6328bd [file]
import Lean
open Lean Meta
def f1 (e : Expr) : MetaM Expr := do
match_expr (← whnf e) with
| And a b => mkAppM ``And #[b, a]
| _ => return e
def f2 (e : Expr) : MetaM Expr := do
match_expr (meta := false) (← whnf e) with
| And a b => mkAppM ``And #[b, a]
| _ => return e