Skip to content

Commit

Permalink
lean 3.2.0 (new formula)
Browse files Browse the repository at this point in the history
Closes #17224.

Signed-off-by: FX Coudert <fxcoudert@gmail.com>
  • Loading branch information
tchajed authored and fxcoudert committed Sep 10, 2017
1 parent 127bc98 commit 12a9576
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions Formula/lean.rb
@@ -0,0 +1,34 @@
class Lean < Formula
desc "Theorem prover"
homepage "https://leanprover.github.io/"
url "https://github.com/leanprover/lean/archive/v3.2.0.tar.gz"
sha256 "2668e075a9bdf4270d75fd60181078b33c078c7288b5bb8ad795819d8d5272cf"
head "https://github.com/leanprover/lean.git"

depends_on "cmake" => :build
depends_on "gmp"
depends_on "jemalloc"

def install
mkdir "src/build" do
system "cmake", "..", *std_cmake_args
system "make", "install"
end
end

test do
(testpath/"hello.lean").write <<-EOS.undent
def id' {α : Type} (x : α) : α := x
inductive tree (α : Type) : Type
| node : α → list tree → tree
example (a b : Prop) : a ∧ b -> b ∧ a :=
begin
intro h, cases h,
split, repeat { assumption }
end
EOS
system "#{bin}/lean", testpath/"hello.lean"
end
end

0 comments on commit 12a9576

Please sign in to comment.