Polypyridinium
FIELD OF THE INVENTION 
     This invention relates to novel polymers containing the pyridinium ring system and to novel methods for their preparation. The polymers are useful as polyelectrolytes, antistatic agents, redox polymers, ion exchange polymers, and electrochromic materials for light filtering and other applications. 
     BACKGROUND OF THE INVENTION 
     The 1,1&#39;-disubstituted-4,4&#39;-dipyridinium salt, also know as a &#34;viologen&#34; (Formula I) possesses one of the lowest cathodic reduction potentials of any organic system showing significant reduction-oxidation (redox) potential reversibility. The colorless salt form shown in Formula I can accept an electron and thereby be reduced to a deep blue-violet colored delocalized radial cation of Formula II. The radical cation of Formula II is readily oxidized back to the dicationic form of Formula I, for example, by atmospheric oxygen. Alternatively, the radical cation of Formula II can be further reduced to the red colored neutral form of Formula III, which can also be oxidized back to the starting dicationic form of Formula I. ##STR2## 
     Because of this remarkable redox behavior, viologens have been extensively used as photochemical or redox indicators in both chemical and biochemical applications. Additionally, viologens have been used for the estimation of dissolved oxygen in biochemical applications and as the main components of electrochromic display devices. See, for example, C. L. Bird and A. T. Kuhn, &#34;Electrochemistry of the Viologens&#34;, Chem. Soc. Rev. 1981, 10, 49. 
     Particularly significant is the ability of viologens to function as electrochemical mediators, in that the viologen of Formula I can be electrochemically reduced to the radical cation of Formula II, and this radical cation can then reduce species which, under the conditions of the reaction, are not themselves susceptible to electrochemical reduction. For example, T. Endo, K. Ageishi, and M. Okawara in J. Org. Chem. 1986, 51, 4309 describe the zinc induced reduction of acrylonitrile in the presence of viologen derivatives. The electrochemical mediating ability of viologens has also been demonstrated to have applications in the catalytic photolysis of water where light is converted into chemical energy (I. Okura, H. Fujie, S. Aono, T. Kita, and N. Kaji, Bull Chem. Soc. Jpn. 1986, 59, 309). 
     These pyridinium salts or viologens of Formula I have also been incorporated into polymers with the intent of taking advantage of the useful properties of the dipyridinium unit but in a material form that is easier to handle and separate from other components of the system, and to fabricate into desirable forms such as films, fibers, or membranes. For example, U.S. Pat. Nos. 3,641,034 (1972), 3,694,384 (1972), and 3,856,714 (1974) teach the incorporation of dipyridinium units into the main chain of polymers for use as redox polymers and electrochromic light filtering devices. Electrically conductive complexes of pyridinium polymers and 7,7&#39;,8,8&#39;-tetracyanoquinodi-methane (TCNQ) are described by Sanada, et al, Nippon Kagaka Kaishi 1974, (5), 961 (Chem. Abstr. 1974, 81, 106154r), and by Sherle, et al., Vysokomol. Soedin., Ser. A 1974, 16(a), 2051 (Chem. Abstr. 1975, 82, 86976a). Pyridinium polymers useful as nonfoaming antistatic agents for the antistatic treatment of film are described in Ger. Offen. No. 2,544,841 (Chem. Abstr. 1977, 86, 24443y). Incorporation of pyridinium polymers into ion-exchange membranes is disclosed in U.S. Pat. No. 4,119,581 (1978), and use of pyridinium polymers as mordants in color diffusion transfer photography is taught in Japan. Kokai No. 77,155,528 (1976) (Chem. Abstr. 1978, 89, 207248v). 
     In general, these pyridinium polymers where the pyridinium unit is contained in the main chain or backbone of the polymer are prepared by a Menschutkin type reaction, that is, condensation of 4,4&#39;-dipyridyl with an α, ω-dihaloalkane (See, A. Factor and G. E. Heinsohn, J. Polym. Sci. Polymer Lett. Ed. 1971, 9, 289.), for example: ##STR3## 
     Although this method does afford the desired useful pyridinium polymers, it has been reported (M. S. Simon and P. T. Moore, J. Polym. Sci., Polym. Chem. Ed. 1975, 13, 1) that films cast of the polymers obtained from this type of Menschutkin reaction were brittle and difficult to work with. 
     As an alternative to the Menschutkin reaction (that is, alkylation of an existing pyridine ring) another method for the preparation of pyridinium compounds is to utilize the reaction of a pyrylium salt (IV) with an amine (see A. R. Katritzky, R. H. Manzo, J. M. Lloyd, and R. C. Patel, Angew. Chem. Int. Ed. (English) 1980, 19, 306): ##STR4## 
     An example of the use of a bis(pyrylium) salt of structure V to prepare a polypyridinium of structure VI has been reported: Dzaraeva, et al., Khim. Geterotsikl. Soedin. 1985, (9), 1268 (Chem. Abstr. 1986, 104, 169303c). ##STR5## 
     SUMMARY OF THE INVENTION 
     Briefly, the present invention provides a class of polymers comprising one or more dipyridinium units, having the Formula ##STR6## contained within the main polymer backbone wherein Ar 1 , Ar 2 , and Ar 3  are aromatic or heteroaromatic groups each of which can consist of one ring or two fused or catenated rings having 5 to 12 ring carbon and heteroatoms which can include 1 to 3 unitary heteroatoms selected from S, N, and O, and Z.sup.⊖ is a counterion. The ring carbon atoms of Ar 1 , Ar 2 , and Ar 3  can be substituted by halogen atoms, and C 1  -C 10  alkyl, C 1  -C 10  alkoxy, N,N-di(C 1  -C 10  alkyl)amino, nitro, cyano, SO 3 .sup.⊖, and trifluoromethyl groups and R 1  can be any divalent organic bridging group, such as an alkylene group having 2 to 20 carbon atoms, or an arylene group having 2 to 20 carbon atoms, or a polyoxyalkylene group such as the polyoxyethylene and polyoxypropylene oligomeric residues of the polyethylene and polypropyleneoxide based diamines which are available from Texaco Chemical (Bellaire, Tex.) under the trade name Jeffamine™. 
     The novel pyridinium unit-containing polymers of the present invention are the reaction products of one or more bis(pyrylium) salts with one or more diamines. 
     In this application: 
     &#34;bis(pyrylium) salt&#34; means a compound of general Formula VIII ##STR7## wherein Ar 1 , Ar 2 , and Ar 3  are as defined above. It will be recognized that associated with the two positively charged oxygen atoms of the bis(pyrylium) salt of Formula VIII will be two negatively charged counterions, designated Z.sup.⊖, which are nonreactive with the bis(pyrylium) salt, so as to render the bis(pyrylium) salt of Formula VIII electrically neutral. Preferably, Z.sup.⊖ is non-nucleophilic. These counterions may be free counterions, for example, BR 4 .sup.⊖, ClO 4 .sup.⊖, PF 6 .sup.⊖, SbF 6 .sup.⊖, or may be negatively charged substituents on Ar 1 , Ar 2 , or Ar 3 , for example, SO 3 .sup.⊖ groups; 
     &#34;diamine&#34; means a compound of general Formula IX 
     
         H.sub.2 N--R.sup.1 --NH.sub.2                              IX 
    
     wherein R 1  is as previously defined. 
     &#34;polymer&#34; means a compound having more than one repeating unit, including oligomers (compounds having 2 to 5 repeating units); 
     &#34;backbone&#34; means the main chain of the polymer; 
     &#34;alkyl&#34; and &#34;alkylene&#34; mean the monovalent or divalent residues remaining after removal of one or two hydrogen atoms, respectively, from a linear, or branched chain or cyclic hydrocarbon having 1 to 20 carbon atoms; 
     &#34;aryl&#34; and &#34;arylene&#34; mean the monovalent or divalent residues remaining after removal of one or two hydrogen atoms, respectively, from an aromatic or heteroaromatic compound which can consist of one ring or two fused or catenated rings having 5 to 12 ring atoms which can include up to 3 unitary heteroatoms selected from S, N, and O. The carbon atoms can be substituted by halogen atoms, and C 1  -C 10  alkyl, C 1  -C 10  alkoxy, and N,N-di(C 1  -C 4  alkyl)amino groups; 
     &#34;arenyl&#34; and &#34;arenylene&#34; mean the monovalent or divalent residues remaining after removal of one or two hydrogen atoms, respectively, from the alkyl portion of a hydrocarbon containing both alkyl and aryl groups having 6 to 26 carbon and up to 3 unitary heteroatoms selected from S, N, and O; and 
     &#34;catenary&#34; means in the polymer backbone. 
     DETAILED DESCRIPTION OF THE INVENTION 
     The present invention provides novel polymers comprising one or more dipyridinium units, ##STR8## wherein Ar 1 , Ar 2 , Ar 3 , R 1 , and Z.sup.⊖ are as defined above, contained within the main polymer backbone. These polymers are prepared by reacting one or more bis(pyrylium) salts of general Formula VIII ##STR9## wherein Ar 1 , Ar 2 , Ar 3 , and Z.sup.⊖ are as defined above with one or more diamines of general Formula IX 
     
         H.sub.2 N--R.sup.1 --NH.sub.2                              IX 
    
     wherein R 1  can be any divalent organic bridging group, such as an alkylene group having 2 to 20 carbon atoms, or an arylene group having 2 to 20 carbon atoms; a polyoxyalkylene group having a number average molecular weight up to 20,000 such as the polyoxyethylene and polyoxypropylene oligomeric residues of the polyethylene- and polypropyleneoxide based diamines which are available from Texaco Chemical (Bellaire, Tex.) under the trade name Jeffamine™; or a 36 carbon residue of the linoleic acid dimer based diamines such as those available from Humko Sheffield chemical (Memphis, Tenn.) under the trade name Kemamine™; and polysiloxane diamines such as those described by I. Yilgor et al., Polymer Preprints 1983, 24(1), 167. 
     The diamines of general Formula IX are well known in the art. Many of them are commercially available and include 1,2-ethylenediamine, 1,3-propylenediamine, 1,4-butanediamine, 1,6-hexanediamine, 1,8-octanediamine, 1,12-dodecanediamine, m-phenylenediamine, p-phenylenediamine, 1,5-diaminonaphthalene, 3-aminophenyl sulfone, 4-aminophenyl sulfone, 4,4&#39;-diaminooctafluorobiphenyl, 4,4&#39;-methylenedianiline, benzidine, 4-aminophenyl ether, and 4-aminophenyl sulfide, oligomeric amines such as diethylenetriamine, triethylenetetramine, tetraethylenepentamine, 3,3-iminobispropylamine, 1,5-bis(3-aminopropyl)-1,1,3,3,5,5-hexamethyltrisiloxane, oxybisethylamine, and 4,9-dioxa-1,12-dodecanediamine. 
     It is to be understood that associated with each positively charged nitrogen atom of the dipyridinium unit of Formula VII or the positively charged oxygen atoms of the bis(pyrylium) salt of general Formula VIII will be a negatively charged counterion species so as to render the salt electrically neutral. This counterion species may be a free counterion, such as BF 4 .sup.⊖ or ClO 4 .sup.⊖, or it may be a negatively charged substituent on Ar 1 , Ar 2 , or Ar 3 , for example, a SO 3 .sup.⊖ group or a CO 2 .sup.⊖ group. 
     Bis(pyrylium) salts of general Formula VIII are known in the art. The bis(pyrylium) salts of Formula VIII where Ar 1  =Ar 3  can be prepared by base catalyzed condensation of a dialdehyde, OCH--Ar 3  --CHO with an excess of an aryl ketone wherein Ar 1 , Ar 2 , and Ar 3  are as defined above. The resulting tetraketone is converted to the bis(pyrylium) salt by the action of a strong acid such as perchloric acid, triflic acid (CF 3  SO 2  OH), fluoboric acid, hexafluorophosphoric acid, and hexafluoroantimonic acid, or by the action of a hydride ion abstractor such as triphenylmethyl tetrafluoroborate: ##STR10## wherein Ar 1 , and Ar 3  are as defined previously. 
     A number of bis(pyrylium) salts of Formula VIII where Ar 1  =Ar 2  were reported by Krivun and Dorofeenko, Khim. Geterotsikl. Soedin. 1966 (5), 656 (Chem. Abstr. 1967, 67, 64170w). Bis(pyrylium) salts of Formula VIII where Ar 1  is not the same as Ar 2  can be prepared by first preparing a bis(chalcone) by condensing a dialdehyde, OHC--Ar 3  --CHO, with 2 equivalents of an aryl ketone, and then reacting the bis(chalcone) with a different aryl ketone (see Example 8 below for details of process and conditions): ##STR11## wherein Ar 1 , Ar 2 , Ar 3 , and Z.sup.⊖ are as previously defined. 
     Preparation of polypyridinium homopolymers takes place according to Flow Chart I. Representative examples of bis(pyrylium) salts of general Formula VIII, diamines of general Formula IX, and the resultant polypyridiniums of general Formula VII include those indicated in TABLE I. 
     
                                           TABLE I                                 
