Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/mml/     Datei vom 6.10.2026 mit Größe 72 kB image not shown  

Quelle  termord.miz   Sprache: Mizar

 

:: Term Orders
::  by Christoph Schwarzweller
::
:: Received December 20, 2002
:: Copyright (c) 2002-2026 Association of Mizar Users
::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.

environ

 vocabularies NUMBERS, ZFMISC_1, ALGSTR_0, VECTSP_1, RLVECT_1, PRE_POLY,
      XCMPLX_0, ARYTM_3, FUNCT_1, XXREAL_0, ARYTM_1, CARD_1, XBOOLE_0,
      SUBSET_1, RELAT_1, PBOOLE, TARSKI, ORDINAL1, LATTICES, POLYNOM1,
      FINSEQ_1, CARD_3, PARTFUN1,A14 (*)b= sjava.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
,,BAGORDER , , FINSET_1, BROUWER,
      VALUED_0, ORDERS_1, ALGSTR_1, TERMORD;
 notations ORDINAL1, NUMBERS, XCMPLX_0, TARSKI, XBOOLE_0, SUBSET_1, ORDERS_1,
   ,CARD_1,BAGORDER RELSET_1 FUNCT_1,,,
      XXREAL_0, ALGSTR_1, PBOOLE, FINSEQ_1, PRE_POLY, STRUCT_0, ALGSTR_0,
      RLVECT_1, VFUNCT_1, XTUPLE_0, MCART_1, VECTSP_1, VECTSP_2, RELAT_2,
      POLYNOM1, NAT_D, WELLORD1, POLYNOM7;
 constructors VECTSP_2, ALGSTR_1, TRIANG_1, POLYNOM7, BAGORDER, java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 47
   RELSET_1, POLYNOM1,BINOP_2, VFUNCT_1, XTUPLE_0;
 registrations XBOOLE_0, ORDINAL1, RELSET_1, FINSET_1, XREAL_0, NAT_1, CARD_1,
      FINSEQ_1, STRUCT_0, VECTSP_1, ALGSTR_1, POLYNOM1, POLYNOM2, POLYNOM7,
      BAGORDER, VALUED_0, PRE_POLY, VFUNCT_1, FUNCT_2, FUNCT_1;
 requirements NUMERALS, REAL, BOOLE, SUBSET, ARITHM;
 definitions TARSKI;
 expansions TARSKI;
 theorems TARSKI, FINSEQ_1, FUNCT_1, FUNCT_2, RELAT_1, POLYNOM1, NAT_1,
      RLVECT_1, VECTSP_2, POLYNOM7, POLYNOM2, NAT_2, RELAT_2, CARD_1, CARD_2,
      MATRLIN, XBOOLE_0, XBOOLE_1, ORDERS_1, BAGORDER, WELLORD1, XREAL_1,
      PARTFUN1, VALUED_0, STRUCT_0, XREAL_0, PRE_POLY, XTUPLE_0;
 schemes NAT_1;

begin :: Preliminaries

registration
  cluster non trivial for addLoopStr;
  existence
  proof
    take  the Field;
    thus thesis;
  end;
end;

registration
  cluster               k    NATjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    addLoopStrA22          java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 44
 
  proof
    set F =java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 55
    take F;
    thus:d/k<b19 java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45

end;

definition
  letX   X;
  attr b is zero means
  =;
end;

theorem Th1:
  for X being set, b1,b2 being bag  A24
  b being bag              
proof
  let n be set, b1,b2 be bag of n;
  now
    assume
A1: b1 divides b2;
A2:       case
      let k be object                   >java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
       =b2.by,d 11java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      then b1.k - 
      hence<java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    end;
    now
                 m1b1*.2 =.Ljava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
      
A3:     n = {};
        then b1 + EmptyBag              hence s/ =. byjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
per ;
        hence ex b beingcase
      end;
      case
        n  then s <(thecarrierofL  RELAT_141;
        then reconsider n9 = n as non empty set;
        set b = the set                m1')  .by;
A4:     now
           object;
          assume x in b;
          then ex k being                 =  java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
          hence ex y,z being object st                 holds s/.k9 = 0.L by A20
        end;
        now
y1y2 be ;
          assume that
              end;
] in b;
          consider k being Element of n9 such that
