| 1 |
(* Test for Print Assumptions with recursive type traversal *) |
| 2 |
|
| 3 |
(* Test case 1: Simple axiom depending on another axiom in its type *) |
| 4 |
Axiom A : Prop. |
| 5 |
Axiom B : A -> Prop. |
| 6 |
Definition C := B. |
| 7 |
|
| 8 |
(* Print Assumptions now includes both B and A *) |
| 9 |
Print Assumptions C. |
| 10 |
|
| 11 |
(* Test case 2: Axiom with type depending on function type *) |
| 12 |
Axiom P : Type. |
| 13 |
Axiom Q : P -> Prop. |
| 14 |
Axiom R : forall x, Q x. |
| 15 |
|
| 16 |
(* Testing with a theorem *) |
| 17 |
Lemma test : forall x, Q x. |
| 18 |
Proof. exact R. Qed. |
| 19 |
|
| 20 |
Print Assumptions test. |
| 21 |
|
| 22 |
(* Test case 3: No axioms - should show "Closed under the global context" *) |
| 23 |
Definition simple := 1 + 1. |
| 24 |
|
| 25 |
Print Assumptions simple. |