Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limitations of Qed on Let should be documented #15232

Open
SkySkimmer opened this issue Nov 23, 2021 · 1 comment
Open

Limitations of Qed on Let should be documented #15232

SkySkimmer opened this issue Nov 23, 2021 · 1 comment
Labels
kind: documentation Additions or improvement to documentation.

Comments

@SkySkimmer
Copy link
Contributor

Current doc:

In this case, the proof should be terminated with :cmd:`Defined` in order to define a constant
for which the computational behavior is relevant. See :ref:`proof-editing-mode`.

Limitations:

  • Qed is not respected by the kernel inside the section (although it is respected by most tactics)
  • Qed is fully equivalent to Defined after the section is closed

Demonstration:

Section S.
  Let x : nat. Proof. exact 0. Qed.

  Definition y := x.

  Lemma foo : y = 0.
  Proof.
    Fail reflexivity.
    exact_no_check (eq_refl 0).
  Qed.
End S.
Eval cbv in y. (* 0 *)
@SkySkimmer SkySkimmer added the kind: documentation Additions or improvement to documentation. label Nov 23, 2021
@Zimmi48
Copy link
Member

Zimmi48 commented Nov 23, 2021

Previous discussions on the topic:

Also related:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: documentation Additions or improvement to documentation.
Projects
Status: Writing
Development

No branches or pull requests

2 participants