__________________________________________________________________________
FLOW CHART I                                                              
 ##STR12##                                                                
 ##STR13##                                                                
Ar.sup.1 Ar.sup.2  Ar.sup.3                                               
                           counterion Z.sup.⊖                     
                                   R.sup.1                                
__________________________________________________________________________
C.sub.6 H.sub.5                                                           
         C.sub.6 H.sub.5                                                  
                   p-C.sub.6 H.sub.4                                      
                           BF.sub.4.sup.⊖                         
                                   (CH.sub.2).sub.6                       
C.sub.6 H.sub.5                                                           
         C.sub.6 H.sub.5                                                  
                   m-C.sub.6 H.sub.4                                      
                           ClO.sub.4.sup.⊖                        
                                   (CH.sub.2).sub.8                       
C.sub.6 H.sub.5                                                           
         C.sub.6 H.sub.5                                                  
                    ##STR14##                                             
                           ClO.sub.4.sup.⊖                        
                                   (CH.sub.2).sub.12                      
 ##STR15##                                                                
          ##STR16##                                                       
                   p-C.sub.6 H.sub.4                                      
                           BF.sub.4.sup.⊖                         
                                   (p-C.sub.6 H.sub.4).sub.2 CH.sub.2     
3,5-(CH.sub.3 O).sub.2 C.sub.6 H.sub.3                                    
         3,5-(CH.sub.3 O).sub.2 C.sub.6 H.sub.3                           
                   m-C.sub.6 H.sub.4                                      
                           ClO.sub.4.sup.⊖                        
                                   (p-C.sub.6 H.sub.4).sub.2 O            
