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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5070c9a074b5dc1c5430044ba25fac4945bb5b87 | 5d76f062116fa5bd22eda20d6fd74da58dba65bb | /src/snarks/groth16/knowledge_soundness.lean | fc6e97199c8d4c92422ab4171a8bf7976c7caa93 | [] | no_license | brando90/formal_baby_snark | 59e4732dfb43f97776a3643f2731262f58d2bb81 | 4732da237784bd461ff949729cc011db83917907 | refs/heads/master | 1,682,650,246,414 | 1,621,103,975,000 | 1,621,103,975,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,782 | lean | /-
Author: Bolton Bailey
-/
import data.mv_polynomial.basic
import data.polynomial.div
import data.polynomial.field_division
import algebra.polynomial.big_operators
-- import .general_lemmas.polynomial_mv_sv_cast
-- import .general_lemmas.mv_divisability
-- import .general_lemmas.single_antidiagonal
-- import .general_... |
cdf44a71c13969e541d50f6f2cfe035d7e6a2206 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/linear_algebra/matrix/trace.lean | cb643c06ff73516bae15efd2d6d94e0ec9e6e9a3 | [
"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 | 2,334 | 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, Patrick Massot, Casper Putz, Anne Baanen
-/
import data.matrix.basic
/-!
# Trace of a matrix
This file defines the trace of a matrix, the linear map
sending a matrix ... |
dcceed53517d7b2d111a2bb88ad184af6727750c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/logic/equiv/functor.lean | 35b625f2b8f3550317db21bb9979b80bbf7ffd91 | [
"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 | 2,301 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Simon Hudon, Scott Morrison
-/
import control.bifunctor
import logic.equiv.defs
/-!
# Functor and bifunctors can be applied to `equiv`s.
We define
```lean
def functor... |
24feb8cc109275eb9801c5cbf87948866d1ed5ff | 21871395eaf77834250a3f1b20624be105ae17be | /two_adj.lean | 0650eafab93498136be3b8b9c803e9faf8f2cd12 | [] | no_license | daniel-carranza/2-adj-lean-workspace | a60a16d99993351a08860575831ec7c5b801c39f | e3e9b99883e5056d2de1856b8adcb2f4625546e6 | refs/heads/master | 1,666,176,695,426 | 1,592,006,470,000 | 1,592,006,470,000 | 271,910,711 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,922 | lean | /-
Authors: Daniel Carranza, Jonathon Chang, Ryan Sandford
Under the supervision of Chris Kapulkin
Theorems about two half-adjoint equivalences,
including a proof that two left half-adjoint
and two right half-adjoint equivalences are propositions
and that the two full-adjoint equivalence is equivalent to... |
f29fcd106d1e81b64db3bc951159f9f6a199795a | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/algebra/free_algebra.lean | 89aa9ab87b25d84f19e7311a7cb0fe0fbaa79450 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,171 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison, Adam Topaz.
-/
import algebra.algebra.subalgebra
import algebra.monoid_algebra
import linear_algebra
import data.equiv.transfer_instance
/-!
# Free Algebras
Given a commut... |
ff08a9ff26ea3ef37b09da27071cb7e861bbfcff | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/imo/imo2008_q2.lean | 43c6b652cb1278e171170541458b60458810c01a | [
"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 | 5,297 | lean | /-
Copyright (c) 2021 Manuel Candales. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Manuel Candales
-/
import data.real.basic
import data.set.finite
/-!
# IMO 2008 Q2
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR t... |
922c95c717b3d8cda131d60ecb87a816d022c39a | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/analysis/complex/polynomial.lean | 507b0f73584593c86e31133d7bca86c99f59b561 | [
"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 | 5,995 | lean | /-
Copyright (c) 2019 Chris Hughes All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.polynomial topology.algebra.polynomial analysis.complex.exponential
open complex polynomial metric filter is_absolute_value set
namespace complex
lemma exis... |
e7d0ba0dfd88fecc3dcd003361f9859064599b15 | 205f0fc16279a69ea36e9fd158e3a97b06834ce2 | /src/00_Introduction/02_inference_rules.lean | f207e7f765f71ec61ce3147e473ee798b9e5624d | [] | no_license | kevinsullivan/cs-dm-lean | b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124 | a06a94e98be77170ca1df486c8189338b16cf6c6 | refs/heads/master | 1,585,948,743,595 | 1,544,339,346,000 | 1,544,339,346,000 | 155,570,767 | 1 | 3 | null | 1,541,540,372,000 | 1,540,995,993,000 | Lean | UTF-8 | Lean | false | false | 4,088 | lean | /- ** Inference rules ** -/
/-
So how do we decide whether a given proposition
can be judged to be true or not? Here is where
the semantics of a logic come into play.
The semantics of a logic comprises a set of rules,
called inference rules, that define the conditions
under which a given proposition can be judged t... |
ddfdc07a60d49173b4785702ac8b3aa4f48f4a73 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/algebra/CommRing/default.lean | 88f25393d05b1be2a4359464f6f755e41ca0a136 | [
"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 | 254 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.CommRing.basic
import algebra.CommRing.adjunctions
import algebra.CommRing.colimits
|
feaa3abcb13c1f04e6df512b1cf0098e21ee6499 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/int/modeq.lean | 493111c330de6fb258d73fde0c4ea77a06ae51ea | [
"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 | 7,689 | 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.nat.modeq
import tactic.ring
/-!
# Congruences modulo an integer
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspond... |
ba3620ca3e9eb70118df4efef3a51bde8ff9d8ed | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/topology/bases.lean | 1323150c04227cfe98f59c8eedbd2f8539d4ecc4 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,240 | 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
Bases of topologies. Countability axioms.
-/
import topology.continuous_on
open set filter classical
open_locale topological_space filter
noncomputable... |
a914eb2375bfd061c7846474d9fe137a23421284 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/calculus/dslope.lean | 418605813896e2dddcaab2e1027ecc8641d4871f | [
"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 | 6,288 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.deriv
import linear_algebra.affine_space.slope
/-!
# Slope of a differentiable function
Given a function `f : 𝕜 → E` from a nondiscrete ... |
90fe1dd8e6807d83ba7a9c21589cff2742204e45 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/data/nat/basic.lean | d3f7a05f0fa5e2e4a48c26111cb916f79a3425ef | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 58,225 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.ordered_ring
import algebra.ordered_sub
/-!
# Basic operations on... |
bf18c61c17f99fec1fe1fde4087e3d5ae1fdc44b | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world04/level03.lean | 237f621a807ea911f93db2f6a515d037a1a1ebff | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 121 | lean | lemma pow_one (a : mynat) : a ^ (1 : mynat) = a :=
begin
rw one_eq_succ_zero,
rw pow_succ,
rw pow_zero,
rwa one_mul,
end
|
529a56ed7f8016825f1b5805545c5d826d770d11 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/preadditive/default.lean | 6a8192a90b8d30bdf351e1a495c4063ea5468d64 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 7,847 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.group.hom
import category_theory.limits.shapes.kernels
import algebra.big_operators.basic
/-!
# Preadditive categories
A preadditive category is a cate... |
ca9b15b7d4253e1c9bb4d9915816546597bb091a | 367134ba5a65885e863bdc4507601606690974c1 | /test/differentiable.lean | 2181a565b662ca9ac6ae536d93583a329a03d6c7 | [
"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 | 2,412 | lean | import analysis.special_functions.trigonometric
namespace real
example : differentiable ℝ (λ (x : ℝ), exp x) :=
by simp
example : differentiable ℝ (λ (x : ℝ), exp ((sin x)^2) - exp (exp (cos (x - 3)))) :=
by simp
example (x : ℝ) : deriv (λ (x : ℝ), (cos x)^2 + 1 + (sin x)^2) x = 0 :=
by { simp, ring }
example (x :... |
62c3a5cb7a9d9fd3d90f97c0c3ceb530685342d9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/rewrite.lean | 57914c56f4cf7ae7f72093bc20454c825c0fa6c5 | [
"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,406 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.rewrite
import data.nat.basic
open tactic
example : ∀ x y z a b c : ℕ, true :=
begin
intros,
have : x + (y + z) = 3 + y, admit,
have : a + (b + x) + y + (... |
233c8a2ec31914b5499e6ec96edbf5111d6d3355 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /library/data/nat/order.lean | df5ecc750811f2c3d2a532cba9990d10a1a4d402 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,968 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.nat.order
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad
The order relation on the natural numbers.
-/
import data.nat.basic algebra.ordered_ring
open eq.ops
name... |
3e20e10fd687d90c54889e96be59e0e75abb8648 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/algebra/field.hlean | 6bb21b7448be52fb330a9decd8664c67a03798bc | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,024 | hlean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis
Structures with multiplicative and additive components, including division rings and fields.
The development is modeled after Isabelle's library.
Ported from the standard ... |
6d72770d528645f52cd987d1000cb2cb4c725945 | df561f413cfe0a88b1056655515399c546ff32a5 | /5-advanced-proposition-world/l7.lean | 44e74e7a5b603417c98f571624eba880347cf598 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 119 | lean | lemma or_symm (P Q : Prop) : P ∨ Q → Q ∨ P :=
begin
intro h,
cases h with p q,
right,
exact p,
left,
exact q,
end |
626500154ae36d7d315d40c38d6fce3e44018c24 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/meta3.lean | 1e5c7eaa97a2243ec6ce99a24ae8121152e5105e | [
"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 | 1,856 | lean | import Lean.Meta
open Lean
open Lean.Meta
def dbgOpt : Options :=
let opt : Options := {};
let opt := opt.setBool `trace.Meta true;
-- let opt := opt.setBool `trace.Meta.check false;
opt
def print (msg : MessageData) : MetaM Unit :=
trace[Meta.debug] msg
def check (x : MetaM Bool) : MetaM Unit :=
unless (← x) do th... |
8250c77dc4cd911406373ba6e171267ecf9175a1 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Util/Sorry.lean | cb57adfed787f2d679ceb7c1dc1ac9ab672a7f81 | [
"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 | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 2,236 | 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 Lean.Message
import Lean.Exception
import Lean.Util.FindExpr
namespace Lean
def Expr.isSorry : Expr → Bool
| app (app (.const ``sorryAx ..) ..) .... |
dfa1fa66581042c1a84ddcf8510f16956623c45e | 3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a | /src/combinatorics/simplicial_complex/skeleton.lean | 45dabce4cf1b0cdce76c82ee4949d2988cb90ccb | [] | no_license | mmasdeu/brouwerfixedpoint | 684d712c982c6a8b258b4e2c6b2eab923f2f1289 | 548270f79ecf12d7e20a256806ccb9fcf57b87e2 | refs/heads/main | 1,690,539,793,996 | 1,631,801,831,000 | 1,631,801,831,000 | 368,139,809 | 4 | 3 | null | 1,624,453,250,000 | 1,621,246,034,000 | Lean | UTF-8 | Lean | false | false | 2,453 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import combinatorics.simplicial_complex.pure
namespace affine
open set
variables {m n k : ℕ} {E : Type*} [normed_group E] [normed_space ℝ E]
... |
8b685c4f84860fe1b5c6f9943d68533fb1c39c1a | 4d3f29a7b2eff44af8fd0d3176232e039acb9ee3 | /Mathlib/Mathlib/Tactic/Ring.lean | 9c0b8c355f90233a9e49ac3e87cb2b86531659a1 | [] | no_license | marijnheule/lamr | 5fc5d69d326ff92e321242cfd7f72e78d7f99d7e | 28cc4114c7361059bb54f407fa312bf38b48728b | refs/heads/main | 1,689,338,013,620 | 1,630,359,632,000 | 1,630,359,632,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,615 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Aurélien Saue
-/
import Lean.Elab.Tactic.Basic
import Mathlib.Algebra.Ring.Basic
import Mathlib.Tactic.NormNum
/-!
# `ring`
Evaluate expressions in the language of co... |
fbceea9a9df7b828ba73c284a436a02a2d90f6e4 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/category/Module/adjunctions.lean | 82e53b302f2e426bc9a6077f07a2d9cdf8bf365c | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 10,915 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin
-/
import algebra.category.Module.monoidal
import category_theory.monoidal.functorial
import category_theory.monoidal.types
import linear_algebra.direct_... |
16c162bbddf6b48a0cd3b7f59aa7932c1a684cf6 | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/analysis/special_functions/trigonometric.lean | 39ce5ef44b0967d03ee3d949a5235dc8c7cacdfb | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 102,956 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.exp_log
import data.set.intervals.infinite
import algebra.quadratic_d... |
9b7c92dd84f213afecad4009c0d0f3d223762bef | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/order/filter/at_top_bot.lean | 86076654b2d7e9a02fd50bfbc07c45966b0c3045 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 19,945 | 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, Jeremy Avigad, Yury Kudryashov, Patrick Massot
-/
import order.filter.basic
/-!
# `at_top` and `at_bot` filters on preorded sets, monoids and groups.
In this file we ... |
de23cacfd80352bdc7dd54c0fa29ff196456a4bd | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/linear_algebra/affine_space/midpoint.lean | 810626c352596d55ad64c594c54b764ee40f7942 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,872 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.char_p.invertible
import linear_algebra.affine_space.affine_equiv
/-!
# Midpoint of a segment
## Main definitions
* `midpoint R x y`: midpoint of ... |
0bcdcaea67b8eb1398a36022565149dfcf348614 | 2b2a05a7af89c79da194505bf88205a6c4e05d68 | /src/game/world_01_tutorial.lean | 850bbb94b1f4210205b0b8b5ef9204bcc67f5226 | [] | no_license | lacrosse/natural_number_game | 6401a11a8c965da3903ae6695f84586edf6fac85 | 400179cde1d3fcc9744901dabff98813ba2b544f | refs/heads/master | 1,677,566,006,582 | 1,612,576,917,000 | 1,612,576,917,000 | 335,655,947 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 485 | lean | import mynat.definition
import mynat.mul
namespace mynat
lemma example1 (x y z : mynat) : x * y + z = x * y + z := begin[nat_num_game]
refl,
end
lemma example2 (x y : mynat) (h : y = x + 7) : 2 * y = 2 * (x + 7) := begin[nat_num_game]
rwa h,
end
lemma example3 (a b : mynat) (h : succ a = b) : succ(succ(a)) = su... |
fb7c2457b76a1f6ea84779319057b9b99fb04a4d | 48eee836fdb5c613d9a20741c17db44c8e12e61c | /src/util/meta/expr_ctx.lean | c1cb3d3d0c12aa846f808ccea583197d87ba487f | [
"Apache-2.0"
] | permissive | fgdorais/lean-universal | 06430443a4abe51e303e602684c2977d1f5c0834 | 9259b0f7fb3aa83a9e0a7a3eaa44c262e42cc9b1 | refs/heads/master | 1,592,479,744,136 | 1,589,473,399,000 | 1,589,473,399,000 | 196,287,552 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 6,274 | lean | -- Copyright © 2019 François G. Dorais. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
import .expr
import .format
meta abbreviation expr_ctx : Type := list (name × expr × binder_info)
namespace expr_ctx
open exceptional
meta def nil : expr_ctx := list.nil
meta def add ... |
607542c707d7903a14538c9c6d7da4ec750c68a8 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/geometry/manifold/smooth_manifold_with_corners.lean | c52dde4513a47ae57fa886f56af1315856c54743 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 29,026 | 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 analysis.calculus.times_cont_diff
import geometry.manifold.charted_space
/-!
# Smooth manifolds (possibly with boundary or corners)
A smooth manifold i... |
58198d89f8eb1421f24a090e65634fd8b2bf7849 | 78269ad0b3c342b20786f60690708b6e328132b0 | /src/library_dev/tools/auto/finish.lean | 3314f0a81f30c1323a2ce5f8aa1fd3fe9873da59 | [] | no_license | dselsam/library_dev | e74f46010fee9c7b66eaa704654cad0fcd2eefca | 1b4e34e7fb067ea5211714d6d3ecef5132fc8218 | refs/heads/master | 1,610,372,841,675 | 1,497,014,421,000 | 1,497,014,421,000 | 86,526,137 | 0 | 0 | null | 1,490,752,133,000 | 1,490,752,132,000 | null | UTF-8 | Lean | false | false | 13,805 | lean | /-
Copyright (c) 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
These tactics do straightforward things: they call the simplifier, split conjunctive assumptions,
eliminate existential quantifiers on the left, and look for contradictio... |
c78e8e6b2cc0c671e1eb070186e8ad8da436890a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/753.lean | 50ca97b1e640236453c8b8cc2926a7ff52727bc4 | [
"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 | 182 | lean | inductive Val
| mk : Nat -> Val
instance : Inhabited Val where
default := Val.mk 0
@[simp]
theorem true_iff_true : True <-> True := Iff.intro (fun _ => trivial) (fun _ => trivial)
|
e3bca1ba89ff6d3a31d27ff536492623b219d291 | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/data/finsupp/basic.lean | c0f1be3fbb25c1f90236478c97d3bfc99af42861 | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 99,899 | 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, Scott Morrison
-/
import data.finset.preimage
import algebra.indicator_function
import algebra.group_action_hom
/-!
# Type of functions with finite support
For any ty... |
24808165f62217f3801878ea799395da8896f6b0 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/PointedUnarySystem.lean | 8614bc17658dd949d25180652bba640ecc0116ce | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,456 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section PointedUnarySystem
structure PointedUnarySystem (A : Type) : Type :=
(prim : (A → A))
(e : A)
open PointedUnarySystem
structure Sig (AS : Type) : Type ... |
d6d06dca83700ba00c870baeb103725ead0709c7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/sheaves/limits.lean | b654ec19f869b14bdc4d3d5182c0d819779042a3 | [
"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 | 1,893 | 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 topology.sheaves.sheaf_condition.sites
import category_theory.sites.limits
import category_theory.adjunction
import category_theory.limits.functor_category
/-... |
987b6f3df28b742d54c5aff97919789542613e1c | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/measure_theory/measure_space.lean | 6188d7f3f062bb645a992ef68dc6809f870f00f0 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 56,365 | 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 measure_theory.outer_measure
import order.filter.countable_Inter
/-!
# Measure spaces
Given a measurable space `α`, a measure on `α` is a fun... |
54be6009bb4a079cbda3640fb8ad9f24794192f1 | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world04/level02.lean | c029c13fae6bc33f976967d7293fc93bacf0d2e1 | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 101 | lean | lemma zero_pow_succ (m : mynat) : (0 : mynat) ^ (succ m) = 0 :=
begin
rw pow_succ,
rwa mul_zero,
end
|
08ecc6b0ad16cf7d1e3044f14f6d077c22749630 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/separation.lean | cce5ab6d60ad7f131a8bcff6f07af21705ca5b56 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,731 | 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
Separation properties of topological spaces.
-/
import topology.subset_properties
import topology.connected
open set filter
open_locale topological_spa... |
d4dd10f24ef01ff6458845bd265c4974eb6da07f | 500f65bb93c499cd35c3254d894d762208cae042 | /test/sanity_check.lean | ab889b73c302cb08ac8106b17d6ae774e8be2a22 | [
"Apache-2.0"
] | permissive | PatrickMassot/mathlib | c39dc0ff18bbde42f1c93a1642f6e429adad538c | 45df75b3c9da159fe3192fa7f769dfbec0bd6bda | refs/heads/master | 1,623,168,646,390 | 1,566,940,765,000 | 1,566,940,765,000 | 115,220,590 | 0 | 1 | null | 1,514,061,524,000 | 1,514,061,524,000 | null | UTF-8 | Lean | false | false | 888 | lean | import tactic.sanity_check
def foo1 (n m : ℕ) : ℕ := n + 1
def foo2 (n m : ℕ) : m = m := by refl
lemma foo3 (n m : ℕ) : ℕ := n - m
lemma foo4 (n m : ℕ) : n ≤ n := by refl
run_cmd do
let t := name × list ℕ,
e ← fold_over_with_cond
(λ d, d.in_current_file >>= λ b, if b then return (check_unused_arguments d) els... |
d1646ddda99ba43397e75d04c7c70b1c569e775a | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/constructions.lean | 12f3bc9a2658f4c92a356c392884af0f336cb80d | [
"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 | 54,228 | 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
-/
import topology.maps
import order.filter.pi
import data.fin.tuple
/-!
# Constructions of new topological spaces from old ones
This f... |
d9cebbbbc4ddca727d6231869ecbf1bfb98ea2be | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/emptyc_issue.lean | 7c3979d4d236b90fac5daca5f50d83ed6acc58f9 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 77 | lean | open tactic
meta def issue (hs : hinst_lemmas) : tactic unit :=
rsimp {} hs
|
18e904d7b3fb68f0c126b9db2cb292b294499ee8 | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/topology/algebra/module.lean | d164b100f5a1ecf3310d6f118d39a7e5e0feb67e | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 47,849 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo, Yury Kudryashov
-/
import topology.algebra.ring
import topology.uniform_space.uniform_embedding
import algebra.algebra.basic
import li... |
063f3d1714a2817c0b4a9556df97218e3fcc133e | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/algebra-ineq-nto1onlt2m1on.lean | b6bf090adde9c14f7bf1f52a9bbaff5d41aabe81 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 233 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
example (n : ℕ) : n ^ (1 / n) < 2 - 1 / n :=
begin
sorry
end
|
b43956212be5ceeee3a25260f238ae52730f6820 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/t3.lean | f87c2d8b1643cec22aebf95f4d4aa49549b2e3d7 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 945 | lean | universe u
print raw Type.{u}
namespace tst
universe v
print raw Type.{v}
print raw Type.{tst.v}
end tst
print raw Type.{tst.v}
print raw Type.{v} -- Error: alias 'v' is not available anymore
section
universe variable z -- Remark: this is a local universe
print raw Type.{z}
end
print raw Type.{z} -- Error: ... |
56445a6c705af23113f93fe48c53b49ef316405f | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/bool/default.lean | 8d4c46ff6cfda6068c6ac9357f16460a0de1a057 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 217 | 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 data.bool.decl data.bool.ops data.bool.thms
|
1cb21686fa95adcbb6bee835744bfbff25d6ee1f | e38e95b38a38a99ecfa1255822e78e4b26f65bb0 | /src/certigrad/tgrads.lean | f8650f63b913af9f7eb08a8cb8874eca864d76af | [
"Apache-2.0"
] | permissive | ColaDrill/certigrad | fefb1be3670adccd3bed2f3faf57507f156fd501 | fe288251f623ac7152e5ce555f1cd9d3a20203c2 | refs/heads/master | 1,593,297,324,250 | 1,499,903,753,000 | 1,499,903,753,000 | 97,075,797 | 1 | 0 | null | 1,499,916,210,000 | 1,499,916,210,000 | null | UTF-8 | Lean | false | false | 31,339 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Properties of gradients.
-/
import .tensor .tfacts .tactics
namespace certigrad
namespace T
open list
-- is_cdifferentiable
axiom is_cdifferentiable_binary {shape : S} ... |
5c251957de4c39a9e8d3147290f0770244dd786d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1724.lean | 19f5777a8aca44fb2b14523bfaaf32a489f21671 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 190 | lean | example (h : ¬ true) : false :=
by simp * at *
example (h : true) (h' : true → false) : false :=
by simp * at *
example (p : Prop) (h : p) (h' : p → false) : false :=
by simp * at *
|
92deb999d6a8bcbfac8f725af72a368f46d16479 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Compiler/LCNF/Simp/Main.lean | 8c23a7dcde928c1adb3a26349dfc9c8c8b845117 | [
"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 | 12,437 | 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.Compiler.ImplementedByAttr
import Lean.Compiler.LCNF.ElimDead
import Lean.Compiler.LCNF.AlphaEqv
import Lean.Compiler.LCNF.PrettyPrinter
import ... |
345b6ce8d08c00db042f7d30adf90818c1d6e952 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/multiset/nodup.lean | b144be5a3ed90189a0558cd466b75c4eb8c64be0 | [
"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 | 9,658 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.multiset.bind
import data.multiset.powerset
import data.multiset.range
/-!
# The `nodup` predicate for multisets without duplicate elements.
-/
n... |
603323de3ffa63bfec214d5652c78f482720131f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/attribute_bug1.lean | 242c0bf745a3e715ebef359df941812a1b62697e | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 477 | lean | open tactic
constant f : nat → nat
constant fdef : ∀ n, f n = n + 1
example (n : nat) : f n = n + 1 :=
by simp -- Failed as expected, since fdef is not marked as [simp]
local attribute [simp] fdef
example (n : nat) : f n = n + 1 :=
by simp -- Succeeded as expected
local attribute [-simp] fdef
#print fdef -- w... |
79ab8278bc7752f9acb4869771a0e11d07565861 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/synthorder.lean | 416e2cab1ed8b0edcfb2782fb3acbb60f40ea5fc | [
"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 | 848 | lean | class Foo (A : Type) (B : semiOutParam Type)
-- should be rejected, because C appears by itself in an out-param
instance [Foo A B] : Foo A (B × C) where
-- should be rejected, because non-out-param A can become an mvar
instance [Foo A Nat] : Foo Nat A where
set_option trace.Meta.synthOrder true
-- both instances s... |
c2a78c648533c5191e06735aecd20295e0c63883 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/closed/ideal.lean | 84959823ad8ecb0cc1aee53fcc1aefddad0143ef | [
"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 | 11,888 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.preserves.shapes.binary_products
import category_theory.limits.constructions.finite_products_of_binary_products
import category_theory.monad... |
5b15582a053b4a80a3df8af1a55f158c9881597c | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/lua10.lean | b19a99bf003b6987348fe37579bc5efa0232eb64 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 297 | lean | variables x1 x2 x3 : Bool
definition F : Bool := x1 /\ (x2 \/ x3)
(*
local env = get_environment()
local F = env:find_object("F"):get_value()
print(F)
function expr_size(e)
local r = 0
e:for_each(function(e, offset) r = r + 1 end)
return r
end
print(expr_size(F))
*)
|
ce83a131007e2257481b68b92d7a4c7610825ad9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/pnat/find.lean | a1828db9d89eb158b528a69786cee4d34fdbb041 | [
"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 | 3,877 | lean | /-
Copyright (c) 2022 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky, Floris van Doorn
-/
import data.pnat.basic
/-!
# Explicit least witnesses to existentials on positive natural numbers
Implemented via calling out to `nat.find`.
-/... |
12d10d2bdbf4092be93267d3684498688ee9c300 | 01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab | /categories/universal/fubini.lean | 939ab430ad38831fa94a8d20aa29c964d1823fce | [] | no_license | PatrickMassot/lean-category-theory | 0f56a83464396a253c28a42dece16c93baf8ad74 | ef239978e91f2e1c3b8e88b6e9c64c155dc56c99 | refs/heads/master | 1,629,739,187,316 | 1,512,422,659,000 | 1,512,422,659,000 | 113,098,786 | 0 | 0 | null | 1,512,424,022,000 | 1,512,424,022,000 | null | UTF-8 | Lean | false | false | 2,175 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import .universal
import ..isomorphism
import ..natural_transformation
import ..currying.currying_1
open categories
open categories.functor
open ... |
7f79a41995a5f4c7602204d862db148eecee4a67 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/measure_theory/function/l1_space.lean | ec45f50147a7313809b807dc9c01dd9a44f88aa8 | [
"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 | 42,243 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.function.lp_space
/-!
# Integrable functions and `L¹` space
In the first part of this file, the predicate `integrable` is defined and basic pro... |
9f20325cda59d22540ccfbdebdc852090758547e | b19a1b7dc79c802247fdce4c04708e070863b4d2 | /evaluate.lean | e47ac6706fa7f7bd21ed3726f472fc9f36e0cfa0 | [] | no_license | utanapishtim/promethazine | 99a1e80311fb20251a54ba78a534b23852b88c40 | 08a6f9bd6dd08feb3df8d4697e19ffc8d333b249 | refs/heads/master | 1,653,595,504,487 | 1,480,129,933,000 | 1,480,129,933,000 | 74,801,596 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 690 | lean | import data.nat data.prod data.bool
open nat prod bool
constants m n : nat
constant b : bool
print "reducing pairs"
eval pr1 (pair m n) -- m
eval pr2 (pair m n) -- n
print "reducing boolean expressions"
eval tt && ff -- ff
eval b && ff -- ff
print "reducing arithmetic expressions"
eval n + 0 -- n
eval n + ... |
671ed83f79f918ab4a5cb098d8063b9bd8051686 | 32da3d0f92cab08875472ef6cacc1931c2b3eafa | /src/data/nat/basic.lean | 7f1de25fd136b2766576774aaf908f3c917d6e70 | [
"Apache-2.0"
] | permissive | karthiknadig/mathlib | b6073c3748860bfc9a3e55da86afcddba62dc913 | 33a86cfff12d7f200d0010cd03b95e9b69a6c1a5 | refs/heads/master | 1,676,389,371,851 | 1,610,061,127,000 | 1,610,061,127,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 63,077 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.group_power.basic
import algebra.order_functions
/-!
# Basic oper... |
4d94e87e53d4cb20a482eb6497eb555e405ba255 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/ring_theory/ideal_operations.lean | b80f1a04f1f240ba23bee57c31e5c3870a493ccf | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 20,234 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
More operations on modules and ideals.
-/
import ring_theory.ideals data.nat.choose order.zorn
import linear_algebra.tensor_product
universes u v w x
open lattice
namespace s... |
c1896383ba84df4a06e66a4fa4e6d4ccd7d31c65 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-algebra-96.lean | 50a83820f53bd6a0f4245fabfa553a4b054f70a2 | [
"Apache-2.0",
"MIT"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 422 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
import analysis.special_functions.exp_log
example (x y z a : ℝ) (h₀ : 0 < x ∧ 0 < y ∧ 0 < z ∧ 0 < a) (h₁ : real.log x - real.log y = a) (h₂ : real.log y... |
fe3b749a6e7de09f059782f2925d097ca9f176ca | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/prop819.lean | 1a8dc93c5b627aee96d86bdd13c01b18cf9e1086 | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,196 | lean | import algebra.homology.homological_complex
import topology.category.Profinite.cofiltered_limit
import for_mathlib.Cech.split
import for_mathlib.Profinite.arrow_limit
import for_mathlib.Profinite.clopen_limit
import for_mathlib.simplicial.complex
import locally_constant.Vhat
import prop819.completion
--import prop819... |
70de4b02dd007ceaa383c622152a288dff8805d3 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/fold.lean | 1aa2f5039c4795b75597153dedc7bfde1b2feffe | [
"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 | 701 | lean | import data.prod data.num
variables a b c : num
context
notation `(` t:(foldr `,` (e r, prod.mk e r)) `)` := t
check (a, false, b, true, c)
set_option pp.notation false
check (a, false, b, true, c)
end
context
notation `(` t:(foldr `,` (e r, prod.mk r e)) `)` := t
check (a, false, b, true, c)
set_optio... |
1aa5e435a1cad3d614edc74a1b4c5392ff03eccd | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/meta/rec_util.lean | dab27522d312dabc1106b99c9b61deae28803009 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,798 | 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
Helper tactic for showing that a type has decidable equality.
-/
prelude
import init.meta.tactic
namespace tactic
open expr
/- Return tt iff e's type is of ... |
15b79182c7709c2ce23c6c8680ae42c811c9c78e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/linarith/preprocessing.lean | 4c3923ce784a0ae0ddcdb5e21687463537766644 | [] | 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 | 1,266 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.linarith.datatypes
import Mathlib.tactic.zify
import Mathlib.tactic.cancel_denoms
... |
706183e4ab15b180e67f691ac58a2f70985a7fcb | 26b8b0964ca8e1c2e203585ba5940f83fe05e48a | /src/tidy/edit_distance.lean | 06ad2b5e21c046c43b60791b2f19bee0782db06b | [] | no_license | jcommelin/lean-tidy | ef3cd32a3804221d93f0dff9e180bb2c52f4b143 | 9cecf497e90db64b5ea140ad6ae1603976dcd402 | refs/heads/master | 1,585,129,919,276 | 1,533,512,680,000 | 1,533,512,680,000 | 143,677,361 | 0 | 0 | null | 1,616,803,481,000 | 1,533,530,576,000 | Lean | UTF-8 | Lean | false | false | 5,205 | lean | def edit_distance_naive {α} [decidable_eq α] : list α → list α → ℕ
| [] l := l.length
| l [] := l.length
| (a :: b) (c :: d) := if a = c then
edit_distance_naive b d
else
1 + min (min (edit_distance_naive (a :: b) d) (edit_distance_naive b (c :... |
b7d9464aad938144a5cafa35f8110324e5cefb5e | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/algebra/category/default.lean | 7e84a0731aba08fe0c40bd933dc7009e413ed7e1 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 193 | lean | -- Copyright (c) 2014 Floris van Doorn. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Floris van Doorn
import .morphism .constructions
|
404183d269129ee43a464da7551308da02ff1fef | 626e312b5c1cb2d88fca108f5933076012633192 | /src/topology/metric_space/basic.lean | 3acc1253bcf8d42812e8641cac62a55b64d0f800 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 98,810 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
-/
import topology.metric_space.emetric_space
import topology.algebra.ordered.basic
import data.... |
78b36f52a33ca1bca3a04d54d0fe44e3a8f035b1 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/sig5.lean | ab3de534caaaccf0e26b96596b89c5b2c1325d51 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 251 | lean | variable vec : Nat → Type
definition vec_with_len := sig len, vec len
variable n : Nat
variable v : vec n
check pair n v
check (show vec_with_len, from pair n v)
check (let v2 : vec_with_len := pair n v
in v2)
check (pair n v : vec_with_len)
|
5fd18536e0a8c5c0d67179a88d9a7328a9197ea2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/calculus/iterated_deriv.lean | aa360588d8c87502b4a7cd6f21476c77f46b9ff3 | [] | 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 | 15,533 | lean | /-
Copyright (c) 2020 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.calculus.deriv
import Mathlib.analysis.calculus.times_cont_diff
import Mathl... |
dcb8b8eadc7997dd4eddbfa06a2b4508a32ee563 | 874a8d2247ab9a4516052498f80da2e32d0e3a48 | /pigeonhole_init_v2.lean | 47fc5490bd810cb664b63cda3ccb24c19d8bb8a6 | [] | no_license | AlexKontorovich/Spring2020Math492 | 378b36c643ee029f5ab91c1677889baa591f5e85 | 659108c5d864ff5c75b9b3b13b847aa5cff4348a | refs/heads/master | 1,610,780,595,457 | 1,588,174,859,000 | 1,588,174,859,000 | 243,017,788 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,914 | lean |
import tactic
import data.real.basic
def injective {X Y} (f : X → Y)
:= ∀ x₁ x₂, f x₁ = f x₂ → x₁ = x₂
def range {X Y} (f : X → Y)
:= { y | ∃ x, f x = y }
/--
Type of pairs (k,p) where k
is a natural number and p is a witness to the proof that k < n.
-/
def finite_subset (n : ℕ) := Σ' k, k < n
def lift_... |
b5036a304c70249163589fb56044962ec77fb0d9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/internalNamesIssue.lean | c5017978c9d5fd9a7520553d50c6cc626873c488 | [
"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 | 178 | lean | namespace Foo
def foo (x : Nat) := x + x + x
def bla (x : Nat) : Nat :=
if x > foo (10 + 10) then 1 else x * x * x
end Foo
#check Foo.
--^ textDocument/completion
|
f9e3c6a0da0150a8e9cfa5913fe8ce5270e668bf | 43390109ab88557e6090f3245c47479c123ee500 | /src/Topology/Material/Sutherland_Chapter_9.lean | a2ab57b42a1cabddf33008cb2b9e4da172e19847 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,447 | lean | import analysis.topology.continuity
import analysis.topology.topological_space
import analysis.topology.infinite_sum
import analysis.topology.topological_structures
import analysis.topology.uniform_space
import data.equiv.basic
local attribute [instance] classical.prop_decidable
universes u v w
open set filter latt... |
e086c19233d4889e14c1f1f31dcdc5022133a36b | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/mv_polynomial/variables.lean | 495b04d227efc8c84b285c135eb8dadd8d53ef8c | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,088 | 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.monad
import data.set.disjointed
/-!
# Degrees and variables of polynomials
This file establishes many re... |
8f2593275352d64644bbbb460f4f58c0db68eb98 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/char_p/subring.lean | 7cfaf15dbf0846d539d445c85f6e7f94d6569ddb | [
"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,137 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.char_p.basic
import ring_theory.subring.basic
/-!
# Characteristic of subrings
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a... |
faf289f8f1319b85408746dbc2fabfcf100cd36d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/mkProjStx.lean | f131073c3aa197e54d435075f9d8558e0b5ef0a4 | [
"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 | 482 | lean | import Lean
structure A where
x : Nat := 0
structure B extends A where
y : Nat := 0
structure C extends B where
z : Nat := 0
def c : C := {}
open Lean
open Lean.Elab
def tst (varName structName fieldName : Name) : TermElabM Unit := do
let c := mkIdent varName
let some p ← Lean.Elab.Term.StructInst.mkPro... |
4101fdf52d85c1725350440d4d7ded7575e2a5e9 | b392eb79fb36952401156496daa60628ccb07438 | /MathPort/bid.lean | 2737ec544780d43ee01a398eb06366909a5b67bb | [
"Apache-2.0"
] | permissive | AurelienSaue/mathportsource | d9eabe74e3ab7774baa6a10a6dc8d4855ff92266 | 1a164e4fff7204c522c1f4ecc5024fd909be3b0b | refs/heads/master | 1,685,214,377,305 | 1,623,621,223,000 | 1,623,621,223,000 | 364,191,042 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 272 | lean | structure A where
a : Nat
b : Nat
#print A
structure B extends A where
x : Nat
#print B
structure C (a b : Prop) : Prop where
intro ::
(mp : a → b)
(mpr : b → a)
#print C
inductive loc
where
| wildcard : loc
| ns : List (Option Nat) → loc |
00c73865a562fe4aa76bceb78b8e993e60fbcfc2 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /02_Dependent_Type_Theory.org.28.lean | 8ecd7fdd3f39f443d76cdcad7b760f264efbacaa | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 296 | lean | /- page 25 -/
import standard
namespace foo
constant A : Type
constant a : A
constant f : A → A
definition fa : A := f a
namespace bar
definition ffa : A := f (f a)
check fa
check ffa
end bar
check fa
check bar.ffa
end foo
check foo.fa
check foo.bar.ffa
open foo
check fa
check bar.ffa
|
eb194cc357c7d2182bf17dcd55d42f3a44123d8c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/analytic/radius_liminf_auto.lean | 29257a36f567d37136a923979bebca3473fd15a6 | [] | 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 | 1,301 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.analytic.basic
import Mathlib.analysis.special_functions.pow
import Mathlib.PostP... |
fb8bfcb802201f30f20dcf5b864e9e331ff6f808 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/extra/denote_rec.lean | 0bdece8de4becf7d607576027d8651f62cb18cd2 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 750 | lean | inductive formula :=
eqf : nat → nat → formula,
andf : formula → formula → formula,
impf : formula → formula → formula,
allf : (nat → formula) → formula
check @formula.rec_on
namespace formula
definition denote : formula → Prop,
denote (eqf n1 n2) := n1 = n2,
denote (andf f1 f2) := denote f1 ∧ denote f2,
de... |
32ab666597584961279468ebfd492fd0c43e2961 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/ring_theory/power_series.lean | a1f67371fac28fe67b0a3e79390137f68aa22439 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 58,590 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau
-/
import data.finsupp order.complete_lattice algebra.ordered_group data.mv_polynomial
import algebra.order_functions
import ring_theory.ideal_operations
/-... |
29a035ae2bb1608537ca9ab2f076e0ff45f0a29f | 626e312b5c1cb2d88fca108f5933076012633192 | /src/ring_theory/jacobson.lean | 407f319b5203da35ba7815f3ce4b4f9c64f3fb79 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,345 | lean | /-
Copyright (c) 2020 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Devon Tuma
-/
import data.mv_polynomial
import ring_theory.ideal.over
import ring_theory.jacobson_ideal
import ring_theory.localization
/-!
# Jacobson Rings
The following conditions are e... |
cb84cf9aa7602336936e0d802bb7fec63b131a98 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/analysis/normed_space/units.lean | e766f2ff6a3d84d9e2c0e2d1855b10f89010cbd4 | [
"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 | 11,030 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.specific_limits
import analysis.asymptotics
/-!
# The group of units of a complete normed ring
This file contains the basic theory for the group o... |
48ca270bd35280f1635ca172a1ee5d0bac8c68db | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/hom/aut.lean | 5ab45565bf26f6bb743c85d0a4eae37fd9194bb7 | [
"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,327 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Callum Sutton, Yury Kudryashov
-/
import group_theory.perm.basic
/-!
# Multiplicative and additive group automorphisms
This file defines the automorphism group struct... |
6855be5dd7fd0b9f85f321141dd7c6f26fca55ea | 675b8263050a5d74b89ceab381ac81ce70535688 | /src/ring_theory/multiplicity.lean | 131c085f698248bffaf40f6cbf68af3db388e15d | [
"Apache-2.0"
] | permissive | vozor/mathlib | 5921f55235ff60c05f4a48a90d616ea167068adf | f7e728ad8a6ebf90291df2a4d2f9255a6576b529 | refs/heads/master | 1,675,607,702,231 | 1,609,023,279,000 | 1,609,023,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,457 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Chris Hughes
-/
import algebra.associated
import algebra.big_operators.basic
import data.nat.enat
variables {α : Type*}
open nat roption
open_locale big_operators
... |
74c18264f12b55911ed2d91e70956f0f759dd164 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /group_theory/perm.lean | 4fd3b855a8e96e4e64e387d5b7a8567b2c80cc51 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 28,622 | 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
universes u v
open equiv function fintype finset
variables {α : Type u} {β : Type v}
namespace equiv.perm
def subtype_perm (f : perm α) {p : α → Pr... |
59476b62d4c2f02a7443222fa4742401ac6ca5c0 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/subst_test.lean | 929e7a3e8baf56ef6d04c95ecd062797d13a7be2 | [
"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 | 445 | lean | import data.nat
open nat
structure less_than (n : nat) := (val : nat) (lt : val < n)
namespace less_than
open decidable
set_option pp.beta false
definition less_than.has_decidable_eq [instance] (n : nat) : ∀ (i j : less_than n), decidable (i = j)
| (mk ival ilt) (mk jval jlt) :=
match nat.has_decidable_eq ival jv... |
f7058f22d825aa1c82c40c579144a43658287774 | f10d66a159ce037d07005bd6021cee6bbd6d5ff0 | /Sup_fin.lean | 2224953ca7cd16be790cf30f5df69722c6e8598d | [] | 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 | 3,246 | lean | import order.lattice data.finset
universes u v w
noncomputable theory
open classical set function lattice
instance {α : Type u} [semilattice_sup α] : is_idempotent α (⊔) := ⟨assume a, sup_idem⟩
namespace finset
section general
variables {α : Type u} {β : Type w} [decidable_eq β] [semilattice_sup_bot α]
def Sup_f... |
94681d33597728ff935b8f78a4541db24376ea6f | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/topology/unit_interval.lean | 3a3904039bcbee8e914db35eec755527178553dd | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,454 | lean | /-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Scott Morrison
-/
import topology.instances.real
import topology.algebra.field
/-!
# The unit interval, as a topological space
Use `open_locale unit_interval` to turn... |
b761562ae99d6d79310504629510ba9749fa2851 | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/tools/theorem_naming_eval.lean | e86b12a1e110418a7c096e73334222d0ed273917 | [
"Apache-2.0"
] | permissive | DyeKuu/lean-tpe-public | 3a9968f286ca182723ef7e7d97e155d8cb6b1e70 | 750ade767ab28037e80b7a80360d213a875038f8 | refs/heads/master | 1,682,842,633,115 | 1,621,330,793,000 | 1,621,330,793,000 | 368,475,816 | 0 | 0 | Apache-2.0 | 1,621,330,745,000 | 1,621,330,744,000 | null | UTF-8 | Lean | false | false | 5,160 | lean | /-
Runs theorem naming evaluation.
-/
import all
import backends.bfs.openai
import utils.util
import evaluation
section main
meta structure TheoremNamingEvalResult : Type :=
(decl_nm : name) -- name of top-level theorem (i.e. ground truth)
(decl_tp : expr) -- goal of top-level theorem
(predictions : list (string ×... |
f6951850e274401b212b85a833f0cbda26543a32 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/struct2.lean | 758f88e9e28fe2290b801e16a2479f013ab8b40c | [
"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 | 1,573 | lean | universes u v w
structure A (α : Type u) :=
(f : (β : Type u) → α → β → α)
set_option pp.all true
structure B (α : Type u) extends A α :=
(x : Nat)
(f := fun β a b => a)
#check B.f._default
#check { x := 10 : B Nat}
namespace New
structure A (α : Type u) where
f : (β : Type u) → α → β → α
structure B (α : Typ... |
bd6868819e275845b05c9f514c6a9cead4116b3d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/elements.lean | 2229113de827ea7c004146937f00980bb3ddc904 | [
"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 | 9,533 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.structured_arrow
import category_theory.groupoid
import category_theory.punit
/-!
# The category of elements
This file defines the category o... |
c225c9e18fb1ba97bc2ee2f29f0fe0f758c1fcde | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /tests/lean/run/local_shadowing_projection.lean | 19687a266925855d5248e2fe47ae25058fa69c93 | [
"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 | 129 | lean | def prod.cmp (a b : nat × nat) : ordering :=
cmp a b
namespace prod
def foo (a : nat × nat) (cmp : nat) :=
a.cmp
end prod
|
f54ce4517f681006f4397f1df120fd5811044183 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/file_not_found.lean | 8002cc2ce2a8af4f87bda0c6a8e3f0ead782c1c9 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 580 | lean | prelude
import Init.System.IO
open IO.FS
#eval (discard $ IO.FS.Handle.mk "non-existent-file.txt" Mode.read : IO Unit)
#eval do condM (IO.fileExists "readonly.txt")
(pure ())
(IO.FS.withFile "readonly.txt" Mode.write $ fun _ => pure ());
IO.setAccessRights "readonly.txt" { user ... |
17b1cca3302f42d3898962b56880fba07fc442e7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fun_like/basic.lean | dd8d40155d436bdef0dbc34a9535a1898cd33a19 | [
"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,238 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import logic.function.basic
import tactic.lint
import tactic.norm_cast
/-!
# Typeclass for a type `F` with an injective map to `A → B`
> THIS FILE IS SYNCHRONIZED WITH M... |
36c807d674a5518a66408f0db3934284a589f16a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/alexandroff.lean | 6dacac3369e96ebb42f2f7ddb92b26e6f02ba644 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 18,663 | lean | /-
Copyright (c) 2021 Yourong Zang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yourong Zang, Yury Kudryashov
-/
import topology.separation
import topology.sets.opens
/-!
# The Alexandroff Compactification
We construct the Alexandroff compactification (the one-poi... |
ee99de11949f7343766589841ffd72a54bd26751 | bdd56e6eb0f467437e368d613de75299495d4054 | /src/category_theory/finite_limits.lean | 5f6d8aad39b281ae2b7d7f2383dfef37e268506b | [] | 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 | 5,690 | lean | -- Copyright (c) 2018 Jesse Han. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Jesse Han
import category_theory.limits.shapes.products basic data.dvector
category_theory.limits.shapes.equalizers
category_theory.limits.limits
universes u v
open c... |
2a6ef9edcb11181e7b8c89bd282f61c0f562b620 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Init/Control/Reader.lean | 7372222f2b23a487d6ca4a09ef61d0b036b43efd | [
"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 | 1,054 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The Reader monad transformer for passing immutable State.
-/
prelude
import Init.Control.Basic
import Init.Control.Id
import Init.Control.Except
namespace Re... |
80307700b03101ec95ae4102a10853f67835a002 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/algebra/group/hom.lean | e8575dbaae6681339a71f0f3c7523da46f0286b8 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,089 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.group.basic
/-!
# monoid and group homomorphisms
This... |
dca0925af276dabc85156970df09cb2cf87ef3e9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/hom/non_unital_alg.lean | 80cfcc6a71363489a55832bca545be8828e6e946 | [
"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 | 12,431 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.algebra.basic
/-!
# Morphisms of non-unital algebras
This file defines morphisms between two types, each of which carries:
* an addition,
* an additive z... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.