CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

| Download

Try doing some basic maths questions in the Lean Theorem Prover. Functions, real numbers, equivalence relations and groups. Click on README.md and then on "Open in CoCalc with one click".

Project: Xena
Views: 18536
License: APACHE
import meta.expr

open tactic

run_cmd do
  l ← mk_local' `l binder_info.default `(ℕ),
  m ← mk_local' `m binder_info.default `(ℕ),
  guard $ `(%%l + %%l = 3).has_local_constant l,
  guard $ bnot $ `(%%l + %%l = 3).has_local_constant m,
  guard $ `(%%l + %%m = 3).has_local_constant l,
  guard $ `(%%l + %%m = 3).has_local_constant m