{'fraction_non_alphanumeric': 0.024747191011235955, 'fraction_numerical': 0.01699438202247191, 'mean_word_length': 4.641102836317541, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Spatial microheterogeneity in the valence band of mixed halide hybrid perovskite materials

The valence band of lead halide hybrid perovskites with a mixed I/Br composition is investigated using electronic structure calculations and complementarily probed with hard X-ray photoelectron spectroscopy. In the latter, we used high photon energies giving element sensitivity to the heavy lead and halide ions and we observe distinct trends in the valence band as a function of the I : Br ratio. Through electronic structure calculations, we show that the spectral trends with overall composition can be understood in terms of variations in the local environment of neighboring halide ions. From the computational model supported by the experimental evidence, a picture of the microheterogeneity in the valence band maximum emerges. The microheterogeneity in the valence band suggests that additional charge transport mechanisms might be active in lead mixed halide hybrid perovskites, which could be described in terms of percolation pathways.


Introduction
With the current trend of shiing from traditional energy sources to renewable alternatives, solar power is becoming more prevalent and solar cells are expected to make up a signicant portion of the energy production in the future. 1 Among the most promising candidates, photovoltaics are the renewable energy resource with highest potential. 1 Many different materials and architectures are being explored. Within a decade, the hybrid perovskite solar cell has shown overwhelming progress and has reached over 25% photon-to-power conversion efficiency (PCE), 2,3 owing to the organic metal hybrid perovskite (OMHP) having various favorable properties such as ambipolar charge conduction 4 and sufficiently large photon absorption range. 5 Furthermore, it is a low-cost contender for the next-generation of photovoltaics. Recent cutting-edge technology has developed efficient tandem architecture [6][7][8] and largescale devices. 9 Most OMHP materials in solar cell applications have used methylammonium (CH 3 NH 3 + ), formamidinium and an admixture of cesium cations at the A site of the perovskite AMX 3 structure (A: organic, M: metal di-cation and X: halide) in the cavities between corner-sharing octahedra with lead cations in the center M site. The methylammonium lead tri-iodide (CH 3 -NH 3 PbI 3 ) system [10][11][12] in Fig. 1(a) has popularly been used in the many fundamental investigations as it is one of the standard materials. However, several material properties are still veiled.
In particular, the mixed halide systems of CH 3 NH 3 PbX 3 still need to be characterized in terms of their energy structures for understanding charge transportation processes and crystal stability. CH 3 NH 3 Pb(I 1Àx Br x ) 3 materials with mixed halides in the X site based on the combination of the pure CH 3 NH 3 PbI 3 and CH 3 NH 3 PbBr 3 crystals have been reported by Noh et al. 13 Another approach has been to use a mixture involving a third halide, chloride; formally CH 3 NH 3 Pb(I 1Àx Br x ) 3Ày Cl y , in the synthesis as reported by Park et al. 14 allowing for accurate control of the composition between CH 3 NH 3 PbI 3 and CH 3 -NH 3 PbBr 3 as displayed for the samples in Fig. 1(b). Notably, it has been shown that incorporating Cl in the synthesis of OMHP can contribute to retaining crystal stability for a longer period. 15,16 Anion substitution has also been used to reduce defects in OMHP materials and at their interfaces to oxide materials which lead to improved performance. [17][18][19] Mixed halogen compositions have been shown to enhance performance of light emitting devices. 20 In theoretical studies, lightinduced phase separation into Br-rich and I-rich domains has been proposed as an explanation for photoinstability. 21 The halide ions are at the connection between the cornersharing octahedra which results in an inorganic framework with an electronic structure that dominates the valence band maximum 10,22 and the conduction band minimum, 23 and determines photovoltaic characteristics of these solar cell materials. The halide ions also interact with methylammonium through hydrogen bonding as previously investigated from the point of view of the -NH 3 + group with nitrogen K-edge X-ray absorption spectroscopy and electronic structure calculations. 24 Extensive investigations of the hydrogen bonding interaction in hybrid perovskite materials have also been performed with vibrational spectroscopy and associated modelling. [25][26][27][28] The hydrogen bonding yields a slight nitrogen admixture in the upper valence band, which recently has been discussed in the context of nitrogen K-edge X-ray emission 29 and resonant Auger 30 spectroscopy. With variations of the A ions in lead bromide perovskites, it has been shown in measured and simulated bromine K-edge X-ray absorption spectra that hydrogen bonding strongly inuences bromine s* and p* bands in the conduction band. 31 In general, the halide X site can be occupied by I, Br, Cl, or in principle any combination of the three for the system of CH 3 -NH 3 Pb(I 1Àx Br x ) 3Ày Cl y . Variation in the halide composition has previously been demonstrated to strongly inuence both the band gap in the material and the PCE of the solar cell. 32 Since the halide ions have a dominant contribution at the top of the valence band, 10,22,33 the exact composition can also have an inuence on charge dynamics. The electron and hole mobility in hybrid perovskites is moderate, but this is compensated for by long charge recombination life times. 34 An important mechanism for charge carrier mobility is governed by the electrostatic interactions involving phonon modes in the inorganic lattice. 34 Intrinsically, CH 3 NH 3 PbX 3 has a charge-carrier mobility on the same order of magnitude for both electrons and holes, more akin to semiconductors such as GaAs or Si. The substitution of I with Cl has been shown to have only a minor effect on the charge carrier mobility, 35 and with Br there is a reduced mobility. 34 It is important to understand how the halide composition effects the electronic properties of CH 3 -NH 3 PbX 3 . In particular, combined molecular dynamics and quantum mechanical calculations on explicit structural models of mixtures can be used to identify and isolate microscopic effects of different local environments, including electronic structure and bond length. Hence, in this combined experimental and theoretical study, we are investigating the inuence of halide mixtures on the electronic structure of the materials with density functional theory (DFT) and hard X-ray photoelectron spectroscopy (HAXPES) for systems with varying composition.

Experimental details
Mixed halide perovskites were synthesized following the procedure previously reported. 14 The ratio between the halide and lead was kept at 3 : 1 using precursors of methylammonium iodide and bromide salts (CH 3 NH 3 I, CH 3 NH 3 Br) and PbCl 2 was used as the source for the lead ion. The nal precursor solutions contained a solvent mixture of dimethylformamide, dimethylsulfoxide, and tetrahydrofuran. The substrate was uorine-doped tin oxide (FTO) coated glass (Pilkington TEC 15) covered with a compact TiO 2 as well as a mesoporous titanium dioxide (mp-TiO 2 ) layer 14 in the order of a few hundred nm. The perovskite precursor solutions were used to spin-coat the different perovskite compositions onto the substrates. The perovskite material completely covered the substrate with a thickness substantially larger than the probe depth of the HAXPES measurements and thus there are no effects from TiO 2 substrate in the reported spectra. Although the precursors contain chloride ions, previous investigations have shown that the organic-inorganic lead mixed halides do not contain any substantial amounts of chlorine in their nal structure. 14,36 This is particularly true in the surface region where no Cl 2p peak could be observed 37 and where the valence structure was largely unaffected by the presence of chloride ions in the synthesis. Therefore while the effect from Cl may still have impact on the kinetics of the perovskite formation and therefore on the lm morphology, we will in the following describe the lms as CH 3 NH 3 Pb(I 1Àx Br x ) 3 and also exclude the chloride ions in the theoretical description. Varying the composition of halide ions at the X sites allows us to inuence the properties of lead halide hybrid perovskites. Materials with ionic mixtures have been shown to have superior photovoltaic properties. 38 In Fig. 1(b), we show thin-lm samples of CH 3 -NH 3 Pb(I 1Àx Br x ) 3 perovskites (from x ¼ 0 to x ¼ 1 in steps of 0.1) as deposited on the mp-TiO 2 layer. In Park et al., 14 it was concluded from XRD measurements that a transition from a tetragonal to a cubic structure occurs for a Br fraction larger than 0.3. The lattice constants change gradually with the bromide fraction x, but inbetween x ¼ 0.3 and x ¼ 0.4 there is a kink, attributed to the transition from a tetragonal to a cubic structure. The electronic structure of this series of samples was probed in HAXPES measurements.
Measurement with HAXPES was performed on the prepared samples at a photon energy of 4000 eV at the GALAXIES beam line at the synchrotron SOLEIL. 39 At this photon energy, the probing depth for valence electrons is approximately 21 nm (ref. 40) and the valence band HAXPES data therefore reects more of the bulk of the sample than measurements with a home-lab X-ray source such as Al K a . The photoelectron spectra were recorded with a Scienta Omicron EW4000 HAXPES hemispherical analyzer in xed mode using a pass energy of 500 eV. These settings were chosen to minimize the measurement time and therefore to avoid sample degradation by X-rays. Furthermore, the measurement spot was only exposed to X-rays during the measurement. The measured spectra were normalized at the peak of the Pb 5d 5/2 core level and energy calibrated with alignment at the Fermi level of Au at zero binding energy. In the data analysis, we realized that the measured HAXPES data for the CH 3 NH 3 Pb(I 1Àx Br x ) 3 sample at x ¼ 0.9 was suffering from large surface sample contamination, and it was discarded when reporting the series of spectra.

Computational details
As motivated in the experimental details above, we will theoretically investigate the electronic structure of the experimental samples in Fig. 1(b) using models of CH 3 NH 3 Pb(I 1Àx Br x ) 3 with varying composition. To describe the electronic structure of these mixed halide OMHP materials, we employed DFT as implemented in the CP2K soware suite, 41,42 using the Gaussian and Plane Wave (GPW) method 43 with a Goedecker-Teter-Hutter (GTH) pseudo-potential description. [44][45][46] The Kohn-Sham orbitals were expressed in Gaussian double-z (DZVP-GTH) basis sets (of MOLOPT type for Pb/I/Br) 47 whereas the electron density was described with an auxiliary plane wave basis with a kinetic cut-off of 300 Ry. The calculations were performed at the G point using the Perdew-Burke-Ernzerhof (PBE) gradient corrected exchange correlation functional 48 augmented with Grimme's D3 van der Waals interactions. 49 The exclusion of Brillouin zone sampling is motivated by the size of the super cell and the fact that we primarily analyze the local electronic structure.
Five realizations were constructed to obtain sufficient statistics for each of three compositions of CH 3 NH 3 Pb(I 1Àx Br x ) 3 with x ¼ 0.1, x ¼ 0.5, and x ¼ 0.9 (corresponding to 10, 50 and 90% I). The pure OMHP materials have previously been studied 22 and crystal structures of their tetragonal phases have been reported with lattice parameters a ¼ 8.85Å, c ¼ 12.64Å for CH 3 NH 3 PbI 3 and a ¼ 8.86Å, c ¼ 11.83Å for CH 3 NH 3 PbBr 3 . 50,51 The mixed halide lattice parameters were interpolated from the pure lattice parameters giving the following tetragonal simulations cells: 8.860Å Â 8.860Å Â 11.890Å (10% I).
It should be noticed that experimentally a slight kink in the gradual change of the cell parameters have been observed 14 associated with a change from tetragonal to cubic phase at x ¼ 0.3 to 0.4 because the cubic phase of CH 3 NH 3 PbBr 3 is more stable at room temperature. 51 Nonetheless, we have employed a tetragonal phase along the whole series of compositions to create a continuous variation. Based on the above cell parameters, 2 Â 2 Â 2 super cells containing 32 Pb 2+ , 96 X À , and 32 CH 3 NH 3 + ions were constructed by scaling an initial structure from a previous MD simulation trajectory of CH 3 NH 3 PbI 3 . 10 The desired ratio of I : Br was selected and these halide ions were distributed randomly at the X sites in the simulation cell. Hence, the halide ions are assumed to occupy the same lattice sites in the mixed materials as in the pure halide perovskites, which can exist in the same phase, 38 even though the bromine material is at room temperature when single crystal. This compromise of the realism in the modelling was preferred since we wanted to make a direct comparison of different compositions. For each realization, short ab initio molecular dynamics simulations were performed for 2.5 ps in the canonical ensemble at 300 K to allow for relaxation of the geometries and dynamical effects in the calculation of the density of states. Two snapshots, at times t 1 and t 2 , from the MD simulations were selected and used in calculations of the electronic density of states (DOS). The two time steps were separated by 1 ps. Singlepoint calculations were performed for each composition, realization and two different time snapshots, altogether 30 different congurations, in each of which we calculate the locally projected DOS (PDOS) of every lead ion and halide ion. The effect of spin-orbit coupling was neglected, since we focus on the direct inuence of ion distribution and orbital mixing. The obtained PDOS data was averaged over the ve realizations and over two MD snapshots. A constant ad hoc shi of 1.975 eV was applied to the theoretical data in order to match the energies of the main valence features with the experimental results. This was required due to limitations in present pure DFT approximations, in which the energy derivative discontinuity is not welldescribed. 52,53 Hence, the eigenvalues of the Kohn-Sham orbitals are not strictly relatable to binding energies in the photoelectron spectra, but pragmatically they are still very useful for interpretation. Additional calculations were performed using the hybrid HSE06 (ref. 54 and 55) functional, to evaluate the sensitivity to the choice of functional and in particular the effect of inclusion of exact exchange. Analysis of the PDOS and not solely the total DOS is essential, since the photoionization cross section of different elements varies with incident photon energy. Finally, the discrete PDOS data was convoluted by a Gaussian broadening function with a full width at half maximum (FWHM) of 0.4 eV in order to directly compare with the experimental HAXPES data. In order to investigate the effects of local halide environments on the Kohn-Sham orbitals as monitored by the PDOS, ions of the same element were classied by the halide composition of their immediate surrounding. The Pb 2+ ions make up the centers of the corner-sharing octahedra with the halide ions on the vertices. Hence, each lead ion is surrounded by six halide ions giving rise to a total of seven different classes of local environments ranging from pure I coordination to pure Br coordination. Notice that only the halide composition in this environment, not the precise arrangement in the coordination, is taken into account in this scheme.
It is not as straightforward to classify the environment of the I À and Br À ions. The halide ions were not directly bonded to other halide ions but instead each occupy a shared vertex of two Pb centered octahedra. Considering both these octahedra to dene the local environment, each halide anions is via its two octahedra connected to ten other halide anions, ve on each octahedron, as next neighbors. This results in a total number of eleven different local environments. For N and C atoms in methylammonium, several classication schemes were attempted but no local dependence in their PDOS could be identied, probably related to the large reorientational exibility of the organic cations. Hence, we will focus solely on the inorganic framework.

Results and discussion
In this study, we investigate the electronic structure in the valence band in mixed I/Br perovskite materials as probed with HAXPES of the valence band in the region 0-20 eV below the Fermi energy. Variations in the I : Br ratio cause changes in the band structure, which are reected in the color of the materials seen in Fig. 1(b). The band gap increases with the amount of Br as measured by the x value in the composition of CH 3 NH 3 -Pb(I 1Àx Br x ) 3 samples, and the absorption is blue-shied in the visible spectrum, giving the samples a black color for low x gradually converting through red for x ¼ 0.7 and nally becoming yellow for x ¼ 1. Spectral changes in the HAXPES data with composition are displayed in Fig. 1(c). We observe an increasing binding energy and a narrowing in the shape of the main peak at 1-6 eV with increasing x. The peak is dominated by the I 5p and Br 4p levels, where Br 4p has a higher binding energy than I 5pa result of an intrinsic difference between this pair of halide ions. These levels also involve mixing with Pb 6s and Pb 6p. 33 At low x, the peak is broad both due to a noticeable spin-orbit coupling 56 in I 5p and a larger sensitivity to uctuations in bond length. The changes in the electronic structure can be understood from the atomic electronic differences in the I À and Br À ions reected in the pure materials, 10,22 which has also been investigated for more complex materials (including mixtures at both the A cation and X anion sites) by scanning the incident energy in photoelectron spectroscopy. 33 We also notice the gradual increase in the peak of the Br 4s levels at 15 eV and decrease of the peak of I 5s levels at 13 eV, which are mixing with the Pb 6s and Pb 6p. 33 Finally, there is a small spectral response in the Pb 6s dominated feature at 9-10 eV with an increasing binding energy for increasing x, clearly showing how the halide ions inuence the electronic structure around lead.
The variations in the experimental HAXPES spectra in the Fig. 1(c) are further analyzed in DFT calculations on CH 3 NH 3 -Pb(I 1Àx Br x ) 3 models for composition with 10, 50 and 90% I. In Fig. 2, the trend in the projected density of states in the models for different compositions are compared to the corresponding experimental HAXPES data from Fig. 1(c). For x ¼ 0.1 and x ¼ 0.5, we can compare experimental and theoretical data directly, but the measurement for x ¼ 0.9 had to be discarded. Hence, the measurements for the CH 3 NH 3 Pb(I 1Àx Br x ) 3 sample with x ¼ 0.8 as well as the pure Br sample are included for comparison to the theoretical results from the 10% I composition. By separately displaying the PDOS for the three inorganic ions, dominating the HAXPES spectra at 4000 eV incident energy, we can follow see how the experimental spectra are built up from contributions of lead, bromine and iodine. For clarity, the intensity of the Pb PDOS is increased by a factor of ve.
The calculations of the total DOS and the experimental HAXPES data are in qualitative agreement with the exception of the contributions associated with the methylammonium (CH 3 NH 3 + ) counter ion, for instance at 6, 8, and 12 eV. These discrepancies can be attributed to low photoionization cross section for carbon and nitrogen at the employed incident X-ray energy. We observe an obvious gradual increase in Br PDOS at the expense of I PDOS as a function of I : Br ratio and hence with increasing x, both in the I 5p/Br 4p peak at 0-6 eV and the peaks at 13 eV from I 5s and 16 eV from Br 4s, clearly reproducing the experimental trends. In the region of the valence band maximum (0-6 eV), at rst approximation the relative intensity of the iodide and bromide contributions gives an apparent shi of the bands in the experimental feature. This leads to the important conclusion, that in all halide hybrid perovskite materials with mixed I/Br halide composition, the very top of the valence band consists of I 6p states but with negligible bromide contribution. In agreement with earlier studies, 10,33 these levels are hybridized with lead in Pb 6s-I 5p anti-bonding levels. The observed shi of approximately 1 eV is reproduced but slightly overestimated by the calculations. Similarly, the shi towards higher binding energies of the smaller Pb 6s peak at 9 eV is also captured in the theoretical models. In addition to this, we also identify an additional effects of the composition. We observe that the PDOS of each element, systematically shis to higher binding energy with increasing x. This implies that the changes in the relative amount of Br À versus I À ions inuences the electronic structure at the non-local level. This is possibly an artifact in the periodic DFT calculations, since the orbital energies in the different systems are not strictly comparable, and below we will study primarily variations within each model. The I 5s and Br 4s peaks at 13 eV and 16 eV, respectively, involve mixing predominantly with Pb 6s. In Fig. 3 and 4, we further analyze the effects of mixing iodide and bromide in the lead halide hybrid perovskite, by decomposition of the average PDOS of each element into contributions from different local environments.
A key to gain a deeper understanding of the trends in the experimental HAXPES spectrum in Fig. 1(c) is to study the variations in local electronic structure at a xed composition, as an alternative to calculate the average electronic structure at varying composition. The exact distribution of different halide ions at different mixed compositions is difficult to establish experimentally, and the observables anyhow correspond to averaged properties. In the theoretical models however, where the halide ions are distributed randomly according to the desired I : Br ratio, we can characterize the local coordination in great detail. This means that we can investigate how the local electronic structure depends on the local coordination. We will again use the tool of PDOS to sample the local projection of the density of the Kohn-Sham orbitals. Using the CH 3 NH 3 Pb(I 1Àx -Br x ) 3 models analyzed in Fig. 2 for 10, 50 and 90% I composition, we have investigated different possible local environments, as discussed above.  In silver bismuth halide perovskites, we investigated the energetics using Monte Carlo simulations 57 of the distribution of ions and valencies searching for optimal congurations, but in the current study we seek to investigate a broad distribution of different local environments and therefore we use a randomized procedure for distributing the halide ions over the X sites. To begin with, we will discuss the coordination around the Pb 2+ ions and its effect on the local electronic structure. Following the above discussion, we denoted these coordination classes by N I : N Br where for example a Pb 2+ ion with only a single I À neighbor belongs to the 1 : 5 class and a Pb 2+ with four I À neighbors falls into the 4 : 2 class. In Fig. 3(a), we display three examples of the seven possible local environments (ranging from 6 : 0 to 0 : 6 in I : Br) around each lead site classied simply in terms of the number of I À and Br À ions coordinated. This classication scheme for Pb environments does not distinguish the exact arrangement in the rst coordination shell nor the more extended structure, but as we will show it allows us to capture important variations in the electronic structure. Notice also that most of these local environments can be found in any material composition, but the frequency of occurrence depends on x, denoting the overall I : Br ratio. Hence, when we compare the local PDOS of different local coordination in Fig. 3(b), each spectrum is normalized with respect to the representatives (occurrence) in each class giving comparable intensities in all cases. In addition, only classes with at least three atom representatives were included in the analysis to reduce the dependence on the specic MD snapshots. This means that we can directly monitor how the Pb PDOS varies with the local coordination in the models of the three compositions. For comparison, the average Pb PDOS is presented at the top of Fig. 3(b). Notice however that because of the limited number of realizations and nite models, all environments are not present for all compositions. For example in iodine rich composition (x ¼ 0.1), there are no examples of local environments with a surplus of Br around Pb (2 : 4, 1 : 5, or 0 : 6).
The most notable trend in Fig. 3(b) is the intensity variations in the peaks at 13 eV and 16 eV associate with the mixing with the I 5s and Br 4s levels, which distinctly vary with the number of iodide and bromide ions in the rst coordination shell regardless of overall composition. This signies the bonding between lead and halide ions but the levels are dominated by halides which hence determine the energy positions. This systematic variation in the computational models closely matches the trend in the HAXPES measurements on the series of samples in Fig. 1. It is noteworthy that the local electronic structure as monitored in the Pb PDOS is very similar in the different compositions, apart from the fact that iodide local environments are rare in bromine rich compositions, and the other way around. Additionally, there is a slight shi towards higher binding energies of the peak at approximately 9-10 eV. The shi in this peak is clearer for the CH 3 NH 3 Pb(I 1Àx Br x ) 3 model with x ¼ 0.5, highlighted in Fig. 3(c), as the full range of possible local environments are represented in this case. The magnitude of this is 0.45 eV, smaller than the shi in the total Pb PDOS between CH 3 NH 3 Pb(I 1Àx Br x ) 3 at x ¼ 0.1 and CH 3 NH 3 Pb(I 1Àx Br x ) 3 at x ¼ 0.9 but more in line with the HAXPES measurements. Finally, we notice an general shi related to the overall composition and little changes in peak shapes. We conclude that the local electronic structure at the lead ions, as probed in the Pb PDOS, exhibits trends with changes in coordination that mimic those associated with global composition. Hence, the contribution of lead in the valence band is determine by the orbital mixing with the coordinating halide ions.
Next, we will change the view point and study the electronic structure of the halide ions. These exhibit a weaker dependence on the local structure, since the changes only occur in the second coordination shell, indirectly through the coordination of halide ions around the lead ions. There are ten halide ions in the different local environments around the X sites. In Fig. 4(d), we display two of the eleven possible local environments ranging from 10 : 0 to 0 : 10 in I : Br in a classication which again neglects variation in the exact arrangement of the ten neighboring halide ions (two Pb-X bonds away). The I PDOS and Br PDOS for these classes of local environments are displayed in Fig. 4(a) and (b), respectively. Since, the rst coordination shell containing two lead ions is preserved in all the halide classes, the changes in the local electronic structure around the halide ions are more subtle than in the case of the lead ions. However, several important changes can be identi-ed. Looking carefully at the binding energy of the features in the I PDOS in Fig. 4(b), we observe a similar shi in the I 5s peak as in the lead (Pb 6s)-dominated peak at 9-10 eV for Pb PDOS seen in Fig. 3(b). We also analyzed the very weak features for the halides at binding energy of 9-10 eV corresponding Pb 6s and can conclude that they follow the same trend. In addition, in the I PDOS, a signicant narrowing of the peak with increased Br content is observed, most apparent for the CH 3 NH 3 Pb(I 1Àx Br x ) 3 model at x ¼ 0.5 composition highlighted in Fig. 4(c), for increasing fraction of bromide ions in the second coordination shell of iodide. This indicates that the mixing of the iodide orbitals stretches over the directly coordinated lead ions. The narrowing of the upper valence band has also been observed in previous comparison of the pure materials. 22 For Br, no clear environment-dependent trend could be observed in this feature in Fig. 4(b) or in the highlighted region in Fig. 4(e). The small irregularities in these peaks are likely due to poor statistics for those particular combinations of class and composition. Notice in particular, that these trends can be seen for different local environment in the same composition, but are also reected in the averaged PDOS for each element and its variation with overall composition as seen in Fig. 2. Despite that the overlap is mediated through the bonding with the lead ions, the cooperative effect in orbital mixing between next-neighbor halide ions results in the trend that the binding energy of the local halide PDOS decrease with increasing number of next-neighbor iodide ions. Through the same mechanism, the dispersion of the band at the top of the valence increases. We conclude that the larger and more polarizable iodide ions are more susceptible to inuences from the next-neighbor interactions than the bromide ions. The analysis of local electron structure sheds light on the mechanisms for the trends with composition, and gives valuable insight into the spatial heterogeneity of the valence band.
In order to assure that the above results remain also for higher levels of theory, additional calculations using a hybrid functional were performed for comparison. In Fig. 5, the calculated PDOS for Pb, I, and Br in the CH 3 NH 3 Pb(I 1Àx Br x ) 3 model at x ¼ 0.5 at the GGA level is compared to the corresponding results using the hybrid HSE06 functional. The hybrid results are aligned with the previous PBE results using a constant, uniform shi of 1.245 eV. The most notable difference between the two functionals is the relative binding energy between the top of the valence, as seen in I 5p and Br 4p, and the deeper I 5s and Br 4s levels which is 1-2 eV larger for HSE06 compared to PBE. Hence, despite the general improvement in the band gap of hybrid perovskite materials with hybrid functionals, 58 the inclusion of exact exchange does not for the current system lead to an overall improvement in reproducing the relative energies within the valence band and PBE has the closest agreement of PDOS with the experimental HAXPES data. There is additional splitting of electronic orbitals associated with the partial inclusion of exact exchange in HSE06 as seen in the peaks around 14-18 eV. This is most pronounced for atoms in iodide-rich environments, and barely observable otherwise. We also notice that for HSE06 the Pb 6s feature is not exhibiting the same trend as in the PBE calculations. Apart from the above mentioned, the PDOS from the two functional approximations exhibit the same trends in energy shis and intensity redistribution, as identied above, showing the stability of our conclusions about the variations of the local environment mimicking the changes in overall composition.
Hybrid perovskite materials with multiple mixed ion composition have been shown to give high performance in solar cell applications. 38,59 The high PCE can have different reasons, and in particular charge carrier mobility and electron-hole recombination life time are related to the details in the electronic structure of the materials. 34,60 Charge-carrier dynamics in hybrid perovskite materials has been thoroughly investigated. [61][62][63][64] Our study relates to the spatial overlap in the valence band which is an important electronic parameter for hole transport. The very top of the valence band consists of I 6p states hybridized with lead but with negligible bromide contribution. The overall trends with composition observed in the HAXPES measurements can be explained mechanistically in terms of trend in local electronic structure with local coordination at xed composition. In particular, we could show that when iodide has an iodide in the second coordination shell, the mixing of the iodide orbitals stretches over the directly coordinated lead ion. This cooperativity creates a spatial microheterogeneity in the valence band with regions of low binding energy density of states, which can be connected into pathways depending on the I : Br ratio. We show that mixing of I : Br in lead halide hybrid perovskite creates inhomogeneity in the valence band maximum. The inhomogeneity acts as a symmetry breaking which can have similar inuence as grain boundaries and defects.
These observations, based on the combination of photoelectron experiments and theoretical modeling, indicate that there is a spatial heterogeneity at the top of the valence band, which can have consequences for hole transport in hybrid perovskite materials with mixed I/Br halide composition. We also speculate that the bottom of the conduction band could show similar spatial variations, which would imply that the relative overlap between orbitals at the valence band maximum and conduction band minimum strongly inuences charge recombination, if there is distinct spatial distributions of hole and electron charge carriers.

Conclusions
In conclusion, the spatial heterogeneity on an atomic length-scale at the top of the valence band, discussed in the analysis above, has implications for how to understand the spatial extend of optical excitations, charge carrier dynamics, charge separation and charge carrier recombination. We see that variations with composition are mirrored by the dependence on the local environment, and also give information about local variations at a given composition. The variation on local environments around lead in mixed halide OMHP materials is also detectable in nuclear magnetic resonance spectroscopy, where they are manifested in the chemical shi, and both their connectivity and anion mobility have been explored. 65,66 The microheterogeneity indicates that percolation theory 67,68 could be a suitable approach to formulate models for charge transport in hybrid perovskite materials with mixed ion composition, as suggested for other semiconductors. In contrast to the nanoscopic heterogeneity effecting charge transport in dye-sensitized solar cells, 69 we bring attention to the electronic microheterogeneity in the crystalline hybrid perovskite material itself. Similar to that investigated in previous studies of conductivity of perovskite oxide materials, 70 the microheterogeneity induced by ion substitution in mixed halide hybrid perovskite materials could be described in the framework of percolation theory, investigating critical concentrations for halide ion mixtures.

Data availability
Data sets generated during the current study are available from the corresponding authors on reasonable request.

Author contributions
AB and MO performed the calculations and theoretical analysis. BP, BwP, UC, and HR performed the experiments, and BP analyzed the experimental data. AB and MO wrote the rst dra and all co-authors contributed to the writing.

Conflicts of interest
There are no conicts of interest to declare.