Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Why3
why3
Commits
6af3b6cd
Commit
6af3b6cd
authored
10 years ago
by
MARCHE Claude
Browse files
Options
Downloads
Patches
Plain Diff
isabelle proof in progress
parent
1a22c231
Branches
Branches containing commit
Tags
v1.2.2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/isabelle/Why3_Int.thy
+20
-1
20 additions, 1 deletion
lib/isabelle/Why3_Int.thy
with
20 additions
and
1 deletion
lib/isabelle/Why3_Int.thy
+
20
−
1
View file @
6af3b6cd
...
...
@@ -155,7 +155,26 @@ why3_vc Mod_bound using assms by (simp_all add: emod_def)
why3_vc
Div_unique
using
assms
(* "0 < y \<rightarrow> q * y \<le> x < q * y + y \<rightarrow> x ediv y = q"
sorry
(*
proof -
have h0: "y \<noteq> 0" using H1 by fastforce
have h1: "x = y * (x ediv y) + (x emod y)" using h0 Div_mod by blast
have h2: "0 \<le> x emod y \<and> x emod y < y" using assms H1 h0 Mod_bound zabs_def
by (metis abs_sgn monoid_mult_class.mult.right_neutral sgn_pos)
have "x - y < y * (x ediv y)" using h1 h2 by linarith
have "y * (x ediv y) \<le> x" using h1 h2 by linarith
assume h3: "x ediv y \<ge> q+1"
have "y * (x ediv y) >= y * (q + 1)" using h3 assms
by auto
*)
(*
(cases "x ediv y \<ge> q")
case False
"0 < y \<rightarrow> q * y \<le> x < q * y + y \<rightarrow> x ediv y = q"
proof:
we have "x = y * (x ediv y) + (x emod y)" by Div_mod
we have "0 \<le> x emod y < y" by Mod_bound
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment