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".

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