]> matita.cs.unibo.it Git - helm.git/commitdiff
conjecture on antisymmetry of cpr finally closed
authorFerruccio Guidi <ferruccio.guidi@unibo.it>
Fri, 4 Jul 2014 18:08:34 +0000 (18:08 +0000)
committerFerruccio Guidi <ferruccio.guidi@unibo.it>
Fri, 4 Jul 2014 18:08:34 +0000 (18:08 +0000)
cpr is NOT antisymmetric: call-by-value beta-reduction takes two steps exactly

matita/matita/contribs/lambdadelta/basic_2/examples/ex_cpr_omega.ma [new file with mode: 0644]
matita/matita/contribs/lambdadelta/basic_2/web/basic_2_src.tbl

diff --git a/matita/matita/contribs/lambdadelta/basic_2/examples/ex_cpr_omega.ma b/matita/matita/contribs/lambdadelta/basic_2/examples/ex_cpr_omega.ma
new file mode 100644 (file)
index 0000000..84713bc
--- /dev/null
@@ -0,0 +1,41 @@
+(**************************************************************************)
+(*       ___                                                              *)
+(*      ||M||                                                             *)
+(*      ||A||       A project by Andrea Asperti                           *)
+(*      ||T||                                                             *)
+(*      ||I||       Developers:                                           *)
+(*      ||T||         The HELM team.                                      *)
+(*      ||A||         http://helm.cs.unibo.it                             *)
+(*      \   /                                                             *)
+(*       \ /        This file is distributed under the terms of the       *)
+(*        v         GNU General Public License Version 2                  *)
+(*                                                                        *)
+(**************************************************************************)
+
+include "basic_2/reduction/cpr.ma".
+
+(* EXAMPLES *****************************************************************)
+
+(* A reduction cycle in two steps: the term Omega ***************************)
+
+definition Delta: term ≝ +ⓛ⋆0.ⓐ#0.#0.
+
+definition Omega1: term ≝ ⓐDelta.Delta.
+
+definition Omega2: term ≝ +ⓓⓝ⋆0.Delta.ⓐ#0.#0.
+
+(* Basic properties *********************************************************)
+
+lemma Delta_lift: ∀d,e. ⇧[d, e] Delta ≡ Delta.
+/4 width=1 by lift_flat, lift_bind, lift_lref_lt/ qed.
+
+(* Main properties **********************************************************)
+
+theorem cpr_Omega_12: ⦃⋆, ⋆⦄ ⊢ Omega1 ➡ Omega2.
+/2 width=1 by cpr_beta/ qed.
+
+theorem cpr_Omega_21: ⦃⋆, ⋆⦄ ⊢ Omega2 ➡ Omega1.
+@(cpr_zeta … Omega1) /2 width=1 by lift_flat/
+@cpr_flat @(cpr_delta … Delta ? 0)
+[3,5,8,10: // |4,9: /2 width=1 by cpr_eps/ |*: skip ]
+qed.
index 880a674aae87ebacab387312edf485c2a5019e53..456a2b0e329badd42b2919a520d47746d52bb70d 100644 (file)
@@ -9,16 +9,23 @@ table {
         ]
      }
    ]
-(*
    class "wine"
    [ { "examples" * } {
         [ { "" * } {
-             [ "" * ]
+             [ "ex_cpr_omega" * ]
           }
         ]
      }
    ]
    class "magenta"
+   [ { "" * } {
+        [ { "" * } {
+             [ "" * ]
+          }
+        ]
+     }
+   ]
+(*   
    [ { "higher order dynamic typing" * } {
         [ { "higher order native type assignment" * } {
              [ "ntas ( ⦃?,?⦄ ⊢ ? :* ? )" "nta_lift" * ]