lean4-htt/tests/lean/run/968.lean
Kyle Miller 044bfdb098
feat: eliminate letFun support, deprecate let_fun syntax (#9086)
This PR deprecates `let_fun` syntax in favor of `have` and removes
`letFun` support from WHNF and `simp`.
2025-06-30 02:10:18 +00:00

7 lines
361 B
Text

example (p q r : Prop) : (p ∧ q ∧ r)
= (r ∧ p ∧ q) :=
by simp only [and_comm, and_left_comm, and_assoc]
example (p q r : Prop) : ((have x := p; x) ∧ (have x := q; x) ∧ (have x := r; x))
= ((have x := r; x) ∧ (have x := p; x) ∧ (have x := q; x)) :=
by simp only [and_comm, and_left_comm, and_assoc]