C.sub.6 H.sub.5                                                           
         3,5-(CH.sub.3 O).sub.2 C.sub.6 H.sub.3                           
                   p-C.sub.6 H.sub.4                                      
                           BF.sub.4.sup.⊖                         
                                   (CH.sub.2).sub.6                       
C.sub.6 H.sub.5                                                           
         4-(SO.sub.3.sup.⊖)C.sub.6 H.sub.4                        
                   p-C.sub.6 H.sub.4                                      
                           --*     (p-C.sub.6 H.sub.4).sub.2 O            
C.sub.6 H.sub.5                                                           
         4-CH.sub.3 OC.sub.6 H.sub.4                                      
                   m-C.sub.6 H.sub.4                                      
                           BF.sub.4.sup.⊖                         
                                   p-(C.sub.6 H.sub.4).sub.2 O            
4-CH.sub. 3 C.sub.6 H.sub.4                                               
         4-(SO.sub.3.sup.⊖)C.sub.6 H.sub.4                        
                   m-C.sub.6 H.sub.4                                      
                           --*     (p-C.sub.6 H.sub.4).sub.2 SO.sub.2     
4-CF.sub.3 C.sub.6 H.sub.4                                                
         C.sub.6 H.sub.5                                                  
                   p-C.sub.6 H.sub.4                                      
                           BF.sub.4.sup.⊖                         
                                   (CH.sub.2).sub.6                       
