lean4-htt/tests/lean/run/5388.lean
2024-09-23 12:26:53 +00:00

6 lines
171 B
Text

example (k : Prop) (h : k) [Decidable k] (h' : c = 1) :
let ⟨a, _⟩ := if k then (1, 0) else (0, 1)
a = c := by
simp [h]
guard_target =ₛ 1 = c
rw [h']