CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In

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

| 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: 23839
License: APACHE
import data.rat.basic tactic

-- prove one and delete the other

theorem some_reciprocal_is_zero : ∃ x : ℚ, 1 / x = 0 :=
begin
  use 0,
  norm_num -- exact dec_trivial would also work
end

--theorem no_reciprocal_is_zero : ¬ (∃ x : ℚ, 1 / x = 0) :=
--begin
--  sorry
--end