lean4-htt/tests/lean/run/discrRefinement2.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

27 lines
942 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.

theorem ex1 {α : Sort u} {a b : α} (h : a ≍ b) : a = b :=
match h with
| HEq.refl _ => rfl
def ex2 {α : Sort u2} {a : α} {motive : {β : Sort u2} → β → Sort u1} (m : motive a) {β : Sort u2} {b : β} (h : a ≍ b) : motive b :=
match h, m with
| HEq.refl _, m => m
def ex3 {α : Sort u} {a : α} {p : α → Sort v} {b : α} (h₁ : a ≍ b) (h₂ : p a) : p b :=
match h₁, h₂ with
| HEq.refl _, h₂ => h₂
theorem ex4 {α β : Sort u} {a : α} {b : β} (h : a ≍ b) : b ≍ a :=
match h with
| HEq.refl _ => HEq.refl _
theorem ex5 {α : Sort u} {a a' : α} (h : a = a') : a ≍ a' :=
match h with
| rfl => HEq.refl _
theorem ex6 {α β : Sort u} (h : α = β) (a : α) : cast h a ≍ a :=
match h with
| rfl => HEq.refl _
theorem ex7 {α β σ : Sort u} {a : α} {b : β} {c : σ} (h₁ : a ≍ b) (h₂ : b ≍ c) : a ≍ c :=
match h₁, h₂ with
| HEq.refl _, HEq.refl _ => HEq.refl _