Researcher profile

V. M. Rivilla

V. M. Rivilla contributes to research discovery and scholarly infrastructure.

ResearcherAffiliation not importedOpen to collaborate

Trust snapshot

Quick read

Trust 21 - EmergingVerification L1Unclaimed author
16works
0followers
4topics
4close collaborators

Actions

Decide how to stay connected

Follow researcher0

Identity and collaboration

How to connect with this researcher

Claiming links this public author record to a researcher profile and unlocks direct collaboration workflows.

Log in to claim

Direct collaboration

Open a focused conversation when the fit is right

Claim this author entity first to unlock direct invitations.

Research graph

See the researcher in context

Open full explorer

Inspect adjacent work, topics, institutions and collaborators without jumping out to a separate graph page.

Building this graph slice

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Published work

16 published item(s)

preprint2022arXiv

CHEMOUT: CHEMical complexity in star-forming regions of the OUTer Galaxy. I. Organic molecules and tracers of star-formation activity

The outer Galaxy is an environment with metallicity lower than the Solar one. Because of this, the formation and survival of molecules in star-forming regions located in the inner and outer Galaxy is expected to be different. To gain understanding on how chemistry changes throughout the Milky Way, it is crucial to observe outer Galaxy star-forming regions to constrain models adapted for lower metallicity environments. In this paper we present a new observational project: chemical complexity in star-forming regions of the outer Galaxy (CHEMOUT). The goal is to unveil the chemical composition in 35 dense molecular clouds associated with star-forming regions of the outer Galaxy through observations obtained with the IRAM 30m telescope. In this first paper, we present the sample, and report the detection at 3~mm of simple organic species HCO+, H13CO+, HCN, c-C3H2, HCO, C4H, and HCS+, of the complex hydrocarbon CH3CCH, and of SiO, CCS and SO. From c-C3H2, we estimate new kinematic heliocentric and Galactocentric distances based on an updated rotation curve of the Galaxy. The detection of the molecular tracers does not seem to have a clear dependence on the Galactocentric distance. We also analyse the HCO+ line profiles. We find high velocity wings in ~71% of the targets, and their occurrence does not depend on the Galactocentric distance. Our results, confirmed by a statistical analysis, show that the presence of organic molecules and tracers of protostellar activity is ubiquitous in the low-metallicity environment of the outer Galaxy. Based on this, and on the additional evidence that small, terrestrial planets are omnipresent in the Galaxy, we support previous claims that the definition of Galactic Habitable Zone should be rediscussed in view of the ubiquitous capacity of the interstellar medium to form organic molecules.

preprint2022arXiv

CHEMOUT: CHEMical complexity in star-forming regions of the OUTer Galaxy. II. Methanol formation at low metallicity

The outer Galaxy is an environment with metallicity lower than the Solar one and, because of this, the formation and survival of molecules in star-forming regions located in the inner and outer Galaxy is expected to be different. To gain understanding on how chemistry changes throughout the Milky Way, it is crucial to observe outer Galaxy star-forming regions to constrain models adapted for lower metallicity environments. The project "chemical complexity in star-forming regions of the outer Galaxy" (CHEMOUT) aims to address this problem observing a sample of 35 high-mass star-forming cores at Galactocentric distances up to ~23 kpc with the IRAM 30m telescope in various 3mm and 2mm bands. In this work we analyse observations of methanol (CH3OH), one of the simplest complex organic molecules crucial for organic chemistry in star-forming regions, and of two chemically related species, HCO and formaldehyde (H2CO), towards 15 out of the 35 targets of the CHEMOUT sample. In fact, only targets previously detected in both HCO and H2CO, both precursors of methanol, were considered. We detected CH3OH in all 15 targets. Using a Local Thermodynamic Equilibrium approach, we derive CH3OH excitation temperatures in the range 7 - 16 K and line widths smaller than 4 km/s, consistent with emission from a cold and quiescent envelope. The CH3OH fractional abundances w.r.t. H2 range between ~0.6 x 10^{-9} and ~7.4 x 10^{-9}. These values are comparable to those found in star-forming regions in the inner and local Galaxy. Our results have important implications in the organic, and possibly pre-biotic, chemistry occurring in the outermost star-forming regions of the Galaxy, and can help setting the frontiers of the Galactic habitable zone.

preprint2022arXiv

Cloud-cloud collision as origin of the G31.41+0.31 massive protocluster

