Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

Commit

Permalink
feat(ring_theory/power_basis): the dimension of a power basis is posi…
Browse files Browse the repository at this point in the history
…tive (#7638)

We already have `pb.dim_ne_zero : pb.dim ≠ 0` (assuming nontriviality), but it's also useful to also have it in the form `0 < pb.dim`.
  • Loading branch information
Vierkantor committed May 17, 2021
1 parent 4ab0e35 commit ccf5188
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ring_theory/power_basis.lean
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ by { rw [← pb.basis.total_repr 1, finsupp.total_apply, finsupp.sum_fintype],
cases x_lt },
{ simp } }

lemma dim_pos [nontrivial S] (pb : power_basis R S) : 0 < pb.dim :=
nat.pos_of_ne_zero pb.dim_ne_zero

lemma exists_eq_aeval [nontrivial S] (pb : power_basis R S) (y : S) :
∃ f : polynomial R, f.nat_degree < pb.dim ∧ y = aeval pb.gen f :=
(mem_span_pow pb.dim_ne_zero).mp (by simpa using pb.basis.mem_span y)
Expand Down

0 comments on commit ccf5188

Please sign in to comment.