1,291 research outputs found

    Contracts in Practice

    Get PDF
    Contracts are a form of lightweight formal specification embedded in the program text. Being executable parts of the code, they encourage programmers to devote proper attention to specifications, and help maintain consistency between specification and implementation as the program evolves. The present study investigates how contracts are used in the practice of software development. Based on an extensive empirical analysis of 21 contract-equipped Eiffel, C#, and Java projects totaling more than 260 million lines of code over 7700 revisions, it explores, among other questions: 1) which kinds of contract elements (preconditions, postconditions, class invariants) are used more often; 2) how contracts evolve over time; 3) the relationship between implementation changes and contract changes; and 4) the role of inheritance in the process. It has found, among other results, that: the percentage of program elements that include contracts is above 33% for most projects and tends to be stable over time; there is no strong preference for a certain type of contract element; contracts are quite stable compared to implementations; and inheritance does not significantly affect qualitative trends of contract usage

    From Event-B models to Dafny code contracts

    No full text
    International audienceThe constructive approach to software correctness aims at formal modelling and verification of the structure and behaviour of a system in different levels of abstraction. In contrast, the analytical approach to software verification focuses on code level correctness and its verification. Therefore it would seem that the constructive and analytical approaches should complement each other well. To demonstrate this idea we present a case for linking two existing verification methods, Event-B (constructive) and Dafny (analytical). This approach combines the power of Event-B abstraction and its stepwise refinement with the verification capabilities of Dafny. We presented a small case study to demonstrate this approach and outline of the rules for transforming Event-B events to Dafny contracts. Finally, a tool for automatic generation of Dafny contracts from Event-B formal models is presented

    Decoherence of a Superposition of Macroscopic Current States in a SQUID

    Full text link
    We show that fundamental conservation laws mandate parameter-free mechanisms of decoherence of quantum oscillations of the superconducting current between opposite directions in a SQUID -- emission of phonons and photons at the oscillation frequency. The corresponding rates are computed and compared with experimental findings. The decohering effects of external mechanical and magnetic noise are investigated

    A Compact Beam Stop for a Rare Kaon Decay Experiment

    Get PDF
    We describe the development and testing of a novel beam stop for use in a rare kaon decay experiment at the Brookhaven AGS. The beam stop is located inside a dipole spectrometer magnet in close proximity to straw drift chambers and intercepts a high-intensity neutral hadron beam. The design process, involving both Monte Carlo simulations and beam tests of alternative beam-stop shielding arrangements, had the goal of minimizing the leakage of particles from the beam stop and the resulting hit rates in detectors, while preserving maximum acceptance for events of interest. The beam tests consisted of measurements of rates in drift chambers, scintilation counter hodoscopes, a gas threshold Cherenkov counter, and a lead glass array. Measurements were also made with a set of specialized detectors which were sensitive to low-energy neutrons, photons, and charged particles. Comparisons are made between these measurements and a detailed Monte Carlo simulation.Comment: 39 pages, 14 figures, submitted to Nuclear Instruments and Method

    Multipole interaction between atoms and their photonic environment

    Get PDF
    Macroscopic field quantization is presented for a nondispersive photonic dielectric environment, both in the absence and presence of guest atoms. Starting with a minimal-coupling Lagrangian, a careful look at functional derivatives shows how to obtain Maxwell's equations before and after choosing a suitable gauge. A Hamiltonian is derived with a multipolar interaction between the guest atoms and the electromagnetic field. Canonical variables and fields are determined and in particular the field canonically conjugate to the vector potential is identified by functional differentiation as minus the full displacement field. An important result is that inside the dielectric a dipole couples to a field that is neither the (transverse) electric nor the macroscopic displacement field. The dielectric function is different from the bulk dielectric function at the position of the dipole, so that local-field effects must be taken into account.Comment: 17 pages, to be published in Physical Review

    The International Cancer Expert Corps: A Unique Approach for Sustainable Cancer Care in Low and Lower-Middle Income Countries

    Get PDF
    The growing burden of non-communicable diseases including cancer in low- and lower-middle income countries (LMICs) and in geographic-access limited settings within resource-rich countries requires effective and sustainable solutions. The International Cancer Expert Corps (ICEC) is pioneering a novel global mentorship–partnership model to address workforce capability and capacity within cancer disparities regions built on the requirement for local investment in personnel and infrastructure. Radiation oncology will be a key component given its efficacy for cure even for the advanced stages of disease often encountered and for palliation. The goal for an ICEC Center within these health disparities settings is to develop and retain a high-quality sustainable workforce who can provide the best possible cancer care, conduct research, and become a regional center of excellence. The ICEC Center can also serve as a focal point for economic, social, and healthcare system improvement. ICEC is establishing teams of Experts with expertise to mentor in the broad range of subjects required to establish and sustain cancer care programs. The Hubs are cancer centers or other groups and professional societies in resource-rich settings that will comprise the global infrastructure coordinated by ICEC Central. A transformational tenet of ICEC is that altruistic, human-service activity should be an integral part of a healthcare career. To achieve a critical mass of mentors ICEC is working with three groups: academia, private practice, and senior mentors/retirees. While in-kind support will be important, ICEC seeks support for the career time dedicated to this activity through grants, government support, industry, and philanthropy. Providing care for people with cancer in LMICs has been a recalcitrant problem. The alarming increase in the global burden of cancer in LMICs underscores the urgency and makes this an opportune time fornovel and sustainable solutions to transform cancer care globally

    The Higgs - photon - Z boson coupling revisited

    Get PDF
    We analyze the coupling of CP-even and CP-odd Higgs bosons to a photon and a Z boson in extensions of the Standard Model. In particular, we study in detail the effect of charged Higgs bosons in two-Higgs doublet models, and the contribution of SUSY particle loops in the minimal supersymmetric extension of the Standard Model. The Higgs-γZ\gamma Z coupling can be measured in the decay ZγZ \to \gamma+Higgs at e+ee^+e^- colliders running on the Z resonance, or in the reverse process Higgs Zγ\to Z \gamma with the Higgs boson produced at LHC. We show that a measurement of this coupling with a precision at the percent level, which could be the case at future e+ee^+e^- colliders, would allow to distinguish between the lightest SUSY and standard Higgs bosons in large areas of the parameter space.Comment: 18 pages LaTex + 7 figures (ps). Typo corrected in eq.(5

    Defining Physical Literacy for Application in Australia: A Modified Delphi Method

    Get PDF
    Purpose. The development of a physical literacy definition and standards framework suitable for implementation in Australia. Method. Modified Delphi methodology. Results . Consensus was established on four defining statements: Core – Physical literacy is lifelong holistic learning acquired and applied in movement and physical activity contexts; Composition – Physical literacy reflects ongoing changes integrating physical, psychological, cognitive and social capabilities; Importance – Physical literacy is vital in helping us lead healthy and fulfilling lives through movement and physical activity; Aspiration – A physically literate person is able to draw on their integrated physical, psychological, cognitive, and social capacities to support health promoting and fulfilling movement and physical activity, relative to their situation and context, throughout the lifespan. The standards framework addressed four learning domains (physical, psychological, cognitive, and social), spanning five learning configurations/levels. Conclusion. The development of a bespoke program for a new context has important implications for both existing and future program

    Quantifying Entanglement Production of Quantum Operations

    Full text link
    The problem of entanglement produced by an arbitrary operator is formulated and a related measure of entanglement production is introduced. This measure of entanglement production satisfies all properties natural for such a characteristic. A particular case is the entanglement produced by a density operator or a density matrix. The suggested measure is valid for operations over pure states as well as over mixed states, for equilibrium as well as nonequilibrium processes. Systems of arbitrary nature can be treated, described either by field operators, spin operators, or any other kind of operators, which is realized by constructing generalized density matrices. The interplay between entanglement production and phase transitions in statistical systems is analysed by the examples of Bose-Einstein condensation, superconducting transition, and magnetic transitions. The relation between the measure of entanglement production and order indices is analysed.Comment: 20 pages, Revte
    corecore