The G31.41+0.31 (G31) hot molecular core (HMC) is a high-mass protocluster showing accelerated infall and rotational spin-up that is well studied at high-angular resolution. To complement the accurate view of the small scale in G31, we have traced the kinematics of the large-scale material by carrying out N$_2$H$^+$\,(1--0) observations with the IRAM 30m telescope of an area of $\sim$6$\times6$\,arcmin$^2$ around the HMC. The N$_2$H$^+$ observations have revealed a large-scale (5\,pc) hub-filament system (HFS) composed by at least four filamentary arms and a NNE--SSW velocity gradient ($\sim$0.4\,km/s/pc) between the northern and southern filaments. The linewidth increases towards the hub at the center of the HFS reaching values of 2.5--3\,km\,s$^{-1}$ in the central 1\,pc. The origin of the large-scale velocity gradient is likely cloud-cloud collision. In this scenario, the filaments in G31 would have formed by compression resulting from the collision and the rotation of the HMC observed at scales of 1000\,au would have been induced by shear caused by the cloud-cloud collision at scales of a few pc. We conclude that G31 represents a HFS in a compressed layer with an orthogonal orientation to the plane of the sky, and represents a benchmark for the filaments-to-clusters paradigm of star formation.

preprint2022arXiv

Deuterium fractionation as a multi-phase component tracer in the Galactic Centre

The Central Molecular Zone (CMZ) contains most of the mass of our Galaxy but its star formation rate is one order of magnitude lower than in the Galactic disc. This is likely related to the fact that the bulk of the gas in the CMZ is in a warm ($>$100 K) and turbulent phase with little material in the pre-stellar phase. We present in this Letter observations of deuterium fractionation (D/H ratios) of HCN, HNC, HCO$^{+}$, and N$_{2}$H$^{+}$ towards the CMZ molecular cloud G+0.693-0.027. These observations clearly show, for the first time, the presence of a colder, denser, and less turbulent narrow component, with a line width of $\sim$9 km s$^{-1}$, in addition to the warm, less dense and turbulent broad component with a line width of $\sim$20 km s$^{-1}$. The very low D/H ratio $\le$6$\times$10$^{-5}$ for HCO$^{+}$ and N$_{2}$H$^{+}$, close to the cosmic value ($\sim$2.5$\times$10$^{-5}$), and the high D/H ratios $>$4$\times$10$^{-4}$ for HCN and HNC derived for the broad component, confirm the presence of high-temperatures deuteration routes for nitriles. For the narrow component we have derived D/H ratios $>$10$^{-4}$ and excitation temperatures of $7$ K for all molecules, suggesting kinetic temperatures $\le$30 K and H$_2$ densities $\ge$5$\times$10$^{4}$ cm$^{-3}$, at least one order of magnitude larger than for the broad component. The method presented in this Letter allows to identify clouds on the verge of star formation, i.e. under pre-stellar conditions, towards the CMZ. This method can also be used for the identification of such clouds in external galaxies.

preprint2022arXiv

First extragalactic detection of a phosphorus-bearing molecule with ALCHEMI: phosphorus nitride (PN)

Phosphorus (P) is a crucial element for life given its central role in several biomolecules. P-bearing molecules have been discovered in different regions of the Milky Way, but not yet towards an extragalactic environment. We have searched for P-bearing molecules towards the nearby starburst Galaxy NGC 253. Using observations from the ALMA Comprehensive High-resolution Extragalactic Molecular Inventory (ALCHEMI) project, we used the MADCUBA package to model the emission of P-bearing molecules assuming Local Thermodynamic Equilibrium (LTE) conditions. We have also performed a non-LTE analysis using SpectralRadex. We report the detection of a P-bearing molecule, phosphorus nitride (PN), for the first time in an extragalactic environment, towards two giant molecular clouds (GMCs) of NGC 253. The LTE analysis yields total PN beam-averaged column densities $N$=(1.20$\pm$0.09)$\times$10$^{13}$ cm$^{-2}$ and $N$=(6.5$\pm$1.6)$\times$10$^{12}$ cm$^{-2}$, which translate into abundances with respect to H$_2$ of $χ$=(8.0$\pm$1.0)$\times$10$^{-12}$ and $χ$=(4.4$\pm$1.2)$\times$10$^{-12}$. We derived a low excitation temperature of $T_{\rm ex}$=(4.4$\pm$1.3) K towards the GMC with the brightest PN emission, which indicates that PN is sub-thermally excited. The non-LTE analysis results in column densities consistent with the LTE values. We have also searched for other P-bearing molecules (PO, PH$_{3}$, CP and CCP), and upper limits were derived. The derived PO/PN ratios are $<$1.3 and $<$1.7. The abundance ratio between PN and the shock-tracer SiO derived towards NGC 253 follows the same trend previously found towards Galactic sources. Comparison of the observations with chemical models indicates that the derived molecular abundances of PN in NGC 253 can be explained by shock-driven chemistry followed by cosmic-ray-driven photochemistry.

