Skip to content
Snippets Groups Projects
  1. Dec 16, 2020
  2. Nov 26, 2020
  3. Nov 10, 2020
  4. Nov 09, 2020
  5. Nov 03, 2020
  6. May 28, 2020
  7. May 26, 2020
  8. May 20, 2020
  9. May 16, 2020
  10. May 15, 2020
  11. May 14, 2020
  12. Apr 18, 2020
  13. Apr 14, 2020
  14. Mar 16, 2020
  15. Feb 28, 2020
  16. Feb 23, 2020
  17. Feb 18, 2020
  18. Dec 06, 2019
  19. Aug 13, 2019
  20. Aug 07, 2019
  21. Jun 29, 2019
  22. Jun 24, 2019
  23. May 31, 2019
  24. Apr 07, 2019
  25. Mar 05, 2019
  26. Feb 05, 2019
  27. Nov 27, 2018
  28. Oct 31, 2018
  29. Oct 29, 2018
    • Jacques-Henri Jourdan's avatar
      wp_pures. · 2950fca6
      Jacques-Henri Jourdan authored
      2950fca6
    • Jacques-Henri Jourdan's avatar
      A specific constructor for injecting values in expressions · 9646293e
      Jacques-Henri Jourdan authored
      We add a specific constructor to the type of expressions for injecting
      values in expressions.
      
      The advantage are :
      - Values can be assumed to be always closed when performing
        substitutions (even though they could contain free variables, but it
        turns out it does not cause any problem in the proofs in
        practice). This means that we no longer need the `Closed` typeclass
        and everything that comes with it (all the reflection-based machinery
        contained in tactics.v is no longer necessary). I have not measured
        anything, but I guess this would have a significant performance
        impact.
      
      - There is only one constructor for values. As a result, the AsVal and
        IntoVal typeclasses are no longer necessary: an expression which is
        a value will always unify with `Val _`, and therefore lemmas can be
        stated using this constructor.
      
      Of course, this means that there are two ways of writing such a thing
      as "The pair of integers 1 and 2": Either by using the value
      constructor applied to the pair represented as a value, or by using
      the expression pair constructor. So we add reduction rules that
      transform reduced pair, injection and closure expressions into values.
      At first, this seems weird, because of the redundancy. But in fact,
      this has some meaning, since the machine migth actually be doing
      something to e.g., allocate the pair or the closure.
      
      These additional steps of computation show up in the proofs, and some
      additional wp_* tactics need to be called.
      9646293e
Loading