4-(SO.sub.3.sup.⊖)C.sub.6 H.sub.4                                 
         4-(Na.sup.+ SO.sub.3.sup.⊖)C.sub.6 H.sub.4               
                    ##STR17##                                             
                           --*     (p-C.sub.6 H.sub.4).sub.2 O            
C.sub.6 H.sub.5                                                           
         4-CH.sub.3 C.sub.6 H.sub.4                                       
                    ##STR18##                                             
                           BF.sub.4.sup.⊖                         
                                   (CH.sub.2).sub.6                       
C.sub.6 H.sub.5                                                           
         4-CH.sub.3 C.sub.6 H.sub.4                                       
                   p-C.sub.6 H.sub.4                                      
                           BF.sub.4.sup.⊖                         
                                   ((CH.sub.2).sub.3 Si(CH.sub.3).sub.2).s
                                   ub.2 O                                 
C.sub.6 H.sub.5                                                           
         4-(SO.sub.3.sup.⊖)C.sub.6 H.sub.4                        
                   p-C.sub.6 H.sub.4                                      
                           --*     ((CH.sub.2).sub.3 Si(CH.sub.3).sub.2).s
                                   ub.2 O                                 
__________________________________________________________________________
 --*counterion is negatively charged substituent of Ar.sup.2              
 
    
     The reaction to prepare the novel polymers of the invention is carried out by mixing, preferably, equimolar amounts of the bis(pyrylium) salt of Formula VIII, the diamine of Formula IX and an organic base such as an amine or aza compound, for example triethylamine, diisopropylethylamine, 1,5-diazabicyclo[4.3.0]non-5-ene, 1,4-diazabicyclo[2.2.2]octane, 1,8-diazabicyclo[5.4.0]undec-7-ene, or 1,5,7-triazabicyclo[4.4.0]dec-5-ene in a nonreactive organic solvent. Suitable organic solvents include o-, m-, and p-cresol, methylene chloride, chloroform, dimethylformamide, dimethylacetamide, N-methylpyrrolidone, N-cyclohexylpyrrolidone, dimethyl sulfoxide, and sulfolane. The reaction is generally conducted at temperatures in the range of 25°-100° C. for 1 to about 48 hours, then an acid is added and the reaction is allowed to continue at the same temperature for 1 to about 48 hours. The amount of acid added is usually in excess relative to the amount of organic base. Generally two equivalents of acid are added. Suitable acids include any acid that is soluble in the reaction mixture and include strong acids such as triflic acid, hydrochloric acid and sulfuric acids, although organic carboxylic acids such as acetic acid, trifluoroacetic acid and propionic acid are preferred. 
     Upon completion of the reaction, the reaction mixture is added to a nonsolvent, such as diethyl ether, and the resultant precipitated polymer is isolated by filtration of the mixture. 
     It is also possible to prepare copolymers containing the bis(pyridinium) salt unit of Formula VII ##STR19## wherein Ar 1 , Ar 2 , Ar 3 , R 1 , and Z.sup.⊖ are as previously defined, by substituting a different monomer (comonomer) for a portion of the bis(pyrylium) salt component of Formula VIII. Suitable comonomers include any difunctional monomers which can react with the diamines of Formula IX, for example, diisocyanates, diacids, diacid chlorides, diesters, and bis(azlactones) ##STR20## wherein R 2  is a single bond or a hydrocarbon group selected from alkylene groups of 1 to 16 carbon atoms, arylene groups of 5 to 12 ring atoms, and arenylene groups of 6 to 26 carbon and heteroatoms, or R 2  can be 2 to 8 alkylene, arylene, and arenylene groups joined by up to 7 unitary catenary heteroatoms selected from --O--, --S--, and ##STR21## wherein R 3  is hydrogen or alkyl of 1 to 8 carbon atoms or an aryl group; and R 4  and R 5  independently represent a hydrogen atom, an alkyl group of 1 to 16 carbon atoms, an aryl group of 5 to 12 ring atoms, or an arenyl group of 6 to 26 carbon and heteroatoms, or R 4  and R 5  taken together with the carbon atom to which they are joined form a carbocyclic ring of 4 to 12 ring atoms. Representative examples of useful comonomers include: the diisocyanates such as OCN--R 6  --NCO, wherein R 6  can be any divalent organic bridging group, an alkylene group having 2 to 36 carbon atoms or an arylene group having 2 to 36 carbon atoms, such as 1,6-hexanediisocyanate, toluene diisocyanate, diphenylmethanediisocyanate, isophoronediisocyanate, and the like; the diacids (or their corresponding acid chlorides or lower alkyl (C 1  or C 2 ) esters) of oxalic acid, malonic acid, adipic acid, azelaic acid, sebacic acid, terephthalic acid, isophthalic acid, and the like; and the bis(azlactones) which are described in the following articles, herein incorporated by reference: (a) C. S. Cleaver and B. C. Pratt, J. Am. Chem. Soc. 1955, 77, 1544; (b) L. D. Taylor, T. E. Platt, and M. H. Mach, J. Polym. Sci., Polym. Letters 1970, 8, 537; (c) R. D. Katsarara, et al., Acta Polym. 1985, 36, 29; and those bis(azlactones) described in U.S. Pat. No. 4,291,152 (Inata, et al.) and in U.S. Pat. No. 4,485,236, also incorporated herein by reference. 
     Flow Chart II shows the preparation of exemplary copolymers. ##STR22## wherein Ar 1 , Ar 2 , Ar 3 , R 1 , and Z.sup.⊖ are as previously defined and x and y are mole fractions of units derived from comonomer and bis(pyrylium) salt, respectively. 
     
         __________________________________________________________________________
