Comments (6)
Looks very good. I wondered if one should rather use the Isabelle order for parameters, i.e.,write
eventually (\lamba n, u n ≥0) at_top
or
eventually at_top (\lamba n, u n ≥0)
But in the end both are understandable even if one does not know that a filter is involved in the statement. And the second order, that you have chosen, makes it possible to also write at_top.eventually
. So it is fine with me!
from mathlib.
The f.eventually
notation is more flexible, both orders would work. I didn't use the Isabelle order, as it felt more natural to write the object we are operating on in the first position. Do you have a case were Isabelle's order has an advantage? In Isabelle most quantifiers over datatypes follow the form t_all : ('a -> bool) -> ('a t -> bool)
. I don't know if we have any precedence yet in mathlib.
Anyway, I hope that users don't directly write down eventually
or frequently
but use the quantifiers.
from mathlib.
If the user wants to use eventually
, with Isabelle's order they have the advantage to choose between: f.eventually p
or eventually p f
. Unfortunately f.eventually
itself does not work, it's missing the p
.
I guess I will change it to Isabelle's order
from mathlib.
To me, the argument in favor of Isabelle order is that it looks more like a regular English sentence. But this is a weak argument.
from mathlib.
Added notation in #1845. Should we close this issue, or leave it to discuss what parts of the library should / should not be migrated to this notation?
from mathlib.
I think it's fine to close this now.
from mathlib.
Related Issues (20)
- Refactor bilinear forms
- evaluate `int.floor` and `int.fract` with `norm_num` HOT 2
- Lean is unable to infer `ordered_smul` instance from `pi.ordered_smul'` HOT 1
- Basics of tempered distributions HOT 1
- backport remove with_cases
- backport remove `@[ext foo]`
- Diamond of complete boolean algebras on sets
- Generalize `lower_semicontinuous_supr` and variations to *conditionally* complete linear orders
- `polyrith` fails if expression is an equality of numerals
- Lean 3.49.0 compatibility HOT 6
- Q: LLM and/or an RL agent trained on mathlib and tests HOT 1
- Renaming `interval_oc` and `Ι a b` HOT 4
- `(a :: l ++ [b]).last'` does not simplify to `some b`
- mathlib/src/group_theory/presented_group.lean
- The Shapley-Folkman lemma HOT 2
- The ring of integers of a number field `K` is free of dimension `[K : ℚ]` / develop the theory of lattices HOT 3
- Tracking: attribute semireducible/irreducible
- Use a sensible sort order in multiset.repr
- Link broken HOT 1
- Proof that the unit group of a number field is finitely-generated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mathlib.