Skip to content
Logo EPFL, École polytechnique fédérale de Lausanne
  • About
  • Education
  • Research
  • Innovation
  • Schools
  • Campus
Show / hide the search form
Hide the search form
  • EN
Menu
  1. IC
  2. Laboratories
  3. LARA

LARA

Soft Typing

\begin{equation*}
   \textsf{contract}(A,r,B) = (\forall x.\forall y. x \in A \land (x,y) \in r \rightarrow y \in B)
\end{equation*}

Note: this is weakest precondition, see Hoare Logic Basics

Example:

\begin{equation*}
    {+} : \mathbb{C} \times \mathbb{C} \to \mathbb{C}
\end{equation*}

\begin{equation*}
    \textsf{contract}(\mathbb{Z} \times \mathbb{Z},  {+}, \mathbb{Z})
\end{equation*}

  • Laboratories
    • Back: Laboratories
    • LARA
      • Back: LARA
      • About
      • News
      • IMPRO
      • Publications
      • Software
      • Teaching
      • Collaboration
      • Funding

In the same section

  • LARA
    • About
    • News
    • IMPRO
    • Publications
    • Software
    • Teaching
    • Collaboration
    • Funding
- Login
Accessibility Legals

© 2019 EPFL, all rights reserved

Trace: • soft_typing
projects/guru/soft_typing.txt · Last modified: 2015/04/21 17:34 (external edit)