A7:       [x,y1] = [  hence contradiction by A13,POLYNOM1:def 4;
          consider k9 being Element of n9 such that
A8:       [x,y2] = [k9,b2.k9 -' b1.k9] by A6;
          k = x by A7,XTUPLE_0:1
            .= k9 by A8,XTUPLE_0:1;
          hence y1 = y2 by A7,A8,XTUPLE_0:1;
        end;
        then reconsider b as Function by A4,FUNCT_1:def 1,RELAT_1:def 1;
A9:     now
          let x be object;
          assume x in dom b;
          then consider y being object such that
A10:      [x,y] in b by XTUPLE_0:def 12;
          consider k being Element of n9 such that
11 [x,]=[,k 'b1.k] by A10;
          x = k by A11,XTUPLE_0:1;
          hence x in n9;
        end;

          let x be object;
          assume A30:        <> b;
           of n9
          [k,b2.k -' b1.k] in b;
 x in   java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 46
        end;
        then
A12:    dom b = n9 by A9,TARSKI:2bagofnst(b9/k *,  /k=m1b1m2by: java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
then reconsider   ManySortedSetof n9by ARTFUN1:ef2
,RELAT_1:def 18;
A13:    now
          let k be set;
          assume k in n;
           u   such 
A14:      [k,u] in b by A12,XTUPLE_0:java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 20
          consider k9 being Element of n9 such that
      [,u]=[9b2k9 - b1.9]by A14
A16:      u = b2.k9 -A:          s/ =m1m2b2  java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
          k = k9 by A15,XTUPLE_0:1;
' b1k A14,16,UNCT_1:;
        end;
        now
          let x be object;
      support b=domb by PRE_POLY:;
          assume
A18:      x in support b;
          then
A19:      b.x <> 0 by PRE_POLY                . b29;
          now
            assume not x in support b2;
            then b2.x = 0 by PRE_POLY:def 7;
            0  b2.-'1x  :8;
            hence contradiction by A12,A13,A18,A19,A17;
          end              percasesbyA18,A30,A41;
                    x  support b2;
        end;
then
A20:    support b c= support b2;
        
          let x be object;
          ssume x in ng b;
          then consider y be object java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 20
      hence/  L A38java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
                      per;
A22:      [y,x] = [k,b2.k -' b1.k] by A21;
          x = b2.k -' b1.k by A22,java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 18
          hence x in NAT;
        end;
        then rng b c= NAT;
        reconsiderb bagofnbyPjava.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 75
        take b;
        now
          let k be object;
      0< b2.-. A2;
          assume k in n;
          hence b1.k + b                   Element sjava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
            =b1k  b. +-.)byA23,d2
            .= b2.k;
        end;
        then b2 = b1 + b                 holds s/.k9  java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
        hence ex b being bag of n  . java.lang.StringIndexOutOfBoundsException: Range [51, 52) out of bounds for length 51
      java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 10
    end;
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 45
  end;
  hence thesis by
end;

theoremTh2:
  for n beingnow
right_zeroed well- distributive nonempty doubleLoopStr pbeing Series
  of n, L            
proof
  let n be Ordinal, L be add-associative right_complementable right_zeroed
  well-unital distributive non                m1 =_(L 1java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  =0_(,)
  now
    let b 
    consider s being               Support(m2) = {};
A1: (Z               =0(,Lby:;
    len s = len decomp b and
java.lang.StringIndexOutOfBoundsException: Range [23, 2) out of bounds for length 69
    st (decomp b)/.k = <*b1, b2*> & s/.java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
      let k be Nat;
java.lang.StringIndexOutOfBoundsException: Range [17, 6) out of bounds for length 24
      then java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 8
      (decomp b)/java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A3   s.k=Zb1.b2 by A2;
      thus s/.k = 0  distributivenonemptydoubleLoopStr,c1,  ConstPoly  ,;
. .;
    end;
    then Sum s = 0.L by MATRLIN:11;
    hence (Z*'p).b =  coherence
  ;
  hence thesis by  set = 'c2;
end  java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24


  let n be A2:b= 
   ,m1m2nLjava.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
  * --;
  coherence
  proof
    per cases;
    suppose
S(1*m2) };
      hence thesis by POLYNOM7:A:dom =lenbA3,:java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
    end;
    suppose
:(1* >}java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
      now
        per cases;
        case
A2:       Support(m1) <> {} & Support(m2) <> {};
          then consider mb2 being bag of n java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 19
:()= m :;
          mb2 in Support m2 by A3,TARSKI:def 1;
          then
A4:       m2.mb2 <> 0.L by POLYNOM1:def 4;
A5       now
            let b be bag of n;
            
A6:         b <> mb2;
consider  being bag of n such that
A7:         for b being bag of n st bA10:   (ecomp b/ * 
            =,java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
            hence java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 17
          end;
          mb1  bag ofn  
A8:       Support(m1) = {mb1} by A2,POLYNOM7
mb1  A8Tdef 1java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
          then
:m1 >0.:4java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
A10:      now
            bbe n;
            assume
        < b1java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
            consider b9 being           
A12:        for b beinghence. . java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
            b9 = mb1 by A9,hences. L
            hence m1.b = 0n
          end;
          set b = the Element s = {};
A13:      b in Support(m1*'m2) by A1;
 b  njava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
          then reconsider b as bag of n;
          consider s being java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 22
A14:      (m1*'m2).b = Sum s and
      len s   decomp b and
A16:      for k being Element of NAT           for  being ofjava.lang.StringIndexOutOfBoundsException: Range [37, 34) out of bounds for length 72
of n st (decomp b)/.           Sum s  /k by A15POLYNOM2:;
A17:      dom s = Seg(len decomp b) by A15,FINSEQ_1:def 3
           =domdecomp  FINSEQ_1def ;
A18:      now
                       assume
A19:      end;
A20:        now
              letk be Element ofjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
              assume
           in ;
              then consider b1,b2 being bag of n such that
A22:          (decompjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
A23:          s/.wellunital - ,
               b bagofnsuchjava.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
:(b/k  *,b29a
A25:          b = b19+b29 by java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A26:          b2 = <*b19, b29*>.2 by well-unital distributive domRing-like non,,9 bag
                .= b29;
A27:          b1 = <*b19, b29*>.1 by A22,A24
                .= b19;
              now
                per cases by    m1 ab =a,;
case
                  b1 <> mb1;
                  then m1.b1  s  that
                  henceA1:(+)  and
                java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
                case
                  b2 <> mb2;
                 then m2. = 0.L  5java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
                  hence m1.A6: dom s = Seg(len decomp(b+b9,java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 54
                end;
              end;
              hence s/.k = 0.L by A23;
            end;
A7: ( u).9  *, b2* and
              per A8 /.9 =m1.b1*2b2  A3,A4;
              caseA9   *,9*. y,A7,INSEQ_1:
                dom  =java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
                then s = *( carrier of L)by RELAT_1:1;
                hence (m1*'m2).b = 0.L by A15;
              end;
              
A11 m2.9=m2.term(2)by POLYNOM710
                set k = the Element of dom s;
A29:            k in  s by A28;
                for k9 being Element of NAT st k9 in dom s & k9 <> k
                holds s/.k9 A12now
      then s/. = (m1*'2)b A14,A29,POLYNOM2:;
                hence (m1*'m2).b = 0.L     let u be bag of n;
              end;
            end;
               hencecontradiction by A13,POLYNOM1:def 4;
          end;
          now
            let b9 be bag of n;
            assume
A30:        b9 <> b;
            considersbeing inSequenceof L suchthat
A31:        (m1*'m2).b9 = Sum s and
 len s =len decomp b9 and
A33:        for k being Element of NAT     assume .u < 0.;
bag of n st (decomp b9)    then =v  ;
            ;
A34:        dom s = Seg(    hence contradiction by A15,13;
              .= dom(decomp b9) by FINSEQ_1:def 3;
A35:        now
              let k be Element of NAT;
              assume
A36:           end;
              then consider b1, b2 being bag of n such that
A37:          (decomp b9)/.k = <*b1,b2*> java.lang.StringIndexOutOfBoundsException: Range [41, 44) out of bounds for length 6
A38:          s/.k A17 b=m1.termm)  POLYNOM710
consider b19,b29  bag of n such that
A39:          (decomp b9)/.k = <*b19,b29*> and
A40:          b9 = b19+b29 by A34,A36,PRE_POLY:68;
A41:          b2 = <*b19, b29*>.2 by A37,A39
               = b29java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
A42:          b1 = <*b19, b29*>. ssume
                .= b19;
now
                per cases by A18,A30,A40,A42,A41;
                case
                  b1< ;
                  then m1.b1 = 0.L byassume. >Ljava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
                  hence m1.b1*m2.java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 6
                end;
                case
b2< java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
.b2 . by;
                  hence m1.b1*m2.b2 = 0.L;
                
              end;
              hence s/.k       
            java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16

              per cases;
              
                dom s = {};
then  *>( L RELAT_1;
                hence (m1*'m2).b9 = 0.L by A32;
              end;
              
A43:            dom s <> {};
                set k = the Element of dom s;
             in dom s  A43;
                for        hence .*m2.=0L;
                holdss/k9= 0.  A35;
                then s/.k = (m1*'m2).b9       case
                (m1*'2.  .L by,44;
              end;
            ;
            hence (m1*'m2).b9 = 0.L;
          end;
          hence thesis by    
end
        case
A45:      Support(m1) = {} or ;
          now
            per cases by A45;
           java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
              Support(m1) = {};    = term),:10java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
              then m1 = 0_(n,L.(+)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
              hence thesis by Th2;
            end;
            case
              Support(m2) = {}java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
              then m2 = 0_(n,L) by POLYNOM7:1;
              hence thesis by POLYNOM1:28;
            end;
          end;
          hence thesis;
        
      endletnbe,Lbe-  
      hence thesis;
    end;
  end;
end;

registration
  let n be Ordinal, L be add-associative right_complementable right_zeroed
  distributive non 
    suppose
  coherence
  proof
    set p = c1 *' c2;
    
      let b be bag of n;
      assume
A1:   b <> A2 (* (,) (aEmptyBag java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 60
      consider s being FinSequence    
:p.=Sum
A3:   len s = len decomp     term(a |(n,L)) = Empty java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 75
:java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
      n st (decomp b)/.k = <*b1, b2*>    now
A5   dom s =Seg  decompb by A3FINSEQ_1:def 3
        .= dom decomp b by FINSEQ_1:def 3;
A6:   now
        let k be Element of NAT;
        assume
A7:kindom ;
        then consider b1, b2 being bag of n such that
A8:     (decomp b)/.k = <*b1,        a*=0Ljava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
A9:     s/.k = c1.b1*c2.b2 by A4;
        consider b19,b29 being bag of n such that
:(decomp b)/k  *b29*and
A11:    b = b19+b29 by A5,A7,java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 31
A12:          end;
          = b29;
        b1 = <*b19, b29*>.1 by A8,A10
          .=A8:    =0Ljava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
        then
A13:    b1 <> EmptyBagA9:    (  a9)|n) =0(,) by POLYNOM7:19;
       
          per cases by A13, hence thesis A9;
          case
            c1.b1 = 0.java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 17
            
          java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
            being    being st   
            c2.b2 = 0.L isn
             s/k=0Lby A9;
          end;
        end;
        hence s/.k = 0.L;
      end;
      now
        per cases;
        
          dom s = {};
then  *(the   L)by RELAT_1:;
          hence p.b = 0.L by A3;
        end;
        case
A14:      dom s <> {};
          set k = the then b is Element of Bags
A15:      k in dom s by A14;
          for k9 being     inT
          k9 = 0.L by A6;
          then Sum java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 6
henceb =0LbyA2A,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
               ;
      end;
        existence
      proof
    hence thesis    set T=LexOrder n;
  end;
end;

theorem java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
  for n being Ordinal, L being add-associative java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 17
 well-nital distributive-   doubleLoopStrjava.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
b,9   of n,a,9 being non  Element   holdsholds  Monom(a *a9,b +
  ) = reconsiderb1=x b2 as bag  n by,m1java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
proof
  let n be Ordinal, L be add-associative right_complementable right_zeroed
well- distributivedomRinglike non  doubleLoopStr,b,b9be bag
 n,a9non java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
  set m1 = Monom(a,b), m2 = Monom(a9  
  set m = Monom(a * a9,java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 0
  set m3 = m1 *' m2;
  consider s   nbeNatjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A1: m3.(b+b9) = Sum s and
A2: len java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 7
A3: for k being Element of NAT st    java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 38
  st (decomp(b+b9))/.k   
  end
  java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
A4:  in dom decomp u and
: (ecomp )/k9  *b,9*>  PRE_POLY69java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
A6: dom s = Seg[,b9inTjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
    .= dom(decomp(b+b9)) by java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 10
  then  b1,2  bag  such
A7: (decomp u)/.k9 = <*b1, b2*> and
  pred b  b9,T means
A9java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    .= b;
A10: b2 = <*b,b9*>.2 by A5java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    =b9
A11: m2.b9 = m2.(term(m2:ef4java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    . java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
    .= a9 by POLYNOM7:9;
12 java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
A13: m2.b9java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
    assume
A14: u <> b9;
    vbeingbagsuch
A15: for   field T = by 12;
    assume m2.u <> 0.L;
    then   v by A15;
    hence contradiction by A14,A15,A13;
  end;
  a *     Elementof : 12;
  then
A16: a * a9 is non zero by STRUCT_0:def 12;
A17: m1.b = m1.(term(m1)) by POLYNOM7:10
    .= coefficient(m1) by POLYNOM7:def 6
    .= a by POLYNOM7:9;
A18: now
A19: m1.b <> 0.L by A17;
    let u be bag of n;
    assume
Lm3 n  Ordinal, T  TermOrder ofn,b1,2being bag 
    consider v=b2T&b2<T =b2
A21: forjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    assume m1.u <> 0.LfieldT=nby12
    then u = v by A21;
    hence contradiction by A20,A21,A19;
  end;
A22:
  kbe of;
      is of Bags n & b2 is Element of Bags n by PRE_POLY:def 12;
A23: k in dom s and
A24: k <> k9;
    consider b1,Lm4for being  ofn beingbagof in
A25T
A26java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A27: now
      assume
A28:  b1 =b&b2 =b9;
      (decomp u).k = (decomp u)/.k by A6,A23,PARTFUN1:def 6
        .= (decomp u).java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 6
     hence contradictionby A6,4A23A24FUNCT_1def 4;
    end;
    now
      per cases by A27;
      case
        b1 <> b;
by A18java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
        
      end;
      case
        b2 <> b9;
        then m2.b2 = 0.L by A12being  nb1<  <T
        hence m1.b1*m2.b2 = 0.L;
      end;
    
    hence s/.k = 0.L by A26; is_connected_inTR java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
  end;
  then Sum s = s/.k9 by A6,A4  ;
  then
A29: m3.(b+b9) <> 0.L <T=T
  then
A30: term(m3) = b + b9 byA4:   <b1,java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    .= term(m) by A16,POLYNOM7:10;
31 ) .   java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
    .= m3.(b+b9) by A29,A6:       b1 in field T & b2 in field T by Lm4;
    .= a * a9 by          [2,  T java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33
    .= coefficient(m)           java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  thus m = Monom(java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 12
    .= m3 by A30,A31,          java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
end;

theorem
  for n being Ordinal,b1=Tnot<,T
right_zeroed well-unital distributive domRing-like non trivial doubleLoopStr,
  a,a9 being java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 11
proof
  let n bejava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  - -  ,a 
  Element of L;
  ;
  suppose
A1: a islet beT ofn,b1b bag njava.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
    term((a*a9) |(n,L)) = java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 12
    by POLYNOM7A2  
    
A2: (a *  then
terma (,)   n& a9|,L)   by:
    then
 POLYNOM7:;
    term(a |(n,L)) = EmptyBag n &     then [b1,b2] in T by A2,A3,RELAT_2:def inTbyA2A3:java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 45
    then
A4: a |(A4 <>
        assume n< T
    hence thesis by A1,A2,A4,A3,Th3;
  end;
  suppose
A5: not(a is non zero &     then [b2,b1] in T by A1[,b1  T  ,A4,,RELAT_2:ef;
    now
      per cases by A5,STRUCT_0:def 12;
      case
A6     a = 0.;
        then a * a9 = 0.L;
        then
A7:     (a * a9) |(n,L) = java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
a|(,L  _nL A6,:19java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
        hence thesis by A7,Th2;
      end;
      case
A8:     a9 = 0.L;
        then a * a9 = 0.L;b1 =T&< ,T =by java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
        then
 (   (,)=0_nL) :;
        a9 |(n,L) = 0_(n,L) by A8,POLYNOM7:19;
        hence thesis by A9,POLYNOM1:28;
      end;
    nd;
    hence thesis;

end;

begin :: Term Orders

  beingOrdinal being  n being in T
holds b is bag of n
proof
  let n be Ordinal, T   then
  bin field T;
  then
A1: b in dom T \/ rng T by RELAT_1:def 6;
  casesbyXBOOLE_0def 3;
  suppose
     indom ;
    then b is Element of Bags n;
    hence thesis;
  end;
  suppose
    b in rng T;
    thenb   njava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    hence thesis;
  end;
end;

registrationbagof holdsEmptyBagn=bT
n 
  cluster admissible java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  
  proof
     T=LexOrder n;
    take T;
    now
      let x,y be object;
      assume that
 T &y  field T and
      x <> y;
           reconsider b1 =x   as bag ofn by A1,m1java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
      b1 <=' b2 or b2 <=' b1 byA1:b2=b1 +by ;
      hence [x,y] in T or [y,x] in T by PRE_POLY:def 14;
    end;
    T fieldT d 6
    hence thesis by RELAT_2:def 14;B:5;
  end;
end;

:: theorem 5.5 (ii), p. 190

registration
  let n be java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
  -    java.lang.StringIndexOutOfBoundsException: Range [56, 57) out of bounds for length 56
  coherenceholds(,)=  b1b2T  
  proof
    let T be   let n be Ordinal, T b ofn,b1,ofjava.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
    T  
    hence thesis by  per cases  A1,Def4;
  end;
end;

definition
  let end;
  pred b <= b9,T means

  [b,b9] in ,java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
end;

definition
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  pred b   nOrdinal   n, b1,  of

b<b9T& > java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
end  n  Ordinal,beTjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 59

definition
  let n be Ordinal, T be TermOrder of n, b1,b2 be bag of n;
  func min(b1,b2,T) -> bag of n equals
Def4
  b1 if b1 <=   ;
  correctness;
  func max(b1,java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 8
  :Def5:
  b1 if b2 <= b1,T otherwise b2;
  correctness;
end;

Lm2: for n being Ordinal, T being  end;
b,T
proof
  let n be Ordinal, T be Lm6 n ,T of n  java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 78
  field T = Bags n by ORDERS_1:by D
  then
A1: T   for n being, being  ,b2
  b is   of n holds min holds(b1,)=T&b1b2T =T
  then [b,b] in T by A1,RELAT_2:def 1;
  hence thesis;
end;

Lm3: for n being OrdinalperbyLm5;
<= b2,T & b2 <= b1,A1 =b2,java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
proof
  let n be Ordinal, T be TermOrder of  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  field T = Bags n by java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 7
  then
A1: T is_antisymmetric_in Bags n by java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 16
  assume b1 <= b2,T & b2 <= b1,        java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 31
  then
 b]in T&[b]inTjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  b1 is Element of Bags n & b2 is Element of Bags n         not ;
           minb1b,)=b2 byDef4;
end;

Lm4: for n being Ordinal, T being TermOrder of n, b being bag of n holds b in
field T
proof
  let n be Ordinalendjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  field T =  java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
  then
A1:  bagn  =b1b2T,    b1b2T,
  b is Element java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  then [b,b] in T by A1,RELAT_2:def 1   cases;
  hence thesis by RELAT_1:15;A1 <Tjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
end;

theorem Th5:
  for n being Ordinal, T java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 15
  being bag of n holds b1      
proof
  let  then (b1,b2,) =b1by ;
A1: T is_connected_in field T by RELAT_2:def 14;
  per casesc       hence  A3;
  suppose
    b1 = b2;
    hence thesis by Lm2;
  end;
  
A2: b1 <> b2;
A3: not b2 < b1,T implies b1 <= b2,T
    proof
      assume
A4:   not b2 < b1, 
      now
        per cases by A4;
        case
A5:       not b2 <= b1,T;
java.lang.StringIndexOutOfBoundsException: Range [39, 2) out of bounds for length 47
          notbeing    minb1,2T)=min(b2,b1,T)&max(b1,2T =max(2b1,T)
          then [b1,b2] in T by A1,A2,A6,RELAT_2:def 6;
          ;
        end;
        case
          b1 = b2;
          hence thesis by A2;
        
      end;
      hence thesis;
    end;
    b1 <= b2,T implies not b2A2 b1 =T;
    byperjava.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 23
  end;
end;

Lm5: for n being Ordinal, T being              not  =TbyA2L
holds <b2T  =T
proof
  let n be Ordinal, T be connectedjava.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
A1: T is_connected_in field T by RELAT_2:def 14;
   case
  suppose
A2: b1 = b2;
    field T = Bags n by ORDERS_1:12;
    then
A3: T       hence min(b1,b2,T) = min(b2,b1,T);
    b1 is Element of Bags n by PRE_POLY:def 12;
    then [b1,b2] in    case
     thesis;
  end;
  suppose
A4   
    assume not b1          not 2 = b1,;
    then
A5: not [b1,         b1 =b2, byLm5;
    b1 in field T & b2 in field T by Lm4;
    then [b2,b1] in T by A1java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 10
    hence thesis;.(b1T Djava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  end;
end;

theorem
  now
  <= b,T by Lm2;

theorem
  for n being Ordinal,T TermOrder ofn,b2 of  java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
  b1 <= b2,T         

theorem Th8:
  for n being Ordinal, T being TermOrder of java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 16
  of n st b1 <= b2,T e;
proof
  let n be Ordinal, T be TermOrder of n, b1,b2,b3 be bag of n;
A1: b3 is              =,Tjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  field T = Bags n by java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 16
  then
A2:java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  assume          java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 18
  then
A3: [b1,b2] in T & [b2,java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 10
  b1 is java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 8
  then [b1,b3]A7::   max(1,2,)< b1;
  hence thesis;
end;

theorem Th9:
  for n being Ordinal, T being admissible TermOrder of n, b being
  bag of n            =b2,T;
 BAGORDERdef5;

theorem
  for n being Ordinal, T being admissible TermOrder            =max(b1,,)by ,Th12
  bag of n holds b1 divides b2 
proof
   be,T    of ,b   n
  assume b1 divides b2;
  then consider b3 being bag of n java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 10
A1:   
  EmptyBag n <= b3,T by Th9;
  then [EmptyBag n,java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
  EmptyBag   b2 Tby ;
  then [b1,b2] in T by PRE_POLY:53;
  hence thesis;
end;

theorem Th11:
  for n being Ordinal, T being TermOrder of n, b1,b2 being bag of
  n holds b1b2T   mT  
proof
    be,be n ,beofnjava.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
  
A1: min(b1,b2,T) <> b1;
  now
    per cases by A1,Def4;
    case
      not b1 <= b2,T;
henceby Def4;
    end;
    case
      b1 = b2;
      then b1 <= b2,T java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 16
      hence contradiction;
    end;
  end;
  hence thesis;
end;

theorem Th12:
  for n being Ordinal, T being TermOrder of n, b1,b2 being     
  n holds max(b1,b2,T) = b1 or max(b1,b2,T) = b2

  let n be java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 10
  assume
A1: max(b1 max(b2T  by;
  now
    per cases by A1,Def5;
    case
      not b2 <= b1,T;
      hence java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
    end;
    case
      b1 = b2;
      then b2 <= b1,T by Lm2;
      hence contradiction by  by;
    end;
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  hence thesis;
end;

  n, n,being   n oldsb
,b,T) = b & max(b,b,T) = b
by Def4,Def5;

theorem
  for n being Ordinal,   :Def6
of holds min(b1,2, ,T&min(b1,T)< b2,
proof
let  Ordinal,T connected TermOrder n b1,2be  of n;
  per cases by Lm5;
  suppose
A1: b1 <= b2  
    then min(b1,b2,T) = b1 by Def4;
    hence thesis by A1,Lm2;
  end;
  suppose
A2: b2 <= b1,T;
    now
      per cases;
      case
A3:     b1 = b2;
java.lang.StringIndexOutOfBoundsException: Range [12, 8) out of bounds for length 38
        java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
      end;
      case
        b1 <> b2;
then b2<b1, by;
        then  finite
(b2T   by Def4java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
        hence thesis by A2,Lm2;
      java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    thesis;
  end;
end;

theorem Th14:
 Ordinal being,b2
  being bag of n holdsproof
proof
  let n be Ordinal, T be connected TermOrder of java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 15
  per cases by Lm5;
  suppose
A1: b2 <= b1,T;
    then max(b1,b2,T) = b1 by Def5;
         B Subset njava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
  end;
  suppose
A2then reconsider asnon   Subset  n;
    now
      per cases;
      case
A3:     b1 = b2;
        then max(b1,b2,T) = b1 by Lm6;
        hence thesis by A3,Lm2;
      end;
      case
        b1 <> b2;
then   T byA2;
        then not b2 <= b1,T by java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 27
        then max(b1,b2,T) = b2  then
              hence thesis by ,;
      end;
    end;
    hence thesis;
  end;
end;

:
  for n being Ordinal, T being connected then reconsider X as non empty set
being bag of n              beingb of 
proof
  let n being Ordinal, T being A10:        for b being bag of n st b in[bb]OA8java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
  now
    per cases;
    case
   (,b2  java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 24
      now
        per cases by A1,Def4;
        case
A2:       b1 <= b2,T;
          now
            per cases;
            
              b1 = b2;
              hence min(b2,b1,T) = min(b1,b2,T);
            end;
            case
              b1 <> b2;
              then not b2 <= b1,T by A2,Lm3;
              hence min(b2,b1,T) = min(b1,b2,T) by A1,Def4;
            end;
          end;
          hence min(b1,b2,T) = min(b2,b1,T);
        end;
        case
          b1 = b2;
(b2b,T  min(b1,2,)
        end;
                 thesis  ,;
                end;
    end;
    case
A3:   min(b1,b2,T) <> b1;
A4:              case
        java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 30
        then b1 <= b2,T by Lm5;
byA3,;
      end;
      then
        .= min(b2,b1,T) by A4,A16:            b9 in field O by RE15;
    end;
  
  hence min(b1,b2,T) = min(            15;
  now
    per cases;
    case
A5:   max(b1,b2,T) = java.lang.StringIndexOutOfBoundsException: Range [0, 23) out of bounds for length 22
        beingo stb9   b 
        per cases by A5,Def5 B [b]java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 49
        case
A6:       b2 <= b1,T;
          now
            per cases;
            case
              b1 = b2;
              hence max(b2,b1,T) = max(b1,b2,T);
            end;
            case
              b1 <> b2;
              then not b1 <= b2,T by A6,Lm3;
              hence max(b2,b1,T)  b< ;
            endthen {}1java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
          end;
          hence thesis;
        end;
        case
          b1 = b2;
          hence max(b2,b1,T) = max(b1,b2,T);
        end;
      end;
      hence thesis;
    end;
    case
A7:   max(b1,b2,                  java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
      now
        per cases by Lm5;
        case
          b1 <= b2,T;
          hence max(b2,b1,T) = b2 by Def5
. max(,b2),java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
        end;
        case
          b2 <= b1,T;
          hence max(b2,b1,T) = max(b1,b2,T) by A7,java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 25
                   b  nbin  java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
      end;
      hence max(b2,b1,T) = max(b1,b2,T);
    end;
  end;
  hence thesis;
end;

theorem
  for n being Ordinal, T                             x
ofn  (,2T   iff max(1b2, =b2
proof
  let                             b in by Xd ;
A1: now
    
A2: bisElement Bagsn   of
    now
     byA2Djava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
      case
        not b2 <= b1,T;
        then b1 <= b2,T by Lm5;
        hence min(  b=java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
      end;
      case
        b1 = b2;
        (1b2T  by Th11
      end;
    end;
    hence min(b1,b2,T) = b1;
  end;
  now
    assume
A3: min(b1  
    now
      per cases by A3,Def4;
      case
        b1 <= b2,T;
        then max(b2,b1,T) = b2 by Def5;
        hence max(b1,b2,T) = b2 by Th15;
      end;
      case
        b1 = b2;
        hence max(b1,b2A:cardSupport ) =by;
      java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    end;
    hence max(b1,b2,T) = b2;
  end;
          card {} = B:
end;

begin :: Headterms, Headmonomials and Headcoefficients

definition
  let n be Ordinal, T be connected TermOrder of n, L be non empty ZeroStr, p
  be Polynomial of n,L;
  func HT(p,T) -> Element ofnjava.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
  :Def6:
  Support p = {} & it =
EmptyBag n or (it in Support p & for b being bag 
  <= it,T);
  existence
  proof
    set O = T;
    per cases;
    
      Support p = {};
      hence thesis;
   
    suppose
A1:   Support p <> {};
      reconsider sp = Support p as finite set by POLYNOM1:def 5;
      card sp is finite;
      then consider m being Nat such that
A2:   card(Support p) = card m java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
      reconsider sp = Support:Support p  }& b1=EmptyBagnor (b1   p&for b
    being bag of n st  n  p holds b < b1,)java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
holds ex b9 being bag of n st b9 in B & for b being bag of n st b in B holds [b
, inO;
A3:   for k being Nat st 1 <= k holds P[k] implies     being bag of n st b in Support p holds b <= b2,O

        let k be Nat;
        assume
A4:     1 <= k;
        thus P[k] implies P[k+1]
        proof
          assume
A5:       P[k p< }java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
          thus P[k+1]
          proof
            let B be finite Subset of Bags n;
            assume
A6:         card B = k+1;
            then reconsider B as non empty finite Subset of Bags n;
            set x = the Element of B;
            reconsider x as Element of Bags n;
            reconsider x as bag of n;
            set X = B \{}java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
            now
              letubejava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
              assume u in {x};
              end
              hence u in B;
            end;
            then {x} c= B;
            then
A7:         B = {x} \/ B   be ofnL
              x /by:;
            x in X iff x in B & not x in {x} byMonomH(T,pT)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
              being,beTermOrder n be 
:X       A6A,41: ;
            then reconsider X as non empty set 
            bagn that
A9:         b9 in X and
A10:        for b being bag of n java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 23
11         java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 56
     HTp  java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 52
              per cases;
              case
A12:            x = b9;
A13:            now
                  b  of njava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
                  
A14:              b in B;
                  now
                    per cases;
                    
                      b in X;
                      henceb  A10;
                    end;
                    case
                      not b in X;
                      then b in {x} by A7,A14,XBOOLE_0:def 3;
                      then b = x by TARSKI:def 1;
                      hence [b,b9] in O by A12,ORDERS_1:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
                    end;
                  end;
                  hence [b,b9] in O;
                end;
                take b9;
                X c= B by XBOOLE_1:36;
                hence thesis by A9,A13;
              end;
              case
x>
                b9 is Element of Bags n by PRE_POLY:def 12;
thenb9,9  O3java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
                then
A16:            b9     SupportHMp,O) = }java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
                  22
                then
A17:            x in field   suppose
                ow
                  per then consider b1 being bagsuch
                  case
A18:                [x,b9] in O;
                    thusexb9being bag of n nst b9  B&for   bag of
                    n st    
                    proof
                      take b9;
                      for b being bag of n st b in B holds [b,b9 (,O b1  ,Lm9
                      proof
                         be ofn;
                        assume
A19:                    b in B;
                        now
                          per cases;
                          case
                            b >x;
                            then not b in        then HMpO=0_(n,)by :1;
                            then b in X by A19,XBOOLE_0:def 5;
                            hence thesis by A10;
                          end;
                          hence thesis;
                            b = x;
                            hence thesis by A18;
                          end;
                        end;
                        hence thesis;
                      end;

                    end;
                  end;
                 case
A20:                [b9,x] in O;
                    thus ex b9 being bag of n st b9 in B & for b being proof
                    s b in  holdsbb9]in O
                    proof
                      take x;
                      for b being bag of n st b in B holds [ bePolynomialofn,;
                      proof
                        let b be bag of n;
                        assume
A21:  then
                        now
                   cases;
                          case
                            b <> x;
                            then not b in {x} by    case
                            then b in X by A21,XBOOLE_0:def 5;
                            then
A22:[b,b9 in O by A10
                            b is Element of Bags n & b9 is Element of
           Bags  by PRE_POLYdef 12;
                            hence thesis by A20,A22,ORDERS_1:5;
                          end;
                          case
                            b = x;
                            hence thesis by ORDERS_1:3;
                          ;
                        end;
                        hence thesis;
                               end;
                      hence thesis;
                    end;
                  end;
                end;
                hence thesis;
                for nbeing Ordinal, T being connected TermOrder of n, L being non
            end;
            hence thesis;
          end;
        end;
      end;
2;
      then
A23:  1 <= m by NAT_1:14;
A24:  card(Support p) = m by A2;
 in)
      proof
         be  Bagsnjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41

        then card {{}} = card Bend;
        then consider b being object such that
A26:    B = {b} by CARD_1:29;
A27:    b in B by A26,TARSKI:def 1;
        then reconsider b as java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 20
        reconsider b as bag of n;
        now
let ofn;
          assume b9 in B;
          then b9 = b by A26,TARSKI:def 1;
          hence [b9,b] in O by ORDERS_1:3;
        end
        hence thesis by A27;
      end;
      forfor       o ,L
      thenconsiderb9being bag of  suchthat
A28:  b9 in sp and
orbeing st  in   bb]O,;
      take b9;
      for b  bag  nst  insp holds b < b9, by A29java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
  hence thesis by A28;
    end;
  end;
  uniqueness
  proof
 , be ofBags;
    set O = T;
    assume
A30: Support p = {} & b1 = EmptyBag n or (b1 in Support p & for b
    being bag of n st b in Support p holds java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 28
    assume
A31: Support p = {} & b2 = EmptyBag n or (b2 in Support p & for b
    being bag of n st b in Support p holds b <= b2,O);
    per cases;
    suppose
      Support p = {};
      hence b1         notp isnonzero
end;
    suppose
A32:  Support p <> {};
      then b1< b2, byA30,31
      then
A33:[,]in O;
      b2 <= b1,O by A30,A31,A32;
      then [b2,b1]          =(LHTp) 
b1  by,:java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    end;
  end;
end;

definition :: definition 5.15, p. 194
  let n be Ordinal, T be connected TermOrder of n, L be non empty ZeroStr, p
  be Polynomial of n,L;
  func HC(p,T) -> Element of L equals
  p.(HT(p,T));
  correctness;
end;

definition :: definition 5.15, p. 194
  let n be Ordinal, T be connected TermOrder of n      end;
  be Polynomial of n,L;
  func HM(p,T) -> Monomial of java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  Monom(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  correctness;
end;

Lm7: for 
let   be java.lang.StringIndexOutOfBoundsException: Range [50, 47) out of bounds for length 78
proof
  let n   HC(p,)= HMO).(pO) 
      =HCpO java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
  now
    assume java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 7
    then not HT(p,O) in Support p by POLYNOM1:def 4;
then={ Def6java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    hence p = 0_(n,L) by POLYNOM7:1;
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  hence thesis by POLYNOM1:being_linear holds linearly_orders S
end;

Lm8:  Xbe set be  ,ofXjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
ZeroStr, p   
proof
  let n being Ordinal, O be connected TermOrder of java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 36
  , p be
A1::   beingjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 41
    per  b1b2being bag of suchjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41

      HC(p,O) <> 0.L;
      then HC(p,O) is non zero by STRUCT_0:def A16: b2 = <*HT(p,O), HT(q,O)*>.2 by A11,A14,FINSE44
      hence term(HM(p,O) 
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    case
A2:   HC(p,O) = 0.L;
      then p = 0_(n,L) by Lm7;
      then Support p = {} by POLYNOM7:1;
      then HT(p,O) = EmptyBag A21: s/.k = p.b1*q.b2 by A3,A18
) = pO ,8
    end;
  end;
 .HTp,) pO)by9
    .= (HM(A24:=*java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 47
  hence thesis by    *,>1
   .=b19;

Lm9: for n being Ordinal, O be       assume that
ZeroStr, p be Polynomial of n,L st HC(p,O) <>  .b2 >0L;
O)java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4

  let n being Ordinal, O be connected TermOrderthen=(,, ;
  , p be Polynomial of n,L;
  assume HC(p,O) <> 0  b1HTpO]Ojava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
  then (HM(p,O)).(HT(      then b2 in Suppo byPOLYNOM1java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 49
  hence thesis by POLYNOM1:def 4;
end;

Lm10: for n being Ordinal, O be connected TermOrder of n, L        b1=HTpO  =HT(O)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  of,  (pO  . (HM,O  }
proof
  let n being Ordinal, O be connected TermOrder of n, L be non java.lang.StringIndexOutOfBoundsException: Range [0, 70) out of bounds for length 60
  , p be Polynomial of n,L;
  assume
A1: HC(p,O) = 0.L;
  then p = 0_(n,L) by Lm7;
 ={ :
  then
A2: HT(p,O) = EmptyBag n by Def6;
A3: term(HM(p,O)) = EmptyBag n by A1,            hence  byA32P:48;
  now
    assume Support(HM(p,O)) <> {};
    then Support(HM(p,O)) = {term(HM(p,O))} by POLYNOM7:7;
    then term(HM(p,O)) in Support(HMA34:      HT(,O)b2java.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 73
    then (HM(p,O)).EmptyBag n <> 0.L by A3,POLYNOM1          HTpO+T(O, HT(p,)+2]in &[Tp,O)b2, HT(,O+(,
hence by A1,Ljava.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
  end;
  hence thesis;
end;

registration
  let n be Ordinal, T be connected TermOrder now
 benonzero ofn,;
  cluster HM(p,T) -> non-zero;
  coherence
  proof
     O =T;
    now
      per cases;
      case
        HC(p,O) <> 0.L;
        HT(,)inSupportHMp Lm9
        then HM(p,O) <> 0_(n,          Bagsn byPRE_POLY:ef 12;
  java.lang.StringIndexOutOfBoundsException: Range [36, 32) out of bounds for length 39
      end;
      case
p) .
        then p = 0_(n        k Element ;
        hence thesis by POLYNOM7:def 1;
      end;
    end;
    hence thesis;
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
(,T>;
  coherence
  proof
    set O = T, a = HC(p,O);
    now
      assume a = 0.L;
      then not(HT(p,O)) in Support p by POLYNOM1:defb1java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 51
      then p=}by 
      then p =      then p = ,>A13Fjava.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 49
      hence contradiction java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 13
    end;
    hence thesis by STRUCT_0:def 12;
  end;
end;


mof,L HT(m,O) = term(m) & HC(m,O) =
coefficient  end
proof
  let n be Ordinal, O be connected TermOrder of    let ube 
  be A21: u in(*q;
  per cases by POLYNOM7:6;
  
A1: Support m = {};
    
A2: term(m) = EmptyBag n by POLYNOM7:def ,A21;
      .= HT(m,O) by A1,Def6;
    hence HC(m,O) = coefficient(m) by POLYNOM7:def 6;
    hence thesis by A2,POLYNOM7:11;
  end;
  suppose
A3: ex b being bag of n st Support m = {b};
    then consider b being bag of n such that
A4: Support m = {b};
    in by:java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    then
A5: m.b <> 0.L by POLYNOM1:def 4;
    HT(m,O) in Support m by A3,Def6;
    hence
A6: HT(m,O)   java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 76
      .= term(m) by A5,POLYNOM7:def 5;
    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 53
    hence thesis by A6, HT(O)+(O Support*q  
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;

theorem
  for n being Ordinal, T being connected TermOrder of n, L  
 ZeroStrp  nL HCp)=.iff  _n,java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7

theorem
  for n being Ordinal, T  (*q)ins+ java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 74
  ofLholds((p,T).HTp) = p.HT(,
  T)) by Lm8;

theorem Th19:
  nOrdinal,T connectedTermOrderof  
non trivial ZeroStr, p being Polynomial of n,:p'O    and
  ) holds HM(p,T).b = 0.L
proof
 connectedofn    
  , p be Polynomial of n,L, b being java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 24
  
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 28
percasesbyPOLYNOM7:6;
  suppose
    Support HM(p,O) = {};
    then HM(p,O) = 0_(n,L) by POLYNOM7:1;
    hence thesis by POLYNOM1:22;
  end;
    s + t i    n&(,O+isBags by
    ex b beingd ;
    then consider   then [s + t,HT(p,OHT(,O] in O by A1,A7,A8,5
 HMpO  b1}java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
A3: b is Element of java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 0
    now
      per cases  for n  Ordinal      java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
      case
        HC(p,O) <> 0.L;
        then HT(p,O) in { distributive domRing-likenon trivial  p,  non-ero
        then b1    of,L holds (p*',)=HC(,T  HC(q,)
        then not bproof
        hence thesis by A2,A3,POLYNOM1:def 4;
      end;
      case
        HC(p,O) = 0.L;
        thenSupportHM,)  } by java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
        then HM(p,O) = 0_(n,L  then .HT(p,)  (-M(p,).HT(,)< .by15java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
        hence thesis byA1: p((p,)  HM(O).(HT(p,O)) <> 0.L by POLYNOM1:17;
      end;
    end;
    hence thesis;
  end;
end;

Lm12: for n being Ordinal, O be connected TermOrder of n, L be non trivial
ZeroStr, p be Polynomial of n,L holds Support(HM(p,O)Lm16:  ,being ,bjava.lang.StringIndexOutOfBoundsException: Range [68, 69) out of bounds for length 68
= beingjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 74
proof
  let n be Ordinal, O be connected TermOrder of n, L be non trivial ZeroStrjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  be Polynomial of n,L;
  
A1: not Support(HM(p,O)) = {} of,Lbjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 44
  then
  bn Support(M(p,)  b byPOLYNOM7:;
  now
     cases;
    case
HC,)  .Ljava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
byA1Ljava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    end.= . -(,O17
    case
      HC(p,O) <> 0.L;
      then HT(p,O) in Support HM(p,O) by Lm9;
      hence thesis by A2,TARSKI:def 1;
    end;
  end;
  hence thesis;
end;

theorem
     Tbeing   , 
trivial ZeroStr, p being Polynomial add java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 75
proof
  let n be Ordinal, O bejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  be Polynomial of n,L;

    assume
A1: u in Support(HM(p,O));
    now
      per cases by A1,Lm12;
      case
        in;
        hencethen reconsider u9 = u as Element of Bags n;
      end;
      case
        u in {HT(p,O)};
        then
A2:     u = HT(p,O) by TARSKI:def 1;
        now
per;
          case
 .java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
            then (HM(p,O)).(HT(p,O)) = 0.L by Lm8;
            hence contradiction by A1,A2,POLYNOM1:def 4;
          end;
          case
            (O >0L
            hence u in Support p    
          end;
        end;
        hence u     not u9 in {TpO)}by A4TARSKId 1;
      end;
        hen  in()\{T(,) by A5,: 5;
    hence u in Support p;
end;

theorem
  for n being Ordinal, T being connected TermOrder of     
   pbPolynomialofn,holdsSupport(pT)= }or
  Support(HM(p,T)) =       of  java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48


  for n being Ordinal, T being connected TermOrder of  then
r  ofnL((p)  p,T)&
  coefficient(HM(p,T)) = HC(p,T)
proof
  let n be Ordinal, O be connected TermOrder of n, L be non trivial ZeroStr, p
  be Polynomial of n,L;
  per cases;
  suppose
    endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
    then reconsider a = HC(p,O) as nonend;
    term(Monom(a,HT(p,O))) = HT(p,O) by POLYNOM7:t
thesisby 9
  end;
  suppose
A1: not HC(p,O)   being PolynomialnLjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 63
    now
      casesjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
      java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
        not  =L  pO. A10
        then            (,. java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
        then Support p = {} by POLYNOM7:1;
        then HT(p,O) = EmptyBag n by Def6
          .= term(Monom
          .= term(HM(p,     pjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
        hence thesis by POLYNOM7:9  hence  A12;
      java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 10
      case
        p is non-zero;
        then reconsider p as non-zero Polynomial of n,L;
        HC(p,O) is non zero;
henceby;
      end;
    end;
    java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  end;
end;

theorem
  for  let java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
  empty ZeroStr, m being Monomial of n,L holds HT(m,T) =    reconsider  asBagsnjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
      ;

theorem
  for n being Ordinal, T being connected TermOrder of n, L being non
empty ZeroStr, c being ConstPoly of n,L holds HT(c,T) = EmptyBag n & HC(c,T)java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 11
  c.(EmptyBag n)
proof
  let n be Ordinal, O be connected  . p A2,;
Poly n,L;
  thus HT(c,O) = term(c) by Lm11
    .= EmptyBag n by POLYNOM7:16;
  thus A3 x< p;
    .= c.(EmptyBag n) by POLYNOM7:16;
end;        H(pO  (,O.  HMO.  (p)by15

theorem
  for n being Ordinal, T being connected TermOrder  for n being Ordinal, T being connected TermOrder 
    of java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 79
  n,L),T) = a
proof
nOrdinal  connected ofn  java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 76
  be Element of L;
     |,;
  thus HT(p,O) = term(p) by Lm11
    .= EmptyBag n by POLYNOM7:23;
  thus HC(p,O) = coefficient(p) by Lm11
    .= a by POLYNOM7:23;
end;

theorem Th26:
, L being
  non trivial ZeroStr, p being Polynomial of   Polynomial of n,L holds (Red(p,T)).(HT(p,T)) = 0.L by Lm18;
proof
  let n be Ordinal, O be connected TermOrder  nOrdinal  of  being
  be Polynomial of n,L;
  per cases;
  
    HC  ((T)b=.bjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    then reconsider a = HC(p,O) as non zero Element of L;
    thus HT(HM(p,O),O) = term(Monom(a,HT(p,O))) by Lm11
      .= HT(p,O) by POLYNOM7:10;
  end;
  suppose
A1: not HC(p,O) is non zero;
    now
      per cases;
      case
        not p is non-zero;
        then p = 0_(n,L) by POLYNOM7:def 1;
        then Support p = {} by POLYNOM7:1;
        then HT(p,O) = EmptyBag n by Def6
          .= term(Monom(0.L,HT(p,O))) by POLYNOM7:8
          .= term(HM(p,O)) by A1,STRUCT_0:def 12;
        hence thesis by Lm11;
      end;
      case
        p is non-zero;
        then reconsider p as non-zero Polynomial of n,L;
        HC(p,O) is non zero;
        hence thesis by A1;
      end;
    end;
    hence thesis;
  end;
end;

theorem
  for n being Ordinal, T being connected TermOrder of n, L being non
  trivial ZeroStr, p being Polynomial of n,L holds HC(HM(p,T),T) = HC(p,T)
proof
  let n being Ordinal, O be connected TermOrder of n, L be non trivial ZeroStr
  , p being Polynomial of n,L;
  thus HC(HM(p,O),O) = (HM(p,O)).(HT(p,O)) by Th26
    .= HC(p,O) by Lm8;
end;

theorem
  for n being Ordinal, T being connected TermOrder of n, L being non
empty ZeroStr, p being Polynomial of n,L holds HM(HM(p,T),T) = HM(p,T) by Lm11;

Lm13: for X being set, S being Subset of X, R being Order of X st R is
being_linear-order holds R linearly_orders S
proof
  let X be set, S be Subset of X, R be Order of X;
  S c= X;
  then
A1: S c= field R by ORDERS_1:15;
  assume R is being_linear-order;
  hence thesis by A1,ORDERS_1:37,38;
end;

Lm14: for n being Ordinal, O be admissible connected TermOrder of n, L being
add-associative right_complementable left_zeroed right_zeroed well-unital
distributive non trivial doubleLoopStr, p,q being non-zero Polynomial of n,L
holds (p*'q).(HT(p,O) + HT(q,O)) = p.(HT(p,O)) * q.(HT(q,O))
proof
  let n be Ordinal, O be admissible connected TermOrder of n, L be
  add-associative right_complementable right_zeroed left_zeroed well-unital
  distributive non trivial doubleLoopStr, p,q be non-zero Polynomial of n,L;
  set b = HT(p,O) + HT(q,O);
  consider s being FinSequence of L such that
A1: (p*'q).b = Sum s and
A2: len s = len decomp b and
A3: for k being Element of NAT st k in dom s ex b1, b2 being bag of n st
  (decomp b)/.k = <*b1, b2*> & s/.k = p.b1*q.b2 by POLYNOM1:def 10;
  consider S being non empty finite Subset of Bags n such that
A4: divisors b = SgmX(BagOrder n, S) and
A5: for p being bag of n holds p in S iff p divides b by PRE_POLY:def 16;
  set sgm = SgmX(BagOrder n, S);
A6: BagOrder n linearly_orders S by Lm13;
  HT(p,O) divides b by PRE_POLY:50;
  then HT(p,O) in S by A5;
  then HT(p,O) in rng(sgm) by A6,PRE_POLY:def 2;
  then consider i being object such that
A7: i in dom sgm and
A8: sgm.i = HT(p,O) by FUNCT_1:def 3;
A9: i in dom decomp b by A4,A7,PRE_POLY:def 17;
  (divisors b)/.i = HT(p,O) by A4,A7,A8,PARTFUN1:def 6;
  then
A10: (decomp b)/.i = <*HT(p,O), b-'HT(p,O)*> by A9,PRE_POLY:def 17;
  then
A11: (decomp b)/.i = <*HT(p,O), HT(q,O)*> by PRE_POLY:48;
A12: dom s = Seg(len decomp b) by A2,FINSEQ_1:def 3
    .= dom(decomp b) by FINSEQ_1:def 3;
  then
A13: i in dom s by A4,A7,PRE_POLY:def 17;
  reconsider i as Element of NAT by A7;
  consider b1,b2 being bag of n such that
A14: (decomp b)/.i = <*b1, b2*> and
A15: s/.i = p.b1*q.b2 by A3,A13;
A16: b2 = <*HT(p,O), HT(q,O)*>.2 by A11,A14,FINSEQ_1:44
    .= HT(q,O);
A17: now
    let k be Element of NAT;
    assume that
A18: k in dom s and
A19: k <> i;
    consider b1,b2 being bag of n such that
A20: (decomp b)/.k = <*b1, b2*> and
A21: s/.k = p.b1*q.b2 by A3,A18;
    consider b19, b29 being bag of n such that
A22: (decomp b)/.k = <*b19, b29*> and
A23: b = b19+b29 by A12,A18,PRE_POLY:68;
A24: b2 = <*b19, b29*>.2 by A22,A20,FINSEQ_1:44
      .= b29;
A25: b1 = <*b19, b29*>.1 by A22,A20,FINSEQ_1:44
      .= b19;
A26: now
      assume that
A27:  p.b1 <> 0.L and
A28:  q.b2 <> 0.L;
      b1 is Element of Bags n by PRE_POLY:def 12;
      then b1 in Support p by A27,POLYNOM1:def 4;
      then b1 <= HT(p,O),O by Def6;
      then
A29:  [b1,HT(p,O)] in O;
      b2 is Element of Bags n by PRE_POLY:def 12;
      then b2 in Support q by A28,POLYNOM1:def 4;
      then b2 <= HT(q,O),O by Def6;
      then
A30:  [b2,HT(q,O)] in O;
A31:  now
        assume b1 = HT(p,O) & b2 = HT(q,O);
        then (decomp b).k = <*HT(p,O), HT(q,O)*> by A12,A18,A20,PARTFUN1:def 6
          .= (decomp b)/.i by A10,PRE_POLY:48
          .= (decomp b).i by A9,PARTFUN1:def 6;
        hence contradiction by A9,A12,A18,A19,FUNCT_1:def 4;
      end;
      now
        per cases by A31;
        case
A32:      b1 <> HT(p,O);
A33:      now
            assume b1+b2 = HT(p,O)+b2;
            then b1 = (HT(p,O)+b2)-'b2 by PRE_POLY:48;
            hence contradiction by A32,PRE_POLY:48;
          end;
A34:      HT(p,O)+b2 is Element of Bags n & HT(p,O)+HT(q,O) is Element of
          Bags n by PRE_POLY:def 12;
          [HT(p,O)+HT(q,O), HT(p,O)+b2] in O & [HT(p,O)+b2, HT(p,O)+HT(q,
          O)] in O by A23,A25,A24,A29,A30,BAGORDER:def 5;
          hence contradiction by A23,A25,A24,A33,A34,ORDERS_1:4;
        end;
        case
A35:      b2 <> HT(q,O);
A36:      now
            assume b2+b1 = HT(q,O)+b1;
            then b2 = (HT(q,O)+b1)-'b1 by PRE_POLY:48;
            hence contradiction by A35,PRE_POLY:48;
          end;
A37:      HT(q,O)+b1 is Element of Bags n & HT(p,O)+HT(q,O) is Element of
          Bags n by PRE_POLY:def 12;
          [HT(p,O)+HT(q,O), HT(q,O)+b1] in O & [HT(q,O)+b1, HT(p,O)+HT(q,
          O)] in O by A23,A25,A24,A29,A30,BAGORDER:def 5;
          hence contradiction by A23,A25,A24,A36,A37,ORDERS_1:4;
        end;
      end;
      hence contradiction;
    end;
    now
      per cases by A26;
      case
        p.b1 = 0.L;
        hence p.b1*q.b2 = 0.L;
      end;
      case
        q.b2 = 0.L;
        hence p.b1*q.b2 = 0.L;
      end;
    end;
    hence s/.k = 0.L by A21;
  end;
  b1 = <*HT(p,O), HT(q,O)*>.1 by A11,A14,FINSEQ_1:44
    .= HT(p,O);
  hence thesis by A1,A13,A17,A15,A16,POLYNOM2:3;
end;

theorem Th29:
  for n being Ordinal, T being admissible connected TermOrder of n
  , L being add-associative right_complementable left_zeroed right_zeroed
  well-unital distributive domRing-like non trivial doubleLoopStr, p,q being
  non-zero Polynomial of n,L holds HT(p,T) + HT(q,T) in Support(p*'q)
proof
  let n be Ordinal, O be admissible connected TermOrder of n, L be
  add-associative right_complementable right_zeroed left_zeroed well-unital
  distributive domRing-like non trivial doubleLoopStr, p,q be non-zero
  Polynomial of n,L;
  set b = HT(p,O) + HT(q,O);
  assume
A1: not HT(p,O) + HT(q,O) in Support(p*'q);
  p <> 0_(n,L) by POLYNOM7:def 1;
  then Support p <> {} by POLYNOM7:1;
  then HT(p,O) in Support p by Def6;
  then
A2: p.(HT(p,O)) <> 0.L by POLYNOM1:def 4;
  q <> 0_(n,L) by POLYNOM7:def 1;
  then Support q <> {} by POLYNOM7:1;
  then HT(q,O) in Support q by Def6;
  then
A3: q.(HT(q,O)) <> 0.L by POLYNOM1:def 4;
  b is Element of Bags n by PRE_POLY:def 12;
  then (p*'q).(HT(p,O) + HT(q,O)) = 0.L by A1,POLYNOM1:def 4;
  then p.(HT(p,O)) * q.(HT(q,O)) = 0.L by Lm14;
  hence thesis by A2,A3,VECTSP_2:def 1;
end;

theorem Th30:
  for n being Ordinal, L being add-associative
  right_complementable right_zeroed well-unital distributive non empty
doubleLoopStr, p,q being Polynomial of n,L holds Support(p*'q) c= {s + t where
  s,t is Element of Bags n : s in Support p & t in Support q}
proof
  let n be Ordinal, L be add-associative right_complementable right_zeroed
  well-unital distributive non empty doubleLoopStr, p,q be Polynomial of n,L;
A1: now
    let b be bag of n;
    consider s being FinSequence of L such that
A2: (p*'q).b = Sum s and
A3: len s = len decomp b and
A4: for k being Element of NAT st k in dom s ex b1, b2 being bag of n
    st (decomp b)/.k = <*b1, b2*> & s/.k = p.b1*q.b2 by POLYNOM1:def 10;
A5: dom s = Seg(len decomp b) by A3,FINSEQ_1:def 3
      .= dom(decomp b) by FINSEQ_1:def 3;
    assume
A6: b in Support(p*'q);
    now
      per cases;
      case
        dom s = {};
        then Seg len s = {} by FINSEQ_1:def 3;
        then len s = 0;
        hence contradiction by A3;
      end;
      case
A7:     dom s <> {};
        set k = the Element of dom s;
        k in dom s by A7;
        then reconsider k as Element of NAT;
        now
          assume
A8:       not( ex k being Element of dom(decomp b), b1,b2 being bag
          of n st (decomp b)/.k = <*b1, b2*> & p.b1 <> 0.L & q.b2 <> 0.L);
A9:       for k being Nat st k in dom s holds s/.k = 0.L
          proof
            let k be Nat;
            assume
A10:        k in dom s;
            then consider b1, b2 being bag of n such that
A11:        (decomp b)/.k = <*b1, b2*> and
A12:        s/.k = p.b1*q.b2 by A4;
            now
              per cases by A5,A8,A10,A11;
              case
                p.b1 = 0.L;
                hence thesis by A12;
              end;
              case
                q.b2 = 0.L;
                hence thesis by A12;
              end;
            end;
            hence thesis;
          end;
          then for k9 being Element of NAT st k9 in dom s & k9 <> k holds s/.
          k9 = 0.L;
          then Sum s = s/.k by A7,POLYNOM2:3
            .= 0.L by A7,A9;
          hence contradiction by A6,A2,POLYNOM1:def 4;
        end;
        then consider
        k being Element of dom(decomp b), b1,b2 being bag of n such
        that
A13:    (decomp b)/.k = <*b1, b2*> and
A14:    p.b1 <> 0.L and
A15:    q.b2 <> 0.L;
        k in dom(decomp b) by A5,A7;
        then reconsider k as Element of NAT;
        consider b19, b29 being bag of n such that
A16:    (decomp b)/.k = <*b19, b29*> and
A17:    b = b19+b29 by A5,A7,PRE_POLY:68;
A18:    b29 = <*b1, b2*>.2 by A13,A16,FINSEQ_1:44
          .= b2;
        b2 is Element of Bags n by PRE_POLY:def 12;
        then
A19:    b2 in Support q by A15,POLYNOM1:def 4;
        b1 is Element of Bags n by PRE_POLY:def 12;
        then
A20:    b1 in Support p by A14,POLYNOM1:def 4;
        b19 = <*b1, b2*>.1 by A13,A16,FINSEQ_1:44
          .= b1;
        hence
        ex s,t being bag of n st s in Support p & t in Support q & b = s+
        t by A20,A19,A17,A18;
      end;
    end;
    hence ex s,t being bag of n st s in Support p & t in Support q & b = s+t;
  end;
  now
    let u be object;
    assume
A21: u in Support(p*'q);
    then reconsider u9 = u as Element of Bags n;
    ex s,t being bag of n st s in Support p & t in Support q & u9 = s+t by A1
,A21;
    hence
    u in {s9 + t9 where s9,t9 is Element of Bags n : s9 in Support p & t9
    in Support q};
  end;
  hence thesis;
end;

theorem Th31: :: lemma 5.17 (i), p. 195
  for n being Ordinal, T being admissible connected TermOrder of n
  , L being add-associative right_complementable right_zeroed well-unital
  distributive domRing-like non trivial doubleLoopStr, p,q being non-zero
  Polynomial of n,L holds HT(p*'q,T) = HT(p,T) + HT(q,T)
proof
  let n be Ordinal, O be admissible connected TermOrder of n, L be
  add-associative right_complementable right_zeroed well-unital distributive
  domRing-like non trivial doubleLoopStr, p,q be non-zero Polynomial of n,L;
A1: HT(p,O)+HT(q,O) is Element of Bags n by PRE_POLY:def 12;
  HT(p,O) + HT(q,O) in Support(p*'q) by Th29;
  then HT(p,O) + HT(q,O) <= HT(p*'q,O),O by Def6;
  then
A2: [HT(p,O) + HT(q,O),HT(p*'q,O)] in O;
  Support p*'q <> {} by Th29;
  then
A3: HT(p*'q,O) in Support(p*'q) by Def6;
  Support(p*'q) c= {s + t where s,t is Element of Bags n : s in Support p
  & t in Support q} by Th30;
  then
  HT(p*'q,O) in {s + t where s,t is Element of Bags n : s in Support p & t
  in Support q} by A3;
  then consider s,t being Element of Bags n such that
A4: HT(p*'q,O) = s + t and
A5: s in Support p and
A6: t in Support q;
  s <= HT(p,O),O by A5,Def6;
  then [s,HT(p,O)] in O;
  then
A7: [s + t,HT(p,O) + t] in O by BAGORDER:def 5;
  t <= HT(q,O),O by A6,Def6;
  then [t,HT(q,O)] in O;
  then
A8: [t + HT(p,O), HT(p,O)+HT(q,O)] in O by BAGORDER:def 5;
  s + t is Element of Bags n & HT(p,O) + t is Element of Bags n by
PRE_POLY:def 12;
  then [s + t,HT(p,O)+HT(q,O)] in O by A1,A7,A8,ORDERS_1:5;
  hence thesis by A2,A4,A1,ORDERS_1:4;
end;

theorem Th32: :: lemma 5.17 (iii), p. 195
  for n being Ordinal, T being admissible connected TermOrder of n
  , L being add-associative right_complementable right_zeroed well-unital
  distributive domRing-like non trivial doubleLoopStr, p,q being non-zero
  Polynomial of n,L holds HC(p*'q,T) = HC(p,T) * HC(q,T)
proof
  let n be Ordinal, O being admissible connected TermOrder of n, L be
  add-associative right_complementable right_zeroed well-unital distributive
  domRing-like non trivial doubleLoopStr, p,q be non-zero Polynomial of n,L;
  thus HC(p*'q,O) = (p*'q).(HT(p,O) + HT(q,O)) by Th31
    .= HC(p,O) * HC(q,O) by Lm14;
end;

theorem :: lemma 5.17 (ii), p. 195
  for n being Ordinal, T being admissible connected TermOrder of n, L
  being add-associative right_complementable right_zeroed well-unital
  distributive domRing-like non trivial doubleLoopStr, p,q being non-zero
  Polynomial of n,L holds HM(p*'q,T) = HM(p,T) *' HM(q,T)
proof
  let n be Ordinal, O being admissible connected TermOrder of n, L be
  add-associative right_complementable right_zeroed well-unital distributive
  domRing-like non trivial doubleLoopStr, p,q be non-zero Polynomial of n,L;
  thus HM(p*'q,O) = Monom(HC(p,O) * HC(q,O),HT(p*'q,O)) by Th32
    .= Monom(HC(p,O) * HC(q,O),HT(p,O) + HT(q,O)) by Th31
    .= HM(p,O) *' HM(q,O) by Th3;
end;

theorem :: lemma 5.17 (iv), p. 195
  for n being Ordinal, T being admissible connected TermOrder of n, L
being right_zeroed non empty addLoopStr, p,q being Polynomial of n,L holds HT
  (p+q,T) <= max(HT(p,T),HT(q,T),T), T
proof
  let n be Ordinal, O being admissible connected TermOrder of n, L be
  right_zeroed non empty addLoopStr, p,q be Polynomial of n,L;
  per cases;
  suppose
A1: HT(p+q,O) in Support(p+q);
A2: Support(p+q) c= Support p \/ Support q by POLYNOM1:20;
    now
      per cases by A1,A2,XBOOLE_0:def 3;
      case
A3:     HT(p+q,O) in Support(p);
        then
A4:     HT(p+q,O) <= HT(p,O),O by Def6;
        now
          per cases by Th12;
          case
            max(HT(p,O),HT(q,O),O) = HT(p,O);
            hence thesis by A3,Def6;
          end;
          case
A5:         max(HT(p,O),HT(q,O),O) = HT(q,O);
            then HT(p,O) <= HT(q,O),O by Th14;
            hence thesis by A4,A5,Th8;
          end;
        end;
        hence thesis;
      end;
      case
A6:     HT(p+q,O) in Support(q);
        then
A7:     HT(p+q,O) <= HT(q,O),O by Def6;
        now
          per cases by Th12;
          case
            max(HT(p,O),HT(q,O),O) = HT(q,O);
            hence thesis by A6,Def6;
          end;
          case
A8:         max(HT(p,O),HT(q,O),O) = HT(p,O);
            then HT(q,O) <= HT(p,O),O by Th14;
            hence thesis by A7,A8,Th8;
          end;
        end;
        hence thesis;
      end;
    end;
    hence thesis;
  end;
  suppose
    not HT(p+q,O) in Support(p+q);
    then HT(p+q,O) = EmptyBag n by Def6;
    then [HT(p+q,O),max(HT(p,O),HT(q,O),O)] in O by BAGORDER:def 5;
    hence thesis;
  end;
end;

begin :: Reductum

definition
  let n be Ordinal, T be connected TermOrder of n, L be add-associative
right_complementable right_zeroed non empty addLoopStr, p be Polynomial of n,
  L;
  func Red(p,T) -> Polynomial of n,L equals
  p - HM(p,T);
  coherence;
end;

Lm15: for n being Ordinal, O being connected TermOrder of n, L being
add-associative right_complementable right_zeroed non trivial addLoopStr, p
being Polynomial of n,L holds not(HT(p,O) in Support(Red(p,O)))
proof
  let n being Ordinal, O being connected TermOrder of n, L being
  add-associative right_complementable right_zeroed non trivial addLoopStr, p
  being Polynomial of n,L;
  assume HT(p,O) in Support(Red(p,O));
  then (Red(p,O)).(HT(p,O)) <> 0.L by POLYNOM1:def 4;
  then (p + -HM(p,O)).(HT(p,O)) <> 0.L by POLYNOM1:def 7;
  then p.(HT(p,O)) + (-HM(p,O)).(HT(p,O)) <> 0.L by POLYNOM1:15;
  then
A1: p.(HT(p,O)) + -HM(p,O).(HT(p,O)) <> 0.L by POLYNOM1:17;
  HM(p,O).(HT(p,O)) = p.(HT(p,O)) by Lm8;
  hence thesis by A1,RLVECT_1:def 10;
end;

Lm16: for n being Ordinal, O being connected TermOrder of n, L being
add-associative right_complementable right_zeroed non trivial addLoopStr, p
being Polynomial of n,L, b being bag of n st b in Support p & b <> HT(p,O)
holds b in Support(Red(p,O))
proof
  let n being Ordinal, O being connected TermOrder of n, L being
  add-associative right_complementable right_zeroed non trivial addLoopStr, p
  being Polynomial of n,L, b being bag of n;
  assume that
A1: b in Support p and
A2: b <> HT(p,O);
  (Red(p,O)).b = (p + -HM(p,O)).b by POLYNOM1:def 7
    .= p.b + (-HM(p,O)).b by POLYNOM1:15
    .= p.b + -HM(p,O).b by POLYNOM1:17
    .= p.b + - 0.L by A2,Th19
    .= p.b + 0.L by RLVECT_1:12
    .= p.b by RLVECT_1:4;
  then b is Element of Bags n & (Red(p,O)).b <> 0.L by A1,POLYNOM1:def 4;
  hence thesis by POLYNOM1:def 4;
end;

Lm17: for n being Ordinal, O being connected TermOrder of n, L being
add-associative right_complementable right_zeroed non trivial addLoopStr, p
being Polynomial of n,L holds Support(Red(p,O)) = Support(p) \ {HT(p,O)}
proof
  let n being Ordinal, O being connected TermOrder of n, L being
  add-associative right_complementable right_zeroed non trivial addLoopStr, p
  being Polynomial of n,L;
A1: now
    let u be object;
    assume
A2: u in Support(Red(p,O));
    then reconsider u9 = u as Element of Bags n;
    reconsider u9 as bag of n;
A3: (p - HM(p,O)).u9 <> 0.L by A2,POLYNOM1:def 4;
A4: not u9 = HT(p,O) by A2,Lm15;
    (p + -HM(p,O)).u9 = p.u9 + (-HM(p,O)).u9 by POLYNOM1:15
      .= p.u9 + -HM(p,O).u9 by POLYNOM1:17;
    then (p + -HM(p,O)).u9 = p.u9 + - 0.L by A4,Th19
      .= p.u9 + 0.L by RLVECT_1:12
      .= p.u9 by RLVECT_1:4;
    then p.u9 <> 0.L by A3,POLYNOM1:def 7;
    then
A5: u9 in Support p by POLYNOM1:def 4;
    not u9 in {HT(p,O)} by A4,TARSKI:def 1;
    hence u in Support(p) \ {HT(p,O)} by A5,XBOOLE_0:def 5;
  end;
  now
    let u be object;
    assume
A6: u in Support(p) \ {HT(p,O)};
    then reconsider u9 = u as Element of Bags n;
    reconsider u9 as bag of n;
    not u in {HT(p,O)} by A6,XBOOLE_0:def 5;
    then
A7: u9 <> HT(p,O) by TARSKI:def 1;
    u in Support p by A6,XBOOLE_0:def 5;
    hence u in Support(Red(p,O)) by A7,Lm16;
  end;
  hence thesis by A1,TARSKI:2;
end;

theorem
  for n being Ordinal, T being connected TermOrder of n, L being
  add-associative right_complementable right_zeroed non trivial addLoopStr, p
  being Polynomial of n,L holds Support(Red(p,T)) c= Support(p)
proof
  let n being Ordinal, O being connected TermOrder of n, L being
  add-associative right_complementable right_zeroed non trivial addLoopStr, p
  being Polynomial of n,L;
  Support(Red(p,O)) = Support(p) \ {HT(p,O)} by Lm17;
  hence thesis by XBOOLE_1:36;
end;

theorem
  for n being Ordinal, T being connected TermOrder of n, L being
  add-associative right_complementable right_zeroed non trivial addLoopStr, p
  being Polynomial of n,L holds Support(Red(p,T)) = Support(p) \ {HT(p,T)} by
Lm17;

Lm18: for n being Ordinal, T being connected TermOrder of n, L being
add-associative right_complementable right_zeroed non trivial addLoopStr, p
being Polynomial of n,L holds (Red(p,T)).(HT(p,T)) = 0.L
proof
  let n be Ordinal, O being connected TermOrder of n, L be add-associative
right_complementable right_zeroed non trivial addLoopStr, p be Polynomial of
  n,L;
  HT(p,O) in {HT(p,O)} & Support(Red(p,O)) = Support(p) \ {HT(p,O)} by Lm17,
TARSKI:def 1;
  then not HT(p,O) in Support(Red(p,O)) by XBOOLE_0:def 5;
  hence thesis by POLYNOM1:def 4;
end;

Lm19: for n being Ordinal, O being connected TermOrder of n, L being
add-associative right_complementable right_zeroed non trivial addLoopStr, p
being Polynomial of n,L, b being bag of n st b <> HT(p,O) holds (Red(p,O)).b =
p.b
proof
  let n be Ordinal, O being connected TermOrder of n, L be add-associative
right_complementable right_zeroed non trivial addLoopStr, p be Polynomial of
  n,L, b be bag of n;
A1: b is Element of Bags n by PRE_POLY:def 12;
  assume b <> HT(p,O);
  then not b in {HT(p,O)} by TARSKI:def 1;
  then
A2: not b in Support(HM(p,O)) by Lm12;
  thus (Red(p,O)).b = (p + -HM(p,O)).b by POLYNOM1:def 7
    .= p.b + (-HM(p,O)).b by POLYNOM1:15
    .= p.b + -(HM(p,O)).b by POLYNOM1:17
    .= p.b + -0.L by A2,A1,POLYNOM1:def 4
    .= p.b + 0.L by RLVECT_1:12
    .= p.b by RLVECT_1:4;
end;

theorem
  for n being Ordinal, T being connected TermOrder of n, L being
  add-associative right_complementable right_zeroed non trivial addLoopStr, p
  being Polynomial of n,L holds Support(HM(p,T) + Red(p,T)) = Support p
proof
  let n being Ordinal, O being connected TermOrder of n, L being
  add-associative right_complementable right_zeroed non trivial addLoopStr, p
  being Polynomial of n,L;
A1: now
    let u be object;
    assume
A2: u in Support p;
    then reconsider u9 = u as Element of Bags n;
    reconsider u9 as bag of n;
A3: p.u9 <> 0.L by A2,POLYNOM1:def 4;
    now
      per cases;
      case
A4:     u9 = HT(p,O);
        then
A5:     p.(HT(p,O)) <> 0.L by A2,POLYNOM1:def 4;
        (HM(p,O) + Red(p,O)).u9 = HM(p,O).u9 + Red(p,O).u9 by POLYNOM1:15
          .= HM(p,O).u9 + 0.L by A4,Lm18
          .= HM(p,O).u9 by RLVECT_1:4
          .= HC(p,O) by A4,Lm8;
        hence u9 in Support(HM(p,O) + Red(p,O)) by A5,POLYNOM1:def 4;
      end;
      case
A6:     u9 <> HT(p,O);
        (HM(p,O) + Red(p,O)).u9 = HM(p,O).u9 + Red(p,O).u9 by POLYNOM1:15
          .= HM(p,O).u9 + p.u9 by A6,Lm19
          .= 0.L + p.u9 by A6,Th19
          .= p.u9 by RLVECT_1:4;
        hence u9 in Support(HM(p,O) + Red(p,O)) by A3,POLYNOM1:def 4;
      end;
    end;
    hence u in Support(HM(p,O) + Red(p,O));
  end;
  now
    let u be object;
    assume
A7: u in Support(HM(p,O) + Red(p,O));
    then reconsider u9 = u as Element of Bags n;
    reconsider u9 as bag of n;
A8: (HM(p,O) + Red(p,O)).u9 <> 0.L by A7,POLYNOM1:def 4;
    now
      per cases;
      case
A9:     u9 = HT(p,O);
        (HM(p,O) + Red(p,O)).u9 = HM(p,O).u9 + Red(p,O).u9 by POLYNOM1:15
          .= HM(p,O).HT(p,O) + 0.L by A9,Lm18
          .= HM(p,O).HT(p,O) by RLVECT_1:4
          .= p.u9 by A9,Lm8;
        hence u9 in Support p by A8,POLYNOM1:def 4;
      end;
      case
A10:    u9 <> HT(p,O);
        (HM(p,O) + Red(p,O)).u9 = HM(p,O).u9 + Red(p,O).u9 by POLYNOM1:15
          .= 0.L + Red(p,O).u9 by A10,Th19
          .= Red(p,O).u9 by RLVECT_1:4
          .= p.u by A10,Lm19;
        hence u9 in Support p by A8,POLYNOM1:def 4;
      end;
    end;
    hence u in Support p;
  end;
  hence thesis by A1,TARSKI:2;
end;

theorem
  for n being Ordinal, T being connected TermOrder of n, L being
  add-associative right_complementable right_zeroed non trivial addLoopStr, p
  being Polynomial of n,L holds HM(p,T) + Red(p,T) = p
proof
  let n be Ordinal, O being connected TermOrder of n, L be add-associative
right_complementable right_zeroed non trivial addLoopStr, p be Polynomial of
  n,L;
A1: now
    let x be object;
    assume x in Bags n;
    then reconsider x9 = x as Element of Bags n;
    now
      per cases;
      case
A2:     x = HT(p,O);
        hence (HM(p,O) + Red(p,O)).x = HM(p,O).HT(p,O) + Red(p,O).HT(p,O) by
POLYNOM1:15
          .= HM(p,O).HT(p,O) + 0.L by Lm18
          .= HM(p,O).HT(p,O) by RLVECT_1:4
          .= p.x by A2,Lm8;
      end;
      case
A3:     x <> HT(p,O);
        (HM(p,O) + Red(p,O)).x9 = HM(p,O).x9 + Red(p,O).x9 by POLYNOM1:15
          .= HM(p,O).x9 + p.x9 by A3,Lm19
          .= 0.L + p.x9 by A3,Th19
          .= p.x9 by RLVECT_1:4;
        hence p.x = (HM(p,O) + Red(p,O)).x;
      end;
    end;
    hence p.x = (HM(p,O) + Red(p,O)).x;
  end;
  dom p = Bags n & dom(HM(p,O) + Red(p,O)) = Bags n by FUNCT_2:def 1;
  hence thesis by A1,FUNCT_1:2;
end;

theorem
  for n being Ordinal, T being connected TermOrder of n, L being
  add-associative right_complementable right_zeroed non trivial addLoopStr, p
  being Polynomial of n,L holds (Red(p,T)).(HT(p,T)) = 0.L by Lm18;

theorem
  for n being Ordinal, T being connected TermOrder of n, L being
  add-associative right_complementable right_zeroed non trivial addLoopStr, p
  being Polynomial of n,L, b being bag of n st b in Support p & b <> HT(p,T)
  holds (Red(p,T)).b = p.b by Lm19;

Messung
CHZG
8010010093

¤ Dauer der Verarbeitung: 0.52 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland