Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
119
Issues
119
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
72be2df9
Commit
72be2df9
authored
Sep 14, 2010
by
MARCHE Claude
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
split conj in introduce_premises
parent
00110914
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
22 deletions
+15
-22
src/transform/introduction.ml
src/transform/introduction.ml
+15
-22
No files found.
src/transform/introduction.ml
View file @
72be2df9
...
...
@@ -7,24 +7,6 @@
*)
(** Introduction of premises *)
(** The premises of the goal of a task are introduced in the
context, e.g
goal G: forall x:t, f1 -> forall y:u, f2 and f3 -> f4
becomes
logic x:t
axiom H1: f1
logic y:u
axiom H2: f2
axiom H3: f3
goal G: f4
*)
open
Ident
open
Term
open
Decl
...
...
@@ -33,10 +15,21 @@ open Task
let
rec
intros
pr
f
=
match
f
.
f_node
with
|
Fbinop
(
Fimplies
,
f1
,
f2
)
->
(* TODO: split f1 *)
let
id
=
create_prsymbol
(
id_fresh
"H"
)
in
let
d
=
create_prop_decl
Paxiom
id
f1
in
d
::
intros
pr
f2
(* split f1 *)
let
l
=
Split_goal
.
split_pos
[]
f1
in
List
.
fold_right
(
fun
f
acc
->
let
id
=
create_prsymbol
(
id_fresh
"H"
)
in
let
d
=
create_prop_decl
Paxiom
id
f
in
d
::
acc
)
l
(
intros
pr
f2
)
(* old version, f1 not splitted *)
(*
let id = create_prsymbol (id_fresh "H") in
let d = create_prop_decl Paxiom id f1 in
d :: intros pr f2
*)
|
Fquant
(
Fforall
,
fq
)
->
let
vsl
,_
trl
,
f
=
f_open_quant
fq
in
let
intro_var
subst
vs
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment