Skip to content

Commit

Permalink
feat(data/padic/padic_integers): homs to zmod(p ^ n) (#3882)
Browse files Browse the repository at this point in the history
This is the next PR in a series of PRs on the padic numbers/integers that should culminate in a proof that Z_p is isomorphic to the ring of Witt vectors of zmod p.

In this PR we build ring homs from Z_p to zmod (p ^ n).

Co-authored-by: Rob Lewis <Rob.y.lewis@gmail.com>
  • Loading branch information
jcommelin and robertylewis committed Aug 25, 2020
1 parent b03ce61 commit 4478719
Show file tree
Hide file tree
Showing 6 changed files with 536 additions and 43 deletions.
4 changes: 4 additions & 0 deletions src/data/int/basic.lean
Expand Up @@ -930,6 +930,10 @@ theorem mem_to_nat' : ∀ (a : ℤ) (n : ℕ), n ∈ to_nat' a ↔ a = n
| (m : ℕ) n := option.some_inj.trans coe_nat_inj'.symm
| -[1+ m] n := by split; intro h; cases h

lemma to_nat_zero_of_neg : ∀ {z : ℤ}, z < 0 → z.to_nat = 0
| (-[1+n]) _ := rfl
| (int.of_nat n) h := (not_le_of_gt h $ int.of_nat_nonneg n).elim

/- units -/

@[simp] theorem units_nat_abs (u : units ℤ) : nat_abs u = 1 :=
Expand Down

0 comments on commit 4478719

Please sign in to comment.