Skip to content

Commit 0e2f22d

Browse files
authored
Merge pull request #173 from Seasawher/auto-update-branch
Lean/Mathlib update
2 parents d3b33e8 + 1c51f06 commit 0e2f22d

File tree

5 files changed

+101
-6
lines changed

5 files changed

+101
-6
lines changed

docs/attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Attributes
22

3-
Mathlib version: `409137130c4c0e7033eea0a7e369aa8607fd0973`
3+
Mathlib version: `3ece930d0a4a55679efa52b1a825ac93b2469a06`
44

55
## aesop
66
Register a declaration as an Aesop rule.

docs/commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Commands
22

3-
Mathlib version: `409137130c4c0e7033eea0a7e369aa8607fd0973`
3+
Mathlib version: `3ece930d0a4a55679efa52b1a825ac93b2469a06`
44

55
## \#adaptation_note
66
Defined in: `adaptationNoteCmd`

docs/options.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Options
22

3-
Mathlib version: `409137130c4c0e7033eea0a7e369aa8607fd0973`
3+
Mathlib version: `3ece930d0a4a55679efa52b1a825ac93b2469a06`
44

55
## Mathlib.Tactic.TFAE.useDeprecated
66
type: `Bool`
@@ -3457,6 +3457,48 @@ default: `false`
34573457

34583458
enable/disable tracing for the given module and submodules
34593459

3460+
## trace.plausible.decoration
3461+
type: `Bool`
3462+
3463+
default: `false`
3464+
3465+
enable/disable tracing for the given module and submodules
3466+
3467+
## trace.plausible.discarded
3468+
type: `Bool`
3469+
3470+
default: `false`
3471+
3472+
enable/disable tracing for the given module and submodules
3473+
3474+
## trace.plausible.instance
3475+
type: `Bool`
3476+
3477+
default: `false`
3478+
3479+
enable/disable tracing for the given module and submodules
3480+
3481+
## trace.plausible.shrink.candidates
3482+
type: `Bool`
3483+
3484+
default: `false`
3485+
3486+
enable/disable tracing for the given module and submodules
3487+
3488+
## trace.plausible.shrink.steps
3489+
type: `Bool`
3490+
3491+
default: `false`
3492+
3493+
enable/disable tracing for the given module and submodules
3494+
3495+
## trace.plausible.success
3496+
type: `Bool`
3497+
3498+
default: `false`
3499+
3500+
enable/disable tracing for the given module and submodules
3501+
34603502
## trace.pp.analyze
34613503
type: `Bool`
34623504

docs/tactics.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tactics
22

3-
Mathlib version: `409137130c4c0e7033eea0a7e369aa8607fd0973`
3+
Mathlib version: `3ece930d0a4a55679efa52b1a825ac93b2469a06`
44

55
## \#adaptation_note
66
Defined in: `«tactic#adaptation_note_»`
@@ -4159,6 +4159,59 @@ Defined in: `Batteries.Tactic.«tacticPick_goal-_»`
41594159

41604160
See also `Tactic.rotate_goals`, which moves goals from the front to the back and vice-versa.
41614161

4162+
## plausible
4163+
Defined in: `plausibleSyntax`
4164+
4165+
`plausible` considers a proof goal and tries to generate examples
4166+
that would contradict the statement.
4167+
4168+
Let's consider the following proof goal.
4169+
4170+
```lean
4171+
xs : List Nat,
4172+
h : ∃ (x : Nat) (H : x ∈ xs), x < 3
4173+
⊢ ∀ (y : Nat), y ∈ xs → y < 5
4174+
```
4175+
4176+
The local constants will be reverted and an instance will be found for
4177+
`Testable (∀ (xs : List Nat), (∃ x ∈ xs, x < 3) → (∀ y ∈ xs, y < 5))`.
4178+
The `Testable` instance is supported by an instance of `Sampleable (List Nat)`,
4179+
`Decidable (x < 3)` and `Decidable (y < 5)`.
4180+
4181+
Examples will be created in ascending order of size (more or less)
4182+
4183+
The first counter-examples found will be printed and will result in an error:
4184+
4185+
```
4186+
===================
4187+
Found problems!
4188+
xs := [1, 28]
4189+
x := 1
4190+
y := 28
4191+
-------------------
4192+
```
4193+
4194+
If `plausible` successfully tests 100 examples, it acts like
4195+
admit. If it gives up or finds a counter-example, it reports an error.
4196+
4197+
For more information on writing your own `Sampleable` and `Testable`
4198+
instances, see `Testing.Plausible.Testable`.
4199+
4200+
Optional arguments given with `plausible (config : { ... })`
4201+
* `numInst` (default 100): number of examples to test properties with
4202+
* `maxSize` (default 100): final size argument
4203+
4204+
Options:
4205+
* `set_option trace.plausible.decoration true`: print the proposition with quantifier annotations
4206+
* `set_option trace.plausible.discarded true`: print the examples discarded because they do not
4207+
satisfy assumptions
4208+
* `set_option trace.plausible.shrink.steps true`: trace the shrinking of counter-example
4209+
* `set_option trace.plausible.shrink.candidates true`: print the lists of candidates considered
4210+
when shrinking each variable
4211+
* `set_option trace.plausible.instance true`: print the instances of `testable` being used to test
4212+
the proposition
4213+
* `set_option trace.plausible.success true`: print the tested samples that satisfy a property
4214+
41624215
## polyrith
41634216
Defined in: `Mathlib.Tactic.Polyrith.«tacticPolyrithOnly[_]»`
41644217

lake-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"subDir": null,
77
"scope": "leanprover-community",
8-
"rev": "8b52587ff32e2e443cce6109b5305341289339e7",
8+
"rev": "0dc51ac7947ff6aa2c16bcffb64c46c7149d1276",
99
"name": "batteries",
1010
"manifestFile": "lake-manifest.json",
1111
"inputRev": "main",
@@ -85,7 +85,7 @@
8585
"type": "git",
8686
"subDir": null,
8787
"scope": "",
88-
"rev": "409137130c4c0e7033eea0a7e369aa8607fd0973",
88+
"rev": "3ece930d0a4a55679efa52b1a825ac93b2469a06",
8989
"name": "mathlib",
9090
"manifestFile": "lake-manifest.json",
9191
"inputRev": "master",

0 commit comments

Comments
 (0)