X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;ds=inline;f=helm%2Fsoftware%2Fcomponents%2Fng_refiner%2Fesempio.ma;h=d0f6a2e8692f5c64d84ef44779817dfb733af925;hb=68e7533f986352a86ea0288909b27f83d44893a6;hp=e686e7eeef38c1669e74fe4b415de82c36091f8d;hpb=de016fec107170e4eb692b41c36a88cdc805b60a;p=helm.git diff --git a/helm/software/components/ng_refiner/esempio.ma b/helm/software/components/ng_refiner/esempio.ma index e686e7eee..d0f6a2e86 100644 --- a/helm/software/components/ng_refiner/esempio.ma +++ b/helm/software/components/ng_refiner/esempio.ma @@ -15,9 +15,50 @@ include "nat/plus.ma". definition hole : ∀A:Type.A → A ≝ λA.λx.x. +definition id : ∀A:Type.A → A ≝ λA.λx.x. +(* meta1 Vs meta2 with different contexts +axiom foo: + ∀P:Type.∀f:P→P→Prop.∀x:P. + (λw. ((∀e:P.f x (w x)) = (∀y:P. f x (hole ? y)))) + (λw:P.hole ? w). +*) + +(* meta1 Vs meta1 with different local contexts +axiom foo: + ∀P:Type.∀f:P→P→P.∀x,y:P. + (λw.(f x (w x) = f x (w y))) (λw:P.hole ? w). +*) + +(* meta Vs term && term Vs meta with different local ctx +axiom foo: + ∀P:Type.∀f:P→P→P.∀x,y:P. + (λw.(f (w x) (hole ? x) = f x (w y))) (λw:P.hole ? w). +*) + +(* occur check +axiom foo: + ∀P:Type.∀f:P→P→P.∀x,y:P. + (λw.(f x (f (w x) x) = f x (w y))) (λw:P.hole ? w). +*) + +(* unifying the type of (y ?) with (Q x) we instantiate ? to x +axiom foo: + ∀P:Type.∀Q:P→Type.∀f:∀x:P.Q x→P→P.∀x:P.∀y:∀x.Q x. + (λw.(f w (y w) x = (id ? f) x (hole ? (y x)) x)) (hole ? x). +*) + +alias num (instance 0) = "natural number". +axiom foo: (12+12) = (12+11). + + + (id ?(id ?(id ?(id ? (100+100))))) = + (id ?(id ?(id ?(id ? (99+100))))).[3: + apply (refl_eq nat (id ?(id ?(id ?(id ? (98+102+?)))))); + +axiom foo: (λx,y.(λz. z (x+y) + z x) (λw:nat.hole ? w)) = λx,y.x. (* OK *) axiom foo: (λx,y.(λz. z x + z (x+y)) (λw:nat.hole ? w)) = λx,y.x. (* KO, delift rels only *) -axiom foo: (λx,y.(λz. z (x+y) + z x) (λw:nat.hole ? w)) = λx,y.x. (* OK *) + axiom foo: (λx,y.(λz. z x + z y) (λw:nat.hole ? w)) = λx,y.x. (* OK *)