mirror of
https://github.com/GTBarkley/comm_alg.git
synced 2024-12-26 07:38:36 -06:00
Make the lemma names a little more descriptive
This commit is contained in:
parent
a2f481c7db
commit
ae8bf07ee7
1 changed files with 3 additions and 3 deletions
|
@ -135,7 +135,7 @@ lemma dim_field_eq_zero {K : Type _} [Field K] : krullDim K = 0 := by
|
||||||
unfold krullDim
|
unfold krullDim
|
||||||
simp [field_prime_height_zero]
|
simp [field_prime_height_zero]
|
||||||
|
|
||||||
lemma isField.dim_zero {D: Type _} [CommRing D] [IsDomain D] (h: krullDim D = 0) : IsField D := by
|
lemma domain_dim_zero.isField {D: Type _} [CommRing D] [IsDomain D] (h: krullDim D = 0) : IsField D := by
|
||||||
by_contra x
|
by_contra x
|
||||||
rw [Ring.not_isField_iff_exists_prime] at x
|
rw [Ring.not_isField_iff_exists_prime] at x
|
||||||
obtain ⟨P, ⟨h1, primeP⟩⟩ := x
|
obtain ⟨P, ⟨h1, primeP⟩⟩ := x
|
||||||
|
@ -156,9 +156,9 @@ lemma isField.dim_zero {D: Type _} [CommRing D] [IsDomain D] (h: krullDim D = 0)
|
||||||
aesop
|
aesop
|
||||||
contradiction
|
contradiction
|
||||||
|
|
||||||
lemma dim_eq_zero_iff_field {D: Type _} [CommRing D] [IsDomain D] : krullDim D = 0 ↔ IsField D := by
|
lemma domain_dim_eq_zero_iff_field {D: Type _} [CommRing D] [IsDomain D] : krullDim D = 0 ↔ IsField D := by
|
||||||
constructor
|
constructor
|
||||||
· exact isField.dim_zero
|
· exact domain_dim_zero.isField
|
||||||
· intro fieldD
|
· intro fieldD
|
||||||
let h : Field D := IsField.toField fieldD
|
let h : Field D := IsField.toField fieldD
|
||||||
exact dim_field_eq_zero
|
exact dim_field_eq_zero
|
||||||
|
|
Loading…
Reference in a new issue