Formalising mathematics in Lean and Mathlib
Warm-upFormalWith f : α → β and g : β → γ, which Lean statement says that a composite of injective functions is injective?
Practice · Early undergraduate
With f : α → β and g : β → γ, which Lean statement says that a composite of injective functions is injective?
To prove that is injective, we assume and must show . Which fact do we use first?
Which function gives sets with ?
Which of these statements about natural numbers are true? (Choose all that apply.)
In Lean, with natural numbers, what is the value of (5 : ℕ) - 8 + 8?
In Mathlib, (7 : ℝ) / 0 = 0 is a theorem (div_zero). What follows?
#print axioms limit_unique reports [propext, Classical.choice, Quot.sound]. What does this tell you?
In the proof that a group in which every satisfies is commutative, we write . Which group law justifies the middle equality?
Write find_counterexample(a, b) that searches all functions from to (as tuples of values) and all pairs of subsets of the domain, and returns the first (f, S, T) with (with S, T as Python sets), or None if there is none. Use itertools.