From: Claudio Sacerdoti Coen Date: Tue, 3 Jan 2023 17:27:13 +0000 (+0100) Subject: Install into doc the PDF and HTML manuals X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=commitdiff_plain;h=9d5a0d55e331b348d44b6d50d3d67e62b60a0e18 Install into doc the PDF and HTML manuals --- diff --git a/matita/matita.install b/matita/matita.install index 807e6514f..d8d93e4e8 100644 --- a/matita/matita.install +++ b/matita/matita.install @@ -12,24 +12,9 @@ share_root: [ "_build/install/default/share/matita/myshare/AUTHORS" {"matita/myshare/AUTHORS"} "_build/install/default/share/matita/myshare/LICENSE" {"matita/myshare/LICENSE"} "_build/install/default/share/matita/myshare/closed.xml" {"matita/myshare/closed.xml"} - "_build/install/default/share/matita/myshare/help/C/Makefile" {"matita/myshare/help/C/Makefile"} - "_build/install/default/share/matita/myshare/help/C/TODO" {"matita/myshare/help/C/TODO"} "_build/install/default/share/matita/myshare/help/C/declarative_tactics_quickref.xml" {"matita/myshare/help/C/declarative_tactics_quickref.xml"} - "_build/install/default/share/matita/myshare/help/C/docbook.css" {"matita/myshare/help/C/docbook.css"} - "_build/install/default/share/matita/myshare/help/C/figures/database.dia" {"matita/myshare/help/C/figures/database.dia"} - "_build/install/default/share/matita/myshare/help/C/figures/database.png" {"matita/myshare/help/C/figures/database.png"} - "_build/install/default/share/matita/myshare/help/C/figures/matita.png" {"matita/myshare/help/C/figures/matita.png"} - "_build/install/default/share/matita/myshare/help/C/figures/vbox1.png" {"matita/myshare/help/C/figures/vbox1.png"} - "_build/install/default/share/matita/myshare/help/C/figures/vbox2.png" {"matita/myshare/help/C/figures/vbox2.png"} - "_build/install/default/share/matita/myshare/help/C/figures/vbox3.png" {"matita/myshare/help/C/figures/vbox3.png"} - "_build/install/default/share/matita/myshare/help/C/figures/vbox35.png" {"matita/myshare/help/C/figures/vbox35.png"} - "_build/install/default/share/matita/myshare/help/C/figures/vbox4.png" {"matita/myshare/help/C/figures/vbox4.png"} - "_build/install/default/share/matita/myshare/help/C/figures/vbox5.png" {"matita/myshare/help/C/figures/vbox5.png"} - "_build/install/default/share/matita/myshare/help/C/figures/vbox6.png" {"matita/myshare/help/C/figures/vbox6.png"} - "_build/install/default/share/matita/myshare/help/C/figures/vbox7.png" {"matita/myshare/help/C/figures/vbox7.png"} "_build/install/default/share/matita/myshare/help/C/legal.xml" {"matita/myshare/help/C/legal.xml"} "_build/install/default/share/matita/myshare/help/C/matita.xml" {"matita/myshare/help/C/matita.xml"} - "_build/install/default/share/matita/myshare/help/C/scripts/fix-symbols.sh" {"matita/myshare/help/C/scripts/fix-symbols.sh"} "_build/install/default/share/matita/myshare/help/C/sec_commands.xml" {"matita/myshare/help/C/sec_commands.xml"} "_build/install/default/share/matita/myshare/help/C/sec_declarative_tactics.xml" {"matita/myshare/help/C/sec_declarative_tactics.xml"} "_build/install/default/share/matita/myshare/help/C/sec_gettingstarted.xml" {"matita/myshare/help/C/sec_gettingstarted.xml"} @@ -42,12 +27,6 @@ share_root: [ "_build/install/default/share/matita/myshare/help/C/sec_usernotation.xml" {"matita/myshare/help/C/sec_usernotation.xml"} "_build/install/default/share/matita/myshare/help/C/tactic_quickref.xml" {"matita/myshare/help/C/tactic_quickref.xml"} "_build/install/default/share/matita/myshare/help/C/tactics_quickref.xml" {"matita/myshare/help/C/tactics_quickref.xml"} - "_build/install/default/share/matita/myshare/help/C/version.txt" {"matita/myshare/help/C/version.txt"} - "_build/install/default/share/matita/myshare/help/C/version.txt.in" {"matita/myshare/help/C/version.txt.in"} - "_build/install/default/share/matita/myshare/help/C/xhtml1-transitional.dtd" {"matita/myshare/help/C/xhtml1-transitional.dtd"} - "_build/install/default/share/matita/myshare/help/C/xsl/matita-fo.xsl" {"matita/myshare/help/C/xsl/matita-fo.xsl"} - "_build/install/default/share/matita/myshare/help/C/xsl/matita-xhtml.xsl" {"matita/myshare/help/C/xsl/matita-xhtml.xsl"} - "_build/install/default/share/matita/myshare/help/C/xsl/tactic_quickref.xsl" {"matita/myshare/help/C/xsl/tactic_quickref.xsl"} "_build/install/default/share/matita/myshare/icons/matita-32.xpm" {"matita/myshare/icons/matita-32.xpm"} "_build/install/default/share/matita/myshare/icons/matita-bulb-high.png" {"matita/myshare/icons/matita-bulb-high.png"} "_build/install/default/share/matita/myshare/icons/matita-bulb-low.png" {"matita/myshare/icons/matita-bulb-low.png"} @@ -380,3 +359,75 @@ share_root: [ "_build/install/default/share/matita/myshare/matita.lang" {"matita/myshare/matita.lang"} "_build/install/default/share/matita/myshare/matita.ma.templ" {"matita/myshare/matita.ma.templ"} ] +doc: [ + "_build/install/default/doc/matita/html/WrtCoq.html" {"html/WrtCoq.html"} + "_build/install/default/doc/matita/html/authoring.html" {"html/authoring.html"} + "_build/install/default/doc/matita/html/axiom_definition_declaration.html" {"html/axiom_definition_declaration.html"} + "_build/install/default/doc/matita/html/ch05s02.html" {"html/ch05s02.html"} + "_build/install/default/doc/matita/html/cicbrowser.html" {"html/cicbrowser.html"} + "_build/install/default/doc/matita/html/command_check.html" {"html/command_check.html"} + "_build/install/default/doc/matita/html/command_coercion.html" {"html/command_coercion.html"} + "_build/install/default/doc/matita/html/command_include.html" {"html/command_include.html"} + "_build/install/default/doc/matita/html/command_include_alias.html" {"html/command_include_alias.html"} + "_build/install/default/doc/matita/html/command_qed.html" {"html/command_qed.html"} + "_build/install/default/doc/matita/html/command_qed_minus.html" {"html/command_qed_minus.html"} + "_build/install/default/doc/matita/html/command_unification_hint.html" {"html/command_unification_hint.html"} + "_build/install/default/doc/matita/html/command_universe_constraints.html" {"html/command_universe_constraints.html"} + "_build/install/default/doc/matita/html/docbook.css" {"html/docbook.css"} + "_build/install/default/doc/matita/html/index.html" {"html/index.html"} + "_build/install/default/doc/matita/html/inst_from_src.html" {"html/inst_from_src.html"} + "_build/install/default/doc/matita/html/macro_intro.html" {"html/macro_intro.html"} + "_build/install/default/doc/matita/html/proofs.html" {"html/proofs.html"} + "_build/install/default/doc/matita/html/proofstatus.html" {"html/proofstatus.html"} + "_build/install/default/doc/matita/html/sec_commands.html" {"html/sec_commands.html"} + "_build/install/default/doc/matita/html/sec_declarative_tactics.html" {"html/sec_declarative_tactics.html"} + "_build/install/default/doc/matita/html/sec_gettingstarted.html" {"html/sec_gettingstarted.html"} + "_build/install/default/doc/matita/html/sec_install.html" {"html/sec_install.html"} + "_build/install/default/doc/matita/html/sec_intro.html" {"html/sec_intro.html"} + "_build/install/default/doc/matita/html/sec_license.html" {"html/sec_license.html"} + "_build/install/default/doc/matita/html/sec_tacticals.html" {"html/sec_tacticals.html"} + "_build/install/default/doc/matita/html/sec_tactics.html" {"html/sec_tactics.html"} + "_build/install/default/doc/matita/html/sec_terms.html" {"html/sec_terms.html"} + "_build/install/default/doc/matita/html/sec_usernotation.html" {"html/sec_usernotation.html"} + "_build/install/default/doc/matita/html/tac_andelim.html" {"html/tac_andelim.html"} + "_build/install/default/doc/matita/html/tac_apply.html" {"html/tac_apply.html"} + "_build/install/default/doc/matita/html/tac_applyS.html" {"html/tac_applyS.html"} + "_build/install/default/doc/matita/html/tac_assume.html" {"html/tac_assume.html"} + "_build/install/default/doc/matita/html/tac_assumption.html" {"html/tac_assumption.html"} + "_build/install/default/doc/matita/html/tac_auto.html" {"html/tac_auto.html"} + "_build/install/default/doc/matita/html/tac_bydone.html" {"html/tac_bydone.html"} + "_build/install/default/doc/matita/html/tac_byinduction.html" {"html/tac_byinduction.html"} + "_build/install/default/doc/matita/html/tac_bytermweproved.html" {"html/tac_bytermweproved.html"} + "_build/install/default/doc/matita/html/tac_case.html" {"html/tac_case.html"} + "_build/install/default/doc/matita/html/tac_cases.html" {"html/tac_cases.html"} + "_build/install/default/doc/matita/html/tac_change.html" {"html/tac_change.html"} + "_build/install/default/doc/matita/html/tac_clear.html" {"html/tac_clear.html"} + "_build/install/default/doc/matita/html/tac_conclude.html" {"html/tac_conclude.html"} + "_build/install/default/doc/matita/html/tac_constructor.html" {"html/tac_constructor.html"} + "_build/install/default/doc/matita/html/tac_cut.html" {"html/tac_cut.html"} + "_build/install/default/doc/matita/html/tac_decompose.html" {"html/tac_decompose.html"} + "_build/install/default/doc/matita/html/tac_destruct.html" {"html/tac_destruct.html"} + "_build/install/default/doc/matita/html/tac_elim.html" {"html/tac_elim.html"} + "_build/install/default/doc/matita/html/tac_existselim.html" {"html/tac_existselim.html"} + "_build/install/default/doc/matita/html/tac_generalize.html" {"html/tac_generalize.html"} + "_build/install/default/doc/matita/html/tac_intro.html" {"html/tac_intro.html"} + "_build/install/default/doc/matita/html/tac_intro_clear.html" {"html/tac_intro_clear.html"} + "_build/install/default/doc/matita/html/tac_inversion.html" {"html/tac_inversion.html"} + "_build/install/default/doc/matita/html/tac_lapply.html" {"html/tac_lapply.html"} + "_build/install/default/doc/matita/html/tac_let.html" {"html/tac_let.html"} + "_build/install/default/doc/matita/html/tac_letin.html" {"html/tac_letin.html"} + "_build/install/default/doc/matita/html/tac_normalize.html" {"html/tac_normalize.html"} + "_build/install/default/doc/matita/html/tac_obtain.html" {"html/tac_obtain.html"} + "_build/install/default/doc/matita/html/tac_rewrite.html" {"html/tac_rewrite.html"} + "_build/install/default/doc/matita/html/tac_rewrite_step.html" {"html/tac_rewrite_step.html"} + "_build/install/default/doc/matita/html/tac_suppose.html" {"html/tac_suppose.html"} + "_build/install/default/doc/matita/html/tac_thatisequivalentto.html" {"html/tac_thatisequivalentto.html"} + "_build/install/default/doc/matita/html/tac_thesisbecomes.html" {"html/tac_thesisbecomes.html"} + "_build/install/default/doc/matita/html/tac_weneedtoprove.html" {"html/tac_weneedtoprove.html"} + "_build/install/default/doc/matita/html/tac_weproceedbycases.html" {"html/tac_weproceedbycases.html"} + "_build/install/default/doc/matita/html/tac_weproceedbyinduction.html" {"html/tac_weproceedbyinduction.html"} + "_build/install/default/doc/matita/html/tac_whd.html" {"html/tac_whd.html"} + "_build/install/default/doc/matita/html/tacticals.html" {"html/tacticals.html"} + "_build/install/default/doc/matita/html/tacticargs.html" {"html/tacticargs.html"} + "_build/install/default/doc/matita/matita.pdf" +] diff --git a/matita/matita/help/C/Makefile b/matita/matita/help/C/Makefile index bdffeb5e3..b78d325de 100644 --- a/matita/matita/help/C/Makefile +++ b/matita/matita/help/C/Makefile @@ -1,13 +1,8 @@ - -#include ../../../Makefile.defs - XSLTPROC=xsltproc XHTML_XSL=xsl/matita-xhtml.xsl MAIN=matita.xml DEPS := $(wildcard *.xml) -DESTDIR = /usr/local/share/doc/matita/ - all: quickref-stamp html-stamp pdf-stamp quickref-stamp: tactics_quickref.xml declarative_tactics_quickref.xml @@ -21,6 +16,9 @@ declarative_tactics_quickref.xml: xsl/tactic_quickref.xsl sec_declarative_tactic html: quickref-stamp html-stamp html-stamp: $(MAIN) $(DEPS) $(XHTML_XSL) $(XSLTPROC) $(XHTML_XSL) $< + cp *.css html + mv *.html html + cp -R figures/* html/figures/ touch $@ pdf: quickref-stamp pdf-stamp @@ -34,18 +32,6 @@ pdf-stamp: $(patsubst %.xml,%.pdf,$(MAIN)) %.ps: %.xml dblatex -r scripts/fix-symbols.sh -t ps $< -install: install-html install-pdf -install-pdf: pdf-stamp - mkdir -p $(DESTDIR)/pdf - cp matita.pdf $(DESTDIR)/pdf - -install-html: html-stamp - mkdir -p $(DESTDIR)/html - cp *.html *.css $(DESTDIR)/html - test -d $(DESTDIR)/html/figures || mkdir $(DESTDIR)/html/figures - cp figures/* $(DESTDIR)/html/figures/ - clean: - rm -f *.html *.pdf *.ps *.dvi *.tex + rm -f html/*.html html/*.css html/figures/* *.pdf *.ps *.dvi *.tex rm -f *-stamp - diff --git a/matita/matita/help/C/WrtCoq.html b/matita/matita/help/C/WrtCoq.html deleted file mode 100644 index 458323776..000000000 --- a/matita/matita/help/C/WrtCoq.html +++ /dev/null @@ -1,12 +0,0 @@ - -Matita vs Coq

Matita vs Coq

- The system shares a common look&feel with the Coq proof assistant - and its graphical user interface. The two systems have variants - of the same logic, - close proof languages and similar sets of tactics. - From the user point of view the main lacking features - with respect to Coq are: -

  • proof extraction;

  • an extensible language of tactics;

  • automatic implicit arguments;

  • several ad-hoc decision procedures;

  • several rarely used variants for most of the tactics;

  • sections and local variables.

- Still from the user point of view, the main differences with respect - to Coq are: -

  • the language of tacticals that allows execution of partial tactical application;

  • the unification of the concept of metavariable and existential variable;

  • terms with subterms that cannot be inferred are always allowed as arguments of tactics or other commands;

  • ambiguous terms are disambiguated by direct interaction with the user;

  • theorems and definitions in the library are always accessible without needing to require/include them; right now, only notation needs to be included to become active, but we plan to remove this limitation.

\ No newline at end of file diff --git a/matita/matita/help/C/authoring.html b/matita/matita/help/C/authoring.html deleted file mode 100644 index 1bfc17d9b..000000000 --- a/matita/matita/help/C/authoring.html +++ /dev/null @@ -1,50 +0,0 @@ - -Authoring

Authoring

How to compile a script

- Scripts are compiled to base URIs. Base URIs are of the form - "cic:/matita/path" and are given once for all for a set - of scripts using the "root" file. -

- A "root" file has to be placed in the root of a script set, - for example, consider the following files and directories, and - assume you keep files in "list" separated from files - in "sort" (for example the former directory may contain - functions and proofs about lists, while latter sorting algorithms - for lists): -

-  list/
-    list.ma (* depending just on the standard library *)
-    utils/
-      swap.ma (* including list.ma *)
-  sort/
-    qsort.ma (* including utils/swap.ma *)
-

- To be able to compile properly the contents of "list" - a file called root has to be placed in it. The file should be like - the following snippet. -

-  baseuri=cic:/matita/mydatastructures
-

- This file tells Matita that objects generated by - "list.ma" have to be placed in - "cic:/matita/mydatastructures/list" while - objects generated by - "swap.ma" have to be placed in - "cic:/matita/mydatastructures/utils/swap". -

- Once you created the root file, you must generate a depend file. - Enter the "list" directory (the root of yuor file set) - and type "matitadep". Remember to regenerate the depend file - every time you alter the dependencies of your files (for example - including other scripts). - You can now compile you files typing "matitac". -

- To compile the "sort" directory, create a root file - in "sort/" like the following one and then run - "matitadep". -

-  baseuri=cic:/matita/myalgorithms
-  include_paths=../list
-

- The include_paths field can declare a list of paths separated by space. - Please omit any "/" from the end of base URIs or paths. -

The authoring interface

TODO

\ No newline at end of file diff --git a/matita/matita/help/C/axiom_definition_declaration.html b/matita/matita/help/C/axiom_definition_declaration.html deleted file mode 100644 index 46c879919..000000000 --- a/matita/matita/help/C/axiom_definition_declaration.html +++ /dev/null @@ -1,57 +0,0 @@ - -Definitions and declarations

Definitions and declarations

axiom id: term

axiom H: P

H is declared as an axiom that states P

definition id[: term] [≝ term]

definition f: T ≝ t

f is defined as t; - T is its type. An error is raised if the type of - t is not convertible to T.

T is inferred from t if - omitted.

t can be omitted only if T is - given. In this case Matita enters in interactive mode and - f must be defined by means of tactics.

Notice that the command is equivalent to theorem f: T ≝ t.

discriminator id

discriminator i

Defines a new discrimination (injectivity+conflict) principle à la - McBride for the inductive type i.

The principle will use John - Major's equality if such equality is defined, otherwise it will use - Leibniz equality; in the former case, it will be called - i_jmdiscr, in the latter, i_discr. - The command will fail if neither equality is available.

Discrimination principles are used by the destruct tactic and are - usually automatically generated by Matita during the definition of the - corresponding inductive type. This command is thus especially useful - when the correct equality was not loaded at the time of that - definition.

inverter id for id (path) [term]

inverter n for i (path) : s

Defines a new induction/inversion principle for the inductive type - i, called n.

(path) must be in the form (# # # ... #), - where each # can be either ? or - %, and the number of symbols is equal to the number of - right parameters (indices) of i. Parentheses are - mandatory. If the j-th symbol is - %, Matita will generate a principle providing - equations for reasoning on the j-th index of i. If the - symbol is a ?, no corresponding equation will be - provided.

s, which must be a sort, is the target sort of the - induction/inversion principle and defaults to Prop.

letrec TODO

TODO

[inductive|coinductive] id [args2]… : term ≝ [|] [id:term] [| id:term]… -[with id : term ≝ [|] [id:term] [| id:term]…]… -

inductive i x y z: S ≝ k1:T1 | … | kn:Tn with i' : S' ≝ k1':T1' | … | km':Tm'

Declares a family of two mutually inductive types - i and i' whose types are - S and S', which must be convertible - to sorts.

The constructors ki of type Ti - and ki' of type Ti' are also - simultaneously declared. The declared types i and - i' may occur in the types of the constructors, but - only in strongly positive positions according to the rules of the - calculus.

The whole family is parameterized over the arguments x,y,z.

If the keyword coinductive is used, the declared - types are considered mutually coinductive.

Elimination principles for the record are automatically generated - by Matita, if allowed by the typing rules of the calculus according to - the sort S. If generated, - they are named i_ind, i_rec and - i_rect according to the sort of their induction - predicate.

record id [args2]… : term ≝{[id [:|:>] term] [;id [:|:>] term]…}

record id x y z: S ≝ { f1: T1; …; fn:Tn }

Declares a new record family id parameterized over - x,y,z.

S is the type of the record - and it must be convertible to a sort.

Each field fi is declared by giving its type - Ti. A record without any field is admitted.

Elimination principles for the record are automatically generated - by Matita, if allowed by the typing rules of the calculus according to - the sort S. If generated, - they are named i_ind, i_rec and - i_rect according to the sort of their induction - predicate.

For each field fi a record projection - fi is also automatically generated if projection - is allowed by the typing rules of the calculus according to the - sort S, the type T1 and - the definability of depending record projections.

If the type of a field is declared with :>, - the corresponding record projection becomes an implicit coercion. - This is just syntactic sugar and it has the same effect of declaring the - record projection as a coercion later on.

\ No newline at end of file diff --git a/matita/matita/help/C/ch05s02.html b/matita/matita/help/C/ch05s02.html deleted file mode 100644 index e54b1e9a4..000000000 --- a/matita/matita/help/C/ch05s02.html +++ /dev/null @@ -1,27 +0,0 @@ - -interpretation

interpretation

interpretation "description" 'symbol p1 … pn = - rhs

-

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:

Table 5.11. interpretation_argument

interpretation_argument::=[η.]… idA 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.

Table 5.12. interpretation_rhs

interpretation_rhs::=uriA constant, specified by its URI
 |idA 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

-

\ No newline at end of file diff --git a/matita/matita/help/C/cicbrowser.html b/matita/matita/help/C/cicbrowser.html deleted file mode 100644 index 83f228299..000000000 --- a/matita/matita/help/C/cicbrowser.html +++ /dev/null @@ -1,18 +0,0 @@ - -Browsing and searching

Browsing and searching

The CIC browser is used to browse and search the library. - You can open a new CIC browser selecting "New Cic Browser" - from the "View" menu of Matita, or by pressing "F3". - The CIC browser is similar to a traditional Web browser.

Browsing the library

To browse the library, type in the location bar the absolute URI of - the theorem, definition or library fragment you are interested in. - "cic:/" is the root of the library. Contributions developed - in Matita are under "cic:/matita"; all the others are - part of the library of Coq.

Following the hyperlinks it is possible to navigate in the Web - of mathematical notions. Proof are rendered in pseudo-natural language - and mathematical notation is used for formulae. For now, mathematical - notation must be included in the current script to be activated, but we - plan to remove this limitation.

Looking at a proof under development

A proof under development is not yet part of the library. - The special URI "about:proof" can be used to browse the - proof currently under development, if there is one. - The "home" button of the CIC browser sets the location bar to - "about:proof". -

\ No newline at end of file diff --git a/matita/matita/help/C/command_check.html b/matita/matita/help/C/command_check.html deleted file mode 100644 index 022fea317..000000000 --- a/matita/matita/help/C/command_check.html +++ /dev/null @@ -1,6 +0,0 @@ - -check

check

check t

-

Synopsis:

check sterm

Action:

Opens a CIC browser window that shows t - together with its type. The command is immediately removed from - the script.

-

\ No newline at end of file diff --git a/matita/matita/help/C/command_coercion.html b/matita/matita/help/C/command_coercion.html deleted file mode 100644 index a1a0b6841..000000000 --- a/matita/matita/help/C/command_coercion.html +++ /dev/null @@ -1,52 +0,0 @@ - -coercion

coercion

coercion nocomposites c : ty ≝ u on s : S to T

-

Synopsis:

- coercion - [ nocomposites ] id - [ : term ≝ term - on - id : term - to term ] -

Action:

Declares c as an implicit coercion. - If only c is given, u - is the constant named by c, - ty its declared type, - s the name of the last variable abstracted in - in ty, S the type of - this last variable and T the target of - ty. The user can specify all these component to - have full control on how the coercion is indexed. - The type of the body of the coercion u must be - convertible to the declared one ty. Let it be - ∀x1:T1. … ∀x(n-1):T(n-1).Tn. - Then s must be one of x1 … - xn (possibly prefixed by _ - if the product is non dependent). Let s - be xi in the following. - Then S must be Ti - where all bound variables are replaced by ?, - and T must be Tn - where all bound variable are replaced by ?. - For example the following command - declares a coercions from vectors of any length to lists of - natural numbers.

coercion nocomposites v2l : ∀n:nat.∀v:Vect nat n. - List nat ≝ l_of_v on _v : Vect nat ? to List nat

Every time a term x - of a type that matches S - (Vect nat ? here) - is used with an expected - type that matches T - (List nat here), Matita - automatically replaces x with - (u ? … ? x ? … ?) to avoid a typing error. - Note that the position of x is determined by - s.

Implicit coercions are not displayed to the user: - (u ? … ? x) is rendered simply - as x.

When a coercion u is declared - from source s to target t - and there is already a coercion u' of - target s or source t, - a composite implicit coercion is automatically computed - by Matita unless nocomposites - is specified.

Note that Vect nat ? can be replaced with - Vect ? ? to index the coercion is a loose way.

-

\ No newline at end of file diff --git a/matita/matita/help/C/command_include.html b/matita/matita/help/C/command_include.html deleted file mode 100644 index 52eb85bb6..000000000 --- a/matita/matita/help/C/command_include.html +++ /dev/null @@ -1,17 +0,0 @@ - -include

include

include "s"

-

Synopsis:

include qstring

Action:

Every coercion, - notation and - interpretation that was active - when the file s was compiled last time - is made active. The same happens for declarations of - disambiguation - hints (aliases). - On the contrary, theorem and definitions declared in a file can be - immediately used without including it.

The file s is automatically compiled - if it is not compiled yet. -

- If the file s was already included, either - directly or recursively, the commands does nothing. -

-

\ No newline at end of file diff --git a/matita/matita/help/C/command_include_alias.html b/matita/matita/help/C/command_include_alias.html deleted file mode 100644 index e3d105332..000000000 --- a/matita/matita/help/C/command_include_alias.html +++ /dev/null @@ -1,8 +0,0 @@ - -include alias

include alias

include alias "s"

-

Synopsis:

include alias qstring

Action:

Every - interpretation - declared in the file s is re-declared - so to make it the preferred choice for disambiguation. -

-

\ No newline at end of file diff --git a/matita/matita/help/C/command_qed.html b/matita/matita/help/C/command_qed.html deleted file mode 100644 index 20cdfade2..000000000 --- a/matita/matita/help/C/command_qed.html +++ /dev/null @@ -1,8 +0,0 @@ - -qed

qed

qed

-

Synopsis:

qed -

Action:

Saves and indexes the current interactive theorem or - definition. - In order to do this, the set of sequents still to be proved - must be empty.

-

\ No newline at end of file diff --git a/matita/matita/help/C/command_qed_minus.html b/matita/matita/help/C/command_qed_minus.html deleted file mode 100644 index a0ea58391..000000000 --- a/matita/matita/help/C/command_qed_minus.html +++ /dev/null @@ -1,9 +0,0 @@ - -qed-

qed-

qed-

-

Synopsis:

qed- -

Action:

Saves the current interactive theorem or - definition without indexing. Therefore automation will ignore - it. - In order to do this, the set of sequents still to be proved - must be empty.

-

\ No newline at end of file diff --git a/matita/matita/help/C/command_unification_hint.html b/matita/matita/help/C/command_unification_hint.html deleted file mode 100644 index a43f21e0f..000000000 --- a/matita/matita/help/C/command_unification_hint.html +++ /dev/null @@ -1,17 +0,0 @@ - -unification hint

unification hint

unification hint n ≔ v1 : T1,… vi : Ti; h1 ≟ t1, … hn ≟ tn ⊢ tl ≡ tr.

-

Synopsis:

- unification hint - nat - ≔ - [ id [ : term ] ,.. ] - ; - [ id ≟ term ,.. ] - ⊢ - term ≡ term -

Action:

Declares the hint at precedence n

The file hints_declaration.ma must be - included to declare hints with that syntax.

Unification hints are described in the paper - "Hints in unification" by - Asperti, Ricciotti, Sacerdoti and Tassi. -

-

\ No newline at end of file diff --git a/matita/matita/help/C/command_universe_constraints.html b/matita/matita/help/C/command_universe_constraints.html deleted file mode 100644 index 5c7d8fa87..000000000 --- a/matita/matita/help/C/command_universe_constraints.html +++ /dev/null @@ -1,2 +0,0 @@ - -universe constraint

universe constraint

TODO

\ No newline at end of file diff --git a/matita/matita/help/C/dune b/matita/matita/help/C/dune new file mode 100644 index 000000000..74e37ab02 --- /dev/null +++ b/matita/matita/help/C/dune @@ -0,0 +1,5 @@ +(install + (section doc) + (files + matita.pdf + (glob_files_rec html/*))) diff --git a/matita/matita/help/C/html/WrtCoq.html b/matita/matita/help/C/html/WrtCoq.html new file mode 100644 index 000000000..458323776 --- /dev/null +++ b/matita/matita/help/C/html/WrtCoq.html @@ -0,0 +1,12 @@ + +Matita vs Coq

Matita vs Coq

+ The system shares a common look&feel with the Coq proof assistant + and its graphical user interface. The two systems have variants + of the same logic, + close proof languages and similar sets of tactics. + From the user point of view the main lacking features + with respect to Coq are: +

  • proof extraction;

  • an extensible language of tactics;

  • automatic implicit arguments;

  • several ad-hoc decision procedures;

  • several rarely used variants for most of the tactics;

  • sections and local variables.

+ Still from the user point of view, the main differences with respect + to Coq are: +

  • the language of tacticals that allows execution of partial tactical application;

  • the unification of the concept of metavariable and existential variable;

  • terms with subterms that cannot be inferred are always allowed as arguments of tactics or other commands;

  • ambiguous terms are disambiguated by direct interaction with the user;

  • theorems and definitions in the library are always accessible without needing to require/include them; right now, only notation needs to be included to become active, but we plan to remove this limitation.

\ No newline at end of file diff --git a/matita/matita/help/C/html/authoring.html b/matita/matita/help/C/html/authoring.html new file mode 100644 index 000000000..1bfc17d9b --- /dev/null +++ b/matita/matita/help/C/html/authoring.html @@ -0,0 +1,50 @@ + +Authoring

Authoring

How to compile a script

+ Scripts are compiled to base URIs. Base URIs are of the form + "cic:/matita/path" and are given once for all for a set + of scripts using the "root" file. +

+ A "root" file has to be placed in the root of a script set, + for example, consider the following files and directories, and + assume you keep files in "list" separated from files + in "sort" (for example the former directory may contain + functions and proofs about lists, while latter sorting algorithms + for lists): +

+  list/
+    list.ma (* depending just on the standard library *)
+    utils/
+      swap.ma (* including list.ma *)
+  sort/
+    qsort.ma (* including utils/swap.ma *)
+

+ To be able to compile properly the contents of "list" + a file called root has to be placed in it. The file should be like + the following snippet. +

+  baseuri=cic:/matita/mydatastructures
+

+ This file tells Matita that objects generated by + "list.ma" have to be placed in + "cic:/matita/mydatastructures/list" while + objects generated by + "swap.ma" have to be placed in + "cic:/matita/mydatastructures/utils/swap". +

+ Once you created the root file, you must generate a depend file. + Enter the "list" directory (the root of yuor file set) + and type "matitadep". Remember to regenerate the depend file + every time you alter the dependencies of your files (for example + including other scripts). + You can now compile you files typing "matitac". +

+ To compile the "sort" directory, create a root file + in "sort/" like the following one and then run + "matitadep". +

+  baseuri=cic:/matita/myalgorithms
+  include_paths=../list
+

+ The include_paths field can declare a list of paths separated by space. + Please omit any "/" from the end of base URIs or paths. +

The authoring interface

TODO

\ No newline at end of file diff --git a/matita/matita/help/C/html/axiom_definition_declaration.html b/matita/matita/help/C/html/axiom_definition_declaration.html new file mode 100644 index 000000000..46c879919 --- /dev/null +++ b/matita/matita/help/C/html/axiom_definition_declaration.html @@ -0,0 +1,57 @@ + +Definitions and declarations

Definitions and declarations

axiom id: term

axiom H: P

H is declared as an axiom that states P

definition id[: term] [≝ term]

definition f: T ≝ t

f is defined as t; + T is its type. An error is raised if the type of + t is not convertible to T.

T is inferred from t if + omitted.

t can be omitted only if T is + given. In this case Matita enters in interactive mode and + f must be defined by means of tactics.

Notice that the command is equivalent to theorem f: T ≝ t.

discriminator id

discriminator i

Defines a new discrimination (injectivity+conflict) principle à la + McBride for the inductive type i.

The principle will use John + Major's equality if such equality is defined, otherwise it will use + Leibniz equality; in the former case, it will be called + i_jmdiscr, in the latter, i_discr. + The command will fail if neither equality is available.

Discrimination principles are used by the destruct tactic and are + usually automatically generated by Matita during the definition of the + corresponding inductive type. This command is thus especially useful + when the correct equality was not loaded at the time of that + definition.

inverter id for id (path) [term]

inverter n for i (path) : s

Defines a new induction/inversion principle for the inductive type + i, called n.

(path) must be in the form (# # # ... #), + where each # can be either ? or + %, and the number of symbols is equal to the number of + right parameters (indices) of i. Parentheses are + mandatory. If the j-th symbol is + %, Matita will generate a principle providing + equations for reasoning on the j-th index of i. If the + symbol is a ?, no corresponding equation will be + provided.

s, which must be a sort, is the target sort of the + induction/inversion principle and defaults to Prop.

letrec TODO

TODO

[inductive|coinductive] id [args2]… : term ≝ [|] [id:term] [| id:term]… +[with id : term ≝ [|] [id:term] [| id:term]…]… +

inductive i x y z: S ≝ k1:T1 | … | kn:Tn with i' : S' ≝ k1':T1' | … | km':Tm'

Declares a family of two mutually inductive types + i and i' whose types are + S and S', which must be convertible + to sorts.

The constructors ki of type Ti + and ki' of type Ti' are also + simultaneously declared. The declared types i and + i' may occur in the types of the constructors, but + only in strongly positive positions according to the rules of the + calculus.

The whole family is parameterized over the arguments x,y,z.

If the keyword coinductive is used, the declared + types are considered mutually coinductive.

Elimination principles for the record are automatically generated + by Matita, if allowed by the typing rules of the calculus according to + the sort S. If generated, + they are named i_ind, i_rec and + i_rect according to the sort of their induction + predicate.

record id [args2]… : term ≝{[id [:|:>] term] [;id [:|:>] term]…}

record id x y z: S ≝ { f1: T1; …; fn:Tn }

Declares a new record family id parameterized over + x,y,z.

S is the type of the record + and it must be convertible to a sort.

Each field fi is declared by giving its type + Ti. A record without any field is admitted.

Elimination principles for the record are automatically generated + by Matita, if allowed by the typing rules of the calculus according to + the sort S. If generated, + they are named i_ind, i_rec and + i_rect according to the sort of their induction + predicate.

For each field fi a record projection + fi is also automatically generated if projection + is allowed by the typing rules of the calculus according to the + sort S, the type T1 and + the definability of depending record projections.

If the type of a field is declared with :>, + the corresponding record projection becomes an implicit coercion. + This is just syntactic sugar and it has the same effect of declaring the + record projection as a coercion later on.

\ No newline at end of file diff --git a/matita/matita/help/C/html/ch05s02.html b/matita/matita/help/C/html/ch05s02.html new file mode 100644 index 000000000..e54b1e9a4 --- /dev/null +++ b/matita/matita/help/C/html/ch05s02.html @@ -0,0 +1,27 @@ + +interpretation

interpretation

interpretation "description" 'symbol p1 … pn = + rhs

+

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:

Table 5.11. interpretation_argument

interpretation_argument::=[η.]… idA 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.

Table 5.12. interpretation_rhs

interpretation_rhs::=uriA constant, specified by its URI
 |idA 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

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/cicbrowser.html b/matita/matita/help/C/html/cicbrowser.html new file mode 100644 index 000000000..83f228299 --- /dev/null +++ b/matita/matita/help/C/html/cicbrowser.html @@ -0,0 +1,18 @@ + +Browsing and searching

Browsing and searching

The CIC browser is used to browse and search the library. + You can open a new CIC browser selecting "New Cic Browser" + from the "View" menu of Matita, or by pressing "F3". + The CIC browser is similar to a traditional Web browser.

Browsing the library

To browse the library, type in the location bar the absolute URI of + the theorem, definition or library fragment you are interested in. + "cic:/" is the root of the library. Contributions developed + in Matita are under "cic:/matita"; all the others are + part of the library of Coq.

Following the hyperlinks it is possible to navigate in the Web + of mathematical notions. Proof are rendered in pseudo-natural language + and mathematical notation is used for formulae. For now, mathematical + notation must be included in the current script to be activated, but we + plan to remove this limitation.

Looking at a proof under development

A proof under development is not yet part of the library. + The special URI "about:proof" can be used to browse the + proof currently under development, if there is one. + The "home" button of the CIC browser sets the location bar to + "about:proof". +

\ No newline at end of file diff --git a/matita/matita/help/C/html/command_check.html b/matita/matita/help/C/html/command_check.html new file mode 100644 index 000000000..022fea317 --- /dev/null +++ b/matita/matita/help/C/html/command_check.html @@ -0,0 +1,6 @@ + +check

check

check t

+

Synopsis:

check sterm

Action:

Opens a CIC browser window that shows t + together with its type. The command is immediately removed from + the script.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/command_coercion.html b/matita/matita/help/C/html/command_coercion.html new file mode 100644 index 000000000..a1a0b6841 --- /dev/null +++ b/matita/matita/help/C/html/command_coercion.html @@ -0,0 +1,52 @@ + +coercion

coercion

coercion nocomposites c : ty ≝ u on s : S to T

+

Synopsis:

+ coercion + [ nocomposites ] id + [ : term ≝ term + on + id : term + to term ] +

Action:

Declares c as an implicit coercion. + If only c is given, u + is the constant named by c, + ty its declared type, + s the name of the last variable abstracted in + in ty, S the type of + this last variable and T the target of + ty. The user can specify all these component to + have full control on how the coercion is indexed. + The type of the body of the coercion u must be + convertible to the declared one ty. Let it be + ∀x1:T1. … ∀x(n-1):T(n-1).Tn. + Then s must be one of x1 … + xn (possibly prefixed by _ + if the product is non dependent). Let s + be xi in the following. + Then S must be Ti + where all bound variables are replaced by ?, + and T must be Tn + where all bound variable are replaced by ?. + For example the following command + declares a coercions from vectors of any length to lists of + natural numbers.

coercion nocomposites v2l : ∀n:nat.∀v:Vect nat n. + List nat ≝ l_of_v on _v : Vect nat ? to List nat

Every time a term x + of a type that matches S + (Vect nat ? here) + is used with an expected + type that matches T + (List nat here), Matita + automatically replaces x with + (u ? … ? x ? … ?) to avoid a typing error. + Note that the position of x is determined by + s.

Implicit coercions are not displayed to the user: + (u ? … ? x) is rendered simply + as x.

When a coercion u is declared + from source s to target t + and there is already a coercion u' of + target s or source t, + a composite implicit coercion is automatically computed + by Matita unless nocomposites + is specified.

Note that Vect nat ? can be replaced with + Vect ? ? to index the coercion is a loose way.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/command_include.html b/matita/matita/help/C/html/command_include.html new file mode 100644 index 000000000..52eb85bb6 --- /dev/null +++ b/matita/matita/help/C/html/command_include.html @@ -0,0 +1,17 @@ + +include

include

include "s"

+

Synopsis:

include qstring

Action:

Every coercion, + notation and + interpretation that was active + when the file s was compiled last time + is made active. The same happens for declarations of + disambiguation + hints (aliases). + On the contrary, theorem and definitions declared in a file can be + immediately used without including it.

The file s is automatically compiled + if it is not compiled yet. +

+ If the file s was already included, either + directly or recursively, the commands does nothing. +

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/command_include_alias.html b/matita/matita/help/C/html/command_include_alias.html new file mode 100644 index 000000000..e3d105332 --- /dev/null +++ b/matita/matita/help/C/html/command_include_alias.html @@ -0,0 +1,8 @@ + +include alias

include alias

include alias "s"

+

Synopsis:

include alias qstring

Action:

Every + interpretation + declared in the file s is re-declared + so to make it the preferred choice for disambiguation. +

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/command_qed.html b/matita/matita/help/C/html/command_qed.html new file mode 100644 index 000000000..20cdfade2 --- /dev/null +++ b/matita/matita/help/C/html/command_qed.html @@ -0,0 +1,8 @@ + +qed

qed

qed

+

Synopsis:

qed +

Action:

Saves and indexes the current interactive theorem or + definition. + In order to do this, the set of sequents still to be proved + must be empty.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/command_qed_minus.html b/matita/matita/help/C/html/command_qed_minus.html new file mode 100644 index 000000000..a0ea58391 --- /dev/null +++ b/matita/matita/help/C/html/command_qed_minus.html @@ -0,0 +1,9 @@ + +qed-

qed-

qed-

+

Synopsis:

qed- +

Action:

Saves the current interactive theorem or + definition without indexing. Therefore automation will ignore + it. + In order to do this, the set of sequents still to be proved + must be empty.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/command_unification_hint.html b/matita/matita/help/C/html/command_unification_hint.html new file mode 100644 index 000000000..a43f21e0f --- /dev/null +++ b/matita/matita/help/C/html/command_unification_hint.html @@ -0,0 +1,17 @@ + +unification hint

unification hint

unification hint n ≔ v1 : T1,… vi : Ti; h1 ≟ t1, … hn ≟ tn ⊢ tl ≡ tr.

+

Synopsis:

+ unification hint + nat + ≔ + [ id [ : term ] ,.. ] + ; + [ id ≟ term ,.. ] + ⊢ + term ≡ term +

Action:

Declares the hint at precedence n

The file hints_declaration.ma must be + included to declare hints with that syntax.

Unification hints are described in the paper + "Hints in unification" by + Asperti, Ricciotti, Sacerdoti and Tassi. +

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/command_universe_constraints.html b/matita/matita/help/C/html/command_universe_constraints.html new file mode 100644 index 000000000..5c7d8fa87 --- /dev/null +++ b/matita/matita/help/C/html/command_universe_constraints.html @@ -0,0 +1,2 @@ + +universe constraint

universe constraint

TODO

\ No newline at end of file diff --git a/matita/matita/help/C/html/docbook.css b/matita/matita/help/C/html/docbook.css new file mode 100644 index 000000000..a6ea52fe6 --- /dev/null +++ b/matita/matita/help/C/html/docbook.css @@ -0,0 +1,56 @@ + +body { + background: url(../../images/sheetbg.png); +} + +ul.authorgroup { + list-style-type: none; + padding-left: 1em; +} + +div.titlepage { + background: #eaeaea; +} + +div.titlepage hr { + display: none; +} + +div.navheader hr { + display: none; +} + +div.navfooter hr { + display: none; +} + +div.navheader { + padding-left: 150px; + background: #eaeaea; +} + +div.navfooter { + background: #eaeaea; +} + +div.matita_logo { + position: absolute; + top: 3px; + left: 5px; +} + +div.matita_logo img { + border-style: none; +} + +div.matita_logo span { + position: absolute; + top: 13px; + left: 65px; + text-decoration: underline; +} + +div.figure { + text-align: center; +} + diff --git a/matita/matita/help/C/html/figures/database.dia b/matita/matita/help/C/html/figures/database.dia new file mode 100644 index 000000000..652ea01eb Binary files /dev/null and b/matita/matita/help/C/html/figures/database.dia differ diff --git a/matita/matita/help/C/html/figures/database.png b/matita/matita/help/C/html/figures/database.png new file mode 100644 index 000000000..7e9b1ca78 Binary files /dev/null and b/matita/matita/help/C/html/figures/database.png differ diff --git a/matita/matita/help/C/html/figures/matita.png b/matita/matita/help/C/html/figures/matita.png new file mode 100644 index 000000000..5a6807126 Binary files /dev/null and b/matita/matita/help/C/html/figures/matita.png differ diff --git a/matita/matita/help/C/html/figures/vbox1.png b/matita/matita/help/C/html/figures/vbox1.png new file mode 100644 index 000000000..f7c85fe07 Binary files /dev/null and b/matita/matita/help/C/html/figures/vbox1.png differ diff --git a/matita/matita/help/C/html/figures/vbox2.png b/matita/matita/help/C/html/figures/vbox2.png new file mode 100644 index 000000000..8d2182f5c Binary files /dev/null and b/matita/matita/help/C/html/figures/vbox2.png differ diff --git a/matita/matita/help/C/html/figures/vbox3.png b/matita/matita/help/C/html/figures/vbox3.png new file mode 100644 index 000000000..48f6309bb Binary files /dev/null and b/matita/matita/help/C/html/figures/vbox3.png differ diff --git a/matita/matita/help/C/html/figures/vbox35.png b/matita/matita/help/C/html/figures/vbox35.png new file mode 100644 index 000000000..313bd1ca8 Binary files /dev/null and b/matita/matita/help/C/html/figures/vbox35.png differ diff --git a/matita/matita/help/C/html/figures/vbox4.png b/matita/matita/help/C/html/figures/vbox4.png new file mode 100644 index 000000000..432f3ffba Binary files /dev/null and b/matita/matita/help/C/html/figures/vbox4.png differ diff --git a/matita/matita/help/C/html/figures/vbox5.png b/matita/matita/help/C/html/figures/vbox5.png new file mode 100644 index 000000000..465e5454d Binary files /dev/null and b/matita/matita/help/C/html/figures/vbox5.png differ diff --git a/matita/matita/help/C/html/figures/vbox6.png b/matita/matita/help/C/html/figures/vbox6.png new file mode 100644 index 000000000..bc353de3b Binary files /dev/null and b/matita/matita/help/C/html/figures/vbox6.png differ diff --git a/matita/matita/help/C/html/figures/vbox7.png b/matita/matita/help/C/html/figures/vbox7.png new file mode 100644 index 000000000..7d17a852c Binary files /dev/null and b/matita/matita/help/C/html/figures/vbox7.png differ diff --git a/matita/matita/help/C/html/index.html b/matita/matita/help/C/html/index.html new file mode 100644 index 000000000..2f15104d1 --- /dev/null +++ b/matita/matita/help/C/html/index.html @@ -0,0 +1,9 @@ + +Matita V0.99.5 User Manual (rev. 0.99.5 )

Matita V0.99.5 + User Manual (rev. 0.99.5 +)

Both Matita and this document are free software, you can + redistribute them and/or modify them under the terms of the GNU General + Public License as published by the Free Software Foundation. See Chapter 10, License for more information.

Revision: 0.99.5 +, 12/07/2006

\ No newline at end of file diff --git a/matita/matita/help/C/html/inst_from_src.html b/matita/matita/help/C/html/inst_from_src.html new file mode 100644 index 000000000..dd4050c43 --- /dev/null +++ b/matita/matita/help/C/html/inst_from_src.html @@ -0,0 +1,89 @@ + +Installing from sources

Installing from sources

Install Matita from the sources is hard, you have been warned! +

Getting the source code

You can get the Matita source code in two ways: +

  1. go to the download + page and get the latest released source tarball;

  2. get the development sources from our + SVN repository. You will need the + components/ and + matita/ directories from the + trunk/helm/software/ directory, plus the + configure and Makefile* + stuff from the same directory.

    In this case you will need to run + autoconf before proceding with the building + instructions below.

+

Requirements

In order to build Matita from sources you will need some + tools and libraries. They are listed below. + +

Note for Debian (and derivatives) users

If you are running a + Debian GNU/Linux + distribution, + or any of its derivative like Ubuntu, + you can use APT to install all the required tools and + libraries since they are all part of the Debian archive. +

+ apt-get install ocaml ocaml-findlib libgdome2-ocaml-dev liblablgtk2-ocaml-dev liblablgtkmathview-ocaml-dev liblablgtksourceview-ocaml-dev libsqlite3-ocaml-dev libocamlnet-ocaml-dev libzip-ocaml-dev libhttp-ocaml-dev ocaml-ulex08 libexpat-ocaml-dev libmysql-ocaml-dev camlp5 +

+ An official debian package is going to be added to the + archive too. +

+ +

Required tools and libraries

+ OCaml +

the Objective Caml compiler, version 3.09 or above

+ Findlib + +

OCaml package manager, version 1.1.1 or above

+ OCaml + Expat +

OCaml bindings for the expat + library

+ LablGTK + +

OCaml bindings for the GTK+ library + , version 2.6.0 or above

+ GtkSourceView + + , + LablGtkSourceView + +

extension for the GTK+ text widget (adding the typical + features of source code editors) and its OCaml bindings

+ Ocamlnet + +

collection of OCaml libraries to deal with + application-level Internet protocols and conventions

+ ulex + +

Unicode lexer generator for OCaml

+ CamlZip + +

OCaml library to access .gz files +

Compiling and installing

Once you get the source code the installations steps should be + quite familiar.

First of all you need to configure the build process executing + ./configure. This will check that all needed + tools and library are installed and prepare the sources for compilation + and installation.

Quite a few (optional) arguments may be passed to the + configure command line to change build time + parameters. They are listed below, together with their + default values:

configure command line + arguments

+ --with-runtime-dir=dir +

+ (Default: + /usr/local/matita) Runtime base directory + where all Matita stuff (executables, configuration files, + standard library, ...) will be installed +

+ --enable-debug +

+ (Default: disabled) Enable debugging code. + Not for the casual user. +

Then you will manage the build and install process using + make + as usual. Below are reported the targets you have to invoke in sequence + to build and install: +

make targets

world

builds components needed by Matita and Matita itself + (in bytecode or native code depending + on the availability of the OCaml native code compiler)

install

installs Matita related tools, standard library and the + needed runtime stuff in the proper places on the filesystem. +

\ No newline at end of file diff --git a/matita/matita/help/C/html/macro_intro.html b/matita/matita/help/C/html/macro_intro.html new file mode 100644 index 000000000..ff7a79ab7 --- /dev/null +++ b/matita/matita/help/C/html/macro_intro.html @@ -0,0 +1,7 @@ + +macro_input

macro_input

##

+

Synopsis:

##

Pre-conditions:

None.

Action:

This macro expands to the longest possible list of + #Hi tactics. The + names of the introduced hypotheses are automatically + generated.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/proofs.html b/matita/matita/help/C/html/proofs.html new file mode 100644 index 000000000..4eea6a61d --- /dev/null +++ b/matita/matita/help/C/html/proofs.html @@ -0,0 +1,7 @@ + +Proofs

Proofs

theorem id[: term] [≝ term]

theorem f: P ≝ p

Proves a new theorem f whose thesis is + P.

If p is provided, it must be a proof term for + P. Otherwise an interactive proof is started.

P can be omitted only if the proof is not + interactive.

A warning is raised if the name of the theorem cannot be obtained + by mangling the name of the constants in its thesis.

Notice that the command is equivalent to definition f: T ≝ t.

corollary id[: term] [≝ term]

corollary f: T ≝ t

Same as theorem f: T ≝ t

lemma id[: term] [≝ term]

lemma f: T ≝ t

Same as theorem f: T ≝ t

fact id[: term] [≝ term]

fact f: T ≝ t

Same as theorem f: T ≝ t

example id[: term] [≝ term]

example f: T ≝ t

Same as theorem f: T ≝ t, but the example + is not indexed nor used by automation.

\ No newline at end of file diff --git a/matita/matita/help/C/html/proofstatus.html b/matita/matita/help/C/html/proofstatus.html new file mode 100644 index 000000000..2eb55cd56 --- /dev/null +++ b/matita/matita/help/C/html/proofstatus.html @@ -0,0 +1,47 @@ + +The proof status

The proof status

+ During an interactive proof, the proof status is made of + the set of sequents to prove and the partial proof built so far. +

The partial proof can be inspected + on demand in the CIC browser. It will be shown in pseudo-natural language + produced on the fly from the proof term.

The set of sequents to prove is shown in the notebook of the + authoring interface, in the + top-right corner of the main window of Matita. Each tab shows a different + sequent, named with a question mark followed by a number. The current + role of the sequent, according to the following description, is also + shown in the tab tag. +

  1. + Selected sequents + (name in boldface, e.g. ?3). + The next tactic will be applied to every selected sequent, producing + new selected sequents. Tacticals + such as branching ("[") + or "focus" can be used + to change the set of selected sequents. +

  2. + Sibling sequents + (name prefixed by a vertical bar and their position, e.g. + |3?2). When the set of selected sequents + has more than one element, the user can decide to focus in turn on each + of them. The branching tactical + ("[") selects the first + sequent only, marking every previously selected sequent as a sibling + sequent. Each sibling sequent is given a different position. The + tactical "2,3:" can be used to + select one or more sibling sequents, different from the one proposed, + according to their position. Once the user starts to work on the + selected sibling sequents it becomes impossible to select a new + set of siblings until the ("|") + tactical is used to end work on the current one. +

  3. + Automatically solved sibling sequents + (name strokethrough, e.g. |3?2). + Sometimes a tactic can close by side effects a sibling sequent the + user has not selected yet. The sequent is left in the automatically + solved status in order for the user to explicitly accept + (using the "skip" + tactical) the automatic + instantiation in the proof script. This way the correspondence between + the number of branches in the proof script and the number of sequents + generated in the proof is preserved. +

\ No newline at end of file diff --git a/matita/matita/help/C/html/sec_commands.html b/matita/matita/help/C/html/sec_commands.html new file mode 100644 index 000000000..ec82fba4b --- /dev/null +++ b/matita/matita/help/C/html/sec_commands.html @@ -0,0 +1,30 @@ + +Chapter 9. Other commands

Chapter 9. Other commands

alias

alias id "s" = "def"

alias symbol "s" (instance n) = "def"

alias num (instance n) = "def"

+

Synopsis:

alias + [id qstring = qstring + | symbol qstring [(instance nat)] = qstring + | num [(instance nat)] = qstring + ] +

Action:

Used to give an hint to the disambiguating parser. + When the parser is faced to the identifier (or symbol) + s or to any number, it will prefer + interpretations that "map s (or the + number) to def". For identifiers, + "def" is the URI of the interpretation. + E.g.: cic:/matita/nat/nat.ind#xpointer(1/1/1) + for the first constructor of the first inductive type defined + in the block of inductive type(s) + cic:/matita/nat/nat.ind. + For symbols and numbers, "def" is the label used to + mark the wanted + interpretation. +

When a symbol or a number occurs several times in the + term to be parsed, it is possible to give an hint only for the + instance n. When the instance is omitted, + the hint is valid for every occurrence. +

+ Hints are automatically inserted in the script by Matita every + time the user is interactively asked a question to disambiguate + a term. This way the user won't be posed the same question twice + when the script will be executed again.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/sec_declarative_tactics.html b/matita/matita/help/C/html/sec_declarative_tactics.html new file mode 100644 index 000000000..bc750f282 --- /dev/null +++ b/matita/matita/help/C/html/sec_declarative_tactics.html @@ -0,0 +1,19 @@ + +Chapter 8. Declarative Tactics

Chapter 8. Declarative Tactics

Quick reference card

+

Table 8.1. tactics

tactic::= + = term [auto_params | using term | using once term | proof] [done] +
 |assume id : + sterm
 |by induction hypothesis we know term ( id )
 |case id [( id : term )] … [( id : term )]
 |conclude term
 |justification done
 |justification let id + : term such that term + ( id )
 |let id = term
 |obtain id term
 |suppose term ( id + )
 | + that is equivalent to term +
 |the thesis becomes term
 |we need to prove term + [(id + )] +
 |we proceed by cases on term to prove term
 |we proceed by induction on term to prove term
 |justification we proved term + [( id + )] +


+ +

\ No newline at end of file diff --git a/matita/matita/help/C/html/sec_gettingstarted.html b/matita/matita/help/C/html/sec_gettingstarted.html new file mode 100644 index 000000000..5644f20c3 --- /dev/null +++ b/matita/matita/help/C/html/sec_gettingstarted.html @@ -0,0 +1,30 @@ + +Chapter 3. Getting started

Chapter 3. Getting started

If you are already familiar with the Calculus of (Co)Inductive + Constructions (CIC) and with interactive theorem provers with procedural + proof languages (expecially Coq), getting started with Matita is relatively + easy. You just need to learn how to type Unicode symbols, how to browse + and search the library and how to author a proof script.

How to type Unicode symbols

Unicode characters can be typed in several ways:

  • Using the "Ctrl+Shift+Unicode code" standard Gnome shortcut. E.g. Ctrl+Shift+3a9 generates "Ω".

  • Typing the ligature "\name" where "name" + is a standard Unicode or LaTeX name for the character or an + ASCII art resembling the shape of the character. Pressing + "Alt+L" or Space or Enter just after the last character + of the name converts + the ligature to the Unicode symbol. + E.g. "\Delta" followed by Alt+L generates + "Δ", while pressing Alt-L after "=>" generates + "⇒"

  • Typing a symbol and rotating trough its equivalence class + with Alt-L. E.g. pressing Alt-L after an "l" + generates a "λ", while pressing Alt-L after an + "→" once generates "⇉" and pressing + Alt-L again generates "⇒". +

+ The comprehensive list of symbols names or shortcuts and their equivalence + classes is available clicking on the "TeX/UTF-8 table" item + of the "View" menu. +

+ There is a memory mechanism related to equivalence classes that + remembers your last choice, making it the default one. For example, + if you use "_" to generate "⎻" + (that is the third choice, after "⎽" and "⎼"), + the next time you type Alt-L + after "_" you immediately get "⎻". +

\ No newline at end of file diff --git a/matita/matita/help/C/html/sec_install.html b/matita/matita/help/C/html/sec_install.html new file mode 100644 index 000000000..51e24426a --- /dev/null +++ b/matita/matita/help/C/html/sec_install.html @@ -0,0 +1,84 @@ + +Chapter 2. Installation

Chapter 2. Installation

+ Matita is a quite complex piece of software, we thus recommend + you to either install al precompiled version or use the LiveCD. + If you are running Debian GNU/Linux (or one of its derivatives + like Ubuntu), you can install matita typing +

 aptitude install matita matita-standard-library 

+ If you are running MacOSX or Windows, give the LiveCD a try before + trying to compile Matita from its sources. +

Using the LiveCD

+ In the following, we will assume you have installed + virtualbox + for your platform and downloaded the .iso image of the LiveCD +

Creating the virtual machine

+ Click on the New button, a wizard will popup, you should ask to + its questions as follows +

  1. + The name should be something like Matita, but can + be any meaningful string. +

  2. + The OS type should be Debian +

  3. + The base memory size can be 256 mega bytes, but you may + want to increase it if you are going to work with huge + formalizations. +

  4. + The boot hard disk should be no hard disk. It may complain + that this choice is not common, but it is right, since you + will run a LiveCD you do not need to emulate an hard drive. +

+ Now that you are done with the creation of the virtual machine, + you need to insert the LiveCD in the virtual cd reader unit. +

Figure 2.1. The brand new virtual machine

The breand new virtual machine

+ Click on CD/DVD-ROM (that should display something like: Not mouted). + Then click on mount CD/DVD drive and select the ISO image + option. The combo-box should display no available image, you need to + add the ISO image you downloaded from the Matita website clicking on + the button near the combo-box. + to start the virtual machine. +

Figure 2.2. Mounting an ISO image

Mounting an ISO image

+ In the newely opened window click + the Add button +

Figure 2.3. Choosing the ISO image

Choosing the ISO image

+ A new windows will pop-up: choose the file you downloaded + (usually matita-version.iso) and click open. +

Figure 2.4. Choosing the ISO image

Choosing the ISO image

+ Now select the new entry you just added as the CD image + you want to insert in the virtual CD drive. + You are now ready to start the virtual machine. +

Sharing files with the real PC

+ The virtual machine Matita will run on, has its own file + system, that is completely separated from the one of your + real PC (thus your files are not available in the + emulated environment) and moreover it is a non-presistent + file system (thus you data is lost every time you + turn off the virtual machine). +

+ Virtualbox allows you to share a real folder (beloging + to your real PC) with the emulated computer. Since this + folder is persistent, you are encouraged to put + your work there, so that it is not lost when the virtual + machine is powered off. +

+ The first step to set up a shared folder is to click + on the shared folder configuration entry + of the virtual machine. +

Figure 2.5. Set up a shared folder

Shared folder

+ Then you shuld add a shared folder clicking on the + plus icon on the right +

Figure 2.6. Choosing the folder to share

Shared folder

+ Then you have to specify the real PC folder you want to share + and name it. A reasonable folder to share is /home on + a standard Unix system, while /Users on MaxOSX. + The name you give to the share is important, you should + remember it. +

Figure 2.7. Naming the shared folder

Shared folder

+ Once your virtual machine is up and running, you can + mount (that meand have access to) the shared folder + by clicking on the Mount VirtualBox share icon, and typing + the name of the share. +

Figure 2.8. Using it from the virtual machine

Shared folder at work

+ A window will then pop-up, and its content will be the + the content of the real PC folder. +

\ No newline at end of file diff --git a/matita/matita/help/C/html/sec_intro.html b/matita/matita/help/C/html/sec_intro.html new file mode 100644 index 000000000..a967fff1a --- /dev/null +++ b/matita/matita/help/C/html/sec_intro.html @@ -0,0 +1,7 @@ + +Chapter 1. Introduction

Chapter 1. Introduction

Table of Contents

Features
Matita vs Coq

Features

Matita is an interactive theorem prover + (or proof assistant) with the following characteristics:

  • It is based on a variant of the Calculus of (Co)Inductive Constructions (CIC). CIC is also the logic of the Coq proof assistant.

  • It adopts a procedural proof language, but it has a new set of small step tacticals that improve proof structuring and debugging.

  • It has a stand-alone graphical user interface (GUI) inspired by +CtCoq/Proof General. The GUI is implemented according to the state +of the art. In particular:

    • It is based and fully integrated with Gtk/Gnome.

    • An on-line help can be browsed via the Gnome documentation browser.

    • Mathematical formulae are rendered via Unicode.

  • It allows the use of the typical ambiguous mathematical notation by means of a disambiguating parser.

\ No newline at end of file diff --git a/matita/matita/help/C/html/sec_license.html b/matita/matita/help/C/html/sec_license.html new file mode 100644 index 000000000..72ca1d932 --- /dev/null +++ b/matita/matita/help/C/html/sec_license.html @@ -0,0 +1,13 @@ + +Chapter 10. License

Chapter 10. License

Both Matita and this document are part of HELM, an Hypertextual, + Electronic Library of Mathematics, developed at the Computer Science + Department, University of Bologna, Italy.

HELM is free software; you can redistribute it and/or modify it under + the terms of the GNU General Public License as published by the Free Software + Foundation; either version 2 of the License, or (at your option) any later + version.

HELM is distributed in the hope that it will be useful, but WITHOUT ANY + WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + A PARTICULAR PURPOSE. See the GNU General Public License for more details. +

You should have received a copy of the GNU General Public License along + with HELM; if not, write to the Free Software Foundation, Inc., 51 Franklin + St, Fifth Floor, Boston, MA 02110-1301 USA. A copy of the GNU General + Public License is available at this link.

\ No newline at end of file diff --git a/matita/matita/help/C/html/sec_tacticals.html b/matita/matita/help/C/html/sec_tacticals.html new file mode 100644 index 000000000..f79c77c49 --- /dev/null +++ b/matita/matita/help/C/html/sec_tacticals.html @@ -0,0 +1,20 @@ + +Chapter 6. Tacticals

Chapter 6. Tacticals

Interactive proofs and definitions

+ An interactive definition is started by giving a + definition command omitting + the definiens. + An interactive proof is started by using one of the + proof commands omitting + an explicit proof term. +

An interactive proof or definition can and must be terminated by + a qed command when no more sequents are + left to prove. Between the command that starts the interactive session and + the qed command the user must provide a procedural proof script made + of tactics structured by means of + tacticals.

In the tradition of the LCF system, tacticals can be considered + higher order tactics. Their syntax is structured and they are executed + atomically. On the contrary, in Matita the syntax of several tacticals is + destructured into a sequence of tokens and tactics in such a way that is + is possible to stop execution after every single token or tactic. + The original semantics is preserved: the execution of the whole sequence + yields the result expected by the original LCF-like tactical.

\ No newline at end of file diff --git a/matita/matita/help/C/html/sec_tactics.html b/matita/matita/help/C/html/sec_tactics.html new file mode 100644 index 000000000..c4f036674 --- /dev/null +++ b/matita/matita/help/C/html/sec_tactics.html @@ -0,0 +1,31 @@ + +Chapter 7. Tactics

Chapter 7. Tactics

Quick reference card

+

Table 7.1. tactics

tactic::=@ sterm
 |applyS sterm auto_params
 | + + assumption + +
 |/auto_params/.
 | + cases + term pattern +
 |change pattern with sterm
 | + -id +
 |% [nat] [{sterm…}]
 |cut sterm
 | + * + [as id] +
 |destruct + [(id…)] [skip (id…)]
 |elim sterm pattern
 |generalize pattern
 | + # + + id + +
 | + #_ +
 |inversion sterm
 | + lapply + sterm +
 |letin id ≝ sterm
 | + ## +
 |normalize pattern + [nodelta]
 |[<|>] sterm pattern
 |whd pattern [nodelta]


+ +

\ No newline at end of file diff --git a/matita/matita/help/C/html/sec_terms.html b/matita/matita/help/C/html/sec_terms.html new file mode 100644 index 000000000..151c909c8 --- /dev/null +++ b/matita/matita/help/C/html/sec_terms.html @@ -0,0 +1,53 @@ + +Chapter 4. Syntax

Chapter 4. Syntax

To describe syntax in this manual we use the following conventions:

  1. Non terminal symbols are emphasized and have a link to their + definition. E.g.: term

  2. Terminal symbols are in bold. E.g.: + theorem

  3. Optional sequences of elements are put in square brackets. + E.g.: [in term]

  4. Alternatives are put in square brakets and they are + separated by vertical bars. E.g.: [<|>]

  5. Repetitions of a sequence of elements are given by putting the + sequence in square brackets, that are followed by three dots. The empty + sequence is a valid repetition. + E.g.: [and term]…

  6. Characters belonging to a set of characters are given + by listing the set elements in square brackets. Hyphens are used to + specify ranges of characters in the set. + E.g.: [a-zA-Z0-9_-]

Terms & co.

Lexical conventions

Table 4.1. qstring

qstring::="〈〈any sequence of characters excluded "〉〉" 

Table 4.2. id

id::=〈〈any sequence of letters, underscores or valid XML digits prefixed by a latin letter ([a-zA-Z]) and post-fixed by a possible empty sequence of decorators ([?'`])〉〉 

Table 4.3. nat

nat::=〈〈any sequence of valid XML digits〉〉 

Table 4.4. char

char::=[a-zA-Z0-9_-] 

Table 4.5. uri-step

uri-step::=char[char]… 

Table 4.6. uri

uri::=[cic:/|theory:/]uri-step[/uri-step]….id[.id]…[#xpointer(nat/nat[/nat]…)] 

Table 4.7. csymbol

csymbol::='id 

Table 4.8. symbol

symbol::=〈〈None of the above〉〉 

Terms

+

Table 4.9. Terms

term::=stermsimple or delimited term
 |term termapplication
 |λargs.termλ-abstraction
 |Πargs.termdependent product meant to define a datatype
 |∀args.termdependent product meant to define a proposition
 |term → termnon-dependent product (logical implication or function space)
 |let [id|(id: term)] ≝ term in termlocal definition
 | + let + [co]rec + rec_def + (co)recursive definitions
   + [and rec_def]… +  
   + in term +  
 |…user provided notation
rec_def::= + id [id|_|(id[,id]… :term)]… +  
   + [on id] + [: term] + ≝ term] +  


+ +

Table 4.10. Simple terms

sterm::=(term) 
 |id[\subst[ + id≔term + [;id≔term]… + ]] + identifier with optional explicit named substitution
 |uria qualified reference
 |Propthe impredicative sort of propositions
 |Setthe impredicate sort of datatypes
 |CPropone fixed predicative sort of constructive propositions
 |Typeone predicative sort of datatypes
 |?implicit argument
 |?n + [[ + [_|term]… + ]]metavariable
 |match term + [ in id ] + [ return term ] + with + case analysis
   + [ + match_branch[|match_branch]… + ] +  
 |(term:term)cast
 |…user provided notation at precedence 90


+ +

Table 4.11. Arguments

args::= + _[: term] + ignored argument
 | + (_[: term]) + ignored argument
 |id[,id]…[: term] 
 |(id[,id]…[: term]) 
args2::=id 
 |(id[,id]…: term) 


+ +

Table 4.12. Pattern matching

match_branch::=match_pattern ⇒ term 
match_pattern::=id0-ary constructor
 |(id id [id]…)n-ary constructor (binds the n arguments)
 |id id [id]…n-ary constructor (binds the n arguments)
 |_any remaining constructor (ignoring its arguments)


+

\ No newline at end of file diff --git a/matita/matita/help/C/html/sec_usernotation.html b/matita/matita/help/C/html/sec_usernotation.html new file mode 100644 index 000000000..804e99eff --- /dev/null +++ b/matita/matita/help/C/html/sec_usernotation.html @@ -0,0 +1,36 @@ + +Chapter 5. Extending the syntax

Chapter 5. Extending the syntax

Table of Contents

notation
interpretation

notation

notation usage "presentation" associativity with precedence p for content

+

Synopsis:

notation + [usage] "notation_lhs" [associativity] with precedence nat + for + notation_rhs +

Action:

Declares a mapping between the presentation + AST presentation and the content AST + content. The declared presentation AST fragment + presentation is at precedence level + p. The precedence level is used to determine where + parentheses must be inserted. In particular, the content AST fragment + content is actually a pattern, since it contains + placeholders (variables) for sub-ASTs. Every placeholder for a term + is given an expected precedence level. Parentheses must be inserted + around sub-ASTs having a precedence level strictly smaller than the + expected one.

If presentation describes a binary + infix operator and if no precedence level is explicitly given for the + operator arguments, an associativity declaration + can be given to automatically choose the right level for the operands. + Otherwise, no associativity can be given.

If direction is + omitted, the mapping is bi-directional and is used both during + parsing and pretty-printing of terms. If direction + is >, the mapping is used only during parsing; + if it is <, it is used only during + pretty-printing. Thus it is possible to use simple notations to type + for writing the term, and nicer ones for rendering it.

Notation arguments:

Table 5.1. usage

usage::=<Only for pretty-printing
 |>Only for parsing

Table 5.2. associativity

associativity::=left associativeLeft associative
 |right associativeRight associative
 |non associativeNon associative (default)

Table 5.3. notation_rhs


Table 5.4. unparsed_ast

unparsed_ast::=@{enriched_term}A content level AST (a term which is parsed, but not disambiguated).
 |@id@id is just an abbreviation for @{id}
 |@csymbol@'symbol is just an abbreviation for @{'symbol}

Table 5.5. enriched_term

enriched_term::=〈〈A term that may contain occurrences of unparsed_meta, even as variable names in binders, and occurrences of csymbol〉〉TODO

Table 5.6. unparsed_meta

unparsed_meta::=${level2_meta}TODO
 |$id$id is just an abbreviation for ${id}
 |$_$_ is just an abbreviation for ${_}

Table 5.7. level2_meta

level2_meta::=unparsed_astTODO
 |term nat idTODO
 |number idTODO
 |ident idTODO
 |fresh idTODO
 |anonymousTODO
 |idTODO
 |fold [left|right] level2_meta rec id level2_metaTODO
 |default level2_meta level2_metaTODO
 |if level2_meta then level2_meta else level2_metaTODO
 |failTODO

Table 5.8. notation_lhs

notation_lhs::=layout [layout]… 

Table 5.9. layout

layout::=layout \sub layoutSubscript
 |layout \sup layoutSuperscript
 |layout \below layout 
 |layout \above layout 
 |layout \over layout 
 |layout \atop layout 
 |layout \frac layoutFraction
 |\infrule layout layout layoutInference rule (premises, conclusion, rule name)
 |\sqrt layoutSquare root
 |\root layout \of layoutGeneralized root
 |hbox ( layout [layout]… )Horizontal box
 |vbox ( layout [layout]… )Vertical box
 |hvbox ( layout [layout]… )Horizontal and vertical box
 |hovbox ( layout [layout]… )Horizontal or vertical box
 |breakBreakable space
 |( layout [layout]… )Group
 |idPlaceholder for a term with no explicit precedence
 |term nat idPlaceholder for a term with explicit expected precedence
 |number idPlaceholder for a natural number
 |ident idPlaceholder for an identifier
 |literalLiteral
 |opt layoutOptional layout (it can be omitted for parsing)
 |list0 layout + [sep literal]List of layouts separated by sep (default: + any blank)
 |list1 layout + [sep literal]Non empty list of layouts separated by sep + (default: any blank)
 |mstyle id value (layout) + Style attributes like color #ff0000
 |mpadded id value (layout) + padding attributes like width -150%
 |maction (layout) + [ (layout) … ] + Alternative notations (output only)

Table 5.10. literal

literal::=symbolUnicode symbol
 |natNatural number (a constant)
 |'id'New keyword for the lexer

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_andelim.html b/matita/matita/help/C/html/tac_andelim.html new file mode 100644 index 000000000..10d9b1010 --- /dev/null +++ b/matita/matita/help/C/html/tac_andelim.html @@ -0,0 +1,11 @@ + +we have

we have

justification we have A (H1) and B (H2) +

+

Synopsis:

justification we have term + ( id ) and term + ( id )

Pre-condition:

+ None. +

Action:

+ It applies the left multiplicative introduction rule for the conjunction on the formula A ∧ B (in Natural Deduction this corresponds to the elimination rule for the conjunction). +

New sequent to prove:

A new sequent with A ∧ B as the conclusion is opened and then immediately closed using the given justification. A new sequent with the conclusion of the sequent on which this tactic was applied is opened, and two new hypotheses H1 : A and H2 : B are added to the context.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_apply.html b/matita/matita/help/C/html/tac_apply.html new file mode 100644 index 000000000..f03834bcd --- /dev/null +++ b/matita/matita/help/C/html/tac_apply.html @@ -0,0 +1,12 @@ + +apply

apply

@t

+

Synopsis:

@ sterm

Pre-conditions:

t must have type + T1 → … → + Tn → G + where G can be unified with the conclusion + of the current sequent.

Action:

It closes the current sequent by applying t to n implicit arguments (that become new sequents).

New sequents to prove:

It opens a new sequent for each premise + Ti that is not + instantiated by unification. Ti is + the conclusion of the i-th new sequent to + prove.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_applyS.html b/matita/matita/help/C/html/tac_applyS.html new file mode 100644 index 000000000..c0cf500b2 --- /dev/null +++ b/matita/matita/help/C/html/tac_applyS.html @@ -0,0 +1,25 @@ + +applyS

applyS

applyS t auto_params

+

Synopsis:

applyS sterm auto_params

Pre-conditions:

t must have type + T1 → ... → + Tn → G.

Action:

applyS is useful when + apply fails because the current goal + and the conclusion of the applied theorems are extensionally + equivalent up to instantiation of metavariables, but cannot + be unified. E.g. the goal is P(n*O+m) and + the theorem to be applied proves ∀m.P(m+O). +

+ It tries to automatically rewrite the current goal using + auto paramodulation + to make it unifiable with G. + Then it closes the current sequent by applying + t to n + implicit arguments (that become new sequents). + The auto_params parameters are passed + directly to auto paramodulation. +

New sequents to prove:

It opens a new sequent for each premise + Ti that is not + instantiated by unification. Ti is + the conclusion of the i-th new sequent to + prove.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_assume.html b/matita/matita/help/C/html/tac_assume.html new file mode 100644 index 000000000..3c3979b6c --- /dev/null +++ b/matita/matita/help/C/html/tac_assume.html @@ -0,0 +1,11 @@ + +assume

assume

assume x : T

+

Synopsis:

assume id : + sterm

Pre-conditions:

+ The conclusion of the sequent to prove must be a universal quantification. +

Action:

+ It applies the right introduction rule for the universal quantifier, closing the current sequent (in Natural Deduction this corresponds to the introduction rule for the quantifier). +

New sequents to prove:

+ It opens a new sequent to prove the quantified subformula adding x : T to the hypotheses. +

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_assumption.html b/matita/matita/help/C/html/tac_assumption.html new file mode 100644 index 000000000..d971f84d8 --- /dev/null +++ b/matita/matita/help/C/html/tac_assumption.html @@ -0,0 +1,5 @@ + +assumption

assumption

assumption

+

Synopsis:

assumption

Pre-conditions:

There must exist an hypothesis whose type can be unified with + the conclusion of the current sequent.

Action:

It closes the current sequent exploiting an hypothesis.

New sequents to prove:

None

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_auto.html b/matita/matita/help/C/html/tac_auto.html new file mode 100644 index 000000000..e85c7e96f --- /dev/null +++ b/matita/matita/help/C/html/tac_auto.html @@ -0,0 +1,12 @@ + +auto

auto

/params/

+

Synopsis:

/auto_params/.

Pre-conditions:

None, but the tactic may fail finding a proof if every + proof is in the search space that is pruned away. Pruning is + controlled by the optional params. + Moreover, only lemmas whose type signature is a subset of the + signature of the current sequent are considered. The signature of + a sequent is essentially the set of constats appearing in it. +

Action:

It closes the current sequent by repeated application of + rewriting steps (unless paramodulation is + omitted), hypothesis and lemmas in the library.

New sequents to prove:

None

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_bydone.html b/matita/matita/help/C/html/tac_bydone.html new file mode 100644 index 000000000..f2e34e1d4 --- /dev/null +++ b/matita/matita/help/C/html/tac_bydone.html @@ -0,0 +1,4 @@ + +done

done

justification done

+

Synopsis:

justification done

Pre-condition:

The user is proving a sequent which was opened with the tactic we need to prove, or the user is proving a sequent which was opened with the tactic we proceed by induction/cases on, or the user is proving a chain of equalities that was started with either the tactic conclude or obtain.

Action:

It closes the current sequent with the given justification.

New sequents to prove:

None.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_byinduction.html b/matita/matita/help/C/html/tac_byinduction.html new file mode 100644 index 000000000..a1f038e58 --- /dev/null +++ b/matita/matita/help/C/html/tac_byinduction.html @@ -0,0 +1,4 @@ + +by induction hypothesis we know

by induction hypothesis we know

by induction hypothesis we know P (id)

+

Synopsis:

by induction hypothesis we know term ( id )

Pre-condition:

The user must have started proving a case for a proof by induction/case-analysis.

Action:

It introduces the inductive hypothesis.

New sequents to prove:

None.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_bytermweproved.html b/matita/matita/help/C/html/tac_bytermweproved.html new file mode 100644 index 000000000..ab5f4b1d8 --- /dev/null +++ b/matita/matita/help/C/html/tac_bytermweproved.html @@ -0,0 +1,14 @@ + +we proved

we proved

justification we proved T [(id)]

+

Synopsis:

justification we proved term + [( id + )] +

Pre-condition:

+ None. +

Action:

+ If id is supplied, a logical cut on T is made. Otherwise, if T is identical to the current conclusion, it allows the user to start a chain of reductions on the conclusion with the tactic that is equivalent to. +

New sequent to prove:

+ If id is supplied, a new sequent with T as the conclusion is opened and then immediately closed using the supplied justification. A new sequent with the conclusion of the sequent on which this tactic was applied is opened, and a new hypotesis T is added to the context, with name id. + If id is not supplied, no new sequents are opened. +

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_case.html b/matita/matita/help/C/html/tac_case.html new file mode 100644 index 000000000..e0327b094 --- /dev/null +++ b/matita/matita/help/C/html/tac_case.html @@ -0,0 +1,4 @@ + +case

case

case id (id1:T1) … (idn:Tn)

+

Synopsis:

case id [( id : term )] … [( id : term )]

Pre-condition:

The user must have started a proof by induction/cases that has not been concluded yet, id must be a constructor for the inductive type of the term under induction/case-analysis, and the case must not have already been proved.

Action:

It starts the proof for the case id, where id1:T1,…,idn:Tn are the arguments of the constructor, each declared with its type.

New sequents to prove:

The sequent for the case id.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_cases.html b/matita/matita/help/C/html/tac_cases.html new file mode 100644 index 000000000..646281d84 --- /dev/null +++ b/matita/matita/help/C/html/tac_cases.html @@ -0,0 +1,23 @@ + +cases

cases

+ cases t pattern +

+

Synopsis:

+ cases + term pattern +

Pre-conditions:

+ t must inhabit an inductive type +

Action:

+ It proceed by cases on t. The new generated + hypothesis in each branch are named according to + hyps. + The elimintation predicate is restricted by + pattern. In particular, if some hypothesis + is listed in pattern, the hypothesis is + generalized and cleared before proceeding by cases on + t. Currently, we only support patterns of the + form H1 … Hn ⊢ %. This limitation will be lifted in the future. +

New sequents to prove:

One new sequent for each constructor of the type of + t. Each sequent has a new hypothesis for + each argument of the constructor.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_change.html b/matita/matita/help/C/html/tac_change.html new file mode 100644 index 000000000..e4d2fa648 --- /dev/null +++ b/matita/matita/help/C/html/tac_change.html @@ -0,0 +1,9 @@ + +change

change

change patt with t

+

Synopsis:

change pattern with sterm

Pre-conditions:

Each subterm matched by the pattern must be convertible + with the term t disambiguated in the context + of the matched subterm.

Action:

It replaces the subterms of the current sequent matched by + patt with the new term t. + For each subterm matched by the pattern, t is + disambiguated in the context of the subterm.

New sequents to prove:

None.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_clear.html b/matita/matita/help/C/html/tac_clear.html new file mode 100644 index 000000000..0f41adbee --- /dev/null +++ b/matita/matita/help/C/html/tac_clear.html @@ -0,0 +1,12 @@ + +clear

clear

-H

+

Synopsis:

+ -id +

Pre-conditions:

+ H must be an hypothesis of the + current sequent to prove. +

Action:

+ It hides the hypothesis H + from the current sequent. +

New sequents to prove:

None

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_conclude.html b/matita/matita/help/C/html/tac_conclude.html new file mode 100644 index 000000000..de312a7b8 --- /dev/null +++ b/matita/matita/help/C/html/tac_conclude.html @@ -0,0 +1,6 @@ + +conclude

conclude

conclude t1

+

Synopsis:

conclude term

Pre-condition:

+ The current conclusion must be an equality t1 = tk +

Action:

It starts an equality chain on the conclusion. It allows the user to apply the tactic = to continue the chain.

New sequent to prove:

None.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_constructor.html b/matita/matita/help/C/html/tac_constructor.html new file mode 100644 index 000000000..f0818bbbf --- /dev/null +++ b/matita/matita/help/C/html/tac_constructor.html @@ -0,0 +1,11 @@ + +constructor

constructor

%n {args}

+

Synopsis:

% [nat] [{sterm…}]

Pre-conditions:

The conclusion of the current sequent must be + an inductive type or the application of an inductive type with + at least n constructors.

Action:

It applies the n-th constructor of the + inductive type of the conclusion of the current sequent to + the arguments args. + If n is omitted, it defaults to 1.

New sequents to prove:

It opens a new sequent for each premise of the constructor + that can not be inferred by unification. For more details, + see the apply tactic.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_cut.html b/matita/matita/help/C/html/tac_cut.html new file mode 100644 index 000000000..7484b50ae --- /dev/null +++ b/matita/matita/help/C/html/tac_cut.html @@ -0,0 +1,8 @@ + +cut

cut

cut P

+

Synopsis:

cut sterm

Pre-conditions:

P must be a type.

Action:

It closes the current sequent.

New sequents to prove:

It opens two new sequents. The first one has conclusion + P → G where G is the + old conclusion. + The second sequent has conclusion P and + hypotheses the hypotheses of the current sequent to prove.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_decompose.html b/matita/matita/help/C/html/tac_decompose.html new file mode 100644 index 000000000..69618097b --- /dev/null +++ b/matita/matita/help/C/html/tac_decompose.html @@ -0,0 +1,18 @@ + +decompose

decompose

+ * as H +

+

Synopsis:

+ * + [as id] +

Pre-conditions:

The current conclusion must be of the form + T → G where I is + an inductive type applied to its arguments, if any.

Action:

+ It introduces a new hypothesis H of type + T. Then it proceeds by cases over + H. Finally, if the name H + is not specified, it clears the new hypothesis from all contexts. +

New sequents to prove:

+ The ones generated by case analysis. +

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_destruct.html b/matita/matita/help/C/html/tac_destruct.html new file mode 100644 index 000000000..223234a83 --- /dev/null +++ b/matita/matita/help/C/html/tac_destruct.html @@ -0,0 +1,15 @@ + +destruct

destruct

destruct (H0 ... Hn) skip (K0 ... Km)

+

Synopsis:

destruct + [(id…)] [skip (id…)]

Pre-conditions:

Each hypothesis Hi must be either a Leibniz or a John Major equality where the two sides of the equality are possibly applied constructors of an inductive type.

Action:

The tactic recursively compare the two sides of each equality + looking for different constructors in corresponding position. + If two of them are found, the tactic closes the current sequent + by proving the absurdity of p. Otherwise + it adds a new hypothesis for each leaf of the formula that + states the equality of the subformulae in the corresponding + positions on the two sides of the equality. If the newly + added hypothesis is an equality between a variable and a term, + the variable is substituted for the term everywhere in the + sequent, except for the hypotheses Kj, and it is then cleared from the list of hypotheses. +

New sequents to prove:

None.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_elim.html b/matita/matita/help/C/html/tac_elim.html new file mode 100644 index 000000000..b2e7089d4 --- /dev/null +++ b/matita/matita/help/C/html/tac_elim.html @@ -0,0 +1,12 @@ + +elim

elim

elim t pattern

+

Synopsis:

elim sterm pattern

Pre-conditions:

t must inhabit an inductive type. +

Action:

It proceeds by cases on the values of t, + according to the most appropriate elimination principle for + the current goal. + The induction predicate is restricted by + pattern. In particular, if some hypothesis + is listed in pattern, the hypothesis is + generalized and cleared before eliminating t +

New sequents to prove:

It opens one new sequent for each case.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_existselim.html b/matita/matita/help/C/html/tac_existselim.html new file mode 100644 index 000000000..939f714fe --- /dev/null +++ b/matita/matita/help/C/html/tac_existselim.html @@ -0,0 +1,11 @@ + +let such that

let such that

justification let x:T such that P (H) +

+

Synopsis:

justification let id + : term such that term + ( id )

Pre-condition:

+ None. +

Action:

+ It applies the left introduction rule of the existential quantifier on the formula ∃ x. P(x) (in Natural Deduction this corresponds to the elimination rule for the quantifier). +

New sequent to prove:

A new sequent with ∃ x. P(x) as the conclusion is opened and then immediately closed using the given justification. A new sequent with the conclusion of the sequent on which this tactic was applied is opened, and two new hypotheses x : T and H : P are added to the context.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_generalize.html b/matita/matita/help/C/html/tac_generalize.html new file mode 100644 index 000000000..bfe134dcb --- /dev/null +++ b/matita/matita/help/C/html/tac_generalize.html @@ -0,0 +1,13 @@ + +generalize

generalize

generalize patt

+

Synopsis:

generalize pattern

Pre-conditions:

All the terms matched by patt must be + convertible and close in the context of the current sequent.

Action:

It closes the current sequent by applying a stronger + lemma that is proved using the new generated sequent.

New sequents to prove:

It opens a new sequent where the current sequent conclusion + G is generalized to + ∀x.G{x/t} where {x/t} + is a notation for the replacement with x of all + the occurrences of the term t matched by + patt. If patt matches no + subterm then t is defined as the + wanted part of the pattern.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_intro.html b/matita/matita/help/C/html/tac_intro.html new file mode 100644 index 000000000..6c09618e2 --- /dev/null +++ b/matita/matita/help/C/html/tac_intro.html @@ -0,0 +1,9 @@ + +intro

intro

#H

+

Synopsis:

#id

Pre-conditions:

The conclusion of the sequent to prove must be an implication + or a universal quantification.

Action:

It applies the right introduction rule for implication, + closing the current sequent.

New sequents to prove:

It opens a new sequent to prove adding to the hypothesis + the antecedent of the implication and setting the conclusion + to the consequent of the implicaiton. The name of the new + hypothesis is H.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_intro_clear.html b/matita/matita/help/C/html/tac_intro_clear.html new file mode 100644 index 000000000..21ce7a54a --- /dev/null +++ b/matita/matita/help/C/html/tac_intro_clear.html @@ -0,0 +1,7 @@ + +intro_clear

intro_clear

#_

+

Synopsis:

#_

Pre-conditions:

The conclusion of the sequent to prove must be an implication. +

Action:

It applies the ``a fortiori'' rule for implication, + closing the current sequent.

New sequents to prove:

It opens a new sequent whose conclusion is the conclusion + of the implication of the original sequent.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_inversion.html b/matita/matita/help/C/html/tac_inversion.html new file mode 100644 index 000000000..8e4d54ffa --- /dev/null +++ b/matita/matita/help/C/html/tac_inversion.html @@ -0,0 +1,13 @@ + +inversion

inversion

inversion t

+

Synopsis:

inversion sterm

Pre-conditions:

The type of the term t must be an inductive + type or the application of an inductive type.

Action:

It proceeds by cases on t paying attention + to the constraints imposed by the actual "right arguments" + of the inductive type.

New sequents to prove:

It opens one new sequent to prove for each case in the + definition of the type of t. With respect to + a simple elimination, each new sequent has additional hypotheses + that states the equalities of the "right parameters" + of the inductive type with terms originally present in the + sequent to prove. It uses either Leibniz or John Major equality + for the new hypotheses, according to the included files.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_lapply.html b/matita/matita/help/C/html/tac_lapply.html new file mode 100644 index 000000000..90cf83c61 --- /dev/null +++ b/matita/matita/help/C/html/tac_lapply.html @@ -0,0 +1,17 @@ + +lapply

lapply

+ lapply t +

+

Synopsis:

+ lapply + sterm +

Pre-conditions:

None.

Action:

+ It generalizes the conclusion of the current goal + adding as a premise the type of t, + closing the current goal. +

New sequents to prove:

+ The new sequent has conclusion T → G where + T is the type of t + and G the old conclusion. +

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_let.html b/matita/matita/help/C/html/tac_let.html new file mode 100644 index 000000000..57fb71050 --- /dev/null +++ b/matita/matita/help/C/html/tac_let.html @@ -0,0 +1,4 @@ + +letin

letin

let x := T

+

Synopsis:

let id = term

Pre-condition:

None

Action:

It adds a new local definition x := T to the context of the sequent to prove.

New sequents to prove:

None.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_letin.html b/matita/matita/help/C/html/tac_letin.html new file mode 100644 index 000000000..278542ffa --- /dev/null +++ b/matita/matita/help/C/html/tac_letin.html @@ -0,0 +1,5 @@ + +letin

letin

letin x ≝ t

+

Synopsis:

letin id ≝ sterm

Pre-conditions:

None.

Action:

It adds to the context of the current sequent to prove a new + definition x ≝ t.

New sequents to prove:

None.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_normalize.html b/matita/matita/help/C/html/tac_normalize.html new file mode 100644 index 000000000..60cf39ffd --- /dev/null +++ b/matita/matita/help/C/html/tac_normalize.html @@ -0,0 +1,7 @@ + +normalize

normalize

normalize patt nodelta

+

Synopsis:

normalize pattern + [nodelta]

Pre-conditions:

None.

Action:

It replaces all the terms matched by patt + with their βδιζ-normal form. If nodelta is + specified, δ-expansions are not performed.

New sequents to prove:

None.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_obtain.html b/matita/matita/help/C/html/tac_obtain.html new file mode 100644 index 000000000..c26c009ae --- /dev/null +++ b/matita/matita/help/C/html/tac_obtain.html @@ -0,0 +1,6 @@ + +obtain

obtain

obtain H t1

+

Synopsis:

obtain id term

Pre-condition:

+ None. +

Action:

It starts an equality chain t1 = ?, which, when concluded, will be added to hypoteses of the current sequent. It allows the user to apply the tactic = to continue the chain.

New sequent to prove:

A new sequent for t1 = ? is opened, a new sequent for ? is opened, and a new sequent with the conclusion of the sequent on which this tactic was applied is opened, with H: t1 = ? added to its hypotheses. This hypotesis will be changed when the equality chain is concluded with H: t1 = tk, where tk is the last term of the equality chain. The goal for ? can be safely ignored, as it will be automatically closed when the equality chain is concluded.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_rewrite.html b/matita/matita/help/C/html/tac_rewrite.html new file mode 100644 index 000000000..dc43ad673 --- /dev/null +++ b/matita/matita/help/C/html/tac_rewrite.html @@ -0,0 +1,12 @@ + +rewrite

rewrite

> p patt

+

Synopsis:

[<|>] sterm pattern

Pre-conditions:

p must be the proof of an equality, + possibly under some hypotheses.

Action:

It looks in every term matched by patt + for all the occurrences of the + left hand side of the equality that p proves + (resp. the right hand side if < is used). + Every occurence found is replaced with + the opposite side of the equality.

New sequents to prove:

It opens one new sequent for each hypothesis of the + equality proved by p that is not closed + by unification.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_rewrite_step.html b/matita/matita/help/C/html/tac_rewrite_step.html new file mode 100644 index 000000000..3875796c8 --- /dev/null +++ b/matita/matita/help/C/html/tac_rewrite_step.html @@ -0,0 +1,12 @@ + +=

=

= t2 justification

+

Synopsis:

+ = term [auto_params | using term | using once term | proof] [done] +

Pre-condition:

+ The user must have started an equality chain with conclude or obtain that has not been concluded yet. +

Action:

+ It applies the transitivity of = on the left-hand-side of the current conclusion, t2, and the right-hand-side of the current conclusion, using the given justification. If done is supplied, this represents the last step in the equality chain. +

New sequent to prove:

+ A new sequent for lhs = t2 is opened and then immediately closed using the given justification. A new sequent with the conclusion t2 = rhs is opened. +

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_suppose.html b/matita/matita/help/C/html/tac_suppose.html new file mode 100644 index 000000000..7307692da --- /dev/null +++ b/matita/matita/help/C/html/tac_suppose.html @@ -0,0 +1,11 @@ + +suppose

suppose

suppose A (H)

+

Synopsis:

suppose term ( id + )

Pre-condition:

+ The conclusion of the sequent to prove must be an implication. +

Action:

+ It applies the right introduction rule for the implication, closing the current sequent (in Natural Deduction this corresponds to the introduction rule for the implication). +

New sequents to prove:

+ It opens a new sequent to prove the consequent of the implication adding the antecedent A to the hypotheses. The name of the new hypothesis is H. +

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_thatisequivalentto.html b/matita/matita/help/C/html/tac_thatisequivalentto.html new file mode 100644 index 000000000..4ef638aa6 --- /dev/null +++ b/matita/matita/help/C/html/tac_thatisequivalentto.html @@ -0,0 +1,14 @@ + +that is equivalent to

that is equivalent to

that is equivalent to t

+

Synopsis:

+ that is equivalent to term +

Pre-condition:

+ The user must have applied one of the following tactics immediately before applying this tactic: assume, suppose, we need to prove, by just we proved,the thesis becomes, that is equivalent to. +

Action:

+ If the tactic that was applied before this introduced a new hypothesis in the context, this tactic works on this hypothesis; otherwise, it works on the conclusion. Either way, if the term t is beta-equivalent to the term t1 on which this tactic is working (i.e. they can be reduced to a common term), t1 is changed with t. + + If the tactic that was applied before this tactic was that is equivalent to, and that tactic was working on a term t1, this tactic keeps working on t1. +

New sequent to prove:

+ If this tactic is working on the conclusion, a new sequent with the same hypotheses and the conclusion changed to t is opened. If this tactic is working on the last introduced hypotesis, a new sequent with the same conclusion is opened. The hypotheses of this sequent are the same, except for the one on which the tactic is working on, which is changed with t. +

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_thesisbecomes.html b/matita/matita/help/C/html/tac_thesisbecomes.html new file mode 100644 index 000000000..7529ed0a7 --- /dev/null +++ b/matita/matita/help/C/html/tac_thesisbecomes.html @@ -0,0 +1,4 @@ + +the thesis becomes

the thesis becomes

the thesis becomes P

+

Synopsis:

the thesis becomes term

Pre-condition:

The provided term P must be identical to the current conclusion.

Action:

It allows the user to start a chain of reductions on the conclusion with the tactic that is equivalent to, after stating the current conclusion.

New sequent to prove:

None.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_weneedtoprove.html b/matita/matita/help/C/html/tac_weneedtoprove.html new file mode 100644 index 000000000..d77643518 --- /dev/null +++ b/matita/matita/help/C/html/tac_weneedtoprove.html @@ -0,0 +1,8 @@ + +we need to prove

we need to prove

we need to prove T [(H)]

+

Synopsis:

we need to prove term + [(id + )] +

Pre-condition:

None.

Action:

If id is provided, it applies a logical cut on T. Otherwise, it allows the user to start a chain of reductions on the conclusion with the tactic that is equivalent to. +

New sequents to prove:

If id is supplied, a new sequent with T as the conclusion is opened, and a new sequent with the conclusion of the sequent on which this tactic was applied is opened, with H:T added to the hypotheses.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_weproceedbycases.html b/matita/matita/help/C/html/tac_weproceedbycases.html new file mode 100644 index 000000000..7b364b17c --- /dev/null +++ b/matita/matita/help/C/html/tac_weproceedbycases.html @@ -0,0 +1,6 @@ + +we proceed by cases on

we proceed by cases on

we proceed by cases on t to prove P

+

Synopsis:

we proceed by cases on term to prove term

Pre-condition:

The type of t must be an inductive type and P must be identical to the current conclusion. +

Action:

It proceeds by case-analysis on t

New sequents to prove:

It opens one new sequent for each constructor of the + type of t, each with the conclusion P instantiated for the constructor.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_weproceedbyinduction.html b/matita/matita/help/C/html/tac_weproceedbyinduction.html new file mode 100644 index 000000000..d10d151a2 --- /dev/null +++ b/matita/matita/help/C/html/tac_weproceedbyinduction.html @@ -0,0 +1,5 @@ + +we proceed by induction on

we proceed by induction on

we proceed by induction on t to prove P

+

Synopsis:

we proceed by induction on term to prove term

Pre-condition:

The type of t must be an inductive type and P must be identical to the current conclusion. +

Action:

It applies the induction principle on t to prove P.

New sequents to prove:

It opens a new sequent for each constructor of the type of t, each with the conclusion P instantiated for the constructor. For the inductive constructors (i.e. if the inductive type is T, constructors with an argument of type T), the conclusion is a logical implication, where the antecedent is the inductive hypothesis for the constructor, and the consequent is P.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tac_whd.html b/matita/matita/help/C/html/tac_whd.html new file mode 100644 index 000000000..0e0b14a97 --- /dev/null +++ b/matita/matita/help/C/html/tac_whd.html @@ -0,0 +1,5 @@ + +whd

whd

whd patt nodelta

+

Synopsis:

whd pattern [nodelta]

Pre-conditions:

None.

Action:

It replaces all the terms matched by patt + with their βδιζ-weak-head normal form. If nodelta is specified, δ-expansions are not performed.

New sequents to prove:

None.

+

\ No newline at end of file diff --git a/matita/matita/help/C/html/tacticals.html b/matita/matita/help/C/html/tacticals.html new file mode 100644 index 000000000..afff712b7 --- /dev/null +++ b/matita/matita/help/C/html/tacticals.html @@ -0,0 +1,65 @@ + +Tacticals

Tacticals

Table 6.1. proof script


Every proof step can be immediately executed.

Table 6.2. proof steps

proof-step::=LCF-tacticalThe tactical is applied to each + selected sequent. + Each new sequent becomes a selected sequent.
 |.The first + selected sequent becomes + the only one selected. All the remaining previously selected sequents + are proposed to the user one at a time when the next + "." is used. +
 |;Nothing changes. Use this proof step as a separator in + concrete syntax.
 |[Every selected sequent + becomes a sibling sequent + that constitute a branch in the proof. + Moreover, the first sequent is also selected. +
 ||Stop working on the current branch of the innermost branching + proof. + The sibling branches become the sibling + sequents and the first one is also selected. +
 |nat[,nat]…:The sibling sequents + specified by the user become the next + selected sequents. +
 |*:Every sibling branch not considered yet in the innermost + branching proof becomes a + selected sequent. +
 |skipAccept the automatically provided instantiation (not shown + to the user) for the currently selected + automatically closed sibling sequent. +
 |]Stop analyzing branches for the innermost branching proof. + Every sequent opened during the branching proof and not closed yet + becomes a selected sequent. +
 |focus nat [nat]… + Selects the sequents specified by the user. The selected sequents + must be completely closed (no new sequents left open) before doing an + "unfocus that restores + the current set of sibling branches. +
 |unfocus + Used to match the innermost + "focus" tactical + when all the sequents selected by it have been closed. + Until "unfocus" is + performed, it is not possible to progress in the rest of the + proof. +

Table 6.3. tactics and LCF tacticals

LCF-tactical::=tacticApplies the specified tactic.
 |LCF-tactical ; LCF-tacticalApplies the first tactical first and the second tactical + to each sequent opened by the first one.
 |LCF-tactical + [ + [LCF-tactical] + [| LCF-tactical]… + ] + Applies the first tactical first and each tactical in the + list of tacticals to the corresponding sequent opened by the + first one. The number of tacticals provided in the list must be + equal to the number of sequents opened by the first tactical.
 |do nat + LCF-tactical + TODO
 |repeat + LCF-tactical + TODO
 | + first [ + [LCF-tactical] + [| LCF-tactical]… + ] + TODO
 |try LCF-tacticalTODO
 | + solve [ + [LCF-tactical] + [| LCF-tactical]… + ] + TODO
 |(LCF-tactical)Used for grouping during parsing.

\ No newline at end of file diff --git a/matita/matita/help/C/html/tacticargs.html b/matita/matita/help/C/html/tacticargs.html new file mode 100644 index 000000000..4896638be --- /dev/null +++ b/matita/matita/help/C/html/tacticargs.html @@ -0,0 +1,94 @@ + +Tactic arguments

Tactic arguments

This section documents the syntax of some recurring arguments for + tactics.

pattern

Table 4.13. pattern

pattern::=in + [id[: path]]… + [⊢ path]];simple pattern
 |in match path + [in + [id[: path]]… + [⊢ path]];full pattern

Table 4.14. path

path::=〈〈any sterm without occurrences of Set, Prop, CProp, Type, id, uri and user provided notation; however, % is now an additional production for sterm〉〉

A path locates zero or more subterms of a given term by mimicking the term structure up to:

  1. Occurrences of the subterms to locate that are + represented by %.

  2. Subterms without any occurrence of subterms to locate + 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 + x+y and x*y in the + term ∀x,y:nat.x+y=1→0=x*y + (where the notation A=B hides the term + (eq T A B) for some type T). +

A simple pattern extends paths to locate + subterms in a whole sequent. In particular, the pattern + { H: p K: q ⊢ r } locates at once all the subterms + located by the pattern r in the conclusion of the + sequent and by the patterns p and + q in the hypotheses H + and K of the sequent. +

If no list of hypotheses is provided in a simple pattern, no subterm + is selected in the hypothesis. If the ⊢ p + part of the pattern is not provided, no subterm will be matched in the + conclusion if at least one hypothesis is provided; otherwise the whole + conclusion is selected. +

Finally, a full pattern is interpreted in three + steps. In the first step the match T in + part is ignored and a set S of subterms is + located as for the case of + simple patterns. In the second step the term T + is parsed and interpreted in the context of each subterm + s ∈ S. In the last term for each + s ∈ S the interpreted term T + computed in the previous step is looked for. The final set of subterms + located by the full pattern is the set of occurrences of + the interpreted T in the subterms s. +

A full pattern can always be replaced by a simple pattern, + often at the cost of increased verbosity or decreased readability.

Example: the pattern + { match x+y in ⊢ ∀_,_:?.(? ? % ?) } + locates only the first occurrence of x+y + in the sequent x,y: nat ⊢ ∀z,w:nat. (x+y) * (z+w) = + z * (x+y) + w * (x+y). The corresponding simple pattern + is { ⊢ ∀_,_:?.(? ? (? % ?) ?) }. +

Every tactic that acts on subterms of the selected sequents have + a pattern argument for uniformity. To automatically generate a simple + pattern:

  1. Select in the current goal the subterms to pass to the + tactic by using the mouse. In order to perform a multiple selection of + subterms, hold the Ctrl key while selecting every subterm after the + first one.

  2. From the contextual menu select "Copy".

  3. From the "Edit" or the contextual menu select + "Paste as pattern"

reduction-kind

Reduction kinds are normalization functions that transform a term + to a convertible but simpler one. Each reduction kind can be used both + as a tactic argument and as a stand-alone tactic.

Table 4.15. reduction-kind

reduction-kind::=normalize [nodelta]Computes the βδιζ-normal form. If nodelta + is specified, δ-expansions are not performed.
 |whd [nodelta]Computes the βδιζ-weak-head normal form. If nodelta + is specified, δ-expansions are not performed.

auto-params

Table 4.16. auto-params

auto_params::=[nat] [simple_auto_param]… + [by + [sterm… | _]] + The natural number, which defaults to 1, gives a bound to + the depth of the search tree. The terms listed is the only + knowledge base used by automation together with all indexed factual + and equational theorems in the included library. If the list of terms + is empty, only equational theorems and facts in the library are + used. If the list is omitted, it defaults to all indexed theorems + in the library. Finally, if the list is _, + the automation command becomes a macro that is expanded in a new + automation command where _ is replaced with the + list of theorems required to prove the sequent. +

Table 4.17. simple-auto-param

simple_auto_param::=width=natThe maximal width of the search tree
 |size=natThe maximal number of nodes in the proof
 |demodSimplifies the current sequent using the current set of + equations known to automation +
 |paramodTry to close the goal performing unit-equality paramodulation +
 |fast_paramodA bounded version of paramod that is granted to terminate quickly +

justification

Table 4.18. justification

justification::=using termProof term manually provided
 |auto_paramsCall automation

\ No newline at end of file diff --git a/matita/matita/help/C/index.html b/matita/matita/help/C/index.html deleted file mode 100644 index 2f15104d1..000000000 --- a/matita/matita/help/C/index.html +++ /dev/null @@ -1,9 +0,0 @@ - -Matita V0.99.5 User Manual (rev. 0.99.5 )

Matita V0.99.5 - User Manual (rev. 0.99.5 -)

Both Matita and this document are free software, you can - redistribute them and/or modify them under the terms of the GNU General - Public License as published by the Free Software Foundation. See Chapter 10, License for more information.

Revision: 0.99.5 -, 12/07/2006

\ No newline at end of file diff --git a/matita/matita/help/C/inst_from_src.html b/matita/matita/help/C/inst_from_src.html deleted file mode 100644 index dd4050c43..000000000 --- a/matita/matita/help/C/inst_from_src.html +++ /dev/null @@ -1,89 +0,0 @@ - -Installing from sources

Installing from sources

Install Matita from the sources is hard, you have been warned! -

Getting the source code

You can get the Matita source code in two ways: -

  1. go to the download - page and get the latest released source tarball;

  2. get the development sources from our - SVN repository. You will need the - components/ and - matita/ directories from the - trunk/helm/software/ directory, plus the - configure and Makefile* - stuff from the same directory.

    In this case you will need to run - autoconf before proceding with the building - instructions below.

-

Requirements

In order to build Matita from sources you will need some - tools and libraries. They are listed below. - -

Note for Debian (and derivatives) users

If you are running a - Debian GNU/Linux - distribution, - or any of its derivative like Ubuntu, - you can use APT to install all the required tools and - libraries since they are all part of the Debian archive. -

- apt-get install ocaml ocaml-findlib libgdome2-ocaml-dev liblablgtk2-ocaml-dev liblablgtkmathview-ocaml-dev liblablgtksourceview-ocaml-dev libsqlite3-ocaml-dev libocamlnet-ocaml-dev libzip-ocaml-dev libhttp-ocaml-dev ocaml-ulex08 libexpat-ocaml-dev libmysql-ocaml-dev camlp5 -

- An official debian package is going to be added to the - archive too. -

- -

Required tools and libraries

- OCaml -

the Objective Caml compiler, version 3.09 or above

- Findlib - -

OCaml package manager, version 1.1.1 or above

- OCaml - Expat -

OCaml bindings for the expat - library

- LablGTK - -

OCaml bindings for the GTK+ library - , version 2.6.0 or above

- GtkSourceView - - , - LablGtkSourceView - -

extension for the GTK+ text widget (adding the typical - features of source code editors) and its OCaml bindings

- Ocamlnet - -

collection of OCaml libraries to deal with - application-level Internet protocols and conventions

- ulex - -

Unicode lexer generator for OCaml

- CamlZip - -

OCaml library to access .gz files -

Compiling and installing

Once you get the source code the installations steps should be - quite familiar.

First of all you need to configure the build process executing - ./configure. This will check that all needed - tools and library are installed and prepare the sources for compilation - and installation.

Quite a few (optional) arguments may be passed to the - configure command line to change build time - parameters. They are listed below, together with their - default values:

configure command line - arguments

- --with-runtime-dir=dir -

- (Default: - /usr/local/matita) Runtime base directory - where all Matita stuff (executables, configuration files, - standard library, ...) will be installed -

- --enable-debug -

- (Default: disabled) Enable debugging code. - Not for the casual user. -

Then you will manage the build and install process using - make - as usual. Below are reported the targets you have to invoke in sequence - to build and install: -

make targets

world

builds components needed by Matita and Matita itself - (in bytecode or native code depending - on the availability of the OCaml native code compiler)

install

installs Matita related tools, standard library and the - needed runtime stuff in the proper places on the filesystem. -

\ No newline at end of file diff --git a/matita/matita/help/C/macro_intro.html b/matita/matita/help/C/macro_intro.html deleted file mode 100644 index ff7a79ab7..000000000 --- a/matita/matita/help/C/macro_intro.html +++ /dev/null @@ -1,7 +0,0 @@ - -macro_input

macro_input

##

-

Synopsis:

##

Pre-conditions:

None.

Action:

This macro expands to the longest possible list of - #Hi tactics. The - names of the introduced hypotheses are automatically - generated.

-

\ No newline at end of file diff --git a/matita/matita/help/C/matita.pdf b/matita/matita/help/C/matita.pdf index 67cbf2b4e..78a10f2a3 100644 Binary files a/matita/matita/help/C/matita.pdf and b/matita/matita/help/C/matita.pdf differ diff --git a/matita/matita/help/C/proofs.html b/matita/matita/help/C/proofs.html deleted file mode 100644 index 4eea6a61d..000000000 --- a/matita/matita/help/C/proofs.html +++ /dev/null @@ -1,7 +0,0 @@ - -Proofs

Proofs

theorem id[: term] [≝ term]

theorem f: P ≝ p

Proves a new theorem f whose thesis is - P.

If p is provided, it must be a proof term for - P. Otherwise an interactive proof is started.

P can be omitted only if the proof is not - interactive.

A warning is raised if the name of the theorem cannot be obtained - by mangling the name of the constants in its thesis.

Notice that the command is equivalent to definition f: T ≝ t.

corollary id[: term] [≝ term]

corollary f: T ≝ t

Same as theorem f: T ≝ t

lemma id[: term] [≝ term]

lemma f: T ≝ t

Same as theorem f: T ≝ t

fact id[: term] [≝ term]

fact f: T ≝ t

Same as theorem f: T ≝ t

example id[: term] [≝ term]

example f: T ≝ t

Same as theorem f: T ≝ t, but the example - is not indexed nor used by automation.

\ No newline at end of file diff --git a/matita/matita/help/C/proofstatus.html b/matita/matita/help/C/proofstatus.html deleted file mode 100644 index 2eb55cd56..000000000 --- a/matita/matita/help/C/proofstatus.html +++ /dev/null @@ -1,47 +0,0 @@ - -The proof status

The proof status

- During an interactive proof, the proof status is made of - the set of sequents to prove and the partial proof built so far. -

The partial proof can be inspected - on demand in the CIC browser. It will be shown in pseudo-natural language - produced on the fly from the proof term.

The set of sequents to prove is shown in the notebook of the - authoring interface, in the - top-right corner of the main window of Matita. Each tab shows a different - sequent, named with a question mark followed by a number. The current - role of the sequent, according to the following description, is also - shown in the tab tag. -

  1. - Selected sequents - (name in boldface, e.g. ?3). - The next tactic will be applied to every selected sequent, producing - new selected sequents. Tacticals - such as branching ("[") - or "focus" can be used - to change the set of selected sequents. -

  2. - Sibling sequents - (name prefixed by a vertical bar and their position, e.g. - |3?2). When the set of selected sequents - has more than one element, the user can decide to focus in turn on each - of them. The branching tactical - ("[") selects the first - sequent only, marking every previously selected sequent as a sibling - sequent. Each sibling sequent is given a different position. The - tactical "2,3:" can be used to - select one or more sibling sequents, different from the one proposed, - according to their position. Once the user starts to work on the - selected sibling sequents it becomes impossible to select a new - set of siblings until the ("|") - tactical is used to end work on the current one. -

  3. - Automatically solved sibling sequents - (name strokethrough, e.g. |3?2). - Sometimes a tactic can close by side effects a sibling sequent the - user has not selected yet. The sequent is left in the automatically - solved status in order for the user to explicitly accept - (using the "skip" - tactical) the automatic - instantiation in the proof script. This way the correspondence between - the number of branches in the proof script and the number of sequents - generated in the proof is preserved. -

\ No newline at end of file diff --git a/matita/matita/help/C/sec_commands.html b/matita/matita/help/C/sec_commands.html deleted file mode 100644 index ec82fba4b..000000000 --- a/matita/matita/help/C/sec_commands.html +++ /dev/null @@ -1,30 +0,0 @@ - -Chapter 9. Other commands

Chapter 9. Other commands

alias

alias id "s" = "def"

alias symbol "s" (instance n) = "def"

alias num (instance n) = "def"

-

Synopsis:

alias - [id qstring = qstring - | symbol qstring [(instance nat)] = qstring - | num [(instance nat)] = qstring - ] -

Action:

Used to give an hint to the disambiguating parser. - When the parser is faced to the identifier (or symbol) - s or to any number, it will prefer - interpretations that "map s (or the - number) to def". For identifiers, - "def" is the URI of the interpretation. - E.g.: cic:/matita/nat/nat.ind#xpointer(1/1/1) - for the first constructor of the first inductive type defined - in the block of inductive type(s) - cic:/matita/nat/nat.ind. - For symbols and numbers, "def" is the label used to - mark the wanted - interpretation. -

When a symbol or a number occurs several times in the - term to be parsed, it is possible to give an hint only for the - instance n. When the instance is omitted, - the hint is valid for every occurrence. -

- Hints are automatically inserted in the script by Matita every - time the user is interactively asked a question to disambiguate - a term. This way the user won't be posed the same question twice - when the script will be executed again.

-

\ No newline at end of file diff --git a/matita/matita/help/C/sec_declarative_tactics.html b/matita/matita/help/C/sec_declarative_tactics.html deleted file mode 100644 index bc750f282..000000000 --- a/matita/matita/help/C/sec_declarative_tactics.html +++ /dev/null @@ -1,19 +0,0 @@ - -Chapter 8. Declarative Tactics

Chapter 8. Declarative Tactics

Quick reference card

-

Table 8.1. tactics

tactic::= - = term [auto_params | using term | using once term | proof] [done] -
 |assume id : - sterm
 |by induction hypothesis we know term ( id )
 |case id [( id : term )] … [( id : term )]
 |conclude term
 |justification done
 |justification let id - : term such that term - ( id )
 |let id = term
 |obtain id term
 |suppose term ( id - )
 | - that is equivalent to term -
 |the thesis becomes term
 |we need to prove term - [(id - )] -
 |we proceed by cases on term to prove term
 |we proceed by induction on term to prove term
 |justification we proved term - [( id - )] -


- -

\ No newline at end of file diff --git a/matita/matita/help/C/sec_gettingstarted.html b/matita/matita/help/C/sec_gettingstarted.html deleted file mode 100644 index 5644f20c3..000000000 --- a/matita/matita/help/C/sec_gettingstarted.html +++ /dev/null @@ -1,30 +0,0 @@ - -Chapter 3. Getting started

Chapter 3. Getting started

If you are already familiar with the Calculus of (Co)Inductive - Constructions (CIC) and with interactive theorem provers with procedural - proof languages (expecially Coq), getting started with Matita is relatively - easy. You just need to learn how to type Unicode symbols, how to browse - and search the library and how to author a proof script.

How to type Unicode symbols

Unicode characters can be typed in several ways:

  • Using the "Ctrl+Shift+Unicode code" standard Gnome shortcut. E.g. Ctrl+Shift+3a9 generates "Ω".

  • Typing the ligature "\name" where "name" - is a standard Unicode or LaTeX name for the character or an - ASCII art resembling the shape of the character. Pressing - "Alt+L" or Space or Enter just after the last character - of the name converts - the ligature to the Unicode symbol. - E.g. "\Delta" followed by Alt+L generates - "Δ", while pressing Alt-L after "=>" generates - "⇒"

  • Typing a symbol and rotating trough its equivalence class - with Alt-L. E.g. pressing Alt-L after an "l" - generates a "λ", while pressing Alt-L after an - "→" once generates "⇉" and pressing - Alt-L again generates "⇒". -

- The comprehensive list of symbols names or shortcuts and their equivalence - classes is available clicking on the "TeX/UTF-8 table" item - of the "View" menu. -

- There is a memory mechanism related to equivalence classes that - remembers your last choice, making it the default one. For example, - if you use "_" to generate "⎻" - (that is the third choice, after "⎽" and "⎼"), - the next time you type Alt-L - after "_" you immediately get "⎻". -

\ No newline at end of file diff --git a/matita/matita/help/C/sec_install.html b/matita/matita/help/C/sec_install.html deleted file mode 100644 index 51e24426a..000000000 --- a/matita/matita/help/C/sec_install.html +++ /dev/null @@ -1,84 +0,0 @@ - -Chapter 2. Installation

Chapter 2. Installation

- Matita is a quite complex piece of software, we thus recommend - you to either install al precompiled version or use the LiveCD. - If you are running Debian GNU/Linux (or one of its derivatives - like Ubuntu), you can install matita typing -

 aptitude install matita matita-standard-library 

- If you are running MacOSX or Windows, give the LiveCD a try before - trying to compile Matita from its sources. -

Using the LiveCD

- In the following, we will assume you have installed - virtualbox - for your platform and downloaded the .iso image of the LiveCD -

Creating the virtual machine

- Click on the New button, a wizard will popup, you should ask to - its questions as follows -

  1. - The name should be something like Matita, but can - be any meaningful string. -

  2. - The OS type should be Debian -

  3. - The base memory size can be 256 mega bytes, but you may - want to increase it if you are going to work with huge - formalizations. -

  4. - The boot hard disk should be no hard disk. It may complain - that this choice is not common, but it is right, since you - will run a LiveCD you do not need to emulate an hard drive. -

- Now that you are done with the creation of the virtual machine, - you need to insert the LiveCD in the virtual cd reader unit. -

Figure 2.1. The brand new virtual machine

The breand new virtual machine

- Click on CD/DVD-ROM (that should display something like: Not mouted). - Then click on mount CD/DVD drive and select the ISO image - option. The combo-box should display no available image, you need to - add the ISO image you downloaded from the Matita website clicking on - the button near the combo-box. - to start the virtual machine. -

Figure 2.2. Mounting an ISO image

Mounting an ISO image

- In the newely opened window click - the Add button -

Figure 2.3. Choosing the ISO image

Choosing the ISO image

- A new windows will pop-up: choose the file you downloaded - (usually matita-version.iso) and click open. -

Figure 2.4. Choosing the ISO image

Choosing the ISO image

- Now select the new entry you just added as the CD image - you want to insert in the virtual CD drive. - You are now ready to start the virtual machine. -

Sharing files with the real PC

- The virtual machine Matita will run on, has its own file - system, that is completely separated from the one of your - real PC (thus your files are not available in the - emulated environment) and moreover it is a non-presistent - file system (thus you data is lost every time you - turn off the virtual machine). -

- Virtualbox allows you to share a real folder (beloging - to your real PC) with the emulated computer. Since this - folder is persistent, you are encouraged to put - your work there, so that it is not lost when the virtual - machine is powered off. -

- The first step to set up a shared folder is to click - on the shared folder configuration entry - of the virtual machine. -

Figure 2.5. Set up a shared folder

Shared folder

- Then you shuld add a shared folder clicking on the - plus icon on the right -

Figure 2.6. Choosing the folder to share

Shared folder

- Then you have to specify the real PC folder you want to share - and name it. A reasonable folder to share is /home on - a standard Unix system, while /Users on MaxOSX. - The name you give to the share is important, you should - remember it. -

Figure 2.7. Naming the shared folder

Shared folder

- Once your virtual machine is up and running, you can - mount (that meand have access to) the shared folder - by clicking on the Mount VirtualBox share icon, and typing - the name of the share. -

Figure 2.8. Using it from the virtual machine

Shared folder at work

- A window will then pop-up, and its content will be the - the content of the real PC folder. -

\ No newline at end of file diff --git a/matita/matita/help/C/sec_intro.html b/matita/matita/help/C/sec_intro.html deleted file mode 100644 index a967fff1a..000000000 --- a/matita/matita/help/C/sec_intro.html +++ /dev/null @@ -1,7 +0,0 @@ - -Chapter 1. Introduction

Chapter 1. Introduction

Table of Contents

Features
Matita vs Coq

Features

Matita is an interactive theorem prover - (or proof assistant) with the following characteristics:

  • It is based on a variant of the Calculus of (Co)Inductive Constructions (CIC). CIC is also the logic of the Coq proof assistant.

  • It adopts a procedural proof language, but it has a new set of small step tacticals that improve proof structuring and debugging.

  • It has a stand-alone graphical user interface (GUI) inspired by -CtCoq/Proof General. The GUI is implemented according to the state -of the art. In particular:

    • It is based and fully integrated with Gtk/Gnome.

    • An on-line help can be browsed via the Gnome documentation browser.

    • Mathematical formulae are rendered via Unicode.

  • It allows the use of the typical ambiguous mathematical notation by means of a disambiguating parser.

\ No newline at end of file diff --git a/matita/matita/help/C/sec_license.html b/matita/matita/help/C/sec_license.html deleted file mode 100644 index 72ca1d932..000000000 --- a/matita/matita/help/C/sec_license.html +++ /dev/null @@ -1,13 +0,0 @@ - -Chapter 10. License

Chapter 10. License

Both Matita and this document are part of HELM, an Hypertextual, - Electronic Library of Mathematics, developed at the Computer Science - Department, University of Bologna, Italy.

HELM is free software; you can redistribute it and/or modify it under - the terms of the GNU General Public License as published by the Free Software - Foundation; either version 2 of the License, or (at your option) any later - version.

HELM is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR - A PARTICULAR PURPOSE. See the GNU General Public License for more details. -

You should have received a copy of the GNU General Public License along - with HELM; if not, write to the Free Software Foundation, Inc., 51 Franklin - St, Fifth Floor, Boston, MA 02110-1301 USA. A copy of the GNU General - Public License is available at this link.

\ No newline at end of file diff --git a/matita/matita/help/C/sec_tacticals.html b/matita/matita/help/C/sec_tacticals.html deleted file mode 100644 index f79c77c49..000000000 --- a/matita/matita/help/C/sec_tacticals.html +++ /dev/null @@ -1,20 +0,0 @@ - -Chapter 6. Tacticals

Chapter 6. Tacticals

Interactive proofs and definitions

- An interactive definition is started by giving a - definition command omitting - the definiens. - An interactive proof is started by using one of the - proof commands omitting - an explicit proof term. -

An interactive proof or definition can and must be terminated by - a qed command when no more sequents are - left to prove. Between the command that starts the interactive session and - the qed command the user must provide a procedural proof script made - of tactics structured by means of - tacticals.

In the tradition of the LCF system, tacticals can be considered - higher order tactics. Their syntax is structured and they are executed - atomically. On the contrary, in Matita the syntax of several tacticals is - destructured into a sequence of tokens and tactics in such a way that is - is possible to stop execution after every single token or tactic. - The original semantics is preserved: the execution of the whole sequence - yields the result expected by the original LCF-like tactical.

\ No newline at end of file diff --git a/matita/matita/help/C/sec_tactics.html b/matita/matita/help/C/sec_tactics.html deleted file mode 100644 index c4f036674..000000000 --- a/matita/matita/help/C/sec_tactics.html +++ /dev/null @@ -1,31 +0,0 @@ - -Chapter 7. Tactics

Chapter 7. Tactics

Quick reference card

-

Table 7.1. tactics

tactic::=@ sterm
 |applyS sterm auto_params
 | - - assumption - -
 |/auto_params/.
 | - cases - term pattern -
 |change pattern with sterm
 | - -id -
 |% [nat] [{sterm…}]
 |cut sterm
 | - * - [as id] -
 |destruct - [(id…)] [skip (id…)]
 |elim sterm pattern
 |generalize pattern
 | - # - - id - -
 | - #_ -
 |inversion sterm
 | - lapply - sterm -
 |letin id ≝ sterm
 | - ## -
 |normalize pattern - [nodelta]
 |[<|>] sterm pattern
 |whd pattern [nodelta]


- -

\ No newline at end of file diff --git a/matita/matita/help/C/sec_terms.html b/matita/matita/help/C/sec_terms.html deleted file mode 100644 index 151c909c8..000000000 --- a/matita/matita/help/C/sec_terms.html +++ /dev/null @@ -1,53 +0,0 @@ - -Chapter 4. Syntax

Chapter 4. Syntax

To describe syntax in this manual we use the following conventions:

  1. Non terminal symbols are emphasized and have a link to their - definition. E.g.: term

  2. Terminal symbols are in bold. E.g.: - theorem

  3. Optional sequences of elements are put in square brackets. - E.g.: [in term]

  4. Alternatives are put in square brakets and they are - separated by vertical bars. E.g.: [<|>]

  5. Repetitions of a sequence of elements are given by putting the - sequence in square brackets, that are followed by three dots. The empty - sequence is a valid repetition. - E.g.: [and term]…

  6. Characters belonging to a set of characters are given - by listing the set elements in square brackets. Hyphens are used to - specify ranges of characters in the set. - E.g.: [a-zA-Z0-9_-]

Terms & co.

Lexical conventions

Table 4.1. qstring

qstring::="〈〈any sequence of characters excluded "〉〉" 

Table 4.2. id

id::=〈〈any sequence of letters, underscores or valid XML digits prefixed by a latin letter ([a-zA-Z]) and post-fixed by a possible empty sequence of decorators ([?'`])〉〉 

Table 4.3. nat

nat::=〈〈any sequence of valid XML digits〉〉 

Table 4.4. char

char::=[a-zA-Z0-9_-] 

Table 4.5. uri-step

uri-step::=char[char]… 

Table 4.6. uri

uri::=[cic:/|theory:/]uri-step[/uri-step]….id[.id]…[#xpointer(nat/nat[/nat]…)] 

Table 4.7. csymbol

csymbol::='id 

Table 4.8. symbol

symbol::=〈〈None of the above〉〉 

Terms

-

Table 4.9. Terms

term::=stermsimple or delimited term
 |term termapplication
 |λargs.termλ-abstraction
 |Πargs.termdependent product meant to define a datatype
 |∀args.termdependent product meant to define a proposition
 |term → termnon-dependent product (logical implication or function space)
 |let [id|(id: term)] ≝ term in termlocal definition
 | - let - [co]rec - rec_def - (co)recursive definitions
   - [and rec_def]… -  
   - in term -  
 |…user provided notation
rec_def::= - id [id|_|(id[,id]… :term)]… -  
   - [on id] - [: term] - ≝ term] -  


- -

Table 4.10. Simple terms

sterm::=(term) 
 |id[\subst[ - id≔term - [;id≔term]… - ]] - identifier with optional explicit named substitution
 |uria qualified reference
 |Propthe impredicative sort of propositions
 |Setthe impredicate sort of datatypes
 |CPropone fixed predicative sort of constructive propositions
 |Typeone predicative sort of datatypes
 |?implicit argument
 |?n - [[ - [_|term]… - ]]metavariable
 |match term - [ in id ] - [ return term ] - with - case analysis
   - [ - match_branch[|match_branch]… - ] -  
 |(term:term)cast
 |…user provided notation at precedence 90


- -

Table 4.11. Arguments

args::= - _[: term] - ignored argument
 | - (_[: term]) - ignored argument
 |id[,id]…[: term] 
 |(id[,id]…[: term]) 
args2::=id 
 |(id[,id]…: term) 


- -

Table 4.12. Pattern matching

match_branch::=match_pattern ⇒ term 
match_pattern::=id0-ary constructor
 |(id id [id]…)n-ary constructor (binds the n arguments)
 |id id [id]…n-ary constructor (binds the n arguments)
 |_any remaining constructor (ignoring its arguments)


-

\ No newline at end of file diff --git a/matita/matita/help/C/sec_usernotation.html b/matita/matita/help/C/sec_usernotation.html deleted file mode 100644 index 804e99eff..000000000 --- a/matita/matita/help/C/sec_usernotation.html +++ /dev/null @@ -1,36 +0,0 @@ - -Chapter 5. Extending the syntax

Chapter 5. Extending the syntax

Table of Contents

notation
interpretation

notation

notation usage "presentation" associativity with precedence p for content

-

Synopsis:

notation - [usage] "notation_lhs" [associativity] with precedence nat - for - notation_rhs -

Action:

Declares a mapping between the presentation - AST presentation and the content AST - content. The declared presentation AST fragment - presentation is at precedence level - p. The precedence level is used to determine where - parentheses must be inserted. In particular, the content AST fragment - content is actually a pattern, since it contains - placeholders (variables) for sub-ASTs. Every placeholder for a term - is given an expected precedence level. Parentheses must be inserted - around sub-ASTs having a precedence level strictly smaller than the - expected one.

If presentation describes a binary - infix operator and if no precedence level is explicitly given for the - operator arguments, an associativity declaration - can be given to automatically choose the right level for the operands. - Otherwise, no associativity can be given.

If direction is - omitted, the mapping is bi-directional and is used both during - parsing and pretty-printing of terms. If direction - is >, the mapping is used only during parsing; - if it is <, it is used only during - pretty-printing. Thus it is possible to use simple notations to type - for writing the term, and nicer ones for rendering it.

Notation arguments:

Table 5.1. usage

usage::=<Only for pretty-printing
 |>Only for parsing

Table 5.2. associativity

associativity::=left associativeLeft associative
 |right associativeRight associative
 |non associativeNon associative (default)

Table 5.3. notation_rhs


Table 5.4. unparsed_ast

unparsed_ast::=@{enriched_term}A content level AST (a term which is parsed, but not disambiguated).
 |@id@id is just an abbreviation for @{id}
 |@csymbol@'symbol is just an abbreviation for @{'symbol}

Table 5.5. enriched_term

enriched_term::=〈〈A term that may contain occurrences of unparsed_meta, even as variable names in binders, and occurrences of csymbol〉〉TODO

Table 5.6. unparsed_meta

unparsed_meta::=${level2_meta}TODO
 |$id$id is just an abbreviation for ${id}
 |$_$_ is just an abbreviation for ${_}

Table 5.7. level2_meta

level2_meta::=unparsed_astTODO
 |term nat idTODO
 |number idTODO
 |ident idTODO
 |fresh idTODO
 |anonymousTODO
 |idTODO
 |fold [left|right] level2_meta rec id level2_metaTODO
 |default level2_meta level2_metaTODO
 |if level2_meta then level2_meta else level2_metaTODO
 |failTODO

Table 5.8. notation_lhs

notation_lhs::=layout [layout]… 

Table 5.9. layout

layout::=layout \sub layoutSubscript
 |layout \sup layoutSuperscript
 |layout \below layout 
 |layout \above layout 
 |layout \over layout 
 |layout \atop layout 
 |layout \frac layoutFraction
 |\infrule layout layout layoutInference rule (premises, conclusion, rule name)
 |\sqrt layoutSquare root
 |\root layout \of layoutGeneralized root
 |hbox ( layout [layout]… )Horizontal box
 |vbox ( layout [layout]… )Vertical box
 |hvbox ( layout [layout]… )Horizontal and vertical box
 |hovbox ( layout [layout]… )Horizontal or vertical box
 |breakBreakable space
 |( layout [layout]… )Group
 |idPlaceholder for a term with no explicit precedence
 |term nat idPlaceholder for a term with explicit expected precedence
 |number idPlaceholder for a natural number
 |ident idPlaceholder for an identifier
 |literalLiteral
 |opt layoutOptional layout (it can be omitted for parsing)
 |list0 layout - [sep literal]List of layouts separated by sep (default: - any blank)
 |list1 layout - [sep literal]Non empty list of layouts separated by sep - (default: any blank)
 |mstyle id value (layout) - Style attributes like color #ff0000
 |mpadded id value (layout) - padding attributes like width -150%
 |maction (layout) - [ (layout) … ] - Alternative notations (output only)

Table 5.10. literal

literal::=symbolUnicode symbol
 |natNatural number (a constant)
 |'id'New keyword for the lexer

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_andelim.html b/matita/matita/help/C/tac_andelim.html deleted file mode 100644 index 10d9b1010..000000000 --- a/matita/matita/help/C/tac_andelim.html +++ /dev/null @@ -1,11 +0,0 @@ - -we have

we have

justification we have A (H1) and B (H2) -

-

Synopsis:

justification we have term - ( id ) and term - ( id )

Pre-condition:

- None. -

Action:

- It applies the left multiplicative introduction rule for the conjunction on the formula A ∧ B (in Natural Deduction this corresponds to the elimination rule for the conjunction). -

New sequent to prove:

A new sequent with A ∧ B as the conclusion is opened and then immediately closed using the given justification. A new sequent with the conclusion of the sequent on which this tactic was applied is opened, and two new hypotheses H1 : A and H2 : B are added to the context.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_apply.html b/matita/matita/help/C/tac_apply.html deleted file mode 100644 index f03834bcd..000000000 --- a/matita/matita/help/C/tac_apply.html +++ /dev/null @@ -1,12 +0,0 @@ - -apply

apply

@t

-

Synopsis:

@ sterm

Pre-conditions:

t must have type - T1 → … → - Tn → G - where G can be unified with the conclusion - of the current sequent.

Action:

It closes the current sequent by applying t to n implicit arguments (that become new sequents).

New sequents to prove:

It opens a new sequent for each premise - Ti that is not - instantiated by unification. Ti is - the conclusion of the i-th new sequent to - prove.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_applyS.html b/matita/matita/help/C/tac_applyS.html deleted file mode 100644 index c0cf500b2..000000000 --- a/matita/matita/help/C/tac_applyS.html +++ /dev/null @@ -1,25 +0,0 @@ - -applyS

applyS

applyS t auto_params

-

Synopsis:

applyS sterm auto_params

Pre-conditions:

t must have type - T1 → ... → - Tn → G.

Action:

applyS is useful when - apply fails because the current goal - and the conclusion of the applied theorems are extensionally - equivalent up to instantiation of metavariables, but cannot - be unified. E.g. the goal is P(n*O+m) and - the theorem to be applied proves ∀m.P(m+O). -

- It tries to automatically rewrite the current goal using - auto paramodulation - to make it unifiable with G. - Then it closes the current sequent by applying - t to n - implicit arguments (that become new sequents). - The auto_params parameters are passed - directly to auto paramodulation. -

New sequents to prove:

It opens a new sequent for each premise - Ti that is not - instantiated by unification. Ti is - the conclusion of the i-th new sequent to - prove.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_assume.html b/matita/matita/help/C/tac_assume.html deleted file mode 100644 index 3c3979b6c..000000000 --- a/matita/matita/help/C/tac_assume.html +++ /dev/null @@ -1,11 +0,0 @@ - -assume

assume

assume x : T

-

Synopsis:

assume id : - sterm

Pre-conditions:

- The conclusion of the sequent to prove must be a universal quantification. -

Action:

- It applies the right introduction rule for the universal quantifier, closing the current sequent (in Natural Deduction this corresponds to the introduction rule for the quantifier). -

New sequents to prove:

- It opens a new sequent to prove the quantified subformula adding x : T to the hypotheses. -

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_assumption.html b/matita/matita/help/C/tac_assumption.html deleted file mode 100644 index d971f84d8..000000000 --- a/matita/matita/help/C/tac_assumption.html +++ /dev/null @@ -1,5 +0,0 @@ - -assumption

assumption

assumption

-

Synopsis:

assumption

Pre-conditions:

There must exist an hypothesis whose type can be unified with - the conclusion of the current sequent.

Action:

It closes the current sequent exploiting an hypothesis.

New sequents to prove:

None

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_auto.html b/matita/matita/help/C/tac_auto.html deleted file mode 100644 index e85c7e96f..000000000 --- a/matita/matita/help/C/tac_auto.html +++ /dev/null @@ -1,12 +0,0 @@ - -auto

auto

/params/

-

Synopsis:

/auto_params/.

Pre-conditions:

None, but the tactic may fail finding a proof if every - proof is in the search space that is pruned away. Pruning is - controlled by the optional params. - Moreover, only lemmas whose type signature is a subset of the - signature of the current sequent are considered. The signature of - a sequent is essentially the set of constats appearing in it. -

Action:

It closes the current sequent by repeated application of - rewriting steps (unless paramodulation is - omitted), hypothesis and lemmas in the library.

New sequents to prove:

None

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_bydone.html b/matita/matita/help/C/tac_bydone.html deleted file mode 100644 index f2e34e1d4..000000000 --- a/matita/matita/help/C/tac_bydone.html +++ /dev/null @@ -1,4 +0,0 @@ - -done

done

justification done

-

Synopsis:

justification done

Pre-condition:

The user is proving a sequent which was opened with the tactic we need to prove, or the user is proving a sequent which was opened with the tactic we proceed by induction/cases on, or the user is proving a chain of equalities that was started with either the tactic conclude or obtain.

Action:

It closes the current sequent with the given justification.

New sequents to prove:

None.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_byinduction.html b/matita/matita/help/C/tac_byinduction.html deleted file mode 100644 index a1f038e58..000000000 --- a/matita/matita/help/C/tac_byinduction.html +++ /dev/null @@ -1,4 +0,0 @@ - -by induction hypothesis we know

by induction hypothesis we know

by induction hypothesis we know P (id)

-

Synopsis:

by induction hypothesis we know term ( id )

Pre-condition:

The user must have started proving a case for a proof by induction/case-analysis.

Action:

It introduces the inductive hypothesis.

New sequents to prove:

None.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_bytermweproved.html b/matita/matita/help/C/tac_bytermweproved.html deleted file mode 100644 index ab5f4b1d8..000000000 --- a/matita/matita/help/C/tac_bytermweproved.html +++ /dev/null @@ -1,14 +0,0 @@ - -we proved

we proved

justification we proved T [(id)]

-

Synopsis:

justification we proved term - [( id - )] -

Pre-condition:

- None. -

Action:

- If id is supplied, a logical cut on T is made. Otherwise, if T is identical to the current conclusion, it allows the user to start a chain of reductions on the conclusion with the tactic that is equivalent to. -

New sequent to prove:

- If id is supplied, a new sequent with T as the conclusion is opened and then immediately closed using the supplied justification. A new sequent with the conclusion of the sequent on which this tactic was applied is opened, and a new hypotesis T is added to the context, with name id. - If id is not supplied, no new sequents are opened. -

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_case.html b/matita/matita/help/C/tac_case.html deleted file mode 100644 index e0327b094..000000000 --- a/matita/matita/help/C/tac_case.html +++ /dev/null @@ -1,4 +0,0 @@ - -case

case

case id (id1:T1) … (idn:Tn)

-

Synopsis:

case id [( id : term )] … [( id : term )]

Pre-condition:

The user must have started a proof by induction/cases that has not been concluded yet, id must be a constructor for the inductive type of the term under induction/case-analysis, and the case must not have already been proved.

Action:

It starts the proof for the case id, where id1:T1,…,idn:Tn are the arguments of the constructor, each declared with its type.

New sequents to prove:

The sequent for the case id.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_cases.html b/matita/matita/help/C/tac_cases.html deleted file mode 100644 index 646281d84..000000000 --- a/matita/matita/help/C/tac_cases.html +++ /dev/null @@ -1,23 +0,0 @@ - -cases

cases

- cases t pattern -

-

Synopsis:

- cases - term pattern -

Pre-conditions:

- t must inhabit an inductive type -

Action:

- It proceed by cases on t. The new generated - hypothesis in each branch are named according to - hyps. - The elimintation predicate is restricted by - pattern. In particular, if some hypothesis - is listed in pattern, the hypothesis is - generalized and cleared before proceeding by cases on - t. Currently, we only support patterns of the - form H1 … Hn ⊢ %. This limitation will be lifted in the future. -

New sequents to prove:

One new sequent for each constructor of the type of - t. Each sequent has a new hypothesis for - each argument of the constructor.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_change.html b/matita/matita/help/C/tac_change.html deleted file mode 100644 index e4d2fa648..000000000 --- a/matita/matita/help/C/tac_change.html +++ /dev/null @@ -1,9 +0,0 @@ - -change

change

change patt with t

-

Synopsis:

change pattern with sterm

Pre-conditions:

Each subterm matched by the pattern must be convertible - with the term t disambiguated in the context - of the matched subterm.

Action:

It replaces the subterms of the current sequent matched by - patt with the new term t. - For each subterm matched by the pattern, t is - disambiguated in the context of the subterm.

New sequents to prove:

None.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_clear.html b/matita/matita/help/C/tac_clear.html deleted file mode 100644 index 0f41adbee..000000000 --- a/matita/matita/help/C/tac_clear.html +++ /dev/null @@ -1,12 +0,0 @@ - -clear

clear

-H

-

Synopsis:

- -id -

Pre-conditions:

- H must be an hypothesis of the - current sequent to prove. -

Action:

- It hides the hypothesis H - from the current sequent. -

New sequents to prove:

None

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_conclude.html b/matita/matita/help/C/tac_conclude.html deleted file mode 100644 index de312a7b8..000000000 --- a/matita/matita/help/C/tac_conclude.html +++ /dev/null @@ -1,6 +0,0 @@ - -conclude

conclude

conclude t1

-

Synopsis:

conclude term

Pre-condition:

- The current conclusion must be an equality t1 = tk -

Action:

It starts an equality chain on the conclusion. It allows the user to apply the tactic = to continue the chain.

New sequent to prove:

None.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_constructor.html b/matita/matita/help/C/tac_constructor.html deleted file mode 100644 index f0818bbbf..000000000 --- a/matita/matita/help/C/tac_constructor.html +++ /dev/null @@ -1,11 +0,0 @@ - -constructor

constructor

%n {args}

-

Synopsis:

% [nat] [{sterm…}]

Pre-conditions:

The conclusion of the current sequent must be - an inductive type or the application of an inductive type with - at least n constructors.

Action:

It applies the n-th constructor of the - inductive type of the conclusion of the current sequent to - the arguments args. - If n is omitted, it defaults to 1.

New sequents to prove:

It opens a new sequent for each premise of the constructor - that can not be inferred by unification. For more details, - see the apply tactic.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_cut.html b/matita/matita/help/C/tac_cut.html deleted file mode 100644 index 7484b50ae..000000000 --- a/matita/matita/help/C/tac_cut.html +++ /dev/null @@ -1,8 +0,0 @@ - -cut

cut

cut P

-

Synopsis:

cut sterm

Pre-conditions:

P must be a type.

Action:

It closes the current sequent.

New sequents to prove:

It opens two new sequents. The first one has conclusion - P → G where G is the - old conclusion. - The second sequent has conclusion P and - hypotheses the hypotheses of the current sequent to prove.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_decompose.html b/matita/matita/help/C/tac_decompose.html deleted file mode 100644 index 69618097b..000000000 --- a/matita/matita/help/C/tac_decompose.html +++ /dev/null @@ -1,18 +0,0 @@ - -decompose

decompose

- * as H -

-

Synopsis:

- * - [as id] -

Pre-conditions:

The current conclusion must be of the form - T → G where I is - an inductive type applied to its arguments, if any.

Action:

- It introduces a new hypothesis H of type - T. Then it proceeds by cases over - H. Finally, if the name H - is not specified, it clears the new hypothesis from all contexts. -

New sequents to prove:

- The ones generated by case analysis. -

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_destruct.html b/matita/matita/help/C/tac_destruct.html deleted file mode 100644 index 223234a83..000000000 --- a/matita/matita/help/C/tac_destruct.html +++ /dev/null @@ -1,15 +0,0 @@ - -destruct

destruct

destruct (H0 ... Hn) skip (K0 ... Km)

-

Synopsis:

destruct - [(id…)] [skip (id…)]

Pre-conditions:

Each hypothesis Hi must be either a Leibniz or a John Major equality where the two sides of the equality are possibly applied constructors of an inductive type.

Action:

The tactic recursively compare the two sides of each equality - looking for different constructors in corresponding position. - If two of them are found, the tactic closes the current sequent - by proving the absurdity of p. Otherwise - it adds a new hypothesis for each leaf of the formula that - states the equality of the subformulae in the corresponding - positions on the two sides of the equality. If the newly - added hypothesis is an equality between a variable and a term, - the variable is substituted for the term everywhere in the - sequent, except for the hypotheses Kj, and it is then cleared from the list of hypotheses. -

New sequents to prove:

None.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_elim.html b/matita/matita/help/C/tac_elim.html deleted file mode 100644 index b2e7089d4..000000000 --- a/matita/matita/help/C/tac_elim.html +++ /dev/null @@ -1,12 +0,0 @@ - -elim

elim

elim t pattern

-

Synopsis:

elim sterm pattern

Pre-conditions:

t must inhabit an inductive type. -

Action:

It proceeds by cases on the values of t, - according to the most appropriate elimination principle for - the current goal. - The induction predicate is restricted by - pattern. In particular, if some hypothesis - is listed in pattern, the hypothesis is - generalized and cleared before eliminating t -

New sequents to prove:

It opens one new sequent for each case.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_existselim.html b/matita/matita/help/C/tac_existselim.html deleted file mode 100644 index 939f714fe..000000000 --- a/matita/matita/help/C/tac_existselim.html +++ /dev/null @@ -1,11 +0,0 @@ - -let such that

let such that

justification let x:T such that P (H) -

-

Synopsis:

justification let id - : term such that term - ( id )

Pre-condition:

- None. -

Action:

- It applies the left introduction rule of the existential quantifier on the formula ∃ x. P(x) (in Natural Deduction this corresponds to the elimination rule for the quantifier). -

New sequent to prove:

A new sequent with ∃ x. P(x) as the conclusion is opened and then immediately closed using the given justification. A new sequent with the conclusion of the sequent on which this tactic was applied is opened, and two new hypotheses x : T and H : P are added to the context.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_generalize.html b/matita/matita/help/C/tac_generalize.html deleted file mode 100644 index bfe134dcb..000000000 --- a/matita/matita/help/C/tac_generalize.html +++ /dev/null @@ -1,13 +0,0 @@ - -generalize

generalize

generalize patt

-

Synopsis:

generalize pattern

Pre-conditions:

All the terms matched by patt must be - convertible and close in the context of the current sequent.

Action:

It closes the current sequent by applying a stronger - lemma that is proved using the new generated sequent.

New sequents to prove:

It opens a new sequent where the current sequent conclusion - G is generalized to - ∀x.G{x/t} where {x/t} - is a notation for the replacement with x of all - the occurrences of the term t matched by - patt. If patt matches no - subterm then t is defined as the - wanted part of the pattern.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_intro.html b/matita/matita/help/C/tac_intro.html deleted file mode 100644 index 6c09618e2..000000000 --- a/matita/matita/help/C/tac_intro.html +++ /dev/null @@ -1,9 +0,0 @@ - -intro

intro

#H

-

Synopsis:

#id

Pre-conditions:

The conclusion of the sequent to prove must be an implication - or a universal quantification.

Action:

It applies the right introduction rule for implication, - closing the current sequent.

New sequents to prove:

It opens a new sequent to prove adding to the hypothesis - the antecedent of the implication and setting the conclusion - to the consequent of the implicaiton. The name of the new - hypothesis is H.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_intro_clear.html b/matita/matita/help/C/tac_intro_clear.html deleted file mode 100644 index 21ce7a54a..000000000 --- a/matita/matita/help/C/tac_intro_clear.html +++ /dev/null @@ -1,7 +0,0 @@ - -intro_clear

intro_clear

#_

-

Synopsis:

#_

Pre-conditions:

The conclusion of the sequent to prove must be an implication. -

Action:

It applies the ``a fortiori'' rule for implication, - closing the current sequent.

New sequents to prove:

It opens a new sequent whose conclusion is the conclusion - of the implication of the original sequent.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_inversion.html b/matita/matita/help/C/tac_inversion.html deleted file mode 100644 index 8e4d54ffa..000000000 --- a/matita/matita/help/C/tac_inversion.html +++ /dev/null @@ -1,13 +0,0 @@ - -inversion

inversion

inversion t

-

Synopsis:

inversion sterm

Pre-conditions:

The type of the term t must be an inductive - type or the application of an inductive type.

Action:

It proceeds by cases on t paying attention - to the constraints imposed by the actual "right arguments" - of the inductive type.

New sequents to prove:

It opens one new sequent to prove for each case in the - definition of the type of t. With respect to - a simple elimination, each new sequent has additional hypotheses - that states the equalities of the "right parameters" - of the inductive type with terms originally present in the - sequent to prove. It uses either Leibniz or John Major equality - for the new hypotheses, according to the included files.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_lapply.html b/matita/matita/help/C/tac_lapply.html deleted file mode 100644 index 90cf83c61..000000000 --- a/matita/matita/help/C/tac_lapply.html +++ /dev/null @@ -1,17 +0,0 @@ - -lapply

lapply

- lapply t -

-

Synopsis:

- lapply - sterm -

Pre-conditions:

None.

Action:

- It generalizes the conclusion of the current goal - adding as a premise the type of t, - closing the current goal. -

New sequents to prove:

- The new sequent has conclusion T → G where - T is the type of t - and G the old conclusion. -

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_let.html b/matita/matita/help/C/tac_let.html deleted file mode 100644 index 57fb71050..000000000 --- a/matita/matita/help/C/tac_let.html +++ /dev/null @@ -1,4 +0,0 @@ - -letin

letin

let x := T

-

Synopsis:

let id = term

Pre-condition:

None

Action:

It adds a new local definition x := T to the context of the sequent to prove.

New sequents to prove:

None.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_letin.html b/matita/matita/help/C/tac_letin.html deleted file mode 100644 index 278542ffa..000000000 --- a/matita/matita/help/C/tac_letin.html +++ /dev/null @@ -1,5 +0,0 @@ - -letin

letin

letin x ≝ t

-

Synopsis:

letin id ≝ sterm

Pre-conditions:

None.

Action:

It adds to the context of the current sequent to prove a new - definition x ≝ t.

New sequents to prove:

None.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_normalize.html b/matita/matita/help/C/tac_normalize.html deleted file mode 100644 index 60cf39ffd..000000000 --- a/matita/matita/help/C/tac_normalize.html +++ /dev/null @@ -1,7 +0,0 @@ - -normalize

normalize

normalize patt nodelta

-

Synopsis:

normalize pattern - [nodelta]

Pre-conditions:

None.

Action:

It replaces all the terms matched by patt - with their βδιζ-normal form. If nodelta is - specified, δ-expansions are not performed.

New sequents to prove:

None.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_obtain.html b/matita/matita/help/C/tac_obtain.html deleted file mode 100644 index c26c009ae..000000000 --- a/matita/matita/help/C/tac_obtain.html +++ /dev/null @@ -1,6 +0,0 @@ - -obtain

obtain

obtain H t1

-

Synopsis:

obtain id term

Pre-condition:

- None. -

Action:

It starts an equality chain t1 = ?, which, when concluded, will be added to hypoteses of the current sequent. It allows the user to apply the tactic = to continue the chain.

New sequent to prove:

A new sequent for t1 = ? is opened, a new sequent for ? is opened, and a new sequent with the conclusion of the sequent on which this tactic was applied is opened, with H: t1 = ? added to its hypotheses. This hypotesis will be changed when the equality chain is concluded with H: t1 = tk, where tk is the last term of the equality chain. The goal for ? can be safely ignored, as it will be automatically closed when the equality chain is concluded.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_rewrite.html b/matita/matita/help/C/tac_rewrite.html deleted file mode 100644 index dc43ad673..000000000 --- a/matita/matita/help/C/tac_rewrite.html +++ /dev/null @@ -1,12 +0,0 @@ - -rewrite

rewrite

> p patt

-

Synopsis:

[<|>] sterm pattern

Pre-conditions:

p must be the proof of an equality, - possibly under some hypotheses.

Action:

It looks in every term matched by patt - for all the occurrences of the - left hand side of the equality that p proves - (resp. the right hand side if < is used). - Every occurence found is replaced with - the opposite side of the equality.

New sequents to prove:

It opens one new sequent for each hypothesis of the - equality proved by p that is not closed - by unification.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_rewrite_step.html b/matita/matita/help/C/tac_rewrite_step.html deleted file mode 100644 index 3875796c8..000000000 --- a/matita/matita/help/C/tac_rewrite_step.html +++ /dev/null @@ -1,12 +0,0 @@ - -=

=

= t2 justification

-

Synopsis:

- = term [auto_params | using term | using once term | proof] [done] -

Pre-condition:

- The user must have started an equality chain with conclude or obtain that has not been concluded yet. -

Action:

- It applies the transitivity of = on the left-hand-side of the current conclusion, t2, and the right-hand-side of the current conclusion, using the given justification. If done is supplied, this represents the last step in the equality chain. -

New sequent to prove:

- A new sequent for lhs = t2 is opened and then immediately closed using the given justification. A new sequent with the conclusion t2 = rhs is opened. -

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_suppose.html b/matita/matita/help/C/tac_suppose.html deleted file mode 100644 index 7307692da..000000000 --- a/matita/matita/help/C/tac_suppose.html +++ /dev/null @@ -1,11 +0,0 @@ - -suppose

suppose

suppose A (H)

-

Synopsis:

suppose term ( id - )

Pre-condition:

- The conclusion of the sequent to prove must be an implication. -

Action:

- It applies the right introduction rule for the implication, closing the current sequent (in Natural Deduction this corresponds to the introduction rule for the implication). -

New sequents to prove:

- It opens a new sequent to prove the consequent of the implication adding the antecedent A to the hypotheses. The name of the new hypothesis is H. -

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_thatisequivalentto.html b/matita/matita/help/C/tac_thatisequivalentto.html deleted file mode 100644 index 4ef638aa6..000000000 --- a/matita/matita/help/C/tac_thatisequivalentto.html +++ /dev/null @@ -1,14 +0,0 @@ - -that is equivalent to

that is equivalent to

that is equivalent to t

-

Synopsis:

- that is equivalent to term -

Pre-condition:

- The user must have applied one of the following tactics immediately before applying this tactic: assume, suppose, we need to prove, by just we proved,the thesis becomes, that is equivalent to. -

Action:

- If the tactic that was applied before this introduced a new hypothesis in the context, this tactic works on this hypothesis; otherwise, it works on the conclusion. Either way, if the term t is beta-equivalent to the term t1 on which this tactic is working (i.e. they can be reduced to a common term), t1 is changed with t. - - If the tactic that was applied before this tactic was that is equivalent to, and that tactic was working on a term t1, this tactic keeps working on t1. -

New sequent to prove:

- If this tactic is working on the conclusion, a new sequent with the same hypotheses and the conclusion changed to t is opened. If this tactic is working on the last introduced hypotesis, a new sequent with the same conclusion is opened. The hypotheses of this sequent are the same, except for the one on which the tactic is working on, which is changed with t. -

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_thesisbecomes.html b/matita/matita/help/C/tac_thesisbecomes.html deleted file mode 100644 index 7529ed0a7..000000000 --- a/matita/matita/help/C/tac_thesisbecomes.html +++ /dev/null @@ -1,4 +0,0 @@ - -the thesis becomes

the thesis becomes

the thesis becomes P

-

Synopsis:

the thesis becomes term

Pre-condition:

The provided term P must be identical to the current conclusion.

Action:

It allows the user to start a chain of reductions on the conclusion with the tactic that is equivalent to, after stating the current conclusion.

New sequent to prove:

None.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_weneedtoprove.html b/matita/matita/help/C/tac_weneedtoprove.html deleted file mode 100644 index d77643518..000000000 --- a/matita/matita/help/C/tac_weneedtoprove.html +++ /dev/null @@ -1,8 +0,0 @@ - -we need to prove

we need to prove

we need to prove T [(H)]

-

Synopsis:

we need to prove term - [(id - )] -

Pre-condition:

None.

Action:

If id is provided, it applies a logical cut on T. Otherwise, it allows the user to start a chain of reductions on the conclusion with the tactic that is equivalent to. -

New sequents to prove:

If id is supplied, a new sequent with T as the conclusion is opened, and a new sequent with the conclusion of the sequent on which this tactic was applied is opened, with H:T added to the hypotheses.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_weproceedbycases.html b/matita/matita/help/C/tac_weproceedbycases.html deleted file mode 100644 index 7b364b17c..000000000 --- a/matita/matita/help/C/tac_weproceedbycases.html +++ /dev/null @@ -1,6 +0,0 @@ - -we proceed by cases on

we proceed by cases on

we proceed by cases on t to prove P

-

Synopsis:

we proceed by cases on term to prove term

Pre-condition:

The type of t must be an inductive type and P must be identical to the current conclusion. -

Action:

It proceeds by case-analysis on t

New sequents to prove:

It opens one new sequent for each constructor of the - type of t, each with the conclusion P instantiated for the constructor.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_weproceedbyinduction.html b/matita/matita/help/C/tac_weproceedbyinduction.html deleted file mode 100644 index d10d151a2..000000000 --- a/matita/matita/help/C/tac_weproceedbyinduction.html +++ /dev/null @@ -1,5 +0,0 @@ - -we proceed by induction on

we proceed by induction on

we proceed by induction on t to prove P

-

Synopsis:

we proceed by induction on term to prove term

Pre-condition:

The type of t must be an inductive type and P must be identical to the current conclusion. -

Action:

It applies the induction principle on t to prove P.

New sequents to prove:

It opens a new sequent for each constructor of the type of t, each with the conclusion P instantiated for the constructor. For the inductive constructors (i.e. if the inductive type is T, constructors with an argument of type T), the conclusion is a logical implication, where the antecedent is the inductive hypothesis for the constructor, and the consequent is P.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tac_whd.html b/matita/matita/help/C/tac_whd.html deleted file mode 100644 index 0e0b14a97..000000000 --- a/matita/matita/help/C/tac_whd.html +++ /dev/null @@ -1,5 +0,0 @@ - -whd

whd

whd patt nodelta

-

Synopsis:

whd pattern [nodelta]

Pre-conditions:

None.

Action:

It replaces all the terms matched by patt - with their βδιζ-weak-head normal form. If nodelta is specified, δ-expansions are not performed.

New sequents to prove:

None.

-

\ No newline at end of file diff --git a/matita/matita/help/C/tacticals.html b/matita/matita/help/C/tacticals.html deleted file mode 100644 index afff712b7..000000000 --- a/matita/matita/help/C/tacticals.html +++ /dev/null @@ -1,65 +0,0 @@ - -Tacticals

Tacticals

Table 6.1. proof script


Every proof step can be immediately executed.

Table 6.2. proof steps

proof-step::=LCF-tacticalThe tactical is applied to each - selected sequent. - Each new sequent becomes a selected sequent.
 |.The first - selected sequent becomes - the only one selected. All the remaining previously selected sequents - are proposed to the user one at a time when the next - "." is used. -
 |;Nothing changes. Use this proof step as a separator in - concrete syntax.
 |[Every selected sequent - becomes a sibling sequent - that constitute a branch in the proof. - Moreover, the first sequent is also selected. -
 ||Stop working on the current branch of the innermost branching - proof. - The sibling branches become the sibling - sequents and the first one is also selected. -
 |nat[,nat]…:The sibling sequents - specified by the user become the next - selected sequents. -
 |*:Every sibling branch not considered yet in the innermost - branching proof becomes a - selected sequent. -
 |skipAccept the automatically provided instantiation (not shown - to the user) for the currently selected - automatically closed sibling sequent. -
 |]Stop analyzing branches for the innermost branching proof. - Every sequent opened during the branching proof and not closed yet - becomes a selected sequent. -
 |focus nat [nat]… - Selects the sequents specified by the user. The selected sequents - must be completely closed (no new sequents left open) before doing an - "unfocus that restores - the current set of sibling branches. -
 |unfocus - Used to match the innermost - "focus" tactical - when all the sequents selected by it have been closed. - Until "unfocus" is - performed, it is not possible to progress in the rest of the - proof. -

Table 6.3. tactics and LCF tacticals

LCF-tactical::=tacticApplies the specified tactic.
 |LCF-tactical ; LCF-tacticalApplies the first tactical first and the second tactical - to each sequent opened by the first one.
 |LCF-tactical - [ - [LCF-tactical] - [| LCF-tactical]… - ] - Applies the first tactical first and each tactical in the - list of tacticals to the corresponding sequent opened by the - first one. The number of tacticals provided in the list must be - equal to the number of sequents opened by the first tactical.
 |do nat - LCF-tactical - TODO
 |repeat - LCF-tactical - TODO
 | - first [ - [LCF-tactical] - [| LCF-tactical]… - ] - TODO
 |try LCF-tacticalTODO
 | - solve [ - [LCF-tactical] - [| LCF-tactical]… - ] - TODO
 |(LCF-tactical)Used for grouping during parsing.

\ No newline at end of file diff --git a/matita/matita/help/C/tacticargs.html b/matita/matita/help/C/tacticargs.html deleted file mode 100644 index 4896638be..000000000 --- a/matita/matita/help/C/tacticargs.html +++ /dev/null @@ -1,94 +0,0 @@ - -Tactic arguments

Tactic arguments

This section documents the syntax of some recurring arguments for - tactics.

pattern

Table 4.13. pattern

pattern::=in - [id[: path]]… - [⊢ path]];simple pattern
 |in match path - [in - [id[: path]]… - [⊢ path]];full pattern

Table 4.14. path

path::=〈〈any sterm without occurrences of Set, Prop, CProp, Type, id, uri and user provided notation; however, % is now an additional production for sterm〉〉

A path locates zero or more subterms of a given term by mimicking the term structure up to:

  1. Occurrences of the subterms to locate that are - represented by %.

  2. Subterms without any occurrence of subterms to locate - 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 - x+y and x*y in the - term ∀x,y:nat.x+y=1→0=x*y - (where the notation A=B hides the term - (eq T A B) for some type T). -

A simple pattern extends paths to locate - subterms in a whole sequent. In particular, the pattern - { H: p K: q ⊢ r } locates at once all the subterms - located by the pattern r in the conclusion of the - sequent and by the patterns p and - q in the hypotheses H - and K of the sequent. -

If no list of hypotheses is provided in a simple pattern, no subterm - is selected in the hypothesis. If the ⊢ p - part of the pattern is not provided, no subterm will be matched in the - conclusion if at least one hypothesis is provided; otherwise the whole - conclusion is selected. -

Finally, a full pattern is interpreted in three - steps. In the first step the match T in - part is ignored and a set S of subterms is - located as for the case of - simple patterns. In the second step the term T - is parsed and interpreted in the context of each subterm - s ∈ S. In the last term for each - s ∈ S the interpreted term T - computed in the previous step is looked for. The final set of subterms - located by the full pattern is the set of occurrences of - the interpreted T in the subterms s. -

A full pattern can always be replaced by a simple pattern, - often at the cost of increased verbosity or decreased readability.

Example: the pattern - { match x+y in ⊢ ∀_,_:?.(? ? % ?) } - locates only the first occurrence of x+y - in the sequent x,y: nat ⊢ ∀z,w:nat. (x+y) * (z+w) = - z * (x+y) + w * (x+y). The corresponding simple pattern - is { ⊢ ∀_,_:?.(? ? (? % ?) ?) }. -

Every tactic that acts on subterms of the selected sequents have - a pattern argument for uniformity. To automatically generate a simple - pattern:

  1. Select in the current goal the subterms to pass to the - tactic by using the mouse. In order to perform a multiple selection of - subterms, hold the Ctrl key while selecting every subterm after the - first one.

  2. From the contextual menu select "Copy".

  3. From the "Edit" or the contextual menu select - "Paste as pattern"

reduction-kind

Reduction kinds are normalization functions that transform a term - to a convertible but simpler one. Each reduction kind can be used both - as a tactic argument and as a stand-alone tactic.

Table 4.15. reduction-kind

reduction-kind::=normalize [nodelta]Computes the βδιζ-normal form. If nodelta - is specified, δ-expansions are not performed.
 |whd [nodelta]Computes the βδιζ-weak-head normal form. If nodelta - is specified, δ-expansions are not performed.

auto-params

Table 4.16. auto-params

auto_params::=[nat] [simple_auto_param]… - [by - [sterm… | _]] - The natural number, which defaults to 1, gives a bound to - the depth of the search tree. The terms listed is the only - knowledge base used by automation together with all indexed factual - and equational theorems in the included library. If the list of terms - is empty, only equational theorems and facts in the library are - used. If the list is omitted, it defaults to all indexed theorems - in the library. Finally, if the list is _, - the automation command becomes a macro that is expanded in a new - automation command where _ is replaced with the - list of theorems required to prove the sequent. -

Table 4.17. simple-auto-param

simple_auto_param::=width=natThe maximal width of the search tree
 |size=natThe maximal number of nodes in the proof
 |demodSimplifies the current sequent using the current set of - equations known to automation -
 |paramodTry to close the goal performing unit-equality paramodulation -
 |fast_paramodA bounded version of paramod that is granted to terminate quickly -

justification

Table 4.18. justification

justification::=using termProof term manually provided
 |auto_paramsCall automation

\ No newline at end of file