This theory covers basic facts about fields.
In this section we define what is a field and list the basic properties of fields.
Field is a notrivial commutative ring such that all non-zero elements have an inverse. We define the notion of being a field as a statement about three sets. The first set, denoted K is the carrier of the field. The second set, denoted A represents the additive operation on K (recall that in ZF set theory functions are sets). The third set M represents the multiplicative operation on K.
Definition
\( IsAfield(K,A,M) \equiv \) \( (IsAring(K,A,M) \wedge (M \text{ is commutative on } K) \wedge \) \( TheNeutralElement(K,A) \neq TheNeutralElement(K,M) \wedge \) \( (\forall a\in K.\ a\neq TheNeutralElement(K,A)\longrightarrow \) \( (\exists b\in K.\ M\langle a,b\rangle = TheNeutralElement(K,M)))) \)
The field0 context extends the ring0 context adding field-related assumptions and notation related to the multiplicative inverse.
Locale field0 = ring0 K A M +
assumes mult_commute: \( M \text{ is commutative on } K \)
assumes not_triv: \( 0 \neq 1 \)
assumes inv_exists: \( \forall a\in K.\ a\neq 0 \longrightarrow (\exists b\in K.\ a\cdot b = 1 ) \)
defines \( K_0 \equiv K-\{ 0 \} \)
defines \( a^{-1} \equiv GroupInv(K_0,restrict(M,K_0\times K_0))(a) \)
The next lemma assures us that we are talking fields in the field0 context.
lemma (in field0) Field_ZF_1_L1:
shows \( IsAfield(K,A,M) \) using ringAssum , mult_commute , not_triv , inv_exists , IsAfield_defWe can use theorems proven in the field0 context whenever we talk about a field.
lemma field_field0:
assumes \( IsAfield(K,A,M) \)
shows \( field0(K,A,M) \) using assms , IsAfield_def , field0_axioms.intro , ring0_def , field0_defLet's have an explicit statement that the multiplication in fields is commutative.
lemma (in field0) field_mult_comm:
assumes \( a\in K \), \( b\in K \)
shows \( a\cdot b = b\cdot a \) using mult_commute , assms , IsCommutative_defFields do not have zero divisors.
lemma (in field0) field_has_no_zero_divs:
shows \( HasNoZeroDivs(K,A,M) \)proof$K_0 (the set of nonzero field elements is closed with respect to multiplication.
lemma (in field0) Field_ZF_1_L2:
shows \( K_0 \text{ is closed under } M \) using Ring_ZF_1_L4 , field_has_no_zero_divs , Ring_ZF_1_L12 , IsOpClosed_defAny nonzero element has a right inverse that is nonzero.
lemma (in field0) Field_ZF_1_L3:
assumes A1: \( a\in K_0 \)
shows \( \exists b\in K_0.\ a\cdot b = 1 \)proofIf we remove zero, the field with multiplication becomes a group and we can use all theorems proven in group0 context.
theorem (in field0) Field_ZF_1_L4:
shows \( \text{IsAgroup}(K_0,restrict(M,K_0\times K_0)) \), \( group0(K_0,restrict(M,K_0\times K_0)) \), \( 1 = TheNeutralElement(K_0,restrict(M,K_0\times K_0)) \)proofThe inverse of a nonzero field element is nonzero.
lemma (in field0) Field_ZF_1_L5:
assumes A1: \( a\in K \), \( a\neq 0 \)
shows \( a^{-1} \in K_0 \), \( (a^{-1})^2 \in K_0 \), \( a^{-1} \in K \), \( a^{-1} \neq 0 \)proofThe inverse is really the inverse.
lemma (in field0) Field_ZF_1_L6:
assumes A1: \( a\in K \), \( a\neq 0 \)
shows \( a\cdot a^{-1} = 1 \), \( a^{-1}\cdot a = 1 \)proofA lemma with two field elements and cancelling.
lemma (in field0) Field_ZF_1_L7:
assumes \( a\in K \), \( b\in K \), \( b\neq 0 \)
shows \( a\cdot b\cdot b^{-1} = a \), \( a\cdot b^{-1}\cdot b = a \) using assms , Field_ZF_1_L5 , Ring_ZF_1_L11 , Field_ZF_1_L6 , Ring_ZF_1_L3This section deals with more specialized identities that are true in fields.
$a/(a^2) = a.
lemma (in field0) Field_ZF_2_L1:
assumes A1: \( a\in K \), \( a\neq 0 \)
shows \( a\cdot (a^{-1})^2 = a^{-1} \)proofIf we multiply two different numbers by a nonzero number, the results will be different.
lemma (in field0) Field_ZF_2_L2:
assumes \( a\in K \), \( b\in K \), \( c\in K \), \( a\neq b \), \( c\neq 0 \)
shows \( a\cdot c^{-1} \neq b\cdot c^{-1} \) using assms , field_has_no_zero_divs , Field_ZF_1_L5 , Ring_ZF_1_L12BWe can put a nonzero factor on the other side of non-identity (is this the best way to call it?) changing it to the inverse.
lemma (in field0) Field_ZF_2_L3:
assumes A1: \( a\in K \), \( b\in K \), \( b\neq 0 \), \( c\in K \) and A2: \( a\cdot b \neq c \)
shows \( a \neq c\cdot b^{-1} \)proofIf if the inverse of \(b\) is different than \(a\), then the inverse of \(a\) is different than \(b\).
lemma (in field0) Field_ZF_2_L4:
assumes \( a\in K \), \( a\neq 0 \) and \( b^{-1} \neq a \)
shows \( a^{-1} \neq b \) using assms , Field_ZF_1_L4 , group0_2_L11BAn identity with two field elements, one and an inverse.
lemma (in field0) Field_ZF_2_L5:
assumes \( a\in K \), \( b\in K \), \( b\neq 0 \)
shows \( (1 + a\cdot b)\cdot b^{-1} = a + b^{-1} \) using assms , Ring_ZF_1_L4 , Field_ZF_1_L5 , Ring_ZF_1_L2 , ring_oper_distr , Field_ZF_1_L7 , Ring_ZF_1_L3An identity with three field elements, inverse and cancelling.
lemma (in field0) Field_ZF_2_L6:
assumes A1: \( a\in K \), \( b\in K \), \( b\neq 0 \), \( c\in K \)
shows \( a\cdot b\cdot (c\cdot b^{-1}) = a\cdot c \)proof