lean4-htt/tests/lean/run/newfrontend3.lean
2020-09-08 12:29:35 -07:00

26 lines
500 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 S :=
(g {α} : αα)
def f (h : Nat → (forall {α : Type}, αα) × Bool) : Nat :=
(h 0).1 1
new_frontend
def tst : Nat :=
f (fun n => (fun x => x, true))
theorem ex : id (Nat → Nat) :=
by {
intro;
assumption
}
def g (i j k : Nat) (a : Array Nat) (h₁ : i < k) (h₂ : k < j) (h₃ : j < a.size) : Nat :=
let vj := a.get ⟨j, h₃⟩;
let vi := a.get ⟨i, Nat.ltTrans h₁ (Nat.ltTrans h₂ h₃)⟩;
vi + vj
set_option pp.all true in
#print g
#check g.proof_1