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".
License: APACHE
-- let X, Y, Z be sets. variables {X Y Z : Type} -- a function f : X → Y is *injective* if f(a) = f(b) → a = b for all a,b in X. def injective (f : X → Y) : Prop := ∀ a b : X, f(a) = f(b) → a = b example : 2 + 2 = 5 := sorry -- challenge: the composite of two injective functions is injective theorem challenge1 (f : X → Y) (hf : injective f) (g : Y → Z) (hg : injective g) : injective (g ∘ f) := begin sorry end