Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
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".

31123 views
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