lean4-htt/tests/lean/run/102_lean3.lean
Sebastian Ullrich 837d6a1529 chore: fix test
2020-12-26 21:12:51 +01:00

12 lines
510 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.

inductive time (D : Type) : Type
| start : time D
| after : (D → time D) → time D
def foo (C D : Type) : time D → (γ : Type) × (γ → C)
| time.start => ⟨C, id⟩
| time.after ts => ⟨(∀ (i : D), (foo C D $ ts i).1) × D, λ p => (foo C D $ ts p.2).2 $ p.1 p.2⟩
theorem fooEq1 (C D) : foo C D time.start = ⟨C, id⟩ :=
rfl
theorem fooEq2 (C D) (ts : D → time D): foo C D (time.after ts) = ⟨(∀ (i : D), (foo C D $ ts i).1) × D, λ p => (foo C D $ ts p.2).2 $ p.1 p.2⟩ :=
rfl