lean4-htt/tests/lean/1098.lean
Leonardo de Moura 87e6581e6b fix: constructor elaboration
fixes #1098
2022-04-08 18:19:06 -07:00

23 lines
718 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.

structure FoldImpl (α β : Type u) where
γ : Type u
x₀ : γ
f : γαγ
out : γ → β
inductive R : FoldImpl α β → FoldImpl α β → Prop where
| intro {γ γ' x₀ y₀ f g out out'} : R ⟨γ, x₀, f, out⟩ ⟨γ', y₀, g, out'⟩
#print R
#check @R.intro
-- @R.intro : ∀ {α β γ γ' : Type u_1} {x₀ : γ} {y₀ : γ'} {f : γαγ} {g : γ' → αγ'} {out : γ → β} {out' : γ' → β},
-- R { γ := γ, x₀ := x₀, f := f, out := out } { γ := γ', x₀ := y₀, f := g, out := out' }
namespace Ex2
inductive R : FoldImpl α β → FoldImpl α β → Prop where
| intro : R ⟨γ, x₀, f, out⟩ ⟨γ', y₀, g, out'⟩
#print R
end Ex2