-
Notifications
You must be signed in to change notification settings - Fork 2
Enhancement Proposals
Olivier Laurent edited this page May 9, 2021
·
27 revisions
- Goal: provide export of proofs matching what the user sees on the screen
-
Code:
- extend
Exchange_proofwith typesequent * int list * int list * proof(let us call σ1 the first permutation and σ2 the second one) - if ⊢ Γ is the conclusion of the premise, ⊢ Γσ1 is what is on the screen (generated by a posteriori drag and drop by user) and ⊢ Γσ2 is the conclusion of the proof
- when a rule is generated, σ1 is the identity
- when the user modifies the order in an existing sequent, σ2 is unchanged and σ1 is updated
- if the whole proof ends with an exchange rule, σ1 = σ2
- for
Coqexport, only σ2 matters, the conclusion of the proof is ⊢ Γσ2, as well as for exports with explicit exchange rules - for export with implicit exchange rule, the displayed conclusion of the (sub)proof is ⊢ Γσ1
- extend
-
Goal: provide short names for compound formulas, and rely on the same mechanism to manipulate infinite formulas described through recursive equations
𝔹 ::= (A ⊗ A) ⊸ (A ⊗ A) ℕ ::= !(A ⊸ A) ⊸ !(A ⊸ A) o ::= !o ⊸ o -
Interface:
- provide a list of fields to input expressions of the shape
name ::= formula -
namecan be "defined" only once - clicking on an atom
name(or dualname⊥) which is a defined name unfolds the definition once (or its dual) - possibilities for unfold rule display:
- implicit: in place unfold as for implicit exchange
- explicit: this unfold rule might be displayed differently from others with dashed line for example
- provide a list of fields to input expressions of the shape
-
Code:
- register an association table
(name, formula)according to input definitions by the user - add unfold rule with premise ⊢ Γ, A, Δ and conclusion ⊢ Γ, X, Δ, and with premise ⊢ Γ, A⊥, Δ and conclusion ⊢ Γ, X⊥, Δ if
(X, A)is a registered definition - unfold has priority over axiom: clicking on X in ⊢ X, X⊥ unfolds X if X is defined rather than applying an axiom rule (axiom rule is reachable through clicking on the turnstile)
-
Coqexport- non-recursive definitions using
Notation: allows implicit use of definitions, entails some automatic folding - non-recursive definitions using
Definition: explicitunfoldmatches use of unfold rule - recursive definitions: to be investigated, maybe using a co-inductive definition of formulas
- non-recursive definitions using
- register an association table
-
Possible Extensions:
- automatic folding a formula A into X if a definition
X ::= Ais detected- what if two definitions
X ::= AandY ::= A? - if we have both
ℕ ::= !(A ⊸ A) ⊸ !(A ⊸ A)and𝕃 ::= !(A ⊸ A) ⊸ !(A ⊸ A) ⊸ !(A ⊸ A), do we want unfolding of𝕃to give!(A ⊸ A) ⊸ ℕ?
- what if two definitions
- automatic folding a formula A into X if a definition
- Discussion: issue #12
- Goal: integrate cut rule in proof construction
-
Interface:
- activate cut rule through option
- in cut mode, sequents are displayed as
⊢ . E , F , G , H .where both,and.are clickable - click on active
,or.opens a pop-up asking for a cut formulaA - the cut rule is applied in the following shape with context split at clicking point
⊢ . Γ , A . ⊢ . A^ , Δ . _____________________________ ⊢ . Γ , Δ .
-
Code:
- add a constructor to
proof:Cut_proof of formula list * formula * formula list * proof * proof Coqexport
- add a constructor to
- Discussion: issue #11
- Goal: display explicit exchange rules in the interface
- Code: provided as an option
-
Interface:
- drag and drop is restricted to hypotheses of proofs (if applied inside a proof, reset proof to this point)
- a drag and drop operation on a sequent which is not premise of an explicit exchange rule generates an exchange rule
- a drag and drop operation on a sequent which is premise of an explicit exchange rule does not generate a new rule and updates the permutation
-
Options / Choices:
- mention the permutation in the rule name
- use explicit exchange rules of the shape
⊢ Γ, A, Δ, Σ<->⊢ Γ, Δ, A, Σ(thus matching each drag and drop operation) - add colors to follow occurrences
- Goal: dealing with infinite proofs through back edges connecting a proof leaf to an identical sequent met previously during proof construction
- Interface: drag and drop a turnstile symbol to another sequent which is equal (not up to permutation since permutation is meaningful) and lower in the proof (this has to be checked)