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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1b55908a5f1e45bb08e95aa9ba03992b980e47ee | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/lua4.lean | bc8660b3c7c10c194d8317f43a52c641598e2c3b | [
"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 | 294 | lean | import Int.
variable x : Int
(*
-- Add a variable to the environment using Lua
-- The type of the new variable is equal to the type
-- of x
local env = get_environment()
typeofx = env:type_check(Const("x"))
print("type of x is " .. tostring(typeofx))
env:add_var("y", typeofx)
*)
check x + y
|
7b607179d123535f615bdc40ab2a513dd7d9f87e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebraic_geometry/sheafed_space.lean | 884b4b8dc3d2a1c0cfd183a379558a2fd1e57cbe | [
"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 | 5,960 | 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 algebraic_geometry.presheafed_space.has_colimits
import topology.sheaves.functors
/-!
# Sheafed spaces
Introduces the category of topological spaces equipped... |
e7dd57509485a562acd2e63791d2cb036e735513 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/category/Group/Z_Module_equivalence.lean | d24307095d6e2f3e7a215661701b262f912a0dbf | [
"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,750 | 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 algebra.category.Module.basic
/-!
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
The forgetful... |
a382ba25e4a3db9781ebb05d23b3c2ea160b7ec7 | 5a8eb1c11f93715e070b588e85f2961065c3714d | /books/theorem-proving-in-lean/ch02-03-2.lean | 4b766f8afc9ae48f03b0666b44bd151c5e11540c | [
"MIT"
] | permissive | luksamuk/study | 0e19bf99d33e0793127c3d3f8ad3936fbeb36505 | 6a9417e071a8624c4cd9db696c16a3abcc430219 | refs/heads/master | 1,677,960,533,266 | 1,676,234,529,000 | 1,676,234,529,000 | 151,009,060 | 4 | 1 | MIT | 1,676,234,531,000 | 1,538,343,224,000 | C++ | UTF-8 | Lean | false | false | 378 | lean | constants m n : ℕ
constant b : bool
#print "Reducing pairs"
#reduce (m, n).1
#reduce (m, n).2
#print "reducing boolean expressions"
#reduce tt && ff
#reduce ff && b
#reduce b && ff
#print "reducing arithmetic expressions"
#reduce n + 0
#reduce n + 2
#reduce 2 + 3
-- Evaluation example
#eval 12345 * 54321
-- #reduc... |
6715eef0e9a8d137a12f76cd7697e2174607bc8d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/measure/stieltjes.lean | b9658b31a4774d1686b450f5dbfe43d485e0637c | [
"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 | 16,615 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov, Sébastien Gouëzel
-/
import measure_theory.constructions.borel_space
/-!
# Stieltjes measures on the real line
Consider a function `f : ℝ → ℝ` whi... |
1d5d560d18a86ea4ac17338b194a0bcbea2d4b36 | 856e2e1615a12f95b551ed48fa5b03b245abba44 | /src/algebraic_geometry/presheafed_space.lean | bfea68a5df708d8df8dd6d5f44b3c550f7aa03e3 | [
"Apache-2.0"
] | permissive | pimsp/mathlib | 8b77e1ccfab21703ba8fbe65988c7de7765aa0e5 | 913318ca9d6979686996e8d9b5ebf7e74aae1c63 | refs/heads/master | 1,669,812,465,182 | 1,597,133,610,000 | 1,597,133,610,000 | 281,890,685 | 1 | 0 | null | 1,595,491,577,000 | 1,595,491,576,000 | null | UTF-8 | Lean | false | false | 8,434 | 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 topology.sheaves.presheaf
/-!
# Presheafed spaces
Introduces the category of topological spaces equipped with a presheaf (taking values in an
arbitrary targe... |
f5e7f158a7cbf1e5eceaf26a585827ea80f65ecf | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/ppNotationCode.lean | d15d20501d5279a6351e2dc6a9368ac37b9dca34 | [
"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 | 67 | lean | set_option trace.Elab.definition.body true
infix "+++" => Nat.add
|
a0fefb6792c8b98aa328acdb8b7ef9d44574d8c9 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/pfunctor/multivariate/W.lean | 1acbb174491bc2d8e0091c177aa1fde5f738d1e8 | [
"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 | 10,499 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Simon Hudon
-/
import data.pfunctor.multivariate.basic
/-!
# The W construction as a multivariate polynomial functor.
W types are well-founded tree-like structures. They... |
783c6117b74ceab72b923169a71414b8519bc88b | c9b68131de1dfe4e7f0ea5749b11e67a774bc839 | /src/constraints.lean | 9e78fc611c820b84d23a377e5c3dddac4ba70bb8 | [] | no_license | congge666/formal-proofs | 2013f158f310abcfc07c156bb2a5113fb78f7831 | b5f6964d0220c8f89668357f2c08e44861128fe3 | refs/heads/master | 1,691,374,567,671 | 1,632,704,604,000 | 1,632,706,366,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,743 | lean | /-
The constraints specifying the trace of a Cairo execution.
-/
import algebra.field data.nat.basic data.fin tactic.norm_num
import cpu -- for names of flags
open_locale big_operators
structure input_data_aux (F : Type*) :=
(T : nat)
(pc_I : F)
(pc_F : F)
(ap_I : F)
(ap_F : F)
(mem_star : F → ... |
c1596fc5007223e0c0f896200c12f598eec8965b | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/measure_theory/l1_space.lean | 87a267b293bfdf3fc9fb08d7b4df4bf89fdb6469 | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 6,535 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
Integrable functions and L¹ space
-/
import measure_theory.ae_eq_fun
noncomputable theory
open_locale classical
set_option class.instance_max_depth 100
namespace meas... |
b1beed47d2d25b5d639f93c9cbed2c7f122e2b62 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/topology/uniform_space/basic.lean | 609d2ef36735760d1ddf69cb2c776f11416bc79f | [
"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 | 69,139 | 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 order.filter.lift
import topology.separation
/-!
# Uniform spaces
Uniform spaces are a generalization of metric spaces and top... |
4886ccab14b072cb22e5c2f4d0a48ae28bd0d64e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/lp_space.lean | 52dae330881881193bc486912d0aa5a7f2d78db3 | [
"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 | 42,927 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.mean_inequalities
import analysis.mean_inequalities_pow
import topology.algebra.order.liminf_limsup
/-!
# ℓp space
This file describes properties ... |
5a0bc9a6ae56556ebd2424852071e2fb8f66f8a9 | 130c49f47783503e462c16b2eff31933442be6ff | /src/Lean/Data/Lsp/Extra.lean | 43b1a3fa045935b4187a98657124e2aa0cb68904 | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,186 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Json
import Lean.Data.JsonRpc
import Lean.Data.Lsp.Basic
/-! This file contains Lean-specific extensions to LSP. See the structure... |
1f40ee62f680b8ac8826d0deed53925feb9f53e9 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/polynomial/hasse_deriv.lean | 007abde213bad89a0e6010b6132fac2cf9dc37f8 | [
"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 | 10,466 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.polynomial.big_operators
import data.nat.choose.cast
import data.nat.choose.vandermonde
import data.polynomial.degree.lemmas
import data.polynomial.de... |
74f48fde511e74094967e9c9e16cb0ce1825afb0 | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/Script/Do.lean | 99d25ef302912807a49b0734298e378a44534207 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,716 | lean | import Lean.Parser
namespace Papyrus.Script
open Lean Parser
-- # Module Do
declare_syntax_cat modDoElem (behavior := symbol)
def modDoElemParser (rbp : Nat := 0) := categoryParser `modDoElem rbp
def modDoSeqItem := leading_parser ppLine >> modDoElemParser >> Parser.optional "; "
def modDoSeqIndent := leading_parse... |
892fae589474ede147c7af549f2cc7c7b7e5d057 | 17d3c61bf162bf88be633867ed4cb201378a8769 | /tests/lean/vm_let_expr.lean | 94001f0d869073c331f664358ad7ac047fe53bf2 | [
"Apache-2.0"
] | permissive | u20024804/lean | 11def01468fb4796fb0da76015855adceac7e311 | d315e424ff17faf6fe096a0a1407b70193009726 | refs/heads/master | 1,611,388,567,561 | 1,485,836,506,000 | 1,485,836,625,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 249 | lean | meta def mk_value (n : nat) : nat :=
trace "mk_value" (λ _, 2 * n)
meta def mk_fn (sz : nat) : nat → nat :=
let n := mk_value sz in
λ x, x + n
vm_eval let f := mk_fn 10 in f 1 + f 2 + f 3 + f 4
vm_eval ((let x := mk_value 10 in mk_fn x) 10)
|
43c8353fc23daf8ac9cb9c190eb34be784c3663e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/invertible.lean | d862f4ae21ef8da32fb4f22cabc9ea3dceb8e2c4 | [
"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 | 1,241 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import algebra.order.ring.defs
import algebra.invertible
/-!
# Lemmas about `inv_of` in ordered (semi)rings.
-/
variables {α : Type*} [linear_ordered_semiri... |
39bc95093bcfd44878c607311ef49f9902040a3b | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/expressions/axis_orientation.lean | d02db9cca4555719e7b8a98e9cab58f2436cb886 | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 745 | lean | import ...phys.metrology.axis_orientation
namespace lang.axisOrientation
open orientation
structure var : Type :=
mk :: (num : ℕ)
structure orientationVar extends var
inductive orientationExpr
| lit (v : AxisOrientation 3)
| var (v : orientationVar)
abbreviation orientationEnv := orientationVar → AxisOrientation 3
... |
302cc443fd6d72884ff5995feaeb1cd0a951bc37 | b29f946a2f0afd23ef86b9219116968babbb9f4f | /src/limits.lean | e981755ad7df7502afe6f34afc8579e2071b95ce | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/M1P1-lean | 58be7394fded719d95e45e6b10e1ecf2ed3c7c4c | 3723468cc50f8bebd00a9811caf25224a578de17 | refs/heads/master | 1,587,063,867,779 | 1,572,727,164,000 | 1,572,727,164,000 | 165,845,802 | 14 | 4 | Apache-2.0 | 1,549,730,698,000 | 1,547,554,675,000 | Lean | UTF-8 | Lean | false | false | 14,713 | lean | /- limits.lean
Limits of sequences.
Part of the M1P1 Lean project.
This file contains the basic definition of the limit of a sequence, and
proves basic properties about it.
It is full of comments in an attempt to make it more comprehensible to
mathematicians with little Lean experience, although by far the best
way... |
7016b26fbf11ce891b74e9f8b20cc9be57c9ca07 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/algebraic.lean | fdb0c04e1ec27b55c75b17b203389447abe67484 | [
"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 | 17,637 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import linear_algebra.finite_dimensional
import ring_theory.integral_closure
import data.polynomial.integral_normalization
/-!
# Algebraic elements and algebraic ex... |
4e94fe0331b10141ef699dcc4b950d81fcdddfb7 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/order/filter/pointwise.lean | 855cd02af3943c4eb87a74c43e81b142b0ec82b1 | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 7,670 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
The pointwise operations on filters have nice properties, such as
• map m (f₁ * f₂) = map m f₁ * map m f₂
• 𝓝 x * 𝓝 y = 𝓝 (x * y)
-/
import algebra.pointwise
imp... |
af63276f3834cb97cef2adecfe64874877c7c38e | e953c38599905267210b87fb5d82dcc3e52a4214 | /hott/types/bool.hlean | 5b8f7d466d44bc3bbd7b602a3a776049bd9f774e | [
"Apache-2.0"
] | permissive | c-cube/lean | 563c1020bff98441c4f8ba60111fef6f6b46e31b | 0fb52a9a139f720be418dafac35104468e293b66 | refs/heads/master | 1,610,753,294,113 | 1,440,451,356,000 | 1,440,499,588,000 | 41,748,334 | 0 | 0 | null | 1,441,122,656,000 | 1,441,122,656,000 | null | UTF-8 | Lean | false | false | 1,291 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Theorems about the booleans
-/
open is_equiv eq equiv function is_trunc option unit
namespace bool
definition ff_ne_tt : ff = tt → empty
| [none]
definiti... |
b656fbf18c06abef19ef5e866c7b89167a6c4714 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/361.lean | afe69af83ed6b555f9ecc2840871438a1921aeee | [
"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 | 160 | lean | theorem ex1 (p q r : Prop) (h1 : p ∨ q) (h2 : p → q) : q := by
theorem ex2 (p q r : Prop) (h1 : p ∨ q) (h2 : p → q) : q := by
cases h1
case inl =>
|
4e6bc8bbd83835fabca17a8071e4707c0ef72ed8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/euclidean_domain/defs.lean | 18d9d394c843783e7440a14b085e6df8e893fa38 | [
"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,282 | lean | /-
Copyright (c) 2018 Louis Carlin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Louis Carlin, Mario Carneiro
-/
import logic.nontrivial
import algebra.divisibility.basic
import algebra.group.basic
import algebra.ring.defs
/-!
# Euclidean domains
> THIS FILE IS SYN... |
c436a54a58e20029da498fae1b70cf0d34a9d376 | 022547453607c6244552158ff25ab3bf17361760 | /src/measure_theory/simple_func_dense.lean | 769642aae28b475e3f837a8770adc66aa46b5a12 | [
"Apache-2.0"
] | permissive | 1293045656/mathlib | 5f81741a7c1ff1873440ec680b3680bfb6b7b048 | 4709e61525a60189733e72a50e564c58d534bed8 | refs/heads/master | 1,687,010,200,553 | 1,626,245,646,000 | 1,626,245,646,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,088 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Heather Macbeth
-/
import measure_theory.l1_space
/-!
# Density of simple functions
Show that each Borel measurable function can be approximated pointw... |
bc58b31e96647b29bc6c78554fc6a1afba14eaeb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Coe.lean | b06fed21854edb4e09d13ea7e94a4a21e7a66146 | [
"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 | 9,457 | 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.Meta.WHNF
import Lean.Meta.Transform
import Lean.Meta.SynthInstance
import Lean.Meta.AppBuilder
namespace Lean.Meta
builtin_initialize coeDecl... |
d951ef4972e9baa4da8c7b6134bf8c7a6caaea86 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/PPRoundtrip.lean | 6762e60e2a15ca01b82aac144ef944f437d99e9f | [
"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 | 2,516 | lean | import Lean
open Lean
open Lean.Elab
open Lean.Elab.Term
open Lean.Elab.Command
open Lean.Format
open Lean.Meta
def check (stx : TermElabM Syntax) (optionsPerPos : OptionsPerPos := {}) : TermElabM Unit := do
stx ← stx;
e ← elabTermAndSynthesize stx none <* throwErrorIfErrors;
stx' ← liftMetaM $ delab e optionsP... |
22f02e086b077aeac817ce81760878cb1bd26c24 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/intro_under.lean | d863da66afd8d08014ffb07fc1029ea5acd65585 | [
"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 | 87 | lean | example (p q r : Prop) : p → q → r → r :=
begin
intro _ _ Hr,
assumption
end
|
27032bf36fcff8a13ee023b1b6d54873db490cb6 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/calculus/lagrange_multipliers.lean | c800f44d37cb5dd3c05fb094cecd40749667c5e8 | [
"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 | 6,793 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.local_extr
import analysis.calculus.implicit
import linear_algebra.dual
/-!
# Lagrange multipliers
In this file we formalize the
[Lagrang... |
51069a690aa21e4b386aae52d4613a5158241ba4 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/monoid_localization.lean | b797ad903101ecf70610b95fff17954b1974c393 | [
"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 | 67,356 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import group_theory.congruence
import group_theory.submonoid.membership
import algebra.group.units
/-!
# Localizations of commutative monoids
Localizing a com... |
f247d70d4666f05d1b98a6ece38770a5a2bb4fce | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/meta3.lean | dfa85c0872d29210622eb1dee07bf62b30cf99c5 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,857 | 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 t... |
1dccf03435b52ae9302cea1735c5a1ae8f5f7a87 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/measure/haar.lean | c988a723a3a6c448b4fc93dff523e600d5caf77d | [
"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 | 38,771 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.measure.content
import measure_theory.group.prod
import group_theory.divisible
import topology.algebra.group.compact
/-!
# Haar measure
In... |
aaa0c3cdefd6707652771cc58806f837ccd9871b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/finset/card.lean | 13778c0ec9a3cd25d1f2dac87e1e1a324ef74e1a | [
"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 | 24,064 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
import data.finset.basic
import tactic.by_contra
/-!
# Cardinality of a finite set
This defines the cardinality of a `finset` and provides ... |
853f6f6773c168726b2ad21767a548cdd594d429 | c055f4b7c29cf1aac2223bd8c1ac8d181a7c6447 | /examples/universes.lean | 60f74e0cfe1bead995cb07f370aadb53d8ef3243 | [
"Apache-2.0"
] | permissive | rwbarton/lean-category-theory-pr | 77207b6674eeec1e258ec85dea58f3bff8d27065 | 591847d70c6a11c4d5561cd0eaf69b1fe85a70ab | refs/heads/master | 1,584,595,111,303 | 1,528,029,041,000 | 1,528,029,041,000 | 135,919,126 | 0 | 0 | null | 1,528,041,805,000 | 1,528,041,805,000 | null | UTF-8 | Lean | false | false | 2,781 | lean | universes u₁ v₁ u₂ v₂
structure Category :=
(Obj : Type u₁)
(Hom : Obj → Obj → Type v₁)
(identity : Π X : Obj, Hom X X)
(compose : Π {X Y Z : Obj}, Hom X Y → Hom Y Z → Hom X Z)
(left_identity : ∀ {X Y : Obj} (f : Hom X Y), compose (identity X) f = f)
(right_identity : ∀ {X Y : Obj} (f : Hom X Y), compose... |
4ec293b8c57bb1f55e33700fbf260a6f8bd68ddc | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /tactic/chain.lean | b9a3da2a742a7fdd48b049f5eb3a01ea8487d35b | [
"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 | 5,231 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison, Mario Carneiro
import tactic
import data.option
open interactive
namespace tactic
/-
This file defines a `chain` tactic, which takes a list of tactics, and ex... |
95b1e2d463437563f94d84ec790d4104762a7ae1 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/polynomial/derivative.lean | 68438eebd7f6dc8e5664289b7b357b75f9fd8c61 | [
"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 | 13,327 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.eval
import algebra.iterate_hom
/-!
# The derivative map on polynomials
## Main definitions
* `p... |
c8aea4c512efa007d3e9a3f2225007ea155bb6ab | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/equivalence.lean | 9cbe8fa3df704e6ec4bf7d7b504b46c71fdb48d4 | [
"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 | 23,964 | 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, Floris van Doorn
-/
import category_theory.fully_faithful
import category_theory.full_subcategory
import category_theory.whiskering
import ... |
73af9c1cd77b7750b375869ac27b0e757840c87c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/nonsingular_inverse_auto.lean | f6dc81d2b34403d51f8fe9c0fa2ea96989c652ff | [] | 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 | 13,954 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Tim Baanen.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.associated
import Mathlib.linear_algebra.determinant
import Mathlib.tactic.linarith.default... |
611471de334f04bc663f2723b6262cc585dcdfa8 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/quandle.lean | ab30decf3f9ae8ff99fa2b5789e791f21f05291f | [
"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 | 24,828 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.zmod.basic
import data.equiv.mul_add
import tactic.group
/-!
# Racks and Quandles
This file defines racks and quandles, algebraic structures for sets
that bij... |
8fe0de35e36caa44cc18ddda26a49b157f03cb51 | 90109f8736c31bdbe0cf5318c1c226250ff3bbff | /lean/cat.lean | 5a7d7796554cb7dbc92d319ef11e2cf447f6b0f2 | [] | no_license | akella/groupoid.space | c64db5a98a04cd73ae1259eeb6bc14dd1676e28c | 18ba185b80e2114c13faf983dbe0edb335a63587 | refs/heads/master | 1,584,768,713,904 | 1,529,586,461,000 | 1,529,586,461,000 | 138,165,171 | 1 | 0 | null | 1,529,582,805,000 | 1,529,582,804,000 | null | UTF-8 | Lean | false | false | 519 | lean |
import data.nat data.bool data.prod data.list data.sum data.stream
data.unit data.uprod data.tuple data.option
application persistence storage effects
open nat bool prod sum list classical option stream
application persistence storage effects
namespace cat
... |
fc5f1f0dcfc386a12f7ec7255c4ddbb1abae5420 | ec62863c729b7eedee77b86d974f2c529fa79d25 | /17/b.lean | 0c238ab1d27bf3df1d57e8797f7425b37eda5415 | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,332 | lean | instance : Monad List :=
{ pure := λ a => [a],
map := List.map,
bind := λ x f => (x.map f).join }
def fromCoord (w x y z : Int) : Nat :=
Int.toNat (5200 * w + 400 * x + 20 * y + z)
@[reducible] def Grid : Type := Array Bool
def Grid.get (g : Grid) (w x y z : Int) : Bool :=
if 0 ≤ w ∧ w < 13 ∧ 0 ≤ x ∧ x < 13 ∧ 0 ... |
24f0e81453dfc8f0589d9a7c4dcb650a216f0c14 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/category/Top/limits/pullbacks.lean | 8e0d847277388ef1babcfe6e699490c6e9e83268 | [
"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 | 15,848 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Scott Morrison, Mario Carneiro, Andrew Yang
-/
import topology.category.Top.limits.products
import category_theory.concrete_category.elementwise
/-!
# Pullbacks in the... |
739ab39ecccc5ccf840360137396c115c17978af | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /archive/oxford_invariants/2021summer/week3_p1.lean | d9958cd21cac4289fcbc62cc6f6153c29d92c90b | [
"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 | 6,779 | 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 algebra.big_operators.order
import algebra.big_operators.ring
import algebra.char_zero.lemmas
import data.rat.cast
/-!
# The Oxford In... |
9618cda6809e039a96d51e766262f9f6a39b095b | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/theories/topology/order_topology.lean | fe7a19058e0476932c5c78fe9a114b321b64cd66 | [
"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 | 3,184 | lean | /-
Copyright (c) 2016 Jacob Gross. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jacob Gross
The order topology.
-/
import data.set theories.topology.basic algebra.interval
open algebra eq.ops set interval topology
namespace order_topology
variables {X : Type} [lin... |
0a0067ac1f01a955db3669b3d0da4dc5b74d5ae9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/smt/default_auto.lean | 30e2aca6fe90d7776aa161d08a231e5d8b15e8dd | [] | 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 | 502 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.smt.congruence_closure
import Mathlib.Lean3Lib.init.cc_lemmas
import Mathlib.Lean3Lib.init.meta.smt... |
53dc1b607de3e3ca31f2b829e3349e5eaea970c9 | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/exercises_sources/thursday/morning/order.lean | fbf8f53047db2bc61ea485f0a6fd3236c6c0d336 | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 19,124 | lean | /-
# Orders
Groups, rings, fields, modules etc are in the "algebra hierarchy".
Metric and topological spaces are in the "topology hierarchy".
The other important hierarchy is the "order hierarchy".
It starts with partially ordered sets, and then goes on to lattices.
Because I like algebra, let's demonstrate the or... |
20e17539037b88689222c48b3be5d6500e7e40ec | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Meta/Tactic/ElimInfo.lean | 85c9a10407d03588344ce9a8a1ded1226bb5790b | [
"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 | 6,611 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.Check
import Lean.ScopedEnvExtension
namespace Lean.Meta
structure ElimAltInfo where
name : Name
numField... |
ae37a731dfe39a615d5a31c2516c4714e51b2b00 | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/logic/basic.lean | 8765feae67266088a15a71b9cb1cdb1a2dc9fcde | [
"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 | 49,001 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
import tactic.doc_commands
/-!
# Basic logic properties
This file is one of the earliest imports in mathlib.
## Implementation notes
Theorems tha... |
3891a0625ade35c246a5185841775e25f409d139 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/coset.lean | 01fc5e6c7e3e571f30cc487996121353efb90db4 | [
"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 | 27,302 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import algebra.quotient
import data.fintype.prod
import group_theory.group_action.basic
import group_theory.subgroup.mul_opposite
import tactic.gro... |
7cc27224acf9c67d07d5d359e5f33596628ad605 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Init/System/Uri.lean | a84943f6c109e01190a05ac8f3683c754a9f6cfb | [
"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 | 4,555 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Lovett
-/
prelude
import Init.Data.String.Extra
import Init.System.FilePath
namespace System
namespace Uri
namespace UriEscape
/- https://www.ietf.org/rfc/rfc3986.txt -/... |
2e2b7d20683e18f0243d67b6dc1a16ebded6e5d0 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/issue332.lean | bcf5114affe5f18b60e1176ac4b7ac6b3760e410 | [
"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 | 157 | lean | import tools.tactic logic.eq
variable {a : Type}
definition foo {A : Type} : A → A :=
begin
intro a, exact a
end
check @foo
example : foo 10 = 10 :=
rfl
|
b0bd3baa5446b3b04cae5a5f1d531ffdd989092e | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/analysis/analytic/radius_liminf.lean | 63ed1376f14362aa7c90a7874607fe1674fed1d1 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,479 | 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 analysis.analytic.basic
import analysis.special_functions.pow
/-!
# Representation of `formal_multilinear_series.radius` as a `liminf`
In this file we prove... |
a93adcc5e9e9ad835149bd2d93c07263c381323a | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/linear_algebra/linear_pmap.lean | f36af6edf057ef966f7143799f28619fc471a8ec | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 27,103 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Moritz Doll
-/
import linear_algebra.basic
import linear_algebra.prod
/-!
# Partially defined linear maps
A `linear_pmap R E F` or `E →ₗ.[R] F` is a linear map from ... |
0dbc26f794382b2c1b9adf33a6b8c5be0abe620f | 2d041ea7f2e9b29093ffd7c99b11decfaa8b20ca | /ch9.lean | d66720f3d92afd53b38164040d5097075d4ad302 | [] | no_license | 0xpr/lean_tutorial | 1a66577602baa9a52c2b01130b9d70089653ea37 | 56ef609d8df9e392916012db5354bf182cbbb8d8 | refs/heads/master | 1,606,955,421,810 | 1,499,014,388,000 | 1,499,014,388,000 | 96,036,899 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,946 | lean | import data.nat
open nat decidable algebra
definition bex (n : nat) (P : nat → Prop) : Prop :=
∃ x : nat, x < n ∧ P x
definition not_bex_zero (P : nat → Prop) : ¬ bex 0 P :=
(assume H: bex 0 P,
exists.elim H
(take x,
(assume H' : x < 0 ∧ P x,
have H_le_... |
9e25583cbb5185da14393c11ea353addc16ec332 | d72901cc240bd78b8b0384565e4f4dee8abd3a86 | /src/topology/metric_space/isometry.lean | 3ca928c8ea023ed67bf47ee9fe6fc7ef0ee38dcb | [
"Apache-2.0"
] | permissive | leon-volq/mathlib | 513b24765349bb5187df9d898b92beadf96124d9 | 0cc93a137e9b2e243f8ae1f808fa7225ce0fe143 | refs/heads/master | 1,676,294,376,990 | 1,610,838,688,000 | 1,610,838,688,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,565 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Isometries of emetric and metric spaces
Authors: Sébastien Gouëzel
-/
import topology.bounded_continuous_function
import topology.compacts
/-!
# Isometries
We define isometries, i.e., maps... |
e174b318d79a804b22eb518ec6736d0f03158024 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/set/intervals/ord_connected.lean | b0f3f1bec8817739526eba4cc646e48cda66e47e | [
"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 | 9,461 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import data.set.intervals.unordered_interval
import data.set.lattice
import order.antichain
/-!
# Order-connected sets
> THIS FILE IS SYNCHRONIZED WITH MATH... |
28b9dc385e5de91526a7c2f580a7e63b1e41885f | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/comma.lean | 558acb0d3009fe0353649a9c24e9be7fa5e91e54 | [
"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 | 6,883 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin, Bhavik Mehta
-/
import category_theory.natural_isomorphism
/-!
# Comma categories
A comma category is a construction in category theory, which builds ... |
5390861f32874696d2f2dfa628c4347ac1003952 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/MetavarContext.lean | f69a69c62a504e22bf6a3781a1325865e8386295 | [
"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 | 53,740 | 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.Util.MonadCache
import Lean.LocalContext
namespace Lean
/-
The metavariable context stores metavariable declarations and their
assignments. It... |
e887a2238a8126fd795e6cbb496184f50dbe436a | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/number_theory/primes_congruent_one.lean | 9a50b9dab32e067ead7a1ca6e633e61e22bf3e01 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,677 | lean | /-
Copyright (c) 2020 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import ring_theory.polynomial.cyclotomic
import topology.algebra.polynomial
import field_theory.finite.basic
/-!
# Primes congruent to one
We prove that, for any... |
b4e36febdf2c546ceec22f1140120fe760632402 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /hott/init/bool.hlean | 51893d3e4574b5761320db7ba1e1ab2af84c2910 | [
"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 | 551 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.datatypes init.reserved_notation
namespace bool
definition cond {A : Type} (b : bool) (t e : A) :=
rec_on b e t
definition bor (a... |
70e79d593e72527b890c65008c66f554fdd0749a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/group_theory/specific_groups/cyclic.lean | f6508ca1c93dd1303d2368c7d4b54fef5da0cd90 | [
"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 | 19,206 | 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
-/
import algebra.big_operators.order
import data.nat.totient
import group_theory.order_of_element
import tactic.group
/-!
# Cyclic groups
A group `G` is called cycli... |
10fbc35468295bccd7071cad1700b91deeb0e188 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/char_p/pi.lean | dd4a28105a20f7a5d2104acbd08aaf10d4c64500 | [] | 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 | 723 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.char_p.basic
import Mathlib.algebra.ring.pi
import Mathlib.PostPort
universes u v
namespac... |
0511b109cab998e69f274fecff8e944387bfd269 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/subring.lean | 1932fe8a33568607e1e59c6c7742417e9523f145 | [] | 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 | 32,220 | lean | /-
Copyright (c) 2020 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors : Ashvni Narayanan
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.deprecated.subring
import Mathlib.group_theory.subgroup
import Mathlib.ring_theory.sub... |
c884619d3fc072b30ba3725070897267668b7943 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/alias3.lean | b5e7f914b5527b799e3407b6a5a2a3659cf87b66 | [
"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 | 380 | lean | import logic
namespace N1
context
context
parameter A : Type
definition foo (a : A) : Prop := true
check foo
end
check foo
end
check foo
end N1
check N1.foo
namespace N2
context
parameter A : Type
inductive list : Type :=
| nil {} : list
| cons : A → list → list... |
4734e25a85002e0e42e49eeb8cbebe0197131e83 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/multiplicity_auto.lean | b6f215e769b34fa5a2af26710a67fc87ae2794a2 | [] | 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 | 12,267 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.associated
import Mathlib.algebra.big_operators.basic
import Mathli... |
90ee211498bd0d8394a15a1b33f02458cca335e9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/bounds.lean | d9972992fe65d054cac8316500e5282c25d45ef8 | [
"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 | 45,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, Yury Kudryashov
-/
import data.set.intervals.basic
/-!
# Upper / lower bounds
In this file we define:
* `upper_bounds`, `lower_bounds` : the set of upper bounds (re... |
1c0e1d55001026ec8ad9d28f7cdff693e9c7d259 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/category/Group/limits.lean | 0bca8734f6059fab37f164b6dfb61069e6488569 | [
"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 | 9,751 | 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 algebra.category.Mon.limits
import algebra.category.Group.preadditive
import category_theory.over
import category_theory.limits.concrete_category
import catego... |
f92f5c06764e768afb0b6ee53ef64279572e251d | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/lift.lean | f9f2ce52faa4c257d8ab5b9e1ca9b6a97b1f7dd5 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 7,904 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.rcases
/-!
# lift tactic
This file defines the lift tactic, allowing the user to lift elements from one type to another
under a specified condition... |
58b113442cceeada956ca5cf9ff49c0f4c526ab5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Match/CaseValues.lean | 2d0d6ecb02458e5d3b45dd35b2305460742ec32c | [
"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 | 4,770 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Subst
import Lean.Meta.Tactic.Clear
import Lean.Meta.Match.Value
namespace Lean.Meta
structure CaseValueSubgoal where
mvarId : M... |
83f58017b0e292cfc00991cd8b68fb9287ce9abb | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/simp3.lean | 7b6c6551935800d013f75e8946e8aaa249df62d7 | [
"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 | 2,412 | lean | definition double x := x + x
(*
function show(x) print(x) end
local t1 = parse_lean("0 ≠ 1")
show(simplify(t1))
local t2 = parse_lean("3 ≥ 2")
show(simplify(t2))
local t3 = parse_lean("double (double 2) + 1")
show(simplify(t3))
local t4 = parse_lean("0 = 1")
show(simplify(t4))
*)
(*
local opt = options({"simplifier",... |
75919f293e9af77e47efb2d2d32bdddad5a104f6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/discrete_valuation_ring.lean | 90f2457dfa66ff2b5cbf5ff2df53341e5ee581b9 | [
"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 | 17,080 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import ring_theory.principal_ideal_domain
import order.conditionally_complete_lattice
import ring_theory.ideal.local_ring
import ring_theory.multiplicity
import ring_t... |
6119853d45a8978ffb3764d65da1faa09e974766 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/meta/comp_value_tactics.lean | 34259f143237187c789db695dfc41303d073680d | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 2,072 | 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.tactic init.data.option.instances
meta constant mk_nat_val_ne_proof : expr → expr → option expr
meta constant mk_nat_val_lt_proof ... |
cc499d7f1d91e05051bdab9529cb7a8adeb95cca | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/nat/modeq.lean | 0c15e1fdb5de36642ab6931e74caadfc47cecd2e | [
"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 | 14,193 | 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]` ... |
5154dbfadc82b4761db441729685f924cbf845c8 | 4727251e0cd73359b15b664c3170e5d754078599 | /test/equiv.lean | a9b11aa92041b4306a6ac58ec92f04a94613ccba | [
"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 | 400 | lean | import data.set.finite
import data.finset.basic
def s : finset (fin 3) := {0, 1}
example : finset (fin 3) := s.map (equiv.add_left (1 : fin 3)).to_embedding
example : finset (fin 3) := s.map (equiv.add_left (1 : fin 3))
def f : equiv (fin 3) (fin 3) :=
{ to_fun := λ x, x + 1,
inv_fun := λ x, x - 1,
left_inv := d... |
a763c901b71c4214f1e9ba8c51b59ed974f1fb1a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/enat/basic.lean | 105dac551f4f097797cefa769695ec233823b137 | [
"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 | 3,754 | 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 data.nat.succ_pred
import algebra.char_zero.lemmas
import algebra.order.sub.with_top
import algebra.order.ring.with_top
/-!
# Definition and basic propertie... |
9d55e76891206c0e5f416b79f489a800a8be89eb | 7da5ceac20aaab989eeb795a4be9639982e7b35a | /src/tactic/omitted.lean | 3dd6f1daa56330c2be2a6cfcfc34bcc692799aab | [
"MIT"
] | permissive | formalabstracts/formalabstracts | 46c2f1b3a172e62ca6ffeb46fbbdf1705718af49 | b0173da1af45421239d44492eeecd54bf65ee0f6 | refs/heads/master | 1,606,896,370,374 | 1,572,988,776,000 | 1,572,988,776,000 | 96,763,004 | 165 | 28 | null | 1,555,709,319,000 | 1,499,680,948,000 | Lean | UTF-8 | Lean | false | false | 6,750 | lean | /-
Copyright (c) 2019 Jesse Han. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han
Some goodies for working with `omitted`
- `depends_omitted e` checks if `omitted` occurs in `e`. it will unfold one layer of
proof terms (e.g. a propositional field of a struc... |
ad14e1b5ab599a27f7d3fb8b8ee9cf89bb6cb214 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/order/bounds.lean | 88edbd74d23e898b0f2744ca39e7b8ea859e8aad | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 24,574 | 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 algebra.order_functions data.set.intervals.basic
/-!
# Upper / lower bounds
In this file we define:
* `upper_bounds`, `lower_bounds` : the ... |
83019fb82e8102c3042d9900a6df68352441fad7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/shapes/zero_morphisms.lean | c99d2118ad41f52338b1afe22e82b590ef8343e6 | [
"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,975 | 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 data.pi.algebra
import category_theory.limits.shapes.products
import category_theory.limits.shapes.images
import category_theory.isomorphism_classes
import cat... |
1eb1affe430ae7bff5d7d0070434e0016c94b905 | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world5/level6.lean | c76f3dbcca5b31426f66b9dff0633256f7d29cbf | [] | 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,560 | lean | /-
# Function world.
## Level 6 : `(P → (Q → R)) → ((P → Q) → (P → R))`.
You can solve this level completely just using `intro`, `apply` and `exact`,
but if you want to argue forwards instead of backwards then don't forget
that you can do things like
`have j : Q → R := f p,`
if `f : P → (Q → R)` and `p : P`. Remem... |
22295b49125afce8dd27c3825c1b28ae2db5f975 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/986.lean | 1448c57b97990c490750baaff631d92e27560209 | [
"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 | 46 | lean | attribute [simp] Array.insertionSort.swapLoop
|
d9f585eef23c8121d2f11c2c338016e7cfa6c958 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/slice.lean | 901ac12dd6cfbcf456a0ac023628543ca69e59dc | [
"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 | 3,495 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.category.basic
open category_theory
-- TODO someone might like to generalise this tactic to work with other associative structures.
namespac... |
0e6fcaec90886abbac686620a08dc472eb905d72 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/clifford_algebra/even.lean | e977571460879a33570a4a97087c06e615d7a1e0 | [
"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 | 10,211 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.clifford_algebra.fold
import linear_algebra.clifford_algebra.grading
/-!
# The universal property of the even subalgebra
## Main definitions
* `cli... |
fcb06c4d642daf4ac4181b2b66c16bc7c787d273 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/normed_space/hahn_banach.lean | 44302fc42f8a8c61abc12931d403aa8bfac016e2 | [
"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 | 7,251 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Heather Macbeth
-/
import analysis.normed_space.operator_norm
import analysis.normed_space.extend
import analysis.convex.cone
import data.complex.is_R_or_C
/-!
# Hahn... |
0ec60a95b3cd4895ec4a29e586d002475775f1bd | 892c0ca8b8ddfe17a2c64fb7b721f9e2d9287539 | /soundness.lean | 8d67dee1124238349da8fb0c59935a823f2b7122 | [] | no_license | ssomayyajula/stlc | f7ef96de541f9519b00912337332366317282dce | cf92bf387b4418f9a6261c7ea4876db4e4280dd2 | refs/heads/master | 1,630,729,373,254 | 1,516,045,347,000 | 1,516,045,347,000 | 115,835,353 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,682 | lean | import .typing .semantics
lemma progress {e : term} {τ : type} : has_type e τ → is_value e ∨ ∃ e', e ⇝ e' :=
begin
unfold has_type,
generalize g : @emptyf var type = Γ,
intro h,
induction h,
-- Impossible, variables cannot be typed in ∅
case has_type_under.var _ _ _ h
{ rw ←g at h, contradiction },
... |
6687e9d265d5d0e81424758d6e80fe188876e6b3 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/1207.lean | ec1305b4586f1b954349c513587038b20f556578 | [
"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 | 468 | lean | example : true :=
begin
note H : true := (by trivial),
exact H
end
example : true :=
begin
note H : true := (by tactic.triv),
exact H
end
meta example (h : tactic unit) : true :=
begin
h, -- ERROR h should not be visible here
trivial
end
example : false :=
begin
note H : true := (by foo), -- ERROR
ex... |
a44894b690775bd8c6949cb424959af35240b842 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_topology/dold_kan/projections.lean | 4b9ea21fdc872936468f49a27d749cff3f87ffbe | [
"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,152 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import algebraic_topology.dold_kan.faces
import category_theory.idempotents.basic
/-!
# Construction of projections for the Dold-Kan correspondence
> THIS FILE IS SYNCHRONI... |
c44da40db1eeba95d66233902c3088a32a11104f | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/shapes/wide_pullbacks.lean | b2183b92546df28480d7f35e0725902afb9da36c | [
"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 | 15,559 | 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.has_limits
import category_theory.thin
/-!
# Wide pullbacks
We define the category `wide_pullback_shape`, (resp. `wide_pushout_shape`) whi... |
a7f11a053b13785b4311b59e9f770a44a39e2166 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/1403.lean | cf8c0a4aafd59ee3ab0f553a7c59088c48168d22 | [
"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 | 67 | lean | example : True := by
rewrite []
--^ textDocument/hover
trivial
|
01d97776d194d120f7193b6801c3e969310a7520 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/tactic/interactive.lean | d7e18631484c23500267419937e6d39b6dfddf10 | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 27,667 | 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... |
cff80bf2035ea3b8d532880d42db05af042437b3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/set/intervals/disjoint.lean | a121d359b7f935406d0fc7a6b6a222a25fe807d3 | [
"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 | 4,090 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Yury Kudryashov
-/
import data.set.lattice
/-!
# Extra lemmas about intervals
This file contains lemmas about intervals that cannot be included into `data.set.int... |
5db274d41bb7fc038fd011725dbacc161b6f26b0 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/ir/freevars.lean | 803327e6659a23341950e49577f214eac4378e8a | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 9,535 | 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.lean.compiler.ir.basic
namespace Lean
namespace IR
namespace MaxIndex
/- Compute the maximum index `M` used in a declaration.
We `M... |
2d62e636514a9fc06e4800ca34d113069b026ff1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/category/BoolAlg.lean | 7301e685995a9f54ba19e47cc063d5b71aa4b0ec | [
"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 | 2,565 | 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.category.BoundedDistribLattice
/-!
# The category of boolean algebras
This defines `BoolAlg`, the category of boolean algebras.
-/
open order_dual opposit... |
59595f4197bd91b9aa260ac655b70b7f93d65125 | 137c667471a40116a7afd7261f030b30180468c2 | /src/data/sym2.lean | c9542a385046f8efefa4b2437588f4fd944fc446 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,158 | lean | /-
Copyright (c) 2020 Kyle Miller All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import tactic.linarith
import data.sym
/-!
# The symmetric square
This file defines the symmetric square, which is `α × α` modulo
swapping. This is also known as the type... |
4b78ba6039956fb6131a05e0ae585d0c357ca9e7 | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/100-theorems-list/82_cubing_a_cube.lean | 1f94ec93cee2c0132b19b799ad404762bcf9c779 | [
"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 | 23,626 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import data.fin.tuple
import data.real.basic
import data.set.intervals
import data.set.pairwise
import set_theory.cardinal.basic
/-!
Proof that a cube (in dimens... |
03120e7ec83dad41ee267f24e2e4cfeb66d9c1b7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/matchRw.lean | 6672cd121915402881965da432859f8af8ad7083 | [
"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 | 313 | lean | def f (x y : Nat) :=
match x with
| 0 => y + 1
| n+1 => y + 1
private theorem matchEq (x y : Nat) :
(match x with
| 0 => y + 1
| n+1 => y + 1) = y + 1 := by
cases x <;> simp
theorem fex1 : f x y = y + 1 := by
simp [f, matchEq]
theorem fex2 : f x y = y + 1 := by
simp [f]
rw [matchEq]
|
528fa78e62df963cdd91cbea8b7e277f7f0c2803 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/special_functions/arsinh.lean | 49d41ae88a67b007587ab5ce81f8995c0f03fbd7 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 8,753 | lean | /-
Copyright (c) 2020 James Arthur. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: James Arthur, Chris Hughes, Shing Tak Lam
-/
import analysis.special_functions.trigonometric.deriv
import analysis.special_functions.log.basic
/-!
# Inverse of the sinh function
In thi... |
a0b2bfacbdccd9e0efa97847cb28ce24652b30cd | 205f0fc16279a69ea36e9fd158e3a97b06834ce2 | /src/00_Introduction/03_truth_is_proof.lean | 04dc6f9bc286cf3175661f7be482f56c1a71080a | [] | 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 | 3,127 | lean | /-
Now here we're going to pull a little trick.
It's based on the idea that a "proof", whatever
that is (!), serves as "evidence" that justifies
a truth judgment about a proposition. So we are
now technically distinguishing between a proof
of a proposition and the truth judgment that it
justifies. Nevertheless, we wil... |
5c1926aab51e714d79f90731899cdef9e5aed610 | 4376c25f060c13471bb89cdb12aeac1d53e53876 | /src/espaces-metriques/metric.lean | 5ccdedadf5ca14302c0a7e82193d1a7eef20678c | [
"MIT"
] | permissive | RaitoBezarius/projet-maths-lean | 8fa7df563d64c256561ab71893c523fc1424b85c | 42356e980e021a20c3468f5ca1639fec01bb934f | refs/heads/master | 1,613,002,128,339 | 1,589,289,282,000 | 1,589,289,282,000 | 244,431,534 | 0 | 1 | MIT | 1,584,312,574,000 | 1,583,169,883,000 | TeX | UTF-8 | Lean | false | false | 5,926 | lean | import tactic
import data.real.basic
import .custom.defs
import .custom.sequences
import .custom.cauchy
noncomputable theory
open set
open_locale classical
section suites
open espace_metrique
variables {X: Type} [espace_metrique X]
variables {Y: Type} [espace_metrique Y]
variables {Z: Type} [espace_metrique Z]
... |
d8a12ab59e4085fa3e9be2ed1427453a0b9707f0 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /set_theory/ordinal_notation.lean | d55c879738a2a2bea0d58388ffc4f10112de4ea5 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 35,741 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Ordinal notations (constructive ordinal arithmetic for ordinals < ε₀).
-/
import set_theory.ordinal data.pnat
open ordinal
local notation `ω` := omega.{0}
/-- Recursiv... |
ebe66e08e39e636835e060af333d5c3cf09c419a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/show_term.lean | 7a175f76b71986c0ba4fbee8883e2d4b0a98d6a9 | [] | 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,116 | 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.tactic.core
import Mathlib.PostPort
namespace Mathlib
namespace tactic.interactive
/--
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.