lean4-htt/tests/lean/ppMotives.lean
Miyahara Kō dd78012ddd
style: replace HEq x y with x ≍ y (#8872)
Although `HEq` was abbreviated as `≍` in #8503, many instances of the
form `HEq x y` still remain.
Therefore, I searched for occurrences of `HEq x y` using the regular
expression `(?<![A-Za-z/@]|``)HEq(?![A-Za-z.])` and replaced as many as
possible with the form `x ≍ y`.
2025-06-20 07:47:33 +00:00

29 lines
472 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

set_option pp.motives.pi false
#print Nat.add
set_option pp.motives.pi true
#print Nat.add
theorem ex : ∀ {α β : Sort u} (h : α = β) (a : α), cast h a ≍ a
| α, _, rfl, a => HEq.refl a
set_option pp.motives.nonConst false
#print ex
set_option pp.motives.nonConst true
#print ex
noncomputable def fact (n : Nat) : Nat :=
Nat.recOn n 1 (fun n acc => (n+1)*acc)
set_option pp.motives.all false
#print fact
set_option pp.motives.all true
#print fact