Definition 4.1.1
Equations
- Section_4_1.PreInt.instSetoid = { r := fun (a b : Section_4_1.PreInt) => a.minuend + b.subtrahend = b.minuend + a.subtrahend, iseqv := ⋯ }
Instances For
Equations
- Section_4_1.«term_——_» = Lean.ParserDescr.trailingNode `Section_4_1.«term_——_» 100 101 (Lean.ParserDescr.binary `andthen (Lean.ParserDescr.symbol " —— ") (Lean.ParserDescr.cat `term 101))
Instances For
Decidability of equality
Equations
- One or more equations did not get rendered due to their size.
Lemma 4.1.3 (Addition well-defined)
Equations
- One or more equations did not get rendered due to their size.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Section_4_1.Int.instOfNat = { ofNat := n —— 0 }
Definition 4.1.4 (Negation of integers) / Exercise 4.1.2
Equations
- Section_4_1.Int.instNeg = { neg := Quotient.lift (fun (x : Section_4_1.PreInt) => match x with | { minuend := a, subtrahend := b } => b —— a) ⋯ }
Proposition 4.1.6 (laws of algebra, additive group) / Exercise 4.1.4
Equations
Proposition 4.1.6 (laws of algebra, additive commutative group) / Exercise 4.1.4
Equations
- Section_4_1.Int.instAddCommGroup = { toAddGroup := Section_4_1.Int.instAddGroup, add_comm := ⋯ }
Proposition 4.1.6 (laws of algebra, commutative monoid) / Exercise 4.1.4
Equations
- One or more equations did not get rendered due to their size.
Proposition 4.1.6 (laws of algebra, commutative ring) / Exercise 4.1.4
Equations
- One or more equations did not get rendered due to their size.
Definition 4.1.10 (Ordering of the integers, non-strict)
Equations
- Section_4_1.Int.instLE = { le := fun (n m : Section_4_1.Int) => ∃ (a : ℕ), m = n + ↑a }
Definition 4.1.10 (Ordering of the integers, strict)
Equations
- Section_4_1.Int.instLT = { lt := fun (n m : Section_4_1.Int) => n ≤ m ∧ n ≠ m }
(Not from textbook) Establish the decidability of this order.
Equations
- One or more equations did not get rendered due to their size.
(Not from textbook) Int has the structure of a linear ordering.
Equations
- One or more equations did not get rendered due to their size.
Exercise 4.1.9. The square of any integer is nonnegative.
Not in textbook: equivalence preserves order and ring operations
Equations
- Section_4_1.Int.equivInt_ordered_ring = { toEquiv := Section_4_1.Int.equivInt, map_mul' := ⋯, map_add' := ⋯, map_le_map_iff' := ⋯ }