preprint2022arXiv

Methanol masers in NGC 253 with ALCHEMI

Context: Methanol masers of Class I (collisionally-pumped) and Class II (radiatively-pumped) have been studied in great detail in our Galaxy in a variety of astrophysical environments such as shocks and star-forming regions and are helpful to analyze the properties of the dense interstellar medium. However, the study of methanol masers in external galaxies is still in its infancy. Aims: Our main goal is to search for methanol masers in the central molecular zone (CMZ; inner 500 pc) of the nearby starburst galaxy NGC 253. Methods: Covering a frequency range between 84 and 373 GHz ($λ$ = 3.6 to 0.8 mm) at high angular (1.6&#34;$\sim$27 pc) and spectral ($\sim$8--9 km s$^{-1}$) resolution with the ALMA large program ALCHEMI, we have probed different regions across the CMZ of NGC 253. In order to look for methanol maser candidates, we employed the rotation diagram method and a set of radiative transfer models. Results: We detect for the first time masers above 84 GHz in NGC 253, covering an ample portion of the $J_{-1}\rightarrow(J-$ 1)$_{0}-E$ line series (at 84, 132, 229, and 278 GHz) and the $J_{0}\rightarrow(J-$ 1)$_{1}-A$ series (at 95, 146, and 198 GHz). This confirms the presence of the Class I maser line at 84 GHz, already reported but now being detected in more than one location. For the $J_{-1}\rightarrow(J-$ 1)$_{0}-E$ line series, we observe a lack of Class I maser candidates in the central star-forming disk. Conclusions: The physical conditions for maser excitation in the $J_{-1}\rightarrow(J-$ 1)$_{0}-E$ line series can be weak shocks and cloud-cloud collisions as suggested by shock tracers (SiO and HNCO) in bi-symmetric shock/active regions located in the outskirts of the CMZ. On the other hand, the presence of photodissociation regions due to a high star-formation rate would be needed to explain the lack of Class I masers in the very central regions.

preprint2022arXiv

On the thermal structure of the proto-Super Star Cluster 13 in NGC 253

Using high angular resolution ALMA observations ($0.02^{\prime\prime}\approx0.34$ pc), we study the thermal structure and kinematics of the proto super star cluster $13$ in the central region of NGC253 through their continuum and vibrationally excited HC$_3$N emission from $J=24-23$ and $J=26-25$ lines arising from vibrational states up to $v_4=1$. We have carried 2D-LTE and non-local radiative transfer modelling of the radial profile of the HC$_3$N and continuum emission in concentric rings of $0.1$ pc width. From the 2D-LTE analysis, we found a Super Hot Core (SHC) of $1.5$ pc with very high vibrational temperatures ($>500$ K), and a jump in the radial velocity ($21$ km s$^{-1}$) in the SE-NW direction. From the non-local models, we derive the HC$_3$N column density, H$_2$ density and dust temperature ($T_\text{dust}$) profiles. Our results show that the thermal structure of the SHC is dominated by the greenhouse effect due to the high dust opacity in the IR, leading to an overestimation of the LTE $T_\text{dust}$ and its derived luminosity. The kinematics and $T_\text{dust}$ profile of the SHC suggest that star formation was likely triggered by a cloud-cloud collision. We compare proto-SSC $13$ to other deeply embedded star-forming regions, and discuss the origin of the $L_\text{IR}/M_{\text{H}_2}$ excess above $\sim100$ L$_\odot$ M$_\odot^{-1}$ observed in (U)LIRGs.

preprint2022arXiv

The sharp ALMA view of infall and outflow in the massive protocluster G31.41+0.31

Context. To better understand the formation of high-mass stars, it is fundamental to investigate how matter accretes onto young massive stars, how it is ejected, and how all this differs from the low-mass case. The massive protocluster G31.41+0.31 is the ideal target to study all these processes because observations at millimeter and centimeter wavelengths have resolved the emission of the Main core into at least four massive dust continuum sources, named A, B, C, and D, within 1&#34; or 0.018 pc, and have identified signatures of infall and several outflows associated with the core. Aims. We study the interplay between infall and outflow in G31.41+0.31 by investigating at a spatial resolution of a few 100 au their properties and their possible impact on the core. Methods. We carried out molecular line observations of typical high-density tracers, such as CH3CN or H2CO, and shock and outflow tracers, such as SiO, with ALMA at 1.4 mm that achieved an angular resolution of 0.09&#34; (340 au). Results. The observations have revealed inverse P-Cygni profiles in CH3CN and H2CO toward the four sources embedded in the Main core, suggesting that all of them are undergoing collapse. The infall rates, estimated from the red-shifted absorption are on the order of 1E-2 Msun/yr. The individual infall rates imply that the accretion timescale of the Main core is an order of magnitude smaller than its rotation timescale. This confirms that rotating toroids such as the G31 Main core are non-equilibrium, transient collapsing structures that need to be constantly replenished with fresh material from a large-scale reservoir. For sources B, C, and D, the infall could be accelerating inside the sources, while for source A, the presence of a second emission component complicates the interpretation. The SiO observations have revealed the presence of at least six outflows in the G31.41+0.31 star-forming region, ...

preprint2021arXiv

The trans/cis ratio of formic, HCOOH, and thioformic, HC(O)SH, acids in the Interstellar Medium

We studied theoretically the cis-trans isomerization reactions of two astrophysically relevant acids, formic acid (HCOOH) and thioformic acid (HC(O)SH), where the latter has recently been discovered in space. We also searched for these molecules towards the hot core G31.41+0.31 to compare their abundances with the expected theoretical isomerization results. Our results demonstrate that these isomerizations are viable in the conditions of the ISM due to ground-state tunneling effects, which allow the system to reach the thermodynamic equilibrium at moderately low temperatures. At very low temperatures (Tkin 10 K), the reaction rate constants for the cis to trans isomerizations are very small, which implies that the cis isomers should not be formed under cold ISM conditions. This is in disagreement with observations of the cis/trans isomers of HCOOH in cold cores where the cis isomer is found to be 5-6% the trans isomer. At high temperatures (150-300 K), our theoretical data not only match the observed behaviour of the trans/cis abundance ratios for HCOOH (the cis form is undetected), but they support our tentative detection of the trans and, for the first time in the insterstellar medium, of the cis isomer of HC(O)SH towards the hot molecular core G31.41+0.31 (with a measured trans/cis abundance ratio of 3.7). While the trans/cis ratio for HC(O)SH in the ISM depends on the relative stability of the isomers, the trans/cis ratio for HCOOH cannot be explained by isomerization, and it is determined by other competitive chemical processes

preprint2020arXiv

Cloud-cloud collision as drivers of the chemical complexity in Galactic Centre molecular clouds

G+0.693-0.03 is a quiescent molecular cloud located within the Sagittarius B2 (Sgr B2) star-forming complex. Recent spectral surveys have shown that it represents one of the most prolific repositories of complex organic species in the Galaxy. The origin of such chemical complexity, along with the small-scale physical structure and properties of G+0.693-0.03, remains a mystery. In this paper, we report the study of multiple molecules with interferometric observations in combination with single-dish data in G+0.693-0.03. Despite the lack of detection of continuum source, we find small-scale (0.2 pc) structures within this cloud. The analysis of the molecular emission of typical shock tracers such as SiO, HNCO, and CH$_3$OH unveiled two molecular components, peaking at velocities of 57 and 75 km s$^{-1}$. They are found to be interconnected in both space and velocity. The position-velocity diagrams show features that match with the observational signatures of a cloud-cloud collision. Additionally, we detect three series of class \rom{1} methanol masers known to appear in shocked gas, supporting the cloud-cloud collision scenario. From the maser emission we provide constraints on the gas kinetic temperatures ($\sim$30-150 K) and H$_2$ densities (10$^4$-10$^5$ cm$^{-2}$). These properties are similar to those found for the starburst galaxy NGC253 also using class \rom{1} methanol masers, suggested to be associated with a cloud-cloud collision. We conclude that shocks driven by the possible cloud-cloud collision is likely the most important mechanism responsible for the high level of chemical complexity observed in G+0.693-0.03.

preprint2020arXiv

DC$_3$N observations towards high-mass star-forming regions

We present the study of deuteration of cyanoacetylene (HC$_3$N) towards a sample of 28 high-mass star-forming cores divided into different evolutionary stages, from starless to evolved protostellar cores. We report for the first time the detection of DC$_3$N towards 15 high-mass cores. The abundance ratios of DC$_3$N with respect HC$_3$N range in the interval 0.003$-$0.022, lower than those found in low-mas protostars and dark clouds. No significant trend with the evolutionary stage, or with the kinetic temperature of the region, has been found. We compare the level of deuteration of HC$_3$N with those of other molecules towards the same sample, finding weak correlation with species formed only or predominantly in gas phase (N$_2$H$^+$ and HNC, respectively), and no correlation with species formed only or predominantly on dust grains (CH$_3$OH and NH$_3$, respectively). We also present a single-dish map of DC$_3$N towards the protocluster IRAS 05358+3543, which shows that DC$_3$N traces an extended envelope ($\sim$0.37 pc) and peaks towards two cold condensations separated from the positions of the protostars and the dust continuum. The observations presented in this work suggest that deuteration of HC$_3$N is produced in the gas of the cold outer parts of massive star-forming clumps, giving us an estimate of the deuteration factor prior to the formation of denser gas.

preprint2020arXiv

Evolutionary study of complex organic molecules in high-mass star-forming regions

We have studied four complex organic molecules (COMs), methyl formate ($CH_3OCHO$), dimethyl ether ($CH_3OCH_3$), formamide ($NH_2CHO$), and ethyl cyanide ($C_2H_5CN$), towards a large sample of 39 high-mass star-forming regions representing different evolutionary stages, from early to evolved phases. We aim to identify potential correlations between the molecules and to trace their evolutionary sequence through the star formation process. We analysed spectra obtained at 3, 2, and 0.9 mm with the IRAM-30m telescope. We derived the main physical parameters for each species by fitting the molecular lines. We compared them and evaluated their evolution, also taking several other interstellar environments into account. We report detections in 20 sources, revealing a clear dust absorption effect on column densities. Derived abundances are ~$10^{-10}-10^{-7}$ for $CH_3OCHO$ and $CH_3OCH_3$, ~$10^{-12}-10^{-10}$ for $NH_2CHO$, and ~$10^{-11}-10^{-9}$ for $C_2H_5CN$. The abundances of $CH_3OCHO$, $CH_3OCH_3$, and $C_2H_5CN$ are very strongly correlated (r>0.92) across ~4 orders of magnitude. $CH_3OCHO$ and $CH_3OCH_3$ show the strongest correlations in most parameters, and a nearly constant ratio (~1) over a remarkable ~9 orders of magnitude in luminosity for a wide variety of sources: pre-stellar to evolved cores, low- to high-mass objects, shocks, Galactic clouds, and comets. This indicates that COMs chemistry is likely early developed and then preserved through evolved phases. Moreover, the molecular abundances clearly increase with evolution. We consider $CH_3OCHO$ and $CH_3OCH_3$ to be most likely chemically linked: they could e.g. share a common precursor, or be formed one from the other. We propose a general scenario for all COMs, involving a formation in the cold, earliest phases of star formation and a following increasing desorption with the progressive heating of the evolving core.

preprint2020arXiv

Extensive ro-vibrational analysis of deuterated-cyanoacetylene (DC$_3$N) from millimeter-wavelengths to the infrared domain

Cyanoacetylene, the simplest cyanopolyyne, is an abundant interstellar molecule commonly observed in a vast variety of astronomical sources. Despite its importance as a potential tracer of the evolution of star-forming processes, the deuterated form of cyanoacetylene is less observed and less studied in the laboratory than the main isotopologue. Here, we report the most extensive spectroscopic characterization of DC$_3$N to date, from the millimeter domain to the infrared region. Rotational and ro-vibrational spectra have been recorded using millimeter-wave frequency-modulation and Fourier-transform infrared spectrometers, respectively. All the vibrational states with energy up to 1015 cm$^{-1}$ have been analyzed in a combined fit, where the effects due to anharmonic resonances have been adequately accounted for. The analysis contains over 6500 distinct transition frequencies, from which all the vibrational energies have been determined with good precision for many fundamental, overtone, and combination states. This work provides a comprehensive line catalog for astronomical observations of DC$_3$N

preprint2020arXiv

On the effects of UV photons/X-rays on the chemistry of the Sgr B2 cloud

The lines of HOC$^+$, HCO and CO$^+$ are considered good tracers of photon-dominated regions (PDRs) and X-ray dominated regions. We study these tracers towards regions of the Sgr B2 cloud selected to be affected by different heating mechanisms. We find the lowest values of the column density ratios of HCO$^+$ versus HOC$^+$, HCO and CO$^+$ in dense HII gas, where UV photons dominate the heating and chemistry of gas. HOC$^+$, HCO and CO$^+$ abundances and the above ratios are compared with those of chemical modeling, finding that high temperature chemistry, a cosmic-ray ionization rate of 10$^{-16}$ s$^{-1}$ and timescales $>$10$^{5.0}$ years explain well the HOC$^+$ abundances in quiescent Sgr B2 regions, while shocks are also needed to explain the highest HCO abundances derived for these regions. CO$^+$ is mainly formed in PDRs since the highest CO$^+$ abundances of $\sim$(6-10)$\times$10$^{-10}$ are found in HII regions with electron densities $>$540 cm$^{-3}$ and that CO$^+$ emission is undetected in quiescent gas. Between the ratios, the HCO$^+$/HCO ratio is sensitive to the electron density as it shows different values in dense and diffuse HII regions. We compare SiO J=2-1 emission maps of Sgr B2 with X-ray maps from 2004 and 2012. One known spot shown on the 2012 X-ray map is likely associated with molecular gas at velocities of 15-25 km s$^{-1}$. We also derive the X-ray ionization rate of $\sim$10$^{-19}$ s$^{-1}$ for Sgr B2 regions pervaded by X-rays in 2004, which is quite low to affect the chemistry of the molecular gas.

preprint2020arXiv

The GUAPOS project: G31.41+0.31 Unbiased ALMA sPectral Observational Survey -- I. Isomers of C$_{2}$H$_{4}$O$_{2}$

Understanding the degree of chemical complexity that can be reached in star-forming regions, together with the identification of precursors of the building blocks of life in the interstellar medium, is one of the goals of astrochemistry. Unbiased spectral surveys with large bandwidth and high spectral resolution are thus needed, to resolve line blending in chemically rich sources and identify complex organic molecules. This kind of observations has been successfully carried out, mainly towards the Galactic Center, a region that shows peculiar environmental conditions. We present an unbiased spectral survey at 3mm of one of the most chemically rich hot molecular cores located outside the Galactic Center, in the high-mass star-forming region G31.41+0.31. In this first paper, we present the survey and discuss the detection of the 3 isomers of C$_{2}$H$_{4}$O$_{2}$: methyl formate, glycolaldehyde and acetic acid. Observations were carried out with ALMA and cover the entire Band 3 from 84 to 116 GHz with an angular resolution of $1.2^{&#39;&#39;}$x$1.2^{&#39;&#39;}$ and a spectral resolution of $\sim0.488$ MHz. The transitions of the 3 molecules have been analyzed with the software XCLASS. All three isomers were detected and methyl formate and acetic acid abundances in G31 are the highest detected up to now, if compared to sources in literature. The size of the emission varies among the three isomers with acetic acid showing the most compact emission while methyl formate the most extended. The comparison with chemical models suggests the necessity of grain-surface routes for the formation of methyl formate in G31, while for glycolaldehyde both scenarios could be feasible. Proposed grain-surface reaction for acetic acid is not able to reproduce the observed abundance in this work, while gas-phase scenario should be further tested due to large uncertainties.

preprint2019arXiv

ALMA and ROSINA detections of phosphorus-bearing molecules: the interstellar thread between star-forming regions and comets

To understand how Phosphorus-bearing molecules are formed in star-forming regions, we have analysed ALMA observations of PN and PO towards the massive star-forming region AFGL 5142, combined with a new analysis of the data of the comet 67P/Churyumov-Gerasimenko taken with the ROSINA instrument onboard Rosetta. The ALMA maps show that the emission of PN and PO arises from several spots associated with low-velocity gas with narrow linewidths in the cavity walls of a bipolar outflow. PO is more abundant than PN in most of the spots, with the PO/PN ratio increasing as a function of the distance to the protostar. Our data favor a formation scenario in which shocks sputter phosphorus from the surface of dust grains, and gas-phase photochemistry induced by UV photons from the protostar allows efficient formation of the two species in the cavity walls. Our analysis of the ROSINA data has revealed that PO is the main carrier of P in the comet, with PO/PN>10. Since comets may have delivered a significant amount of prebiotic material to the early Earth, this finding suggests that PO could contribute significantly to the phosphorus reservoir during the dawn of our planet. There is evidence that PO was already in the cometary ices prior to the birth of the Sun, so the chemical budget of the comet might be inherited from the natal environment of the Solar System, which is thought to be a stellar cluster including also massive stars.