Comonomer        Comonomeric Unit                                         
__________________________________________________________________________
OCNR.sup.6NCO (diisocyanate)                                              
                  ##STR23##                                               
HO.sub.2 CR.sup.6CO.sub.2 H (diacid (or corresponding diacid chloride or  
diester))                                                                 
                  ##STR24##                                               
 ##STR25##                                                                
                  ##STR26##                                               
__________________________________________________________________________
 
    
     The polypyridiniums of the present invention are useful as redox polymers, polyelectrolytes, antistatic agents, ion exchange polymers, and electrochromic materials for light filtering. The polymers can be reduced chemically to the highly colored radical cation forms, then subsequently reoxidized to the color of the starting form, suggesting applications as redox indicators or light filtering materials. Light yellow solutions of the polymers in DMSO turned deep blue when treated with aqueous sodium dithionite. The blue color was discharged upon exposure of the polymer solutions to atmospheric oxygen. 
    
    
     Objectives and advantages of this invention are further illustrated by the following examples, but the particular materials and amounts thereof recited in these examples, as well as other conditions and details, should not be construed to unduly limit this invention. In all cases reactions were conducted under inert atmosphere of argon or nitrogen. 
     EXAMPLE 1 
     4,4&#39;-(1,4-Phenylene)bis(2,6-diphenylpyrylium) bis(tetrafluoroborate) was prepared as follows: To a solution of terephthaldehyde (0.40 mol) and acetophenone (2.4 mol) in ethanol (1.2 L) was added a solution of potassium hydroxide (0.50 mol) in water (100 mL). The solution was heated at reflux for 24 hours. The product, 1,4-bis(1,5-dioxo-1,5-diphenylpentan-3-yl)benzene, was collected by filtration, washed with ethanol (1 L), and dried. Fluoboric acid (0.11 mol) was added over a 30 minute period to a solution of triphenylmethanol (0.11 mol) in acetic anhydride (500 mL). Stirring was continued for 2 hours after addition was complete, then 1,4-bis(1,5-dioxo-1,5-diphenylpentan-3-yl)benzene (0.05 mol) was added and the mixture heated at reflux for 1 hour. The reaction mixture was cooled to room temperature, filtered, and the collected bis(pyrylium) salt was washed with acetone (250 mL) and dried at 50° C. at reduced pressure overnight. 
     A solution of 4,4&#39;-(1,4-phenylene)bis(2,6-diphenylpyrylium) bis(tetrafluoroborate) (10 mmol), ethylenediamine (10 mmol) and triethylamine (10 mmol) in DMF (75 mL) was stirred at room temperature for 24 hours, then acetic acid (20 mmol) was added and stirring was continued for another 24 hours. The reaction mixture was added to ether to precipitate the polymer which was isolated by filtration. The polymer was washed with ether and water, then dried at 50° C. at reduced pressure to give 4.8 g of the polymer, inherent viscosity 0.11 dL/g (in DMF at 30° C.). 
     EXAMPLES 2-7 
     Additional polypyridiniums were prepared according to the procedure of Example 1 by allowing the appropriate diamine to react with 4,4&#39;-(1,4-phenylene)bis(2,6-diphenylpyrylium) bis(tetrafluoroborate). Results are listed in Table II below. 
     
                       TABLE II                                                    
