lean4-htt/tests/lean/run/5359.lean
Jeremy Tan Jie Rui 988fc7b25a
chore: ensure that the rfl tactic tries Iff.rfl (#5359)
Revert the removal of the macro containing `Iff.rfl` in #5329; it was
causing errors in leanprover-community/mathlib4#16839.
2024-09-18 08:01:41 +00:00

19 lines
695 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.

/-!
Test that `Iff.rfl` is tried by the `rfl` tactic.
-/
universe u v w
class L (F : Sort u) (α : outParam (Sort v)) (β : outParam (α → Sort w)) where
coe : F → ∀ a : α, β a
instance {F : Sort u} {α : Sort v} {β : α → Sort w} [L F α β] :
CoeFun F (fun _ ↦ ∀ a : α, β a) where coe := @L.coe _ _ β _
instance {π : Nat → Type u} [∀ i, LE (π i)] : LE (∀ i, π i) where le x y := ∀ i, x i ≤ y i
structure S (α : Nat → Type u) where
variable {α : Nat → Type u} [∀ i, LE (α i)]
instance : L (S α) Nat α := sorry
instance : LE (S α) := ⟨fun f g ↦ ∀ i, f i ≤ g i⟩
example : ∀ {a b : S α}, L.coe a ≤ L.coe b ↔ a ≤ b := by rfl