X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2Fhelp%2FC%2Fsec_terms.xml;h=3cae2f84c1866ad13d858e14eb32953176c38c13;hb=34d2f477be65e3fd26bfb6d43a3dd0807274549b;hp=bd2d8c9c9cdb8a5331487f08b8039f6e8d719589;hpb=f64818068a077b8ca8a29ebc547cc488946cf072;p=helm.git diff --git a/helm/software/matita/help/C/sec_terms.xml b/helm/software/matita/help/C/sec_terms.xml index bd2d8c9c9..3cae2f84c 100644 --- a/helm/software/matita/help/C/sec_terms.xml +++ b/helm/software/matita/help/C/sec_terms.xml @@ -285,7 +285,7 @@ | match &term; - [ in &term; ] + [ in &id; ] [ return &term; ] with @@ -393,6 +393,12 @@ &id; &id; [&id;]… n-ary constructor (binds the n arguments) + + + | + _ + any remaining constructor (ignoring its arguments) + @@ -568,7 +574,7 @@ | - in match &term; + in match &path; [in [&id;[: &path;]]… [⊢ &path;]] @@ -584,7 +590,7 @@ &path; ::= - 〈〈any &sterm; whithout occurrences of Set, Prop, CProp, Type, &id;, &uri; and user provided notation; however, % is now an additional production for &sterm;〉〉 + 〈〈any &sterm; without occurrences of Set, Prop, CProp, Type, &id;, &uri; and user provided notation; however, % is now an additional production for &sterm;〉〉 @@ -597,6 +603,26 @@ that can be represented by ?. + Warning: the format for a path for a match … with + expression is restricted to: match &path; + with + [ + _ + ⇒ + &path; + | … + | + _ + ⇒ + &path; + ] + Its semantics is the following: the n-th + "_ + ⇒ + &path;" branch is matched against the n-th constructor of the + inductive data type. The head λ-abstractions of &path; are matched + against the corresponding constructor arguments. + For instance, the path ∀_,_:?.(? ? % ?)→(? ? ? %) locates at once the subterms