Skip to content

tydeu/lyre

Repository files navigation

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

About

Lean IR as Lean syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages