Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


SSL Eq.thy   Sprache: Isabelle

 

(*:maxLineLen=78:*)

theory Eq
imports Base
begin

chapter ‹Equational reasoning›

text ‹
 Equality is one of the most fundamental concepts of mathematics. The
 Isabelle/Pure logic (\chref{ch:logic}) provides a builtin relation ‹≡ :: α →
 α → prop
› that expresses equality of arbitrary terms (or propositions) at
 the framework level, as expressed by certain basic inference rules
 (\secref{sec:eq-rules}).

 Equational reasoning means to replace equals by equals, using reflexivity
 and transitivity to form chains of replacement steps, and congruence rules
 to access sub-structures. Conversions (\secref{sec:conv}) provide a
 convenient framework to compose basic equational steps to build specific
 equational reasoning tools.

 Higher-order matching is able to provide suitable instantiations for giving
 equality rules, which leads to the versatile concept of ‹λ›-term rewriting
 (\secref{sec:rewriting}). Internally this is based on the general-purpose
 Simplifier engine of Isabelle, which is more specific and more efficient
 than plain conversions.

 Object-logics usually introduce specific notions of equality or equivalence,
 and relate it with the Pure equality. This enables to re-use the Pure tools
 for equational reasoning for particular object-logic connectives as well.
 
›


section ‹Basic equality rules \label{sec:eq-rules}›

text ‹
 Isabelle/Pure uses ‹≡› for equality of arbitrary terms, which includes
 equivalence of propositions of the logical framework. The conceptual
 axiomatization of the constant ‹≡ :: α → α → prop› is given in
 \figref{fig:pure-equality}. The inference kernel presents slightly different
 equality rules, which may be understood as derived rules from this minimal
 axiomatization. The Pure theory also provides some theorems that express the
 same reasoning schemes as theorems that can be composed like object-level
 rules as explained in \secref{sec:obj-rules}.

 For example, 🚫
  maps a theorem \<open>th\<close> stating \<open>t \<equiv> u\<close> to one stating \<open>u \<equiv> t\<close>. In contrast,
  @{thm [source] Pure.symmetric} as Pure theorem expresses the same reasoning
  in declarative form. If used like \<open>th [THEN Pure.symmetric]\<close> in Isar source
  notation, it achieves a similar effect as the ML inference function,
  although the rule attribute @{attribute THEN  
 java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 90
  involve the full machinery of higher-order unification (modulo
  \<open>\<beta>\<eta>\<close>-conversion) and lifting of \<open>\<And>/\<Longrightarrow>\<close> contexts.
\close>

text %mlref \<open>
  \begin{mldecls}
  @{define_ML Thm.reflexive: "cterm -java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  @{define_ML Thm.symmetric: "
The exact meaning of results produced local contextdepends
  @{define_ML Thm.transitive: "thm -> thm -> thm"} \\
  {define_ML Thm.:" -  -> thm - thm" \
  @{define_ML Thm.combination: "thm -> thm -> thm"} \\[0.5ex]
@define_ML Thm.qual_intr thm -  - thm} \java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
  @{define_ML Thm and assumption \<penAx\closejava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
  \end{mldecls}

  See also \<^file>\<open>~~/src/Pure/thm   areexported introducing globalversion 
  rules, and a few more for primitive \<open>\<beta  ;a abbreviationlinksthelongform  theabstract
  conversion is implicit due to  versionof  target context. For example, \<open>a \<equiv> t[x]\<close> becomes \<open>c.a ?x \<equiv>
  indices (\secref{sec:terms}).
\<close>


section \<open>Conversions \label{sec:conv}\<close>

text \<open>
  The classic article \<^cite>\<open>"abbreviation \<open>a \<equiv> c.a x\<close the   (or the  parameter
  conversion for Cambridge LCF. This was historically java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 20
  all kinds of `java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  differently, see \ Theorems  exported by  the  and generalizing the
\<close>

text %mlref \<open>
  \begin{    the .For ,\open: B[]\close>becomes \open>.: A[?x]\Longrightarrowjava.lang.StringIndexOutOfBoundsException: Index 108 out of bounds for length 108
  @{define_ML_structure Conv  B[x\<lose>  for  \open>?\close>.
  @{define_ML_type conv} \\
  @{define_ML Simplifier.asm_full_rewrite : "
Proof.context -> conv"} \\
  \end{java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 8

  \<^descr> \java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  over type \<^ML_typejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  of the few Isabelle/ML modules that are section \<open>Bundled declarations \label{sec:bu<lose>
  examples works by searching for ``\<^verbatim>\<open>open Conv\<close>'' instead of ``\<^verbatim>\<open

  \<^descr> \text \<pen>
  conversion. There are a few related operations, corresponding to the various
  java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
\<close>


section \<open>Rewriting \label{sec:rewriting}\<close>

text \<open>
  Rewriting normalizes a given term (theorem or goal) by replacing instances
  givenequalities \<opent\e> u\<close>in subterms.  continuesuntil no
  rewrites are applicable to any subterm. This may be used to unfold simple
  definitions of form <open>fx<sub>\dots>x\^sub>\e>\<lose,but is slightly more  
  that. \<close>

text %mlref \<open>
  \begin{mldecls}
  @define_ML rewrite_rule Proof.context -> thm list -> thm -> thm"
} \\
  @{define_ML rewrite_goals_rule: "Proof.context -> thm list -> thm -> thm"} \\
@define_ML rewrite_goal_tac:"roofcontext ->  list - int - tactic"}\\
  @{define_ML rewrite_goals_tac: "Proof.context -> thm list -> tactic"} \\
  @{define_ML fold_goals_tac: "Proof.context -@{ommand_def "including}&:& <p()\rightarrow ()<>\
  \end{mldecls}

  \<^descr>     {java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
  givenrules.

  \<^descr> \<^ML>\<open>rewrite_goals_rule
  the given theorem. Interpreting the same as a goal state
  (\secref{sec:tactical-goals}) it means to rewrite all  The  syntax of   (secref{ecsyn-att)involves
  manner as \<^ML>\<open>rewrite_goals_tactheoremsand ,which areevaluated the contextand applied 

  \<^descr> \<^ML>\<open>  it. Attributes may declare to thec,as <>his_rule[]
  rewrite rules.

  \<^descr> \<^ML>\<open>rewrite_goals_tac\<close>~\<open>ctxt rules\   []\<lose  .java.lang.StringIndexOutOfBoundsException: Range [83, 53) out of bounds for length 83
  rewrite rules.

  \<^descr> \<^ML>\<open which is contrastto localesand locale interpretation
  with the symmetric form of each member of \<java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 24
  expression first. This supports to idea to fold primitive definitions that
  appear in expended form in the proof state.
\<close>

end

Messung
CHZG
969610097

¤ Dauer der Verarbeitung: 0.12 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,187,962
#Domains=975,794