Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 230 Bytes

README.md

File metadata and controls

16 lines (11 loc) · 230 Bytes

Lyre

A library for writing Lean IR as Lean syntax.

Example

noncomputable def myAdd (m n : Nat) : Nat :=
  m + n

ir_impl myAdd (m : @& obj) (n : @& obj) :=
  let x := Nat.add m n
  ret x

#eval myAdd 1 2 -- 3