lean4-htt/tests/lean/run/4465.lean
Leonardo de Moura 3c4d6ba864 feat: new #reduce elaborator
closes #4465
2024-06-17 23:27:34 +02:00

29 lines
660 B
Text

/-- info: { val := { val := ⟨0, ⋯⟩ }, valid := ⋯ } -/
#guard_msgs in
#reduce Char.ofNat (nat_lit 0)
/--
info: { val := { val := ⟨0, isValidChar_UInt32 (Or.inl (Nat.le_of_ble_eq_true rfl))⟩ },
valid := Or.inl (Nat.le_of_ble_eq_true rfl) }
-/
#guard_msgs in
set_option pp.proofs true in
#reduce Char.ofNat (nat_lit 0)
/-- info: 2 = 1 + 1 -/
#guard_msgs in
#reduce 2 = 1 + 1
/-- info: 2 = 2 -/
#guard_msgs in
#reduce (types := true) 2 = 1 + 1
/-- info: Eq.refl (2 + 2) -/
#guard_msgs in
set_option pp.proofs true in
#reduce Eq.refl (2+2)
/-- info: Eq.refl 4 -/
#guard_msgs in
set_option pp.proofs true in
#reduce (proofs := true) Eq.refl (2+2)