Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • F frama-c
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 171
    • Issues 171
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • pub
  • frama-c
  • Issues
  • #504
Closed
Open
Issue created Mar 03, 2016 by mantis-gitlab-migration@mantis-gitlab-migration

Reals are bad encoded for coq

ID0002214: This issue was created automatically from Mantis Issue 2214. Further discussion may take place here.


Id Project Category View Due Date Updated
ID0002214 Frama-C Plug-in > wp public 2016-03-03 2016-06-21
Reporter davyg Assigned To correnson Resolution fixed
Priority normal Severity major Reproducibility always
Platform All OS - OS Version -
Product Version Frama-C Magnesium Target Version - Fixed in Version Frama-C Aluminium

Description :

The definition of real_base(Qedlib) in the coq exporter of wp is incorrect :

There is :

Definition real_base e a n := match n with | 0 => 1%R | Zpos n => (a * pow e (Pos.to_nat n))%R | Zneg n => (a / pow e (Pos.to_nat n))%R end.

in stead of

Definition real_base e a n := match n with | 0 => a | Zpos n => (a * pow e (Pos.to_nat n))%R | Zneg n => (a / pow e (Pos.to_nat n))%R end.

Steps To Reproduce :

I think that any coq proof you try to prove with wp containing real constant should have the error

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking