495 |
495 |
496 \begin{matharray}{rcl} |
496 \begin{matharray}{rcl} |
497 @{command_def "interpretation"} & : & @{text "theory \<rightarrow> proof(prove)"} \\ |
497 @{command_def "interpretation"} & : & @{text "theory \<rightarrow> proof(prove)"} \\ |
498 @{command_def "interpret"} & : & @{text "proof(state) | proof(chain) \<rightarrow> proof(prove)"} \\ |
498 @{command_def "interpret"} & : & @{text "proof(state) | proof(chain) \<rightarrow> proof(prove)"} \\ |
499 @{command_def "sublocale"} & : & @{text "theory \<rightarrow> proof(prove)"} \\ |
499 @{command_def "sublocale"} & : & @{text "theory \<rightarrow> proof(prove)"} \\ |
|
500 @{command_def "print_dependencies"}@{text "\<^sup>*"} & : & @{text "context \<rightarrow>"} \\ |
500 @{command_def "print_interps"}@{text "\<^sup>*"} & : & @{text "context \<rightarrow>"} \\ |
501 @{command_def "print_interps"}@{text "\<^sup>*"} & : & @{text "context \<rightarrow>"} \\ |
501 \end{matharray} |
502 \end{matharray} |
502 |
503 |
503 \indexouternonterm{interp} |
504 \indexouternonterm{interp} |
504 \begin{rail} |
505 \begin{rail} |
578 Equations given after @{keyword "where"} amend the morphism through |
581 Equations given after @{keyword "where"} amend the morphism through |
579 which @{text expr} is interpreted. This enables to map definitions |
582 which @{text expr} is interpreted. This enables to map definitions |
580 from the interpreted locales to entities of @{text name}. This |
583 from the interpreted locales to entities of @{text name}. This |
581 feature is experimental. |
584 feature is experimental. |
582 |
585 |
|
586 \item @{command "print_dependencies"}~@{text "expr"} is useful for |
|
587 understanding the effect of an interpretation of @{text "expr"}. It |
|
588 lists all locale instances for which interpretations would be added |
|
589 to the current context. Variant @{command |
|
590 "print_dependencies"}@{text "!"} prints all locale instances that |
|
591 would be considered for interpretation, and would be interpreted in |
|
592 an empty context (that is, without interpretations). |
|
593 |
583 \item @{command "print_interps"}~@{text "locale"} lists all |
594 \item @{command "print_interps"}~@{text "locale"} lists all |
584 interpretations of @{text "locale"} in the current theory or proof |
595 interpretations of @{text "locale"} in the current theory or proof |
585 context, including those due to a combination of a @{command |
596 context, including those due to a combination of a @{command |
586 "interpretation"} or @{command "interpret"} and one or several |
597 "interpretation"} or @{command "interpret"} and one or several |
587 @{command "sublocale"} declarations. |
598 @{command "sublocale"} declarations. |