blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7850b484df3d3a4f68f284777b5ceca5d752bbf0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/integral_closure.lean | fa887f467ad126d2eb130685fde56f2785344d81 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 47,480 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.polynomial.expand
import linear_algebra.finite_dimensional
import linear_algebra.matrix.charpoly.linear_map
import ring_theory.adjoin.fg
import ring_theory.finite_t... |
ba5303e5d8d8d73fddfe7d31085587e9298aae03 | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/logic/embedding.lean | a3d1697c9bececdb954e829ac72c899d9afa42b7 | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 9,706 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.equiv.basic
/-!
# Injective functions
-/
universes u v w x
namespace function
/-- `α ↪ β` is a bundled injective function. -/
structur... |
d716bdb465ab1f532810c515f230893aa64f1c6e | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /src/super/eqn_lemmas.lean | bce2d1790eb5f99c4b45aad212007b3a4976353a | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 2,344 | lean | import super.utils super.clause
import tactic.binder_matching
open tactic expr
namespace super
meta def get_eqn_lemma_clauses (n : name) : tactic (list clause) := do
els ← get_eqn_lemmas_for tt n,
els.mmap clause.of_const
meta def mk_inst_equations_core : expr → expr → tactic (list expr) | lhs rhs := do
type ← infe... |
dd8682a2642cb4a8b0abac8362132e826f6fec2f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/uniform_group.lean | 75f99ea12ad07d416de67b07ebbe503fc8ab0aca | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 20,870 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import topology.uniform_space.uniform_convergence
import topology.uniform_space.uniform_embedding
import topology.uniform_space.complete_separated
imp... |
e2aa0c2a84e08769b87047e78e80c2486c54aee4 | d123c25a3db52270abe622eca989f9be39b4fd4e | /test.lean | 4d81475f97038acebb1c1a5a730badcfd7f9a363 | [] | no_license | mwpb/leanCT | 248da6bf0f0088b3ac1cc4c0e8c70ac7e00b6a1a | 1813106178780680b4214dd895c631f2ce9932a4 | refs/heads/master | 1,610,827,463,815 | 1,502,651,067,000 | 1,502,651,067,000 | 100,198,392 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 858 | lean | open string
constant category: Type
constant object: Π C: category, Type
constant hom: Π {C: category}, object C -> object C -> Type
constant comp: Π {C: category} {a b c: object C}, hom a b → hom b c → hom a c
constant e: Π {C: category} x:object C, hom x x
infix * := comp
constant leftId: Π {C: category} (x y: objec... |
025879ed321a45a6d5d0f5cac4fb94b81ad5ace0 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/mv_polynomial/monad.lean | c0cb532b70256768b92d1f1fda13c13371a72e5d | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,436 | lean | /-
Copyright (c) 2020 Johan Commelin and Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin and Robert Y. Lewis
-/
import data.mv_polynomial.rename
/-!
# Monad operations on `mv_polynomial`
This file defines two monadic operations on `mv... |
24f6e62e1d43bf033aef8d56c4295be614b285ca | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /library/standard/bool.lean | 12ea0188fb58317b7697ed3c50eba029d3ff4a1c | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,438 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
import logic decidable
using eq_proofs decidable
namespace bool
inductive bool : Type :=
| b0 : bool
| b1 : bool
notation `'0`:max := b0
notation `'1`:ma... |
9c34255c9cf1e8c456570c2c0bf85433f6980286 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/wlog.lean | f93d507f48a514b4cc2b9012a14c25af51b1034e | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,098 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Johan Commelin
-/
import tactic.wlog
section wlog
example {x y : ℕ} : true :=
begin
wlog h : x ≤ y,
{ guard_hyp h : ¬x ≤ y,
guard_hyp this : ∀ {x y : ℕ}, x ≤ y → tr... |
603b715a2c48bd3c5458d01cbfa8ddf020b0bf6a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/dedekind_domain/basic.lean | 7a4715fa81bafe756eac339ba925acc1f333ff56 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,934 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import ring_theory.ideal.over
import ring_theory.polynomial.rational_root
/-!
# Dedekind domains
> THIS FILE IS SYNCHRONIZED WITH... |
6ddbef88d387d267491fa41ee946d23cf3ca862e | 0d2e44896897eda703992595d71a0b19ed30b8a1 | /uexp/src/uexp/u_semiring.lean | 749e0eecb0d39fb1331ed6dd7b3447381e9f6292 | [
"BSD-2-Clause"
] | permissive | wwombat/Cosette | a87312aabefdb53ea8b67c37731bd58c7485afb6 | 4c5dc6172e24d3546c9818ac1fad06f72fe1c991 | refs/heads/master | 1,619,479,568,051 | 1,520,292,502,000 | 1,520,292,502,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,997 | lean | -- definition of u-semiring
class denotation (A: Type) (B:Type) :=
(denote : A → B)
--def denote {A B: Type} [denotation A B] : A → B := @denotation.denote
constant datatype: Type
inductive tree (A:Type)
| node : tree → tree → tree
| leaf : A → tree
| empty {} : tree
definition Schema := tree datatype
constant d... |
6d0712afd8c21a01d5323f14604558086e1122e4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/measure/haar_lebesgue.lean | b42d1140e8211bd6a2a6b7f60e1bd15067d4ed04 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 40,225 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Sébastien Gouëzel
-/
import measure_theory.measure.lebesgue
import measure_theory.measure.haar
import linear_algebra.finite_dimensional
import analysis.normed_space... |
613c46728a0a5c68b305d088c9ea8c8f4cc871aa | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/metric_space/basic.lean | db77971b3e7949671982e8422b9bc7ce0ef71370 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 75,175 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
Many definitions and theorems expected on metric spaces are already introduced o... |
a080d55a10f695a60092db7bd848efc54ff17cf6 | bb31430994044506fa42fd667e2d556327e18dfe | /src/combinatorics/set_family/kleitman.lean | 3fe9a533bc0c8016b36cb7725622fa2c65c3e5c7 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 3,771 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import combinatorics.set_family.harris_kleitman
import combinatorics.set_family.intersecting
/-!
# Kleitman's bound on the size of intersecting families
An intersecting... |
1993193ef7c702ce15e51c5fe03d4871266f724d | bdd56e6eb0f467437e368d613de75299495d4054 | /src/tactic/fattribute.lean | d55229d3887ccd797015728822fda85f94a6a03b | [] | no_license | truong111000/formalabstracts | 49a04c268ccee136e48e24e9d5dcb6fedea4b53e | 93a89a5c05c6fbc23eb9b914b60dcc353e609cd2 | refs/heads/master | 1,589,551,767,824 | 1,555,708,723,000 | 1,555,708,723,000 | 182,326,292 | 0 | 0 | null | 1,555,708,332,000 | 1,555,708,331,000 | null | UTF-8 | Lean | false | false | 2,114 | lean | /-
Copyright (c) 2019 Koundinya Vajjha. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Koundinya Vajjha
The fabstract user attribute.
-/
import tactic.metadata
import system.io
open interactive interactive.types lean.parser tactic native io
@[user_attribute]
meta d... |
3c908733e66f99638453b6f42a3f8a8241f2098a | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/coe.lean | 604ed49d359eeb06687e85504e3b481708e11a79 | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 7,183 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
/-
The elaborator tries to insert coercions automatically.
Only instances of has_coe type class are considered in the process.
Lean also provides a "lifti... |
27f6e8a5f914b6bdde574c99444ad5d14a1e9290 | 92b50235facfbc08dfe7f334827d47281471333b | /library/algebra/relation.lean | e30160483394faa6a9da7fbe4bc963fe4afbb2aa | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 4,425 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
General properties of relations, and classes for equivalence relations and congruences.
-/
namespace relation
/- properties of binary relations -/
section
var... |
672f979d96c14d04be995fd27894d81119220204 | 69bc7d0780be17e452d542a93f9599488f1c0c8e | /10-24-2019.lean | 8f906367d0ffcd93feebf090b5faf4fae25cfbcb | [] | no_license | joek13/cs2102-notes | b7352285b1d1184fae25594f89f5926d74e6d7b4 | 25bb18788641b20af9cf3c429afe1da9b2f5eafb | refs/heads/master | 1,673,461,162,867 | 1,575,561,090,000 | 1,575,561,090,000 | 207,573,549 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 180 | lean | -- Notes 10/24/2019
/-
A truth table could be represented as n binary bits (where n is the number of variables)
We could imagine this also as a list of interpretation functions
-/ |
0880a1322e05c4cbf82af2e3361bd900bc9efb42 | b328e8ebb2ba923140e5137c83f09fa59516b793 | /stage0/src/Init/System/FilePath.lean | be9b05e7bc7160adc33ada90026af8e8700d7855 | [
"Apache-2.0"
] | permissive | DrMaxis/lean4 | a781bcc095511687c56ab060e816fd948553e162 | 5a02c4facc0658aad627cfdcc3db203eac0cb544 | refs/heads/master | 1,677,051,517,055 | 1,611,876,226,000 | 1,611,876,226,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,824 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.System.Platform
import Init.Data.String.Basic
namespace System
namespace FilePath
open Platform
/-- The character that separates direc... |
baf3cb9e58aa194fe0ebb835971d93e69c626bbb | 42c01158c2730cc6ac3e058c1339c18cb90366e2 | /broken_field.lean | dd73cd45a7211b857b74831151af025105f9b353 | [] | no_license | ChrisHughes24/xena | c80d94355d0c2ae8deddda9d01e6d31bc21c30ae | 337a0d7c9f0e255e08d6d0a383e303c080c6ec0c | refs/heads/master | 1,631,059,898,392 | 1,511,200,551,000 | 1,511,200,551,000 | 111,468,589 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,434 | lean | import data.rat tactic.norm_num
#print one_div_eq_inv
local attribute [instance] classical.decidable_inhabited classical.prop_decidable
-- because I don't know how to do inverses sensibly otherwise;
-- I needed to know that if z was non-zero then either its rat part
-- was non-zero or its imaginary part was non-zero... |
fb1d2d513919ec7b7566b23feec3c9c6848c1f9b | 0d7f5899c0475f9e105a439896d9377f80c0d7c3 | /src/ualg.lean | 3250fa6f1cc221a08e29d0858fe77e94d344a643 | [] | no_license | adamtopaz/UnivAlg | 127038f320e68cdf3efcd0c084c9af02fdb8da3d | 2458d47a6e4fd0525e3a25b07cb7dd518ac173ef | refs/heads/master | 1,670,320,985,286 | 1,597,350,882,000 | 1,597,350,882,000 | 280,585,500 | 4 | 0 | null | 1,597,350,883,000 | 1,595,048,527,000 | Lean | UTF-8 | Lean | false | false | 3,099 | lean | import .lang
/-
The `has_app` typeclass provides an interpretation of a language.
-/
class has_app (L : lang) (A : Type*) :=
(app {n} : L n → ftuple A n → A)
notation `applyo` := has_app.app
/-
A morphism of raw algebras relative to a language L.
Use the notation `A →$[L] B`.
-/
structure ralg_hom (L : lang) (A : Ty... |
809f44729945d036bb23863649fef43179051cac | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/eq4.lean | 923c97005ee437209e0a2a0e99f488a99fc98e9c | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 300 | lean | open nat
definition half : nat → nat
| half 0 := 0
| half 1 := 0
| half (x+2) := half x + 1
theorem half0 : half 0 = 0 :=
rfl
theorem half1 : half 1 = 0 :=
rfl
theorem half_succ_succ (a : nat) : half (a + 2) = half a + 1 :=
rfl
example : half 5 = 2 :=
rfl
example : half 8 = 4 :=
rfl
|
c5c887e876e9b51a5c5fe027b6e2f3a95e6f574f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/local_homeomorph.lean | a362dcc1b96f54bea049eee89bd26d891758b167 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 54,391 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import logic.equiv.local_equiv
import topology.sets.opens
/-!
# Local homeomorphisms
This file defines homeomorphisms between open subsets of topological spac... |
05ef761ffee47eca0d8ea94639f130e4c2137311 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/rewrite_with_beta.lean | b64f34981ef9c590f3d4bf6ef3234d9abacb3bc3 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 266 | lean | import data.stream
open nat
namespace stream
variable A : Type
theorem mem_cons_of_mem₂ {a : A} {s : stream A} (b : A) : a ∈ s → a ∈ b :: s :=
assume ains, obtain n h, from ains,
exists.intro (succ n) begin rewrite [nth_succ, tail_cons, h] end
end stream
|
00e9f5a839db71e14a995880d2793b828fe86e9a | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Init/Util.lean | fecba7a1298131f9b52d0d905c32d2b69b5889c3 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 2,667 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.String.Basic
import Init.Data.ToString.Basic
universes u v
/- debugging helper functions -/
@[neverExtract, extern "lean_dbg_trace... |
d1355f2f0f692357a181ec9511c94ca96b887ab3 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/uniform_space/abstract_completion.lean | 7650ef29d325cbcbec37d8aadd8be0974d1db0df | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 11,219 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.uniform_space.cauchy
import topology.uniform_space.uniform_embedding
/-!
# Abstract theory of Hausdorff completions of uniform spaces
This file cha... |
b22188baea8e8d2baf5410209bc0ba165b794a44 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/tactic/abel.lean | b1cc1c24668b6fb4fa6c1c242e97980f03e83eda | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 13,194 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.norm_num
/-!
# The `abel` tactic
Evaluate expressions in the language of additive, commutative monoids and groups.
-/
namespace tactic
namespace ab... |
ec2a6e18641795a84840741dc243c147590ab05e | e9706a48d2f8c9c320a939f0e06d9d743b3fd7f9 | /src/fib.lean | 90b6dac6bc838ce48918d467cfab3c69efd4426e | [
"Apache-2.0"
] | permissive | bryangingechen/lean-fibonacci | 59241eb05edb4492b1a325cf2d615a54df7de158 | 8ac73044b17ff0c5f6b50cab7ee10456d54dba87 | refs/heads/master | 1,636,788,695,940 | 1,636,444,154,000 | 1,636,444,154,000 | 198,952,656 | 1 | 1 | NOASSERTION | 1,636,444,155,000 | 1,564,119,249,000 | Lean | UTF-8 | Lean | false | false | 5,025 | lean | import data.list.range
import data.list.join
@[reducible]
def fibonacci : ℕ → ℕ
| 0 := 0
| 1 := 1
| (n+2) := fibonacci n + fibonacci (n+1)
open nat list
---
@[reducible]
def fib_sum (n : ℕ) : ℕ :=
((range n).map fibonacci).sum
@[reducible]
def fib_odd_sum (n : ℕ) : ℕ :=
((range n).map (λ m, fibonacci (2*m + 1))).sum... |
171f7f315b51f944b96ef4e64bc3d119af426c1b | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/algebra/ring.lean | debd9fff6db8d991bc62bd9650b9b9c374259285 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 21,414 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Amelia Livingston
-/
import algebra.group
/-!
# Properties and homomorphisms of semirings and rings
This file proves simple proper... |
f3012f6bbdd449e80e02d9f5c39116fcf656cddd | 8034095e1be60c0b8f6559c39220bd537d1f9933 | /lambda/default.lean | 59256944b66734f852293ce45924b3f9e67f27f2 | [] | no_license | teodorov/lambda | 40c573e2dd268824641702d9f94cf61e019ae6c5 | 4dc4d595dd0ee20c59913ef0171fd33eb0d637a1 | refs/heads/master | 1,585,318,070,303 | 1,530,364,515,000 | 1,530,364,515,000 | 146,645,753 | 1 | 0 | null | 1,535,569,435,000 | 1,535,569,434,000 | null | UTF-8 | Lean | false | false | 5,306 | lean | import lambda.parsing lambda.types lambda.unicode
import system.io data.buffer.parser
open parsing types parser
def mk_env (env : list (string × term)) (t : term) : term :=
match list.unzip env with
| (names, terms) := multi_app (multi_lam names t) terms
end
def add_to_env (env : list (string × term)) : string × ter... |
cdbbf694cef1477f2b193b347deef31a68b1f58e | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/measure/vector_measure.lean | f29742363b51f02dff498463bd075ab6944ed6d4 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 50,119 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.measure.measure_space
import analysis.complex.basic
/-!
# Vector valued measures
This file defines vector valued measures, which are σ-additive fun... |
0f34a0f34fbb47c3173dd238118d539247d4e3eb | b561a44b48979a98df50ade0789a21c79ee31288 | /src/Lean/Elab/BuiltinNotation.lean | 060befbeac6bd91c23559186a4a1e2dfe24cb808 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,817 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Init.Data.ToString
import Lean.Compiler.BorrowedAnnotation
import Lean.Meta.KAbstract
import Lean.Meta.Transform
import Lean.Elab.App
import Lean.Ela... |
d376710003dfc8c5bec64e29b6a3f008ec5f5d17 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/constructions/finite_products_of_binary_products.lean | e53af1ae1650c429e8c2ff3fdb1bd618e2c64744 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 13,627 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.binary_products
import category_theory.limits.preserves.shapes.products
import c... |
af2d9f7fc2ab52ee9d1ac37d4d63da839810cad8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/inner_product_space/basic.lean | 784261db2756ae5c9bc99c982b8101af9cb8fb27 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 103,627 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis
-/
import algebra.direct_sum.module
import analysis.complex.basic
import analysis.normed_space.bounded_linear_maps
import analysis.conv... |
22d44834ebb02d405a902d5f3049aee7ca924c1a | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/topology/uniform_space/basic.lean | 0daeb1b10a0aa357cfe127d6eb61047b3af4a1c2 | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 42,348 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of uniform spaces.
Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly
generaliz... |
708a654445d939982c372f811c890ec15fbe00b2 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/eq12.lean | 5bc9830f633718ee91613d21950d464b6affe22f | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 498 | lean | open nat bool inhabited
definition diag : bool → bool → bool → nat
| diag _ tt ff := 1
| diag ff _ tt := 2
| diag tt ff _ := 3
| diag _ _ _ := arbitrary nat
theorem diag1 (a : bool) : diag a tt ff = 1 :=
bool.cases_on a rfl rfl
theorem diag2 (a : bool) : diag ff a tt = 2 :=
bool.cases_on a rfl rfl
theorem dia... |
b08fa16bb7ff1a3ca88dd94ead08865e6decc6b9 | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /world_experiments/world8/level12.lean | a7cdd843824325b37cf9cefd1b89d207722ee1ae | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 1,115 | lean | import game.world3.level11 -- hide
import game.world2.level13 -- add_left_eq_zero -- hide
namespace mynat -- hide
/-
# Multiplication World
## Level 12: `mul_left_cancel`
This is the last but one of the bonus multiplication levels.
`mul_left_cancel` will be useful in inequality world.
But before that we have a rela... |
857d1c4560546792bf62cd6e3356045f49475da1 | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/inaccessible.lean | 552a287d56afc890630c611c7c8fab81e139b8e8 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 607 | lean | universe u
inductive ImageOf {α β : Type u} (f : α → β) : β → Type u
| Imf : ∀ (x : α), ImageOf (f x)
open ImageOf
def inverse {α β : Type u} {f : α → β} : ∀ (y : β), ImageOf f y → α
| .(f x) (Imf .(f) x) := x
inductive Vec (α : Type u) : ℕ → Type u
| Nil {} : Vec 0
| Cons : ∀ {n : ℕ}, α → Vec n → Vec (n + 1)
op... |
c8db5dbbe074738ac7a16a25c47ac73a69688b6e | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/matrix/determinant.lean | 8c398e048380fe43c2dab19b8d8efefe119ca910 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 31,771 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Tim Baanen
-/
import data.matrix.pequiv
import data.matrix.block
import data.matrix.notation
import data.fintype.card
import group_theory.perm.fin
import group_theo... |
1e43b51620afe441c60e2b169dcc7c7db8f09d4c | 9c2e8d73b5c5932ceb1333265f17febc6a2f0a39 | /src/S4/size.lean | 3d2cf5161f2051f56ca130e77a250ac639c59090 | [
"MIT"
] | permissive | minchaowu/ModalTab | 2150392108dfdcaffc620ff280a8b55fe13c187f | 9bb0bf17faf0554d907ef7bdd639648742889178 | refs/heads/master | 1,626,266,863,244 | 1,592,056,874,000 | 1,592,056,874,000 | 153,314,364 | 12 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,071 | lean | import .S4_defs .data
open nnf prod list
namespace prod
universe u
def measure_lex {α : Sort u} : (α → ℕ × ℕ) → α → α → Prop :=
inv_image $ lex (<) (<)
def measure_lex' {α : Sort u} : (α → ℕ × ℕ × ℕ) → α → α → Prop :=
inv_image $ lex (<) (measure_lex (λ x, x))
def measure_lex_wf {α : Sort u} (f : α → ℕ × ℕ) : well... |
80fc55da1f01fba1c21b5b9597a9c5d553dae7ba | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/hom/bounded.lean | e35a40a93b5e48cd8a3e9fedb1bb37bff87f4e00 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 20,098 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.hom.basic
import order.bounded_order
/-!
# Bounded order homomorphisms
This file defines (bounded) order homomorphisms.
We use the `fun_like` design, so e... |
6a1e7f6791a43dadd38b4585561d630da362a824 | 359199d7253811b032ab92108191da7336eba86e | /src/instructor/lectures/lecture_10.lean | 80f20077d7a3f22e5c89adb3e52443b4162d7932 | [] | no_license | arte-et-marte/my_cs2120f21 | 0bc6215cb5018a3b7c90d9d399a173233f587064 | 91609c3609ad81fda895bee8b97cc76813241e17 | refs/heads/main | 1,693,298,928,348 | 1,634,931,202,000 | 1,634,931,202,000 | 399,946,705 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,904 | lean | /-
In today's class, we'll continue with our
exploration of the proposition, "false",
its elimination rule, and their vital uses
in logical reasoning: especially in
**True has only an introduction rule, whereas false has only an elimination rule.**
- proof of ¬P by negation **(¬ = "not")** **(not P = P implies false, ... |
cd347ff49e673ffc9bf8ac2757a90b637a5240ec | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/ubscalar.lean | 11dc60fa5b28b7a92fd53531bbda441ca704e64b | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 318 | lean |
structure Foo :=
(flag : Bool := false)
(x : UInt16 := 0)
(z : UInt32 := 0)
(w : UInt64 := 0)
(h : USize := 0)
(xs : List Nat := [])
set_option trace.compiler.ir.init true
def f (s : Foo) : Foo :=
{ s with x := s.x + 1 }
def g (flag : Bool) : Foo :=
let s : Foo := { x := 10, flag := flag };
f s
|
aaeb3452537d0346cb259656cfa3142cb09e209b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/laurent_series.lean | 430e199e496ea561c2f05416a9725b6e8bbcede4 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 8,436 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import ring_theory.hahn_series
import ring_theory.localization.fraction_ring
/-!
# Laurent Series
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this f... |
0963e5d73289f578094c98984c71ca3a27683300 | d751a70f46ed26dc0111a87f5bbe83e5c6648904 | /Code/src/inst/exec/propagate.lean | 9f0c2ab51a389bd589a2213e160af2386cb787aa | [] | no_license | marcusrossel/bachelors-thesis | 92cb12ae8436c10fbfab9bfe4929a0081e615b37 | d1ec2c2b5c3c6700a506f2e3cc93f1160e44b422 | refs/heads/main | 1,682,873,547,703 | 1,619,795,735,000 | 1,619,795,735,000 | 306,041,494 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,427 | lean | import inst.network.graph
open reactor.ports
-- Cf. inst/primitives.lean
variables {υ : Type*} [decidable_eq υ]
namespace inst
namespace network
namespace graph
-- Propagates the source value to the desination port for a given edge.
noncomputable def propagate_edge (η : graph υ) (e : graph.edge) : graph υ :=
... |
5ebaa9a4499581835e503cce3900e400ef3abfb7 | 5bcdf53ae59d93bf05c4a6b7780107f9bba8a987 | /2_StackMachine.lean | bc3b4b6b7e0833bc89f5d038843f820ad7bdafc8 | [] | no_license | joshpoll/CPDT-examples-in-Lean | 3241734e80c8507934a9fbf2ddfed9eedc1ed27b | 287aebec9a4a9dc4a07b8e4cc885c81afe400f1a | refs/heads/master | 1,611,267,038,438 | 1,498,610,301,000 | 1,498,610,301,000 | 95,181,904 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,389 | lean | import tools.auto.finish
import _target.deps.mini_crush.src.mini_crush
namespace arith
-- *Artihmetic Expressions Over Natural Numbers
-- **Source Language
-- binary operation syntax
inductive binop : Type
| Plus
| Times
-- arithmetic expression syntax
inductive exp : Type
| Const : ℕ → exp
| Binop : binop → exp → e... |
4d7e3f8eb149bc6a757b62d4bfea4c8c5203ef19 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/set_theory/ordinal.lean | b7eeae6d679f6f7e8b24bceaaaa8dd8a31add190 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 58,121 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import set_theory.cardinal
import order.conditionally_complete_lattice
/-!
# Ordinals
Ordinals are defined as equivalences of well-ordered sets un... |
9d58b329996fbd40335925076cf40d62b5140a67 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/number_theory/lucas_lehmer.lean | 3d46db2c374bab00c900a0bc2f9e312c1901a6df | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,233 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Scott Morrison, Ainsley Pahljina
-/
import tactic.ring_exp
import tactic.interval_cases
import data.nat.parity
import data.zmod.basic
import group_theory.order_of_eleme... |
d710fff7a431d5021c5f6a666aa201eeca9ab1e4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/fix_reflect_string_auto.lean | d8e213b40a2948b99db6b4f86aea4c40a8a9ebdc | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 899 | lean | /-
Copyright (c) 2020 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.PostPort
namespace Mathlib
/-!
# Workaround for stack overflows with `has_reflect string`
... |
8b65c4ab632d0eb9432995d9ac3fac58f0f76818 | b82c5bb4c3b618c23ba67764bc3e93f4999a1a39 | /src/formal_ml/real_measurable_space.lean | 514cdb24bf239c2c9b680fc7efe5e22e9f583491 | [
"Apache-2.0"
] | permissive | nouretienne/formal-ml | 83c4261016955bf9bcb55bd32b4f2621b44163e0 | 40b6da3b6e875f47412d50c7cd97936cb5091a2b | refs/heads/master | 1,671,216,448,724 | 1,600,472,285,000 | 1,600,472,285,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,896 | lean | /-
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
81068350673143c3c26c182257007c75ba7df1e6 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/tactic/interactive.lean | 327e904ba35788286881674d3da1bb74a17dd488 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 27,962 | lean |
/-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison
-/
import tactic.core data.list.defs data.string.defs
open lean
open lean.parser
local postfix `?`:9001 := optional
lo... |
cd7b4e8a0882967ac23bbbab62ea29495bd4573b | f10d66a159ce037d07005bd6021cee6bbd6d5ff0 | /unique_factorization_domain.lean | 76c5d3deab1af29de317e4db85358ff0a654d07b | [] | no_license | johoelzl/mason-stother | 0c78bca183eb729d7f0f93e87ce073bc8cd8808d | 573ecfaada288176462c03c87b80ad05bdab4644 | refs/heads/master | 1,631,751,973,492 | 1,528,923,934,000 | 1,528,923,934,000 | 109,133,224 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 48,315 | lean | import data.finsupp
import algebra.ring
import .to_finset
import .to_multiset
import associated_quotient
noncomputable theory
local infix ^ := monoid.pow
open classical
local attribute [instance] prop_decidable
universe u
variable {α : Type u}
--Would it have been smart to define units as a type that lives in Prop... |
dadd820c126499ee0684820287717c75d9b3554e | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/topology/uniform_space/abstract_completion.lean | 19a2150891cba34aa88c44277582b28484b030b3 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 11,251 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.uniform_space.cauchy
import topology.uniform_space.uniform_embedding
/-!
# Abstract theory of Hausdorff completions of uniform spaces
This file cha... |
00a79ff2423dc7776bff03e03784fb267d8e167d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/examples/reverse-ffi/lib/RFFI.lean | b04ce923a41338d34f33622d63a1e94f3bf31104 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 78 | lean | @[export my_length]
def myLength (s : String) : UInt64 :=
s.length.toUInt64
|
ffca2c7cad06d06aab367249729f61356798bb4a | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/eq10.lean | 2bd4bf7689262b6cde17578ee432b8be9a7be815 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,359 | lean | inductive formula :=
eqf : nat → nat → formula,
andf : formula → formula → formula,
impf : formula → formula → formula,
notf : formula → formula,
orf : formula → formula → formula,
allf : (nat → formula) → formula
namespace formula
definition implies (a b : Prop) : Prop := a → b
definition denote : formula → Pr... |
8689c02fd998b6b28ebe3ec93e41f70871720c17 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/polynomial/content.lean | f41c140b3cd8c8d4a26ca16583a798905e44702a | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 17,503 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import algebra.gcd_monoid.finset
import data.polynomial.field_division
import data.polynomial.erase_lead
import data.polynomial.cancel_leads
/-!
# GCD structures on ... |
955f63e7b58835af4e775986b281a3421f3c7e41 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/simpDisch.lean | 6acd918764e7b3e1cc0e5d418370fe53cf3aa880 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 805 | lean | opaque f : Nat → Nat
@[simp] axiom fEq (x : Nat) (h : x ≠ 0) : f x = x
example (x : Nat) (h : x ≠ 0) : f x = x + 0 := by
simp (discharger := trace_state; exact (fun h' => h') h)
example (x y : Nat) (h1 : x ≠ 0) (h2 : y ≠ 0) (h3 : x = y) : f x = f y + 0 := by
simp (discharger := trace_state; assumption)
assumpti... |
4c0887275f303bd4a7651cee4a991902aeabab37 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/data/mv_polynomial/rename.lean | e13c7395b668f958ecfce35a3e8d0e59b332d304 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 7,109 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Johan Commelin, Mario Carneiro
-/
import data.mv_polynomial.variables
/-!
# Renaming variables of polynomials
This file establishes the `rename` operation on multiva... |
f89c0b53566b6349e8ba45716b5a146c1348f472 | 8e31b9e0d8cec76b5aa1e60a240bbd557d01047c | /scratch/feasible_tableau.lean | 57baa5afb48b8e2dd3599d73a6005c5400e91fc1 | [] | no_license | ChrisHughes24/LP | 7bdd62cb648461c67246457f3ddcb9518226dd49 | e3ed64c2d1f642696104584e74ae7226d8e916de | refs/heads/master | 1,685,642,642,858 | 1,578,070,602,000 | 1,578,070,602,000 | 195,268,102 | 4 | 3 | null | 1,569,229,518,000 | 1,562,255,287,000 | Lean | UTF-8 | Lean | false | false | 82,831 | lean | import data.matrix.pequiv data.rat.basic tactic.fin_cases data.list.min_max .partition2
import order.lexicographic
open matrix fintype finset function pequiv
local notation `rvec`:2000 n := matrix (fin 1) (fin n) ℚ
local notation `cvec`:2000 m := matrix (fin m) (fin 1) ℚ
local infix ` ⬝ `:70 := matrix.mul
local postf... |
87a95aa54d83176c3748c6b91d478fef28eafe1c | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/data/nat/div.lean | 89855becd06e0bdf96dc3cc56bd2a133d8a27d7c | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,168 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.wf init.data.nat.basic
namespace nat
private def div_rec_lemma {x y : nat} : 0 < y ∧ y ≤ x → x - y < x :=
λ h, and.rec (λ ypos ylex, su... |
9eed7c1c389d4395b400007c18c8e80f5f5022aa | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/differential_object.lean | 9fecf2aa77e80da48315d9d62cc6878a3f556d9c | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,759 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.shift
import Mathlib.category_theory.concrete_category.default
import Mathl... |
634ea73524da543b99cd72b8c501b4268350820e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/notation_priority.lean | ddbc34bb8bed2948024254c2e42ddb6cf8b5f294 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 419 | lean | constant f : nat → nat → nat
constant g : nat → nat → nat
infix [priority 10] + := f
infix [priority 20] + := g
variables a b : nat
infix [priority std.priority.default+1] + := f
infix + := g
example : a + b = f a b := rfl
infix [priority std.priority.default+2] + := g
example : a + b = g a b := rfl
infix + := f
i... |
653c4a88e457fe129808dcd45baeeeb29db9dfe1 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/predicate_logic/exists.lean | 25aa888caad405b5dfd6a15ded7c1cbe4dac9464 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 2,845 | lean | /-
Exists introduction. To prove ∃ (p : P), Q
-/
/-
A proof of ∃ (p : P), Q is a *dependent* pair,
⟨ p, q ⟩, where (p : P) is a "witness" to the
existential proposition, and q is a proof of
Q.
Very often, Q will be *about* p, e.g., that
p is an "odd prime", or a "nice person". Q
will be the result of aplying a pre... |
9057c9abade40b5155a24ddad84ea98a94f6d110 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Linter/Builtin.lean | cb5a4b7bc0f28d1bf3f64d8f2e904d72dc8cdd71 | [
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 1,232 | lean | import Lean.Linter.Util
import Lean.Elab.Command
namespace Lean.Linter
register_builtin_option linter.suspiciousUnexpanderPatterns : Bool := {
defValue := true,
descr := "enable the 'suspicious unexpander patterns' linter"
}
def getLinterSuspiciousUnexpanderPatterns (o : Options) : Bool := getLinterValue linter.... |
4dec453f1c12e7494e1a2bd22d7d3d23756b262f | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/meta/environment.lean | c959105a2145f06016dd33d2ffbd33c679ef3bc1 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 6,023 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.declaration init.meta.exceptional init.data.option.basic
import init.meta.rb_map
meta constant environment : Type
namespace envir... |
f9cbd2de5b1b2d88979950d2f2903d49c925ceba | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/number_theory/modular.lean | 5f213bf57bb3fa2d87ce821f51e63392dda1c8c4 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 16,553 | lean | /-
Copyright (c) 2021 Alex Kontorovich and Heather Macbeth and Marc Masdeu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex Kontorovich, Heather Macbeth, Marc Masdeu
-/
import analysis.complex.upper_half_plane
import linear_algebra.general_linear_group
/-!
# The ... |
6145ec58e0ddba848dd9faff3282fe7e66d5d126 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_unit_dep.lean | 9a4f323015a6dd4688747daaca71fceebf31c3f0 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 826 | lean | constant p : nat → Prop
constant q : Π a, p a → Prop
set_option blast.strategy "unit"
example (a : nat) (h₁ : p a) (h₂ : ∀ h : p a, q a h) : q a h₁ :=
by blast
example (a : nat) (h₂ : ∀ h : p a, q a h) (h₁ : p a) : q a h₁ :=
by blast
example (a b : nat) (H : ∀ (p₁ : p a) (p₂ : p b), q b p₂ → q a p₁) (h₁ : p a) (h₂ ... |
76a629af76719a7a532b4215a684d69cacb86dd8 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/group_action/sub_mul_action.lean | cc8224d09a9434085a44f85627f77f2de93e447d | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,188 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.hom.group_action
import algebra.module.basic
import data.set_like.basic
import group_theory.group_action.basic
/-!
# Sets invariant to a `mul_action`
In th... |
e2f04200c159bb36aee30f9fb10cdee008d3b56f | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170706-simp.lean | 8b68b31b969c9cefffb495b1e2c0f7e26364eecc | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,286 | lean | structure Category :=
( Obj : Type )
( Hom : Obj → Obj → Type )
( identity : Π X : Obj, Hom X X )
( compose : Π { X Y Z : Obj }, Hom X Y → Hom Y Z → Hom X Z )
structure Functor (C : Category) (D : Category) :=
(onObjects : C.Obj → D.Obj)
(onMorphisms : Π { X Y : C.Obj },
C.Hom X Y → ... |
c62aad53bc99ebda4fa7eaba97039c5e0effb1fd | 798dd332c1ad790518589a09bc82459fb12e5156 | /category_theory/natural_isomorphism.lean | c20ceeefee57ebe4cbbc1195eff8ef58d07b6e37 | [
"Apache-2.0"
] | permissive | tobiasgrosser/mathlib | b040b7eb42d5942206149371cf92c61404de3c31 | 120635628368ec261e031cefc6d30e0304088b03 | refs/heads/master | 1,644,803,442,937 | 1,536,663,752,000 | 1,536,663,907,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,069 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison
import category_theory.isomorphism
import category_theory.functor_category
open category_theory
namespace category_theory.nat_iso
... |
84e1552236e0df633c8ed9c339dad08ce20320ef | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/integral/peak_function.lean | 0436fb4cce815567d9302a728cfefb2c9a417527 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 19,631 | lean | /-
Copyright (c) 2023 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import measure_theory.integral.set_integral
import measure_theory.function.locally_integrable
/-!
# Integrals against peak functions
> THIS FILE IS SYNCHRONIZ... |
3533689da3357171e200e268b27b595e4f92b49b | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/cache.lean | 184e5a2d82df9669d4e0038ff6f778ae781b7eb9 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 5,552 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.doc_commands
/-!
# Instance cache tactics
For performance reasons, Lean does not automatically update its database
of class instances during a proof. T... |
6c1d17e91fa4336b72844e69f8b9fca680bff5f2 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/rat/cast.lean | d32a5f2f556731af69123784d56324e7fbf57a33 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 11,950 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.rat.order
import data.int.char_zero
/-!
# Casts for Rational Numbers
## Summary
We define the canonical injection from ℚ into an arbitr... |
77b387b2373b6b5ed72b392188263adbe27c004f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Tactic/Conv/Unfold.lean | 9c12e9991d845db44c99fb3d7afad16ce86c3084 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 568 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Tactic.Unfold
import Lean.Elab.Tactic.Conv.Simp
namespace Lean.Elab.Tactic.Conv
open Meta
@[builtin_tactic Lean.Parser.Tactic.Conv.unfold... |
fcaad581a85573e721da50aa011a48401ff7f1bd | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/fp/basic.lean | 80fabd7e9685937ed0bc31f2ed01517520813dcd | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 6,215 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Implementation of floating-point numbers (experimental).
-/
import data.rat data.semiquot
def int.shift2 (a b : ℕ) : ℤ → ℕ × ℕ
| (int.of_nat e) := (a.shiftl e, b)
| -... |
822830f4414461745bbce6ef0d0fbe99556ce259 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/strictImplicit.lean | 1cc86a68550e1b6710fec14131bca951c0ff3e70 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 109 | lean | def g {α : Type} (a : α) := a
def f {{α : Type}} (a : α) := a
#check g
#check f
#check g 1
#check f 1
|
b285043c9405564d6e580c3aae3256e15e657caa | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /omin/def_choice/choice4.lean | 16fbb32b7b1cc351f1de63b1b511e5bfae607bd6 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,893 | lean | import o_minimal.examples.simple
import .choice3
import ..tame
import ..ultra
-- TODO: for lean core library: modify binder type of dif_pos etc.:
-- lemma {u} dif_pos' {c : Prop} {h : decidable c} (hc : c) {α : Sort u} {t : c → α} {e : ¬c → α} : dite c t e = t hc := dif_pos hc
-- Avoids the need (unexplained) for `ope... |
e0dd013021cc1125a6002aec4fbb41fc6f138eb2 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/nat/modeq.lean | 30407ca709d0e9927a1e81dee629b4f2f4a26539 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 12,834 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.int.gcd
import tactic.abel
import data.list.rotate
/-
# Congruences modulo a natural number
This file defines the equivalence relation `a ≡ b [MOD n]` on... |
e6f6ee163aa15cd2ce1c98424eeb6cb02f27f6e3 | e898bfefd5cb60a60220830c5eba68cab8d02c79 | /uexp/src/uexp/rules/pushJoinThroughUnionOnLeft.lean | 24829acfd9b51d124c3f9ce2e0d2f7017562a850 | [
"BSD-2-Clause"
] | permissive | kkpapa/Cosette | 9ed09e2dc4c1ecdef815c30b5501f64a7383a2ce | fda8fdbbf0de6c1be9b4104b87bbb06cede46329 | refs/heads/master | 1,584,573,128,049 | 1,526,370,422,000 | 1,526,370,422,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,828 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..UDP
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
theorem rule:
forall ( Γ scm_t scm_account scm_bonus scm_dept scm_emp: Schema) (rel_t: relation scm_t) (rel_account: r... |
fb50b978a12e1a05f87366648947411fc6cf4b34 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/preadditive/opposite.lean | 9cb7e4e48d28600f6d296c9f002b7f956de51a31 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 1,817 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Adam Topaz
-/
import category_theory.preadditive
import category_theory.preadditive.additive_functor
import data.equiv.transfer_instance
/-!
# If `C` is preadditive, `... |
1fa02afc8bb5abab9166b8442bd0549d143b8586 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/measure_theory/integration.lean | 333765a12cb5f94ba648e5f7a526195ecd5eaa7a | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 68,004 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
-/
import measure_theory.measure_space
import measure_theory.borel_space
import data.indicator_function
import data.support
/-!
# Lebesgue integral for ... |
c0f600c93fc41c88004565e183bbaa5befbba67a | 2102833783742d9cd20d98b382ecb3af427d8071 | /library/init/meta/attribute.lean | bcc2128eded62f79c60d84c97510dfaa715f000d | [
"Apache-2.0"
] | permissive | bryangingechen/lean | b63dd2b7d2ed46c13c6226148691b7d88282e9b2 | ec76117504723667bdc0dda4b93aa1b31536147d | refs/heads/master | 1,592,587,806,769 | 1,568,328,715,000 | 1,568,328,715,000 | 196,801,202 | 0 | 0 | Apache-2.0 | 1,563,085,022,000 | 1,563,085,022,000 | null | UTF-8 | Lean | false | false | 5,912 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.meta.tactic init.meta.rb_map init.meta.has_reflect init.meta.lean.parser
/-- Get all of the declaration names that have the given attri... |
adabe4bc0e312aff6a450a45157fa6a5718dbd43 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/bornology/hom.lean | f9b4a24cc1a80fcb7ac3a0006e7cc4c207d96dbd | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,248 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import topology.bornology.basic
/-!
# Locally bounded maps
This file defines locally bounded maps between bornologies.
We use the `fun_like` design, so each type of mo... |
98bf6fdc28240553e884fd7d077603c5efd79c83 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Init/Util.lean | df7bbee40f365e70ba9403465a92d860ff59d750 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 3,806 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.String.Basic
import Init.Data.ToString.Basic
universe u v
/-! # Debugging helper functions -/
set_option linter.unusedVariables.... |
ca9b913f7d8c827e1471b9179e6c50264dd9e7e3 | d0664585e88edfefe384f2b01de54487029040bb | /src/uniform_structure/entourages.lean | 38c6cf27c5fe2c0a9178af4237b6f234b9a1d754 | [] | no_license | ImperialCollegeLondon/uniform-structures | acf0a092d764925564595c59e7347e066d2a78ab | a41a170ef125b36bdac1e2201f54affa958d0349 | refs/heads/master | 1,668,088,958,039 | 1,592,495,127,000 | 1,592,495,127,000 | 269,964,470 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,263 | lean | import tactic
/-!
# The entourage definition of a uniform space
We start with a little section on `U ∘ V` (see axiom 4 of the wikipedia
entourage definition of a uniform space)
We then give the entourage definition of a uniform space
-/
-- We first define U ∘ V. First the function itself (called `comp_ent`)
/-- ... |
1b3c01beeb5543be89f5e39ff4bf49843d1d2db9 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Elab/SetOption.lean | 4bcfab4cfb6a77a074f3fbdf27e6fa3b95fbddd5 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 1,353 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Log
import Lean.Elab.InfoTree
namespace Lean.Elab
variable [Monad m] [MonadOptions m] [MonadExceptOf Exception m] [MonadRef m]
variable [A... |
9625866e9a42cbfd80f60ee65b0f4b005583b5d8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/number_field/canonical_embedding.lean | d3b00666835051dfb6ebb2245cee98096c9b6430 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,289 | lean | /-
Copyright (c) 2022 Xavier Roblot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Xavier Roblot
-/
import number_theory.number_field.embeddings
/-!
# Canonical embedding of a number field
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require... |
53a9228adb8122ccb21b3887cf0bfebb1b8d7177 | 618003631150032a5676f229d13a079ac875ff77 | /src/measure_theory/borel_space.lean | ef177c8af7921050449e05b45d29585ac4beb285 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 29,406 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import measure_theory.measurable_space
import topology.instances.ennreal
import analysis.normed_space.basic
/-!
# Borel (measurable) space
## Main ... |
7769a981c2f9655dd9ed32a30b4216fbbae4a9cd | f5a711bc61b4fe426425fc39edfb9aa84b06f644 | /library/init/meta/tactic.lean | 81fb6720285397b71d6aa74c8f5e1398bd541173 | [
"Apache-2.0"
] | permissive | ChrisHughes24/lean | 89697c262783aa4fc1e3cc9bd7adf16d049e2be0 | 8ba2c1a8b4b9edd11c96482356b47df8322b3785 | refs/heads/master | 1,610,100,259,751 | 1,582,175,143,000 | 1,582,175,143,000 | 241,995,683 | 0 | 0 | Apache-2.0 | 1,582,234,740,000 | 1,582,234,739,000 | null | UTF-8 | Lean | false | false | 62,093 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.function init.data.option.basic init.util
import init.category.combinators init.category.monad init.category.alternative init.category.m... |
d55de4d011efc21346fab039969d4cd38363ee40 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Leanpkg/Toml.lean | 31d910a63e7c110b5faf25639094d176da62b5cb | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,466 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich
-/
import Lean.Parser
namespace Toml
inductive Value : Type where
| str : String → Value
| nat : Nat → Value
| bool : Bool → Value
| t... |
30cc8c2a95eae7f8316d9320834d5604413d16de | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/lean-scheme-submission/src/sheaves/covering/covering_on_standard_basis.lean | f306e9aa4cb8f94d5b0e316867c63fc970f710e4 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 497 | lean | /-
Same as covering bu thte Ui's are required to be on the basis.
-/
import topology.basic
import to_mathlib.opens
import sheaves.covering.covering
universes u
open topological_space
section covering_on_standard_basis
parameters {α : Type u} [topological_space α]
parameters (B : set (opens α)) [HB : opens.is_b... |
6a25773a91e78c637498eadea19b0140d0701632 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/diamond3.lean | 24bd9cee0ff8a8714388eccd896b6777fed63363 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 255 | lean | structure A where
x : Nat := 0
y : Nat := 0
f : Nat → Nat := (· + 10)
structure B extends A where
z : Nat
structure C extends A where
w : Nat
set_option structureDiamondWarning false
structure D extends B, C where
a : Nat
#print D.toC
|
75af09b076eb2f9f8969afd27fe9f5ce6e7bc743 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/schwartz_space.lean | b0ff178f015e6088b6ef65801ae7e3a49e808dfe | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 19,342 | lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import analysis.calculus.cont_diff
import analysis.locally_convex.with_seminorms
import topology.algebra.uniform_filter_basis
import topology.continuous_function.bounded
i... |
f4fc00f56ed5be5bd2e7f8b049227a3d58e2b8a0 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/deps/galois_stdlib/src/Galois/Data/Bitvec.lean | a79c53d4cdea23a1411d61344716e261efa83cc4 | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 14,306 | lean | /-
Copyright (c) 2015 Joe Hendrix. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joe Hendrix, Sebastian Ullrich, Jason Dagit
Basic operations on bitvectors.
This is a work-in-progress, and contains additions to other theories.
-/
-- import galois.data.nat.basic
-- i... |
a44efb28e7c1109ec3bce5df5517386d4b654325 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/polynomial/chebyshev/basic.lean | bdaeb9a112c064e71397790515dd1800abf5f586 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,292 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.polynomial.chebyshev.defs
import Mathlib.analysis.special_functions.trigonometr... |
5b00712905b1a3ba7d75833f7720446a3c3b3d1c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/tropical/lattice.lean | 544bba5582e4a094d7ef5c8de116b665cfffec0a | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,510 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import algebra.tropical.basic
import order.conditionally_complete_lattice.basic
/-!
# Order on tropical algebraic structure
> THIS FILE IS SYNCHRONIZED WITH MATH... |
74a753722a0101155f16806eafd8e5c256e0ba40 | 25adb3ce35902d6e9c57e494fe055c47c9881db4 | /metrology/scalar.lean | 9e43795a3d0a1132245cfebb8362b6c1c51729aa | [] | no_license | rohanrajnair/phys | fefb5e430f8e4b61c2acbaecb9d1c6702495ef87 | 0172c81b24bc94e2df5e32904c9f6904d8f24da7 | refs/heads/master | 1,673,021,045,568 | 1,603,474,638,000 | 1,603,474,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,173 | lean | --import .....math.affine.aff_coord_space
import data.real.basic
namespace scalar
/-
Algebraic types of scalars for different physical dimensions.
Deprecated. Use basicDimScalarType.
TODO: Rethink use of abbreviation
-/
abbreviation length := ℝ
abbreviation time := ℝ
abbreviation mass := { r : ℝ // r >= 0}
abbrevi... |
c4e122bf4b1109d62aea6277ff4f7a8e7d0a85b5 | ba4ad8a778c69640c9cca8e5dcaeb40d4a10fa10 | /lean4/hello/lakefile.lean | 6b4c87e614a66f8796b763aee1817186e90be031 | [] | no_license | tangentstorm/tangentlabs | 390ac60618bd913b567d20933dab70b84aac7151 | 137adbba6e7c35f8bb54b0786ada6c8c2ff6bc72 | refs/heads/master | 1,693,514,213,127 | 1,692,322,210,000 | 1,692,322,210,000 | 7,815,356 | 33 | 22 | null | 1,433,592,935,000 | 1,359,097,381,000 | Visual Basic | UTF-8 | Lean | false | false | 87 | lean | import Lake
open Lake DSL
package hello {
-- add configuration options here
}
|
3f31c0ff33e3e9a98523199d98c87a910193f50f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/combinatorics/configuration.lean | d5768f9c69eadc5628ab9ef76ccd0ecb912594b5 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 23,316 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import algebra.big_operators.order
import combinatorics.hall.basic
import data.fintype.card
import set_theory.fincard
/-!
# Configurations of Points and lines
This... |
938700247c3733017e1eb607c066104656ca77cd | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/analysis/normed_space/banach.lean | 634534c9db9b8c5554d43f3309f2d7717fb29900 | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 11,019 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
Banach spaces, i.e., complete vector spaces.
This file contains the Banach open mapping theorem, i.e., the fact that a bijective
bounded linear map between Banac... |
3d08d2ee0262ecd610d8dd0831701f681aac5086 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/group_action/basic.lean | c9dfe90ea91b90dfa3bfe7ad4383dddfd0e0b9a4 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 14,366 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.fintype.card
import group_theory.group_action.defs
import group_theory.group_action.group
import data.setoid.basic
import data.set.pointwise.smul
import group... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.