______________________________________                                    
Polypyridiniums                                                           
 ##STR27##                                                                
                        Inherent viscosity                                
Example                                                                   
       R.sup.1          (dL/g in DMF at 30° C.)                    
______________________________________                                    
2      (CH.sub.2).sub.6 0.60                                              
3      (CH.sub.2).sub.8 0.80                                              
4      (CH.sub.2).sub.12                                                  
                        1.4                                               
        ##STR28##       0.50                                              
6                                                                         
        ##STR29##       0.60                                              
7                                                                         
        ##STR30##       0.50                                              
______________________________________                                    
 
    
     Cyclic voltammetry of the polypyridiniums indicated that the polymers are useful as redox polymers. The polymer of Example 6, for example, when absorbed on glassy carbon and analyzed by cyclic voltammetry by use of a silver/silver chloride reference electrode and 0.1M KPF 6  supporting electrolyte in acetonitrile, showed reversible redox behavior at -720 mV. 
     EXAMPLES 8-11 
     4,4&#39;-(1,4-Phenylene)bis[2-phenyl-6-(4&#39;-benzenesulfonato)pyrylium] was prepared as follows: To terephthaldehyde (0.1 mol) and acetophenone (0.2 mol) in ethanol (200 mL) was added a solution of potassium hydroxide (0.2 mol in 50 mL of water) over a 30 minute period. The mixture was stirred at room temperature for 24 hours, filtered, and the product, 1,4-bis(3-oxy-3-phenylprop-1-enyl)benzene, was washed with water and dried at 50° C. at reduced pressure. A mixture of this product (0.025 mol) and sodium 4-acetylbenzenesulfonate (0.05 mol) in boron trifluoride etherate (0.3 mol) was heated at 100° C. for 6 hours, cooled, and added to ether. The product, 4,4&#39;-(1,4-phenylene)bis[2-phenyl-6-(4&#39;-benzenesulfonato)pyrylium], was isolated by filtration, washed with acetone, and dried at 50° C. at reduced pressure. 
     4,4&#39;-(1,4-Phenylene)bis[2-(4&#39;-methylphenyl)-6-(4&#39;-benzenesulfonato)pyrylium) was prepared in a similar fashion starting from terephthaldehyde and 4-methylacetophenone. Reaction of these bis(pyrylium) salts with the appropriate diamines according to the procedure of Example 1 gave the polypyridiniums listed in TABLE III. 
     
                       TABLE III                                                   
______________________________________                                    
Polypyridiniums                                                           
 ##STR31##                                                                
                                   Inherent                               
                                   viscosity                              
Exam-                              (dL/g in DMF                           
ple   Ar.sup.1    Ar.sup.2 *                                              
                          R.sup.1  at 30° C.)                      
______________________________________                                    
 8                                                                        
       ##STR32##  .sup.⊖ O.sub.3 S                                
                          (CH.sub.2).sub.6                                
                                   0.09                                   
 9                                                                        
       ##STR33##  &#34;                                                       
                           ##STR34##                                      
                                   0.08                                   
10                                                                        
       ##STR35##  &#34;       (CH.sub.2).sub.6                                
                                   0.10                                   
11                                                                        
       ##STR36##  &#34;                                                       
                           ##STR37##                                      
                                   0.07                                   
______________________________________                                    
 *this group includes the counterion                                      
 
    
     EXAMPLE 12 
     A solution of 4,4-(1,4-phenylene)bis(2,6-diphenylpyrylium) bis(tetrafluoroborate) (5 mmol), m-phenylenebis(4,4-dimethyl-2-oxazolin-5-one) (5 mmol), 1,12-dodecanediamine (10 mmol), and triethylamine (10 mmol) in DMF (85 mL) was stirred at room temperature for 24 hours, then acetic acid (20 mmol) was added and stirring was continued for another 24 hours. The reaction mixture was added to ether/methanol (3/1, v:v) to precipitate the polymer which was isolated by filtration. The polymer was washed with ether and water, then dried at 50° C. at reduced pressure. Spectral analyses confirmed the structure of the copolymer. 
     Similarly, copolymers can be prepared by substituting a diisocyanate or a dicarboxylic acid for the bis(azlactone) in the above examples. 
     Various modifications and alterations of this invention will become apparent to those skilled in the art without departing from the scope and spirit of this invention, and it should be understood that this invention is not to be unduly limited to the illustrative embodiments set forth herein.