-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge PR coq#19594: Statically ensure that all TC evars are a subset …
…of undefined evars. Reviewed-by: SkySkimmer Co-authored-by: SkySkimmer <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Require Import Coq.Setoids.Setoid Coq.Classes.Morphisms. | ||
|
||
Class ring α := { rng_zero : α; }. | ||
Class field := { }. | ||
|
||
Parameter lap_eq : forall {α} {r : ring α}, list α -> list α -> Prop. | ||
|
||
Declare Instance lap_eq_equiv : forall {α} {r : ring α}, Equivalence lap_eq. | ||
|
||
Axiom lap_eq_0 : forall (α : Type) (r : ring α), lap_eq (cons rng_zero nil) nil. | ||
|
||
Definition puiseux_series (α : Type) := nat -> α. | ||
|
||
Definition ps_zero {α} {r : ring α} : puiseux_series α := fun i => rng_zero. | ||
|
||
Definition ps_ring α (R : ring α) (K : field) : ring (puiseux_series α) := | ||
{| rng_zero := ps_zero; |}. | ||
|
||
Canonical Structure ps_ring. | ||
|
||
Theorem glop : forall | ||
(α : Type) (R : ring α) (K : field), | ||
@lap_eq (puiseux_series α) (@ps_ring α R K) | ||
(@cons (puiseux_series α) (@ps_zero α R) (@nil (puiseux_series α))) | ||
nil. | ||
Proof. | ||
intros. | ||
Check 1%nat. | ||
rewrite lap_eq_0. | ||
Check 1%nat. | ||
Abort. |