lean4-htt/tests/lean/run/auto_eq_congr_extra_args.lean

23 lines
1.1 KiB
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.

open tactic
constant my_ite (c : Prop) {A : Type*} (t : A) : A
@[simp] lemma my_ite_true {A : Type*} (t : A) : @my_ite true A t = t := sorry
def my_true_def : Prop := true
@[simp] lemma m_true_def_true : my_true_def = true := rfl
constant my_true : Prop
@[simp] lemma m_true_true : my_true = true := sorry
example (n : ) (f : ) : my_ite true f n = f n := by simp
example (n : ) (f g : ) : my_ite my_true f n = f n := by simp
example (n : ) (f g : ) : my_ite my_true_def f n = f n := by simp
example (A : Type) (a : A) (f : Π (A : Type), A → A) : my_ite true f A a = f A a := by simp
@[congr] lemma my_ite_congr {A : Type*} (c₁ c₂ : Prop) (t₁ t₂ : A) :
(c₁ ↔ c₂) → (t₁ = t₂) → my_ite c₁ t₁ = my_ite c₂ t₂ := sorry
example (n : ) (f : ) : my_ite true f n = f n := by simp
example (n : ) (f g : ) : my_ite my_true f n = f n := by simp
example (n : ) (f g : ) : my_ite my_true_def f n = f n := by simp
example (A : Type) (a : A) (f : Π (A : Type), A → A) : my_ite my_true f A a = f A a := by simp