File: ipat_clear_if_id.v

package info (click to toggle)
coq 8.20.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 44,116 kB
  • sloc: ml: 234,160; sh: 4,301; python: 3,270; ansic: 2,644; makefile: 882; lisp: 172; javascript: 63; xml: 24; sed: 2
file content (32 lines) | stat: -rw-r--r-- 535 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Require Import ssreflect.

Axiom v1 : nat -> bool.

Section Foo.

Variable v2 : nat -> bool.

Lemma test (v3 : nat -> bool) (v4 : bool -> bool) (v5 : bool -> bool) : nat -> nat -> nat -> nat -> True.
Proof.
Set Debug Ssreflect.
move=> {}/v1 b1 {}/v2 b2 {}/v3 b3 {}/v2/v4/v5 b4.
Check b1 : bool.
Check b2 : bool.
Check b3 : bool.
Check b4 : bool.
Fail Check v3.
Fail Check v4.
Fail Check v5.
Check v2 : nat -> bool.
by [].
Qed.

Lemma test2 (v : True <-> False) : True -> False.
Proof.
move=> {}/v.
Fail Check v.
by [].
Qed.


End Foo.