Code Monkey home page Code Monkey logo

Comments (6)

ejgallego avatar ejgallego commented on August 31, 2024

As of 8.17 Coq can infer this information either by calling Proof_using.suggest_constant or by just referring to Declarations.const_hyps as done in About since 8.17.

I'm a bit unsure why the extra code for dep analysis in Proof_using is needed, @SkySkimmer , do you know why this is the case?

from coq-serapi.

SkySkimmer avatar SkySkimmer commented on August 31, 2024

suggest generates a minimum expression for using
const_hyps is the full list

So for instance

Section S.
Variable A : Type.
Variable a : A.
Variable b : A.

Goal A.
Proof.
exact a.
Qed.

suggest will say should start with Proof using a
const_hyps will be [A; a]

from coq-serapi.

SkySkimmer avatar SkySkimmer commented on August 31, 2024

Also suggest will give alternative builtin expressions when equivalent, so if we don't have variable b it will also suggest Type* and All.

from coq-serapi.

ejgallego avatar ejgallego commented on August 31, 2024

Thanks @SkySkimmer , I hadn't understood what minimize meant in this context.

@HazardousPeach , I understand you want the const_hyps semantics here, right?

from coq-serapi.

ejgallego avatar ejgallego commented on August 31, 2024

Demilestoning this until we have more feedback.

from coq-serapi.

ejgallego avatar ejgallego commented on August 31, 2024

Closing for now, happy to resurrect his if needed.

from coq-serapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.