  A model including two nonlinear chains with linear and nonlinear couplings
between them, and opposite signs of the discrete diffraction inside the chains,
is introduced. For [$\chi ^{(3)}$] nonlinearity, the model finds two different
interpretations in terms of optical waveguide arrays, based on the
diffraction-management concept. A straightforward discrete [$\chi ^{(2)}$]
model, with opposite signs of the diffraction at the fundamental and second
harmonics, is introduced also. Starting from the anti-continuum (AC) limit,
soliton solutions in the $\chi ^{(3)}$ model are found, both above the phonon
band and inside the gap. Solitons above the gap may be stable as long as they
exist, but in the transition to the continuum limit they inevitably disappear.
On the contrary, solitons inside the gap persist all the way up to the
continuum limit. In the zero-mismatch case, they lose their stability long
before reaching the continuum limit, but finite mismatch can have a stabilizing
effect on them. A special procedure is developed to find discrete counterparts
of the Bragg-grating gap solitons. It is concluded that they exist all the
values of the coupling constant, but are stable only in the AC and continuum
limits. Solitons are also found in the $\chi ^{(2)}$ model. They start as
stable solutions, but then lose their stability. Direct numerical simulations
in the cases of instability reveal a variety of scenarios, including
spontaneous transformation of the solitons into breather-like states,
destruction of one of the components (in favor of the other), and
symmetry-breaking effects. Quasi-periodic, as well as more complex, time
dependences of the soliton amplitudes are also observed as a result of the
instability development.
