From 275a432d33c455d75725d5991e82b62e7d01f68d Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Wed, 18 Jun 2008 22:55:35 +0000 Subject: [PATCH] interpretation documented --- helm/software/matita/help/C/matita.xml | 3 + helm/software/matita/help/C/sec_tactics.xml | 2 +- helm/software/matita/help/C/sec_terms.xml | 12 ++ .../matita/help/C/sec_usernotation.xml | 108 ++++++++++++++++-- 4 files changed, 115 insertions(+), 10 deletions(-) diff --git a/helm/software/matita/help/C/matita.xml b/helm/software/matita/help/C/matita.xml index 3f00c148f..cb94d108c 100644 --- a/helm/software/matita/help/C/matita.xml +++ b/helm/software/matita/help/C/matita.xml @@ -55,6 +55,9 @@ auto_params"> justification"> simple_auto_param"> + interpretation_argument"> + interpretation_rhs"> + csymbol"> ]> diff --git a/helm/software/matita/help/C/sec_tactics.xml b/helm/software/matita/help/C/sec_tactics.xml index b98570407..0205ce8a8 100644 --- a/helm/software/matita/help/C/sec_tactics.xml +++ b/helm/software/matita/help/C/sec_tactics.xml @@ -61,7 +61,7 @@ Pre-conditions: t must have type - T1 → ... → + T1 → … → Tn → G where G can be unified with the conclusion of the current sequent. diff --git a/helm/software/matita/help/C/sec_terms.xml b/helm/software/matita/help/C/sec_terms.xml index bff00d6f2..082a5bb75 100644 --- a/helm/software/matita/help/C/sec_terms.xml +++ b/helm/software/matita/help/C/sec_terms.xml @@ -98,6 +98,18 @@ + + csymbol + + + + &csymbol; + ::= + '&id; + + + +
Terms diff --git a/helm/software/matita/help/C/sec_usernotation.xml b/helm/software/matita/help/C/sec_usernotation.xml index 147edc084..f4b3cc411 100644 --- a/helm/software/matita/help/C/sec_usernotation.xml +++ b/helm/software/matita/help/C/sec_usernotation.xml @@ -2,17 +2,107 @@ Extending the syntax + Introduction: TODO - Introduction - - &TODO; - - - notation: &TODO; - + notation + notation + + notation: &TODO; + + + + interpretation + interpretation + interpretation "description" 'symbol p1 … pn = + rhs - interpretation: &TODO; + + + Synopsis: + + interpretation + &qstring; &csymbol; [&interpretation_argument;]… + = + &interpretation_rhs; + + + + + Action: + + It declares a bi-directional mapping {…} between the content-level AST 'symbol t1 … tn and the semantic term rhs[{t1}/p1;…;{tn}/pn] + (the simultaneous substitution in rhs of the + interpretation {…} of every content-level + actual argument ti for its + corresponding formal parameter + pi). The + description must be a textual description of the + meaning associated to 'symbol by this + interpretation, and is used by the user interface of Matita to + provide feedback on the interpretation of ambiguous terms. + + + + + Interpretation arguments: + + + + interpretation_argument + + + + &interpretation_argument; + ::= + [η.]… &id; + A formal parameter. If the name of the formal parameter is + prefixed by n symbols "η", then the mapping performs + (multiple) η-expansions to grant that the semantic actual + parameter begins with at least n λ-abstractions. + + + +
+ + interpretation_rhs + + + + &interpretation_rhs; + ::= + &uri; + A constant, specified by its URI + + + + | + &id; + A constant, specified by its name, or a bound variable. If + the constant name is ambiguous, the one corresponding to the + last implicitly or explicitly specified alias is used. + + + + | + _ + An implicit parameter + + + + | + ( + &interpretation_rhs; + [&interpretation_rhs;]… + ) + An application + + + +
+ +
+
+
- -- 2.39.2