diff options
| author | Emilio Jesus Gallego Arias | 2020-03-10 18:14:07 -0400 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2020-03-10 18:14:07 -0400 |
| commit | 98b25745ab50df8f5f263cd32dbe8525aa525ea8 (patch) | |
| tree | 9e8374164ef57776fb0df08bb6bf96259db5a0b2 /theories/Init | |
| parent | 4cc3f613c96197dd9e6b5f531fa4c68968f27176 (diff) | |
| parent | 9c2092b456c4ad56e2b680e700080355fc652a6b (diff) | |
Merge PR #11767: Fix #11738 : Funind using deprecated Coqlib API.
Reviewed-by: ejgallego
Reviewed-by: maximedenes
Diffstat (limited to 'theories/Init')
| -rw-r--r-- | theories/Init/Peano.v | 2 | ||||
| -rw-r--r-- | theories/Init/Wf.v | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/theories/Init/Peano.v b/theories/Init/Peano.v index 149a7a0cc5..beb06ea912 100644 --- a/theories/Init/Peano.v +++ b/theories/Init/Peano.v @@ -159,6 +159,8 @@ Inductive le (n:nat) : nat -> Prop := where "n <= m" := (le n m) : nat_scope. +Register le_n as num.nat.le_n. + Hint Constructors le: core. (*i equivalent to : "Hints Resolve le_n le_S : core." i*) diff --git a/theories/Init/Wf.v b/theories/Init/Wf.v index 998bbc7047..bd5185fdb0 100644 --- a/theories/Init/Wf.v +++ b/theories/Init/Wf.v @@ -32,11 +32,14 @@ Section Well_founded. Inductive Acc (x: A) : Prop := Acc_intro : (forall y:A, R y x -> Acc y) -> Acc x. + Register Acc as core.wf.acc. + Lemma Acc_inv : forall x:A, Acc x -> forall y:A, R y x -> Acc y. destruct 1; trivial. Defined. Global Arguments Acc_inv [x] _ [y] _, [x] _ y _. + Register Acc_inv as core.wf.acc_inv. (** A relation is well-founded if every element is accessible *) |
