@[implicit_reducible]
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 := ⋯ }
@[reducible, inline]
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
@[implicit_reducible]
Decidability of equality
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
Lemma 4.1.3 (Addition well-defined)
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
Equations
- Section_4_1.Int.instOfNat = { ofNat := n —— 0 }
@[implicit_reducible]
@[simp]
@[implicit_reducible]
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) ⋯ }
@[implicit_reducible]
Proposition 4.1.6 (laws of algebra) / Exercise 4.1.4
Equations
@[implicit_reducible]
Proposition 4.1.6 (laws of algebra) / Exercise 4.1.4
Equations
- Section_4_1.Int.instAddCommGroup = { toAddGroup := Section_4_1.Int.instAddGroup, add_comm := ⋯ }
@[implicit_reducible]
Proposition 4.1.6 (laws of algebra) / Exercise 4.1.4
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
Proposition 4.1.6 (laws of algebra) / Exercise 4.1.4
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
Definition 4.1.10 (Ordering of the integers)
Equations
- Section_4_1.Int.instLE = { le := fun (n m : Section_4_1.Int) => ∃ (a : ℕ), m = n + ↑a }
@[implicit_reducible]
Definition 4.1.10 (Ordering of the integers)
Equations
- Section_4_1.Int.instLT = { lt := fun (n m : Section_4_1.Int) => n ≤ m ∧ n ≠ m }
@[implicit_reducible]
(Not from textbook) Establish the decidability of this order.
Equations
- One or more equations did not get rendered due to their size.
@[implicit_reducible]
(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.
@[reducible, inline]
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